How do i shutdown correctly from my gnome session?

Asked by feedfish

You have in the top-right corner of the desktop your login name and by clicking you can shutdown or disconnect... But in my case sometimes I can only disconnect and end gdm and then shutdown my computer. I mean that often i can't shutdown directly from my session. Can someone help me to fix that?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Bernhard
Solved:
Last query:
Last reply:
Revision history for this message
electhor (electhor) said :
#1

You could try the following code in terminal
sudo shutdown -h now
if you want to shutdown in 30 minutes
sudo shutdown -h 30
if you want to reboot
sudo shutdown -r now

Revision history for this message
feedfish (anonymous4478) said :
#2

Ok thanx the answer, but it is not exactly what i am requesting.
I know that using cmd line with root privilege works fine for that and when i got the problem i used
sudo halt
but my request is how do i do it under a graphical session.
You know normally you have just to click the 'red button' in the top corner of the desktop and then it asks you for disconnect/halt or reboot. But me I have only disconnect case.
It seems like I have not the privilege to halt/reboot when using my graphical session.

Revision history for this message
Bernhard (b.a.koenig) said :
#3

Well, go to "System" and go to "Shutdown". There is also a panel item that does that: take "Shut down" instead of "Log off".

Revision history for this message
electhor (electhor) said :
#4

In 8.10, my shutdown/restart is under system as mentioned by Bernhard. The icon in the top right hand corner only gives the options for log off, hybernation etc as well. It seems to have reverted to the "normal" place for the upcoming 9.04 release.

Revision history for this message
Bernhard (b.a.koenig) said :
#5

Yes, but the panel has two different "logout" items now. Right-click on the panel and click "add item" and browse through the list: there are two things, a "logoff" item and a "shutdown" item. The second has the shutdown option.

Revision history for this message
feedfish (anonymous4478) said :
#6

Ok thanx for you answer, indeed there is an applet for shutdown the computer and this one works fine. I have no put it on my panel and now i can correctly shutting down my computer. But my problem was that the default applet in intrepid called 'Fast User Switch Applet' has a button for shutdown computer too. And in my case the shutting down feature of this applet doesn't works most of the times. I said 'most of the times' because yesterday i can shutdown from this applet. I think i will report this bug in 'bug section'.

Revision history for this message
Best Bernhard (b.a.koenig) said :
#7

Yes, if you think something is not working the way it should be, then please file a bug and mark this question as solved.

Revision history for this message
feedfish (anonymous4478) said :
#8

ok solved

Revision history for this message
feedfish (anonymous4478) said :
#9

Thanks Bernhard, that solved my question.