Exit button doesnt turn off computer

Asked by Alter

I used to run X script client session and everything went fine, but I got compiz and I have to logon to Gnome XGL, but when i want to turn off my laptop and I press the button only this options appear:

1) Log Out
2) Lock Screen
3) Swith User
4) Stand By
5) Hibernate

As you can see, no "Shut down" button appears, is there a way to modify the options that come out when you press EXIT, I also tried going by the menu, but it's the same thing, please help me, I dont want to press de Power button on my lap for 5 sec to emergency shut down alway, and if I log out, sometimes it's stops responding, and I have to do the emergency shut down anyway.

Please I wanna Go to sleep.

Thanks in advance

Question information

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

Well Im going to sleep right now, I hope i dont have to shut it down rough.

Please Help me.

Revision history for this message
Best Dmitry Mityugov (dmitry-mityugov) said :
#2

compiz, as far as I know, is still an experimental feature and everything can happen if you turn it on.

If this is the only problem compiz is causing on your machine, try to shut down your machine from a terminal via

sudo shutdown -h now

command. Hope this helps

Revision history for this message
Dmitry Mityugov (dmitry-mityugov) said :
#3

Oh, and in addition, you probably can select Log Out and look for a shutdown option in the login menu

Revision history for this message
Alter (dadacdubbz22) said :
#4

i tried the log out but it didnt work, im trying right now the, brb, to tell you.

Revision history for this message
Alter (dadacdubbz22) said :
#5

Well... that did it, thx, i jst that i feel bad doing the emergency shutdown, this takes time but its secure. BTW, this problem isn't with compiz, it's the session, Gnome XGL it's the one that goes wrong, i dont start session with compiz, and if i dont use it the problem still happens, must be something I did configuring the XGL, thx again.

Revision history for this message
Alter (dadacdubbz22) said :
#6

Thanks Dmitry Mityugov, that solved my question.

Revision history for this message
Alter (dadacdubbz22) said :
#7

Look!! I found the solution, spread the word:

$ sudo gedit /usr/local/bin/startxgl.sh

 #!/bin/sh
 Xgl -fullscreen :1 -ac -accel glx:pbuffer -accel xv:pbuffer & sleep 2 && DISPLAY=:1
 cookie="$(xauth -i nextract - :0 | cut -d ' ' -f 9)"
 xauth -i add :1 . "$cookie"
 # Start Gnome
 exec gnome-session