Siduction Forum

Siduction Forum => Software - Support => Topic started by: musca on 2015/02/09, 23:16:33

Title: systemd vs. acpi
Post by: musca on 2015/02/09, 23:16:33
Hello,

with systemd comes logind, which handles ACPI events in user sessions.
The default action for pressing the power button is shutdown.

Don't trust your desktops additional handling, like mapping alternative actions.
Unexpected shutdowns can void any unsaved work.  https://bugs.debian.org/#777269
Reducing the priority of that bug allows to release jessie with this unsolved bug.

Please report, if you see such cases.

greetings
musca
Title: Re: systemd vs. acpi
Post by: der_bud on 2015/02/10, 10:04:00
Update: meanwhile the bug is marked as unreproducible and the original reporter called it invalid. The relevant part seems to be in message#17 (http://) :
Quote from: mbiebl
...
acpi-support checks if systemd-logind is in use, and exits in this case.
See /etc/acpi/powerbtn-acpi-support.sh:

if { CheckPolicy || HasLogindAndSystemd1Manager; }; then
   exit 0
fi


As far as I could test, everything just works.
...

So it should work this way: if logind is active, it gets priority over acpi, else acpi handles things.
Title: Re: systemd vs. acpi
Post by: musca on 2015/02/10, 10:15:12
Hello,

I tested the defaults on a standard desktop PC with kde.
Pressing the powerbutton raises the kde shutdown dialog, so kde takes control of the event.
No unexpected shutdown happenend when i skipped the shutdown.

I can't test any further (e.g. lidswitch, battery status).

greetings
musca