I’m running openSUSE 11.2 Gnome Desktop Environment. Whenever I try to either shutdown or restart my machine as a “normal user”, I’ve been logged off instead! When I try to re-login the screen (xorg) freezes. I don’t know how to debug this problem. The problem could be related to hal or d-bus or policykit or X-org… simply I don’t know.
N.B. I can shutdown and restart my machine only as “super-user” (root).
With kde4.3 I can shutdown directly using kdm of course but in xfce, hitting the shutdown button it goes to the login screen and have to click the menu and select the shutdown to properly turnoff the machine.
Try looking at the login screen if you see the menu button if there is in gdm and choose the shutdown and see if it will work for you.
About half the time Shutdown actually shuts down my laptop (gnome, 11.2, x86_64). The other half of the time it drops me at the login screen. The same is true for Restart. If I get stuck at the login screen, I usually press the power button on my laptop, which presents me with a shutdown menu that actually works.
Same problem for me as well JJMT ;however, all in all 11.2 has corrected some 11.1 quirks for me, one being banshee now plays mp3 music smoothly and my dinovo keyboard does not sporadically disconnect.
To me it seems that “shutdown -P” (which Gnome uses) have the behavior of halting without power off on OpenSuse.The effect on Gnome is the return to the login screen. The question is, where can the behavior of “shutdown -P” be changed to power off? “shutdown -h” does a power off though.
A workaround may be to write a wrapper for the shutdown program which will do “shutdown -h” in case of “shutdown -P”.:sarcastic:
For a home system (don’t use indiscriminately in corporate environment)…
Here’s a workaround that will allow you to shutdown with a single mouse-click.
Yast → Security and Users → Sudo
Highlight Rules for sudo (top left)
Click the Add button toward the bottom left
User, Group or User Alias → select your login userid from drop down menu
Host or Host Alias → ALL
RunAs or RunAs Alias → root
Click the Add button at the bottom left
Along the bottom of the gnome desktop there’s a panel.
Right-click on the panel
From the drop-up menu select “Add to panel”
At the very top of the Add to Panel dialogue box select “Custom Application Launcher”
Click the Add button toward the bottom right corner
Type: Select → Application in Terminal from that drop-down menu
Name: Type in the command Shutdown
Command: sudo /sbin/init 0
If you wish to you can select any icon you wish by clicking on the flag to the left of the Launcher Properties dialogue box.
When you click the Close button, the icon will appear on your panel.
When you hover the mouse-pointer over the icon the word “Shutdown” will appear
When you left-click on the icon the system will halt.
To perform the same workaround with the restart command
in step #15 Type in the command Restart
in step #16 substitute this Command: sudo /sbin/init 6
I wounder if there may be a way to set privileges/rights with PolicyKit/polkit1  to “/sbin/init 0”.
Using the sudoers group may inherit risk to security because of possibilities of privilege escalation and misuse.
The easy (GNOME) way:
I am able to shutdown directly from GNOME (but not from KDE) as I use the session manager of GNOME gdm.
And as I use GNOME more often than KDE clicking two times out of KDE does not bother me much.
You can set the set the session manager in the file: /etc/sysconfig/displaymanager