From owner-freebsd-acpi@freebsd.org  Fri Sep 20 20:03:27 2019
Return-Path: <owner-freebsd-acpi@freebsd.org>
Delivered-To: freebsd-acpi@mailman.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
 by mailman.nyi.freebsd.org (Postfix) with ESMTP id 47207125E55
 for <freebsd-acpi@mailman.nyi.freebsd.org>;
 Fri, 20 Sep 2019 20:03:27 +0000 (UTC)
 (envelope-from bugzilla-noreply@freebsd.org)
Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3])
 by mx1.freebsd.org (Postfix) with ESMTP id 46Zl5W1FXxz4ZY0
 for <freebsd-acpi@freebsd.org>; Fri, 20 Sep 2019 20:03:27 +0000 (UTC)
 (envelope-from bugzilla-noreply@freebsd.org)
Received: by mailman.nyi.freebsd.org (Postfix)
 id 2AD8D125E52; Fri, 20 Sep 2019 20:03:27 +0000 (UTC)
Delivered-To: acpi@mailman.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
 by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2AA14125E51
 for <acpi@mailman.nyi.freebsd.org>; Fri, 20 Sep 2019 20:03:27 +0000 (UTC)
 (envelope-from bugzilla-noreply@freebsd.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org
 [IPv6:2610:1c1:1:606c::19:3])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 server-signature RSA-PSS (4096 bits)
 client-signature RSA-PSS (4096 bits) client-digest SHA256)
 (Client CN "mxrelay.nyi.freebsd.org",
 Issuer "Let's Encrypt Authority X3" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id 46Zl5W0P1Pz4ZXy
 for <acpi@FreeBSD.org>; Fri, 20 Sep 2019 20:03:27 +0000 (UTC)
 (envelope-from bugzilla-noreply@freebsd.org)
Received: from kenobi.freebsd.org (kenobi.freebsd.org
 [IPv6:2610:1c1:1:606c::50:1d])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E66D22DB5
 for <acpi@FreeBSD.org>; Fri, 20 Sep 2019 20:03:26 +0000 (UTC)
 (envelope-from bugzilla-noreply@freebsd.org)
Received: from kenobi.freebsd.org ([127.0.1.5])
 by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x8KK3QHB030206
 for <acpi@FreeBSD.org>; Fri, 20 Sep 2019 20:03:26 GMT
 (envelope-from bugzilla-noreply@freebsd.org)
Received: (from www@localhost)
 by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x8KK3QCs030205
 for acpi@FreeBSD.org; Fri, 20 Sep 2019 20:03:26 GMT
 (envelope-from bugzilla-noreply@freebsd.org)
X-Authentication-Warning: kenobi.freebsd.org: www set sender to
 bugzilla-noreply@freebsd.org using -f
From: bugzilla-noreply@freebsd.org
To: acpi@FreeBSD.org
Subject: [Bug 234403] [acpi_ibm] Support ThinkPad battery charge start/stop
 control
Date: Fri, 20 Sep 2019 20:03:26 +0000
X-Bugzilla-Reason: AssignedTo
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: Base System
X-Bugzilla-Component: kern
X-Bugzilla-Version: 12.0-STABLE
X-Bugzilla-Keywords: patch
X-Bugzilla-Severity: Affects Only Me
X-Bugzilla-Who: rkoberman@gmail.com
X-Bugzilla-Status: New
X-Bugzilla-Resolution: 
X-Bugzilla-Priority: ---
X-Bugzilla-Assigned-To: acpi@FreeBSD.org
X-Bugzilla-Flags: 
X-Bugzilla-Changed-Fields: 
Message-ID: <bug-234403-16045-baiL0x6PTR@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-234403-16045@https.bugs.freebsd.org/bugzilla/>
References: <bug-234403-16045@https.bugs.freebsd.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-BeenThere: freebsd-acpi@freebsd.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: ACPI and power management development <freebsd-acpi.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-acpi>,
 <mailto:freebsd-acpi-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-acpi/>
List-Post: <mailto:freebsd-acpi@freebsd.org>
List-Help: <mailto:freebsd-acpi-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-acpi>,
 <mailto:freebsd-acpi-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Sep 2019 20:03:27 -0000

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234403

--- Comment #10 from rkoberman@gmail.com ---
I just hit a minor nit. I can't set dev.acpi_ibm.0.bat0_charge_stop to 100.=
 I
get "sysctl: dev.acpi_ibm.0.bat0_charge_stop=3D100: Invalid argument".  99 =
works
fine. Since the range is really 1-100, perhaps you should subtract 0ne from=
 the
input value to pass the 09-99 value to ACPI.=20

I also have noted the values are sticky, lasting through reboots and even p=
ower
cycles, so are being stored in the BIOS configuration.

Still working well for me. I keep it at 85 when I'm home and bump it to 99 =
when
traveling as I am more frequently not on AC and the extra 15% is very usefu=
l.
It's really like to get this into the system, but I'd like to know more abo=
ut
it on newer systems. The Tx20s are over 8 years old and I expect to be
upgrading mine before too much longer.

--=20
You are receiving this mail because:
You are the assignee for the bug.=