control: tags -1 moreinfo unreproducible Am 08.02.2015 um 20:20 schrieb Nicolas Kuttler: > After some investigation it turns out that this problem is more > widespread than I had thought. KDE and XFCE both make power management > configurable, and both have other default actions for the power button. > XFCE asks the user what to do, KDE displays the log out dialog. > > To reproduce install kde-plasma-netbook (or another metapackage), xfce4 > and xfce4-goodies. Both have power management settings. I have attached > two screenshots of those settings options in the default configuration. > > I did not test more desktop environments (mate, cinnamon..), but it's > possible that they do similar things. In those cases no user interaction > is necessary to change the previous behavior in a way that can lead to > data loss. > > This bug also seems to be the cause of #776422 which you might want to > merge. > > Just mentioning this in the release notes might not be enough. I don't > know if there is a debconf note about porting init scripts to systemd, > but if there is this change should maybe be displayed as prominently. > It might affect less users but the consequences can be more severe than > services not starting. > > It might be a good idea to involve the DDs of various desktop > environments to see who is affected.
I can't reproduce any of this (on an up-to-date jessie system).
Xfce
====
When logged into an Xfce session, I have the following output from
systemd-inhibit:
Who: NetworkManager (UID 0/root, PID 23444/NetworkManager)
What: sleep
Why: NetworkManager muss Netzwerke abschalten
Mode: delay
Who: xfce4-power-manager (UID 1001/test, PID 2545/xfce4-power-man)
What:
handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch
Why: xfce4-power-manager handles these events
Mode: block
Who: Telepathy (UID 1001/test, PID 2634/mission-control)
What: shutdown:sleep
Why: Disconnecting IM accounts before suspend/shutdown...
Mode: delay
3 inhibitors listed.
xfce4-power-manager correctly takes the inhibitor locks as outlined in
[1] and whatever action is configured to happen on various events is
correctly executed. For testing purposes I set the action on power
button press to ignore, and the result was, that simply nothing happened.
Gnome
=====
$ systemd-inhibit
Who: Telepathy (UID 1000/michael, PID 3522/mission-control)
What: shutdown:sleep
Why: Disconnecting IM accounts before suspend/shutdown...
Mode: delay
Who: GNOME Shell (UID 1000/michael, PID 3544/gnome-shell)
What: sleep
Why: GNOME muss den Bildschirm sperren
Mode: delay
Who: NetworkManager (UID 0/root, PID 23444/NetworkManager)
What: sleep
Why: NetworkManager muss Netzwerke abschalten
Mode: delay
Who: michael (UID 1000/michael, PID 3471/gnome-settings-)
What: sleep
Why: GNOME needs to lock the screen
Mode: delay
Who: michael (UID 1000/michael, PID 3471/gnome-settings-)
What: handle-power-key:handle-suspend-key:handle-hibernate-key
Why: GNOME handling keypresses
Mode: block
5 inhibitors listed.
gnome-settings-daemon correctly takes the inhibitor locks and everything
works as configured in gnome-control-center
KDE
===
$ systemd-inhibit
Who: NetworkManager (UID 0/root, PID 23444/NetworkManager)
What: sleep
Why: NetworkManager muss Netzwerke abschalten
Mode: delay
Who: Telepathy (UID 1001/test, PID 3214/mission-control)
What: shutdown:sleep
Why: Disconnecting IM accounts before suspend/shutdown...
Mode: delay
Who: PowerDevil (UID 1001/test, PID 2982/kded4)
What:
handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch
Why: KDE handles power events
Mode: block
3 inhibitors listed.
Same picture here, KDE works just as configured in the desktop session
acpi-support
============
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.
[1] http://www.freedesktop.org/wiki/Software/systemd/inhibit/
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature

