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.


acpid [OPTIONS]


-c, --confdir Set the configuration directory.
-C, --clientmax Set the limit on non-root socket connections.
-e, --eventfile Use the specified file for events.
-f, --foreground Run in the foreground.
-l, --logevents Log all event activity.
-g, --socketgroup Set the group on the socket file.
-m, --socketmode Set the permissions on the socket file.
-s, --socketfile Use the specified socket file.
-S, --nosocket Do not listen on a UNIX socket (overrides -s).
-p, --pidfile Use the specified PID file.
-L, --lockfile Use the specified lockfile to stop processing.
-n, --netlink Force netlink/input layer mode. (overrides -e)
-r, --dropaction Define the pseudo-action to drop an event.
-v, --version Print version information.
-h, --help Print this message.


  1. This example - placed in /etc/acpi/events/powerbtn - will shut down your system if you press the power button.
    event=button[ /]power action=/etc/acpi/
    In the above example, the file placed under the /etc/acpi/events folder is called to execute the command.

Ask Questions

Ask Question