The emptying rate of a battery is an interesting value for monitoring the laptops current status. This patch makes it available as a sysctl variable.
- rS339899: Make battery emptying rate available as sysctl variable.
I think this diff is probably fine. In general the 'acpiconf -i <x>' interface tends to be more informative, and userland applications wanting to query battery info should be using the ACPIIO_BATT_* ioctls instead of sysctls.
My intention was to simplify the querying of current rate mainly for scripts and userland programs. Using acpiconf -i <x> in a script occured a bit cumbersome to me because for more than one battery, one has to iterate over the result of hw.acpi.battery.units and parse the acpiconf's output to get the actual rate.
Also, the most (hm, i think actually all) FreeBSD compatible monitors which sources i've seen were using the sysctls interface and not the ACPIIO_BATT_* ioctls, so there would be a lower threshold to add the information about current rate.