[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager

Martin Pitt martin.pitt at ubuntu.com
Wed Oct 9 06:47:19 UTC 2013


It seems gnome-session got fixed for this now. When I press the power
button, I now get the usual dialog that asks you what to do
(shutdown/reboot/etc.)

I'll add a task for kde-workspace as apparently it's still not working
under KDE. I. e. the KDE session needs to inhibit logind's power button
handling if it wants to handle the power button itself, similar to  what
gnome-session is doing in gsm_systemd_add_inhibitor()
(https://git.gnome.org/browse/gnome-session/tree/gnome-session/gsm-
systemd.c#n750)


** Changed in: gnome-session (Ubuntu)
       Status: Triaged => Fix Released

** Also affects: kde-workspace (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1201180

Title:
  Pressing power button turns off the PC ignoring the presence of
  another session manager

Status in “gnome-session” package in Ubuntu:
  Fix Released
Status in “kde-workspace” package in Ubuntu:
  New
Status in “systemd” package in Ubuntu:
  Fix Released
Status in “systemd-shim” package in Ubuntu:
  Invalid

Bug description:
  In saucy the PC powers down as soon as I press the power button, it
  seems that systemd is calling "poweroff", but I'm not sure if it's
  doing that in response of some other event (i.e. as callback of a dbus
  call):

  root      4998  0.0  0.0 177932  2104 ?        Sl   20:41   0:00 /usr/lib/x86_64-linux-gnu/systemd-shim
  root      5012  0.0  0.0   4440   624 ?        S    20:41   0:00  \_ sh -c /sbin/poweroff
  root      5013  0.0  0.0   4440   628 ?        S    20:41   0:00      \_ /bin/sh /sbin/shutdown -h -P now

  In any case the caller or systemd itself should be aware that there's
  a session-manager running and that it shouldn't actually directly
  power off the system then.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions



More information about the foundations-bugs mailing list