[Pkg-acpi-devel] Bug#699810: shutdown via power button broken with systemd
Michael Biebl
biebl at debian.org
Tue Feb 5 13:33:20 UTC 2013
On 05.02.2013 14:19, Philipp Kern wrote:
> Package: acpid
> Version: 1:2.0.16-1
> Severity: important
>
> acpid ships a native systemd socket definition. This causes acpid only
> to be loaded when that socket is accessed. I'm not sure where this is
> coming from. My main usecase for acpid is VM shutdown, which works by
> pressing the virtual power button. But acpid isn't started when
> systemd's active, hence no VM is actually shutting down. acpid should
> just run continously, listing to ACPI events, not be started on demand
> via socket activation.
For that to work acpid.service should have a
[Install]
WantedBy=multi-user.target
section which will create the necessary symlink in
/etc/systemd/system/multi-user.target.wants/ when you run systemctl
enable acpid.service.
Since we don't have the necessary tools yet to do that automatically on
package installation, the most simple solution is to just ship the
symlinks in the package for now as is already done for the socket.
> systemd seems to be able to handle the shutdown by itself in newer
> versions, but those are not in wheezy. Hence for systemd to be usable in
> VM environments (that actually rely on virsh shutdown causing the
> cooperative shutdown of the VM in question) acpid should please be
> fixed.
Correct, in newer versions systemd-logind will handle various power
related events (suspend-key, power-key, hibernate-key, lid-switch).
Michael, if you want me to review the relevant changes or provide a
patch, just let me know.
Michael
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-acpi-devel/attachments/20130205/0804755e/attachment.pgp>
More information about the Pkg-acpi-devel
mailing list