acpid command in Linux with Examples Last Updated : 17 Sep, 2021 Comments Improve Suggest changes Like Article Like Report The acpid daemon provides intelligent power management on a system and allows to query battery and configuration status by supporting the Advanced Configuration and Power Interface (ACPI). The ACPI events are notified to the user-space programs by acpid. The ACPI (Advanced Configuration and Power Interface) specification allows the operating system to control the amount of power it provides to each device or peripheral attached to the system. This makes the operating system to turn off specific devices when they are no longer in use such as the monitor, providing stable and efficient power management. acpid being a daemon runs as a background process by default and it should start during the system boot. Whenever an event occurs it executes programs to handle the event. It does so as it opens an events file (/proc/acpi/event by default) and reads all the lines. When a line is received (an event), it examines a list of rules to execute the one that matches the event. If there is a lock file (/var/lock/acpid by default) it ignores all incoming ACPI events. Simple configuration files are used to define the rules. It looks in a configuration directory (/etc/acpi/events by default) and all the files that do not begin with a period (‘.’) or end with a tilde (~) are parsed. Each file must define an event and a corresponding action. Blank lines or lines with the first character as hash ('#') are ignored. There are three tokens in each line: the key, a literal equal sign and the value. The key can take up to 63 characters, is case-insensitive but whitespaces matters.The value can take up to 511 characters, it is case and whitespace sensitive. The event value consists of a regular expression and events are matched against it. Installation Command: sudo apt-get install acpid Synopsis: acpid [options] Options: c, --confdir directory Changes the directory that acpid looks for rule configuration files. The default directory is /etc/acpi/events.C, --clientmax number Changes the maximum number of non-root socket connections that can be made to the acpid socket. The default is 256.d, --debug Increases the acpid debug level by one. It runs in the foreground if the debug level is non-zero and logs to stderr and to the regular syslog.e, --eventfile filename Changes the event file. Acpid reads events from it. The default file is /proc/acpi/event.f, --foreground Keeps acpid in the foreground by not forking at startup.l, --logevents Tells acpid to log information related to all the events and actions.L, --lockfile filename Changes the lock file that is used to stop event processing. The default file is /var/lock/acpid.g, --socketgroup groupname Changes the group ownership of domain socket. Acpid publishes events to it.m, --socketmode mode Changes the permissions of the UNIX domain socket. Default is 0666.s, --socketfile filename Changes the name of the UNIX domain socket that is opened by acpid. The default is /var/run/acpid.socket.S, --nosocket filename Tells acpid to not open a UNIX domain socket. This overrides the -s option, it also negates all other socket options.p, --pidfile filename Tells acpid to use the specified file as its pidfile. If the file exists, it will be removed and over-written. The default is /var/run/acpid.pid.v, --version Prints the version information and exits. h, --help Shows help and exits. Service Control Use the service utility for controlling the acpid service: service acpid To Start the service: service acpid startYou will be prompted for authentication.To Stop the service: service acpid stop You will be prompted for authentication.Check if the service is started or stopped: service acpid status Create Quiz Comment S soumya08 Follow 0 Improve S soumya08 Follow 0 Improve Article Tags : Linux-Unix linux-command Linux-misc-commands Explore Getting Started with LinuxIntroduction to Linux Operating System7 min readLINUX Full Form - Lovable Intellect Not Using XP2 min readDifference between Linux and Windows7 min readLinux Distributions6 min readDifference between Unix and Linux6 min readInstallation with LinuxInstallation of Arch Linux in VirtualBox4 min readFedora Linux Operating System5 min readHow to install Ubuntu on VirtualBox?6 min readHow to Install Linux Mint?3 min readInstallation of Kali Linux in Virtual Machine2 min readHow to Install Linux on Windows PowerShell Subsystem?2 min readHow to Find openSUSE Linux Version?2 min readInstallation of CentOS2 min readLinux CommandsLinux Commands15+ min readEssential Unix Commands7 min readFind Command in Linux with Examples7 min readLinux File SystemLinux File System12 min readLinux File Hierarchy Structure5 min readLinux Directory Structure6 min readLinux KernelLinux Kernel4 min readKernel in Operating System3 min readHow Linux Kernel Boots?11 min readDifference between Operating System and Kernel3 min readLinux Kernel Module Programming: Hello World Program7 min readLinux Loadable Kernel Module7 min readLoadable Kernel Module - Linux Device Driver Development4 min readLinux Networking ToolsNetwork configuration and troubleshooting commands in Linux5 min readHow to configure network interfaces in CentOS?5 min readCommand-Line Tools and Utilities For Network Management in Linux8 min readLinux - Network Monitoring Tools4 min readLinux ProcessProcesses in Linux/Unix5 min readHow to Manage Process in Linux4 min readGetting System and Process Information Using C Programming and Shell in Linux2 min readProcess states and Transitions in a UNIX Process4 min readLinux FirewallLINUX Firewall7 min readiptables command in Linux with Examples7 min readHow to Configure your Linux Firewall - 3 Methods12 min readShell Scripting & Bash ScriptingIntroduction to Linux Shell and Shell Scripting7 min readUnderstanding Terminal, Console, Shell and Kernel3 min readHow to Create a Shell Script in linux7 min readShell Scripting - Different types of Variables4 min readBash Scripting - Introduction to Bash and Bash Scripting12 min readBash Script - Define Bash Variables and its types12 min readShell Scripting - Shell Variables6 min readBash Script - Difference between Bash Script and Shell Script4 min readShell Scripting - Difference between Korn Shell and Bash shell3 min readShell Scripting - Interactive and Non-Interactive Shell3 min readShell Script to Show the Difference Between echo â$SHELLâ and echo â$SHELLâ4 min readLinux Administrator SystemWhat is Linux System Administration?6 min readBeginner's Guide to Linux System Administration5 min readHow to Monitor System Usage, Outages and Troubleshoot Linux Servers6 min readLinux - Systemd and its Components3 min readBoot Process with Systemd in Linux3 min readHow to Control Systemd Services on Remote Linux Server2 min readHow to Start, Stop and Restart Services in Linux Using systemctl Command9 min read Like