Bug 410817

Summary: xdm lacks consolekit support
Product: [openSUSE] openSUSE 11.0 Reporter: Ladislav Michnovic <lmichnovic>
Component: X.OrgAssignee: Stefan Dirsch <sndirsch>
Status: RESOLVED FIXED QA Contact: E-mail List <xorg-maintainer-bugs>
Severity: Enhancement    
Priority: P2 - High CC: binner, lnussel, mmarek, sndirsch
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
See Also: https://bugs.freedesktop.org/show_bug.cgi?id=17325
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: mandriva patches against xdm 1.1.8

Description Ladislav Michnovic 2008-07-21 09:49:54 UTC
Clicking on the Shutdown within XFCE menu do nothing and clicking on the Restart do logout but doesn't restart the computer. I have xdm as display manager as dafult.
Comment 1 Pavol Rusnak 2008-08-19 13:19:19 UTC
Xfce just issues DBus message, which is processed with System D-Bus. It seems there is some problem with PolicyKit/DBus.

$ dbus-send --system --dest=org.freedesktop.Hal --type=method_call --print-reply /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Reboot

Error org.freedesktop.Hal.Device.PermissionDeniedByPolicy: org.freedesktop.hal.power-management.reboot no <-- (action, result)

On another machine (KDM+Xfce):

$ dbus-send --system --dest=org.freedesktop.Hal --type=method_call --print-reply /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Hibernate
method return sender=:1.1 -> dest=:1.174 reply_serial=2
   int32 0
Comment 2 Ludwig Nussel 2008-08-19 13:31:24 UTC
I guess xdm lacks consolekit support so users are not considered as active.
Comment 3 Pavol Rusnak 2008-08-19 14:11:31 UTC
Created attachment 234146 [details]
mandriva patches against xdm 1.1.8

I was able to find patches from Mandriva that add console-kit support to Xdm. I think they are worth trying. See attachment (run configure --with-consolekit to build console kit support).
Comment 5 Stefan Dirsch 2008-08-27 02:49:17 UTC
Pavol, why are these patches not applied upstream? Has this ever been discussed in the X.Org communitiy? Please open a bugreport on bugs.freedesktop.org (product: xorg, component: xdm) and add me (sndirsch@suse.de) to Cc. You need to register first. Thanks.
Comment 6 Pavol Rusnak 2008-08-27 12:21:12 UTC
Stefan: reported as https://bugs.freedesktop.org/show_bug.cgi?id=17325
Comment 7 Pavol Rusnak 2009-09-09 14:32:45 UTC
*** Bug 537364 has been marked as a duplicate of this bug. ***
Comment 8 Pavol Rusnak 2009-09-09 14:34:25 UTC
Are the patches mentioned by Takashi mentioned in the upstream bug already applied in 11.2? Bug #537364 suggests otherwise ... :-/
Comment 9 Pavol Rusnak 2009-09-09 14:35:05 UTC
adding #528829 for reference
Comment 10 Stefan Dirsch 2009-09-09 14:38:05 UTC
(In reply to comment #8)
> Are the patches mentioned by Takashi mentioned in the upstream bug already
> applied in 11.2?

Yes, they are. Make sure you see the follwing entry in RPM changelog:

-------------------------------------------------------------------
Tue Aug 18 14:40:43 CEST 2009 - tiwai@suse.de

- add missing ConsoleKit-devel to buildrequires