Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic:  systemd vs. acpi  (Read 2768 times)

Offline musca

  • User
  • Posts: 725
  • sid, fly high!
systemd vs. acpi
« 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
„Es irrt der Mensch, solang er strebt.“  (Goethe, Faust)

Offline der_bud

  • User
  • Posts: 1.072
  • member
Re: systemd vs. acpi
« Reply #1 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 :
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.
Du lachst? Wieso lachst du? Das ist doch oft so, Leute lachen erst und dann sind sie tot.

Offline musca

  • User
  • Posts: 725
  • sid, fly high!
Re: systemd vs. acpi
« Reply #2 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
„Es irrt der Mensch, solang er strebt.“  (Goethe, Faust)