NixOS/nixpkgs — pull request #1962 by ambrop72 (2014-03-15 11:34:58+00:00)
Title: power-management: Don't enable acpid.

Running acpid along with systemd will cause double handling of acpi events. If user wants acpid to run shell scripts for acpi events, he can still enable it and configure it appropriately.

This change will "break" some installations, in a sense that the power buttons may stop responding while user is logged in. The issue is the default value of

`services.xserver.displayManager.desktopManagerHandlesLidAndPower = true;`

which will inhibit systemd from handling power buttons while a desktop session is running. Before this change acpid would handle the events while user is logged in (so closing lid would still suspend). But while user was logged out, the suspend would indeed happen twice.