stop charging laptop battery when full

Bernt Hansson bah at bananmonarki.se
Sun Jan 22 20:30:33 UTC 2017


On 2017-01-20 18:11, Matthias Apitz wrote:
> 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

The simplest way is to use a timer.


More information about the freebsd-questions mailing list