stop charging laptop battery when full

Matthias Apitz guru at unixarea.de
Fri Jan 20 17:11:29 UTC 2017



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 at 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/


More information about the freebsd-questions mailing list