Bug 783607 - XFCE - suspend option gives error
Summary: XFCE - suspend option gives error
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: xfce4-session
Version: 16
Hardware: i686
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-21 00:21 UTC by Salil Wadnerkar
Modified: 2012-01-24 17:47 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-24 17:47:55 UTC
Type: ---


Attachments (Terms of Use)
version information of the packages (197 bytes, text/plain)
2012-01-22 03:34 UTC, Salil Wadnerkar
no flags Details
output of pm-utils-bugreport-info.sh (10.47 KB, text/plain)
2012-01-22 03:36 UTC, Salil Wadnerkar
no flags Details
Error output log of 'dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend' (356 bytes, text/x-log)
2012-01-22 03:42 UTC, Salil Wadnerkar
no flags Details
Output of xfce4-power-manager --dump (600 bytes, application/octet-stream)
2012-01-22 04:29 UTC, Salil Wadnerkar
no flags Details

Description Salil Wadnerkar 2012-01-21 00:21:46 UTC
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:

Comment 1 Christoph Wickert 2012-01-21 23:06:30 UTC
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?

Comment 2 Christoph Wickert 2012-01-21 23:08:23 UTC
(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')

Comment 3 Salil Wadnerkar 2012-01-22 03:34:37 UTC
Created attachment 556739 [details]
version information of the packages

Comment 4 Salil Wadnerkar 2012-01-22 03:36:05 UTC
Created attachment 556740 [details]
output of pm-utils-bugreport-info.sh

Comment 5 Salil Wadnerkar 2012-01-22 03:40:39 UTC
(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.

Comment 6 Salil Wadnerkar 2012-01-22 03:42:09 UTC
Created attachment 556741 [details]
Error output log of 'dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend'

Comment 7 Salil Wadnerkar 2012-01-22 03:43:11 UTC
(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.

Comment 8 Salil Wadnerkar 2012-01-22 04:29:13 UTC
Created attachment 556745 [details]
Output of xfce4-power-manager --dump

Comment 9 Salil Wadnerkar 2012-01-22 05:10:03 UTC
Attached the output of 
xfce4-power-manager --dump.

It shows I am not authorized to suspend/hibernate.

Comment 10 Kevin Fenzi 2012-01-22 06:20:48 UTC
How are you logging in/starting Xfce?

Comment 11 Salil Wadnerkar 2012-01-22 06:35:41 UTC
From gdm. And then I use XFCE as the session.

Comment 12 Christoph Wickert 2012-01-22 09:41:06 UTC
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.

Comment 13 Salil Wadnerkar 2012-01-22 10:29:45 UTC
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'

Comment 14 Kevin Fenzi 2012-01-22 18:03:02 UTC
ok, random shot in the dark: 

Can you attach your /etc/shells file?
Does it have /bin/bash in it?

Comment 15 Salil Wadnerkar 2012-01-22 23:55:42 UTC
Yes, I have bash in it:

salil@localhost ~$ sudo cat /etc/shells
/bin/sh
/bin/bash
/sbin/nologin
/bin/dash
/bin/dash

Comment 16 Kevin Fenzi 2012-01-24 02:53:45 UTC
ok, thats not it. 

Any selinux denials? 

'ausearch -ts recent -m avc'

Comment 17 Salil Wadnerkar 2012-01-24 15:43:18 UTC
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.

Comment 18 Salil Wadnerkar 2012-01-24 16:23:46 UTC
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.

Comment 19 Kevin Fenzi 2012-01-24 17:47:55 UTC
Ah, so a corrupt polkit. 

I guess it would be good to know how it became corrupt, but at least the problem is solved. ;)


Note You need to log in before you can comment on or make changes to this bug.