Hide Forgot
Description of problem: When I click on 'Log out' and then choose suspend option, I get this error: Failed to suspend session: failed to check authorisation: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus) Version-Release number of selected component (if applicable): Fedora -> 16 Xfce Power Manager -> 1.0.10 How reproducible: Always Steps to Reproduce: 1. Click Applications -> Log out 2. Choose suspend option Actual results: An error dialog appears that says: Failed to suspend session: failed to check authorisation: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus) Expected results: The laptop should suspend. Additional info:
Thanks for sumitting this bug report. Please tell me a little more details: 1. What versions of xfce4-power-manager, dbus, ConsoleKit upower and dbus are you running? "rpm -q xfce4-power-manager dbus ConsoleKit upower" will tell you. 2. Please attach the output of pm-utils-bugreport-info.sh to this bug. 3. How did you install Xfce? From the spin or did you select the packages individually? 4. Can you suspend manually suspend by running the command dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend as user?
(In reply to comment #0) > Description of problem: > When I click on 'Log out' and then choose suspend option, I get this error: Ah, this is actually xfce4-session, not xfce4-power-manager. Can you try if suspending works from the power-manager's tray icon? (Re-assigning to the proper component and moving back to state 'new')
Created attachment 556739 [details] version information of the packages
Created attachment 556740 [details] output of pm-utils-bugreport-info.sh
(In reply to comment #1) > Thanks for sumitting this bug report. Please tell me a little more details: > > 1. What versions of xfce4-power-manager, dbus, ConsoleKit upower and dbus are > you running? "rpm -q xfce4-power-manager dbus ConsoleKit upower" will tell you. > Added an attachment with the version info > 2. Please attach the output of pm-utils-bugreport-info.sh to this bug. Added an attachment with the out put of this command > > 3. How did you install Xfce? From the spin or did you select the packages > individually? > I used yum's groupinstall. yum groupinstall XFCE > 4. Can you suspend manually suspend by running the command > > dbus-send --system --print-reply --dest="org.freedesktop.UPower" > /org/freedesktop/UPower org.freedesktop.UPower.Suspend > > as user? No, it fails. Added an attachment with the error output.
Created attachment 556741 [details] Error output log of 'dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend'
(In reply to comment #2) > (In reply to comment #0) > > Description of problem: > > When I click on 'Log out' and then choose suspend option, I get this error: > > Ah, this is actually xfce4-session, not xfce4-power-manager. Can you try if > suspending works from the power-manager's tray icon? > > (Re-assigning to the proper component and moving back to state 'new') I cannot suspend/hibernate from power-manager's tray icon because these options are greyed out.
Created attachment 556745 [details] Output of xfce4-power-manager --dump
Attached the output of xfce4-power-manager --dump. It shows I am not authorized to suspend/hibernate.
How are you logging in/starting Xfce?
From gdm. And then I use XFCE as the session.
Is there a ConsoleKit session open for your user? Please post the output of 'ck-list-sessions'. (No need to use an attachment, copy & paste is fine for short things). @Kevin: I wonder if there is a package missing.
Here it is: salil@localhost ~$ ck-list-sessions Session2: unix-user = '500' realname = 'Salil Wadnerkar' seat = 'Seat1' session-type = '' active = TRUE x11-display = ':0' x11-display-device = '/dev/tty7' display-device = '' remote-host-name = '' is-local = TRUE on-since = '2012-01-22T10:27:40.187815Z' login-session-id = '3'
ok, random shot in the dark: Can you attach your /etc/shells file? Does it have /bin/bash in it?
Yes, I have bash in it: salil@localhost ~$ sudo cat /etc/shells /bin/sh /bin/bash /sbin/nologin /bin/dash /bin/dash
ok, thats not it. Any selinux denials? 'ausearch -ts recent -m avc'
There is no SE denials: sudo ausearch -ts recent -m avc [sudo] password for salil: <no matches> salil@localhost ~$ sestatus SELinux status: enabled SELinuxfs mount: /sys/fs/selinux Current mode: enforcing Mode from config file: enforcing Policy version: 26 Policy from config file: targeted But, I think we are on to something: /var/log/messages show these errors: [ 233.121592] polkitd[2805]: segfault at 38 ip 4f5b0726 sp bfa30104 error 4 in libc-2.14.90.so[4f52b000+1a6000] [ 233.163698] polkitd[2809]: segfault at 38 ip 4f5b0726 sp bf8ad134 error 4 in libc-2.14.90.so[4f52b000+1a6000] [ 233.210485] polkitd[2813]: segfault at 38 ip 4f5b0726 sp bf901954 error 4 in libc-2.14.90.so[4f52b000+1a6000] [ 233.324389] polkitd[2822]: segfault at 38 ip 4f5b0726 sp bf81c354 error 4 in libc-2.14.90.so[4f52b000+1a6000] Since my polkit is failing, that is why I think I am not getting authorization.
Problem solved! :) I reinstalled polkit and polkit-gnome. I also upgraded to the new kernel. Either of this two solved the problem. Now, I get the suspend menu. And also I don't get any polkit errors in /var/log/messages.
Ah, so a corrupt polkit. I guess it would be good to know how it became corrupt, but at least the problem is solved. ;)