! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
logout options greyed out on x86_64
Status:
RESOLVED: INVALID
Product:
Xfce4-session
Component:
General

Comments

Description Michael Cronenworth 2006-11-13 23:07:51 CET
Fedora Core 6
Core 2 Duo running on x86_64 kernel and x86_64 packages

The Quit button doesn't work the first two times you click on it. The third click results in the logout session window popping up.

When the logout window pops up, the Restart and Shutdown options are greyed out. I do have sudo setup properly. I can execute "sudo shutdown -h now" from a terminal just fine. On my 32-bit system those options are not greyed out. Either this is a weird 64-bit bug, or something besides sudo needs to be setup?
Comment 1 Benedikt Meurer editbugs 2006-11-14 07:58:07 CET
One report per bug please. The options are greyed out because neither you have HAL running with sufficient permissions to shutdown the computer, nor have you setup sudo appropriately, see the documentation/faqs.
Comment 2 Michael Cronenworth 2006-11-14 23:46:02 CET
My bad: I meant to do two bugs but in my rush I threw it into one. I renamed it to the bug that affects me the most.

I do have hal running.

I do have sudo setup correctly. As I said I can run any sudo command including "sudo shutdown -h now" without any password prompt or error.

This works fine on my work machine (32-bit).
Comment 3 Benedikt Meurer editbugs 2006-11-15 14:36:53 CET
You can check your .xsession-errors after pressing the logout button on the panel, or running xfce4-session-logout. It should tell you whether HAL is available and setup properly.
Comment 4 Michael Cronenworth 2006-11-16 05:47:10 CET
64-bit system:
** Message: xfsm-shutdown-helper.c:215: HAL not available or does not permit to shutdown/reboot the computer, trying sudo fallback instead.

** (xfce4-menu-plugin:3230): CRITICAL **: Unable to get keyboard/mouse grab.

** (xfce4-session:3217): CRITICAL **: xfsm_shutdown_helper_destroy: assertion `helper != NULL' failed

So both HAL and sudo are failing when it works fine on my 32-bit system.

Each system is FC6. Both have the same packages installed. I haven't edited any hal scripts or config files on either system. 

Both systems can successfully pickup new CD/DVDs if they are in my DVD drive. I can also get USB flash drives to show up. Both media can be HAL mounted by double clicking on their icon. This must mean HAL is working correctly, does it not?

So, unless I am missing something, HAL and sudo are setup the same on both 64-bit and 32-bit systems, yet the buttons are grey on the 64-bit system.
Comment 5 Michael Cronenworth 2006-11-18 00:09:33 CET
There appears to be incomplete documentation of what xfce4-session-logout does - and looking at the code isn't a solution. I found out I needed to remove all of the new /etc/sudoers items that were added (wether this was a sudo update or Fedora update I'm not sure). After copying my 32-bit systems sudoers file my logout/restart/shutdown options are working.

Perhaps better documenation is in order.

Thanks.
Comment 6 Michael Cronenworth 2006-11-18 00:13:25 CET
Created attachment 878 
New sudoers format

/etc/sudoers format from Fedora Core 6
Comment 7 Michael Cronenworth 2006-11-18 00:14:43 CET
Created attachment 879 
Old sudoers format

Old sudoers format, which works under XFCE.

Obviously I'm an idiot if I'm the only one who has experianced this... I know people use FC6 and XFCE so I'm suprised I didn't already find a bug report.
Comment 8 Benedikt Meurer editbugs 2006-11-21 07:33:06 CET
Nice to see this fixed. In order to help others with a similar problem (i.e. other users with Fedora), you could post the problem and your solution on the xfce mailinglist.
Comment 9 Michael Cronenworth 2006-11-21 14:34:16 CET
If the documentation could be expanded two sentences to include some requirements for HAL (still don't have that working for shutdown) and sudo it would work out better. Besides, I can't post to the mailing list since your e-mail "admin" blocks my e-mail server.

Bug #2579

Reported by:
Michael Cronenworth
Reported on: 2006-11-13
Last modified on: 2009-07-14

People

Assignee:
Benedikt Meurer
CC List:
0 users

Version

Attachments

New sudoers format (3.14 KB, text/plain)
2006-11-18 00:13 CET , Michael Cronenworth
no flags
Old sudoers format (685 bytes, text/plain)
2006-11-18 00:14 CET , Michael Cronenworth
no flags

Additional information