Assign user-space handling to ACPI events such as a power-button press or laptop lid change.
Choose the daemon traditionally used for this purpose.
Which component is appropriate?
acpid monitors ACPI events and runs configured user-space actions. On modern systems, systemd-logind may handle some of the same events.
Detailed explanation
Incorrect. atd schedules one-time jobs.
Incorrect. atd schedules one-time jobs.
Correct. acpid handles ACPI event notifications and configured actions.
Correct. acpid handles ACPI event notifications and configured actions.
Incorrect. auditd records security audit events.
Incorrect. auditd records security audit events.
Incorrect. autofs manages automounting filesystems.
Incorrect. autofs manages automounting filesystems.
Try it yourself
An example you can run in a temporary verification environment.
command -v acpid || echo 'acpid is not installed'Expected result
導入済みならacpidのパス。systemd-logind等が処理する環境では未導入の場合があるKey points
- ACPI events concern power management
- acpid runs in user space
- Modern systems may also use logind
Notes
- Environment: Linux / acpid概念
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.