Quote:
Is there a way with the /sys filesystem to check my battery's charge state, etc.
|
On my laptop, 'cat /sys/class/power_supply/BAT1/*' provides similar information to that provided by 'cat /proc/acpi/battery/BAT1/state'.
I believe that there is a move to standardise the interface between devices and user space using /sys so that it is hardware and distribution agnostic. For an example of this, look at pm-utils, introduced into Slackware 12.2.
From /usr/doc/pm-utils-1.2.3/README:
Quote:
Why do we need it?
* All the main distributions are re-implementing the same
functionality to support common power management
operations. pm-utils provides a standardized distribution agnostic
layout and interface for common power management tasks, which frees
software and hardware vendors from having to maintain
distribution-specific suspend/resume functionality.
|