Battery
From FrugalWiki
Battery
Notebook users are usually interested in the state of their battery. Getting the power button and the lid’s sensor of its closed state to emit events is also nice. Some notebooks only shut down their continously running fans and operate only if needed if the thermal module is loaded.
Usually these modules are automatically loaded by udev. If it does not do so for you, then add the following lines to /etc/sysconfig/modules to get modules loaded at system startup:
battery ac button thermal
The next task is to enable the acpid service:
Then the easiest way is to reboot, or if you don’t want do do so:
modprobe ac
service hald stop
service dbus stop
service acpid start
service dbus start
The only remaining task is to start a client: if you’re on console, try the acpi command, or the relevant applet of your favorite window manager.