acpid (ACPI daemon Project) is an open source, multiplatform and totally free command-line software implemented in C as a non-interactive ACPI (Advanced Configuration and Power Interface) daemon for GNU/Linux and BSD operating systems.
The software can be used to deliver ACPI-based power management event. It provides netlink support. Anyone who uses ACPI should use the acpid software to handle events internally. The daemon is a very flexible and totally extensible. It is the perfect tool for delivering ACPI events.
Be default, acpid listens on the /proc/acpi/event file and it executes programs to automatically handle occurring events. The program can be easily optimized to act the way you want it to via a set of configuration files.
Getting started with acpid
To install and use this software on your GNU/Linux or BSD operating system, you must first download the source package (tarball) from Softpedia, using the dedicated download section above, save the archive on your computer, extract its contents and open a terminal emulator, where you must use the ‘cd’ command to go to the location of the extracted archive files.
Execute the ‘make’ command to compile the source code. After a successful compilation, which shouldn’t take more than a few seconds, you can install acpid system wide using the ‘make install’ command as root or with sudo. Two executables will be outputted, acpid and acpi_listen.
Use the ‘acpid --help’ command to view the program’s command-line options. Among some of the most important ones, we can mention the ability to set a specific configuration directory, to set the limit on non-root socket connections, to increase the debugging level, to force the daemon to run in foreground, to set a group for the socket file, to set the permissions on the socket file, to use a specific socket file, as well as to log all the event activity.