%general-entities; ]> $LastChangedBy$ $Date$ acpid-&acpid-version; acpid Introduction to acpid The acpid (Advanced Configuration and Power Interface event daemon) is a completely flexible, totally extensible daemon for delivering ACPI events. It listens on netlink interface and when an event occurs, executes programs to handle the event. The programs it executes are configured through a set of configuration files, which can be dropped into place by packages or by the user. &lfs90_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &acpid-md5sum; Download size: &acpid-size; Estimated disk space required: &acpid-buildsize; Estimated build time: &acpid-time; User Notes: Installation of acpid Install acpid by running the following commands: ./configure --prefix=/usr \ --docdir=/usr/share/doc/acpid-&acpid-version; && make This package does not come with a test suite. Now, as the root user: make install && install -v -m755 -d /etc/acpi/events && cp -r samples /usr/share/doc/acpid-&acpid-version; Configuring acpid acpid is configured by user defined events. Place event files under /etc/acpi/events directory. If an event occurs, acpid recurses through the event files in order to see if the regex defined after "event" matches. If they do, action is executed. The following brief example will suspend the system when the laptop lid is closed (it requires ): cat > /etc/acpi/events/lid << "EOF" event=button/lid action=/etc/acpi/lid.sh EOF cat > /etc/acpi/lid.sh << "EOF" #!/bin/sh /bin/grep -q open /proc/acpi/button/lid/LID/state && exit 0 /usr/sbin/pm-suspend EOF chmod +x /etc/acpi/lid.sh Unfortunately, not every computer labels ACPI events in the same way. To determine how your buttons are recognized, use the acpi_listen tool. Also, look in the samples directory under /usr/share/doc/acpid-&acpid-version; for more examples. <phrase revision="sysv">Boot Script</phrase> <phrase revision="systemd">Systemd Socket</phrase> To automatically start acpid when the system is rebooted, install the /etc/rc.d/init.d/acpid boot script from the package. To start the acpid daemon at boot, install the systemd unit from the package by running the following command as the root user: acpid make install-acpid This package uses socket based activation and will be started when something needs it. No standalone unit file is provided for this package. Contents Installed Programs Installed Libraries Installed Directories acpid, acpi_listen, and kacpimon None /etc/acpi and /usr/share/doc/acpid-&acpid-version; Short Descriptions acpid is a program that listens for ACPI events and executes the rules that match the received event. acpid acpi_listen is a simple tool which connects to acpid and listens for events. acpi_listen kacpimon is a monitor program that connects to three sources of ACPI events (events file, netlink and input layer) and then reports on what it sees while it is connected. kacpimon