The Linux ACPID Command
What is Linux ACPID Command?
ACPID Linux Command:
The ACPID Linux acommand is the abbreviation for Advanced Configuration and Power Interface event Daemon. This command notifies the user-space programs of ACPI events. This command is started during system boot and runs in background by default. The command checks the event file located at "/proc/acpi/event" for any event, and if matched executes a set of rules pertaining to that event. In simple words the command executes programs to handle an event when occured. Rules are defined in configuration files located at /etc/acpi/events directory by default. Each file defines an event and an action for that event. These events are triggered by certain actions, such as:
- Pressing special keys like Power button, Sleep button
- Closing a notebook lid
- Plugging or unplugging AC power adapter
- Plugging or unplugging phone jack etc.
||Set the configuration directory.
||Set the limit on non-root socket connections.
||Use the specified file for events.
||Run in the foreground.
||Log all event activity.
||Set the group on the socket file.
||Set the permissions on the socket file.
||Use the specified socket file.
||Do not listen on a UNIX socket (overrides -s).
||Use the specified PID file.
|| Use the specified lockfile to stop processing.
||Force netlink/input layer mode. (overrides -e)
||Define the pseudo-action to drop an event.
||Print version information.
||Print this message.
- This example - placed in /etc/acpi/events/powerbtn - will shut down your system if you press the power button.
In the above example, the powerbtn.sh file placed under the /etc/acpi/events folder is called to execute the command.