[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
I think we should completely disable powerbtn.sh if logind is running; that's much safer than trying to cover all session managers, and much more correct too as logind itself handles the power button unless a session manager inhibits it. ** Changed in: acpid (Ubuntu) Assignee: (unassigned) = Martin Pitt (pitti) ** Summary changed: - Pressing power button turns off the PC ignoring the presence of another session manager + powerbtn.sh conflicts with logind ** Changed in: acpid (Ubuntu) Milestone: None = ubuntu-14.04 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: powerbtn.sh conflicts with logind To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/acpid/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
RE: [Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
Hi, I can confirm that comenting the line as he said, works as it should. Just don't get it; if the solution is so easy, WHY this bug is alive several years late. Regards. Date: Sat, 29 Mar 2014 23:52:12 + From: 1201...@bugs.launchpad.net To: axe...@hotmail.com Subject: [Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager In which case this bug is a duplicate of the long standing #1243399 and #268734 -- You received this bug notification because you are subscribed to a duplicate bug report (1124149). https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/acpid/+bug/1201180/+subscriptions -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/acpid/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
Still broken in 14.04 LTS beta 2 ! -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/acpid/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
Commenting out or removing the final /sbin/shutdown -h now Power button pressed line in /etc/acpi/powerbtn.sh fixes things, such that the laptop does what KDE is set to. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/acpid/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
In which case this bug is a duplicate of the long standing #1243399 and #268734 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/acpid/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
** Changed in: acpid (Ubuntu) Importance: Undecided = Medium -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/acpid/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
Adding acpid task for the qdbus fix, subscribing sponsors. ** Also affects: acpid (Ubuntu) Importance: Undecided Status: New ** Changed in: acpid (Ubuntu) Status: New = Triaged -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/acpid/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
I can confirm the bug in Kubuntu 13.10, the attached patch works for me. (The trouble seems to be that /usr/bin/qdbus links to /usr/bin/qtchooser which does not seem to work as expected.) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
** Patch added: Patch for powerbtn.sh which checks for qdbus availabilities. https://bugs.launchpad.net/ubuntu/+source/systemd-shim/+bug/1201180/+attachment/4028115/+files/powerbtn.sh.patch -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
The attachment Patch for powerbtn.sh which checks for qdbus availabilities. seems to be a patch. If it isn't, please remove the patch flag from the attachment, remove the patch tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team. [This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.] ** Tags added: patch -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
daniel’s KDE Patch works for me, too! (Kubuntu 13.10) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
RE: [Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
Hi, May I try it on Kubuntu 14.04 beta ?? Thank you. Date: Mon, 17 Mar 2014 14:21:33 + From: t...@ewetel.net To: axe...@hotmail.com Subject: [Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager daniel’s KDE Patch works for me, too! (Kubuntu 13.10) -- You received this bug notification because you are subscribed to a duplicate bug report (1124149). https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
** Changed in: gnome-session (Ubuntu) Importance: Undecided = Medium ** Changed in: systemd (Ubuntu) Importance: Undecided = Medium ** Changed in: kde-workspace (Ubuntu) Importance: Undecided = Medium ** Changed in: systemd-shim (Ubuntu) Importance: Undecided = Medium ** Changed in: kde-workspace (Ubuntu) Status: Confirmed = Triaged -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
Hi Could you please check if this is still present in 14.04? -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
( Specifically for KDE ) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
Still not working in Kubuntu 13.10 or 14.04. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
RE: [Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
Hi, I can confirm the bug in Kubuntu 13.10 and 14.04, both full updated. This one is getting old, no solution yet ?? Thank you. Date: Tue, 21 Jan 2014 11:57:43 + From: rohan16g...@gmail.com To: axe...@hotmail.com Subject: [Bug 1201180] Re: Pressing power button turns off the PC ignoring thepresence of another session manager Hi Could you please check if this is still present in 14.04? -- You received this bug notification because you are subscribed to a duplicate bug report (1124149). https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
RE: [Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
Hi, I can confirm the bug in Kubuntu 13.10 and 14.04, both full updated. This one is getting old, no solution yet ?? Thank you. Date: Tue, 21 Jan 2014 11:58:05 + From: rohan16g...@gmail.com To: axe...@hotmail.com Subject: [Bug 1201180] Re: Pressing power button turns off the PC ignoring thepresence of another session manager ( Specifically for KDE ) -- You received this bug notification because you are subscribed to a duplicate bug report (1124149). https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
RE: [Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
Hi, I can confirm the bug in Kubuntu 13.10 and 14.04, both full updated. This one is getting old, no solution yet ?? Thank you. Date: Tue, 21 Jan 2014 11:57:43 + From: rohan16g...@gmail.com To: axe...@hotmail.com Subject: [Bug 1201180] Re: Pressing power button turns off the PC ignoring thepresence of another session manager Hi Could you please check if this is still present in 14.04? -- You received this bug notification because you are subscribed to a duplicate bug report (1124149). https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
Can confirm that this is still not working on Kubuntu 13.10. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
Also affects Kubuntu Trusty alpha. ** Tags added: kubuntu trusty -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
FTR, bug 1222021 is the XFCE side of this. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: kde-workspace (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
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 Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
Hi, In order to be sure, I created a virtual machine two days ago and installed Kubuntu 13.10 beta 2. Then tried simulating the press power button and, exactly as my personal PC, it turned off inmediatly ignoring every single option in System Preferences. Please, visit the other link: https://bugs.launchpad.net/ubuntu/+source/kde-workspace/+bug/1124149 Really worried here, as Kubuntu 13.10 will be release in a few weeks from now :-o :-o Regards. Turbo. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
Hi all, I just installed Kubuntu 13.10 Beta a couple of days ago and this bug is still present. I'm really afraid of touching the power button. Regards. Turbo. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
** Changed in: systemd (Ubuntu) Status: Triaged = In Progress -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
I fixed the sd login monitor to work now, and added an autopkgtest for it. However, gnome-session still doesn't play along, so that needs further debugging on the g-session side. ** Changed in: systemd (Ubuntu) Importance: High = Undecided ** Changed in: systemd (Ubuntu) Status: In Progress = Fix Committed ** Changed in: gnome-session (Ubuntu) Status: New = Triaged -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
** Branch linked: lp:ubuntu/saucy-proposed/systemd -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
This bug was fixed in the package systemd - 204-0ubuntu7 --- systemd (204-0ubuntu7) saucy; urgency=low * debian/tests/control: Add missing pkg-config test dependency, drop unnecessary python3 dependency. -- Martin Pitt martin.p...@ubuntu.com Fri, 19 Jul 2013 11:38:40 +0200 ** Changed in: systemd (Ubuntu) Status: Fix Committed = Fix Released -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
I did some investigation last night. Here's what I found out. gnome- session doesn't (successfully) set a shutdown inhibitor lock, meaning that logind shuts the system down as soon as it is asked to. When run, gnome-session outputs the following warning gnome-session[6124]: WARNING: Error getting login monitor: -2 That comes from the following block of code if ((ret = sd_login_monitor_new (NULL, sd_source-monitor)) 0) { g_warning (Error getting login monitor: %d, ret); } else { sd_source-pollfd.fd = sd_login_monitor_get_fd (sd_source-monitor); sd_source-pollfd.events = G_IO_IN; g_source_add_poll (source, sd_source-pollfd); } The return code there is '-2' which corresponds to ENOENT. Checking the code for sd_login_monitor_new() in systemd shows that this function tries to inotify_add_watch() on a number of paths systemd cares about. If we strace -f -e trace=inotify_add_watch gnome-session then the output shows [pid 5439] inotify_add_watch(14, /sys/fs/cgroup/systemd/machine, IN_MOVED_TO|IN_CREATE|IN_DELETE) = -1 ENOENT (No such file or directory) And indeed this directory has not been created. In systemd:src/core/cgroup.c, these hierarchies are created here: if (m-running_as == SYSTEMD_SYSTEM) { cg_create(SYSTEMD_CGROUP_CONTROLLER, m-cgroup_hierarchy, ../user); cg_create(SYSTEMD_CGROUP_CONTROLLER, m-cgroup_hierarchy, ../machine); } I believe the if check there is essentially systemd as PID 1, i.e. not true for Ubuntu. In systemd git this seems to have moved to /run/systemd/machines/ created by systemd-machined. Now, I'm not totally sure that this broken call is why the inhibitor lock isn't being set, but sd_login_monitor_new() definitely shouldn't be broken anyway and fixing this seems like a good place to start. ** Also affects: systemd (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
** Changed in: systemd (Ubuntu) Status: New = Triaged ** Changed in: systemd (Ubuntu) Milestone: None = ubuntu-13.07 ** Changed in: systemd (Ubuntu) Importance: Undecided = High ** Changed in: systemd (Ubuntu) Assignee: (unassigned) = Martin Pitt (pitti) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1201180] Re: Pressing power button turns off the PC ignoring the presence of another session manager
** Also affects: gnome-session (Ubuntu) Importance: Undecided Status: New ** Changed in: systemd-shim (Ubuntu) Status: New = Invalid -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-session in Ubuntu. https://bugs.launchpad.net/bugs/1201180 Title: Pressing power button turns off the PC ignoring the presence of another session manager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1201180/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs