ACPI

ACPI (Advanced Configuration and Power Management Interface) is a power management system. It is part of the BIOS.

Kernel
You need to activate the following kernel options:

Software
Desktop environments react on the common events generated by ACPI. If you don't use a desktop environment or want to react on special events, install :

Configuration
The scripts in define how to react on ACPI events. You can edit them or add more.

Service
You can now start acpid:

To start acpid at boot time, add it your default runlevel:

Acpid
You may be satisfied with the default ACPI package set up. Although, you may need a little extra configuration to get acpid daemon teat some basic ACPI events like AC power plug in/out, multimedia keys etc.

You will have to edit `/etc/acpi/default.sh' along with `/etc/acpi/events/default' if necessary and why not a complicated set up that make use of `/etc/acpi/actions' and `/etc/acpi/events'. Just put your scripts and event files there.

A basic `default.sh' may be enough. The following is an example on what could be done.