Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jan 2017 18:11:25 +0100
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-questions@freebsd.org
Subject:   stop charging laptop battery when full
Message-ID:  <20170120171125.GA3965@c720-r292778-amd64>

next in thread | raw e-mail | index | archive | help


Hello,

I can ask the current capacity (and other values) of the battery with:

$ /sbin/sysctl hw.acpi.battery
hw.acpi.battery.info_expire: 5
hw.acpi.battery.units: 1
hw.acpi.battery.state: 2
hw.acpi.battery.time: -1
hw.acpi.battery.life: 39

While charging, is there a way to stop the charging when
hw.acpi.battery.life reached 100 to protect the (LI-ion) battery?

Thanks

	matthias

-- 
Matthias Apitz, ✉ guru@unixarea.de, ⌂ http://www.unixarea.de/  ☎ +49-176-38902045
"Wo ist der antiimperialistische Schutzwall, wenn man ihn braucht? US-Panzertransport durch ex-DDR"
"Where is the anti-imperialistic  wall, if it's needed? Transport of US-tanks through the ex-GDR"
https://deutsch.rt.com/kurzclips/45282-us-panzertransporte-durch-ex-ddr/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170120171125.GA3965>