Page 1 of 1

[SOLVED] Xfce 4.10 log out + shutdown buttons no longer work

Posted: Sat Oct 27, 2012 8:56 am
by RytronII
Hi.

I am running LM 13 Xfce.

In Xfce 4.10, the log out and shutdown buttons no longer work. I can force a log out with 'Ctrl Alt Backspace' and do a shutdown from the terminal alright though. I did install and remove the MATE DE - maybe that is the cause?

Thanks.

Re: Xfce 4.10 log out and shutdown buttons no longer work

Posted: Sat Oct 27, 2012 1:26 pm
by cwsnyder
Have you tried opening a terminal and typing?:

Code: Select all

sudo shutdown now
If this works, you may want to look at the code behind your shutdown button. I have noticed in LMDE Xfce and Debian Wheezy Xfce that the buttons which used to shutdown or restart the computer now just log off, because the code called by the button has been changed.

Re: Xfce 4.10 log out and shutdown buttons no longer work

Posted: Sun Oct 28, 2012 5:16 am
by RytronII
cwsnyder wrote:Have you tried opening a terminal and typing?:

Code: Select all

sudo shutdown now
If this works, you may want to look at the code behind your shutdown button. I have noticed in LMDE Xfce and Debian Wheezy Xfce that the buttons which used to shutdown or restart the computer now just log off, because the code called by the button has been changed.
That terminal shutdown command works fine. How do I sort the button code?

Update:
I logged in with a new Xfce session and chose that as default. It solved the button problem re logging out. The power off problem is there still when I hit the power button on my keyboard (strangely it interferes with the numlock light).

Re: Xfce 4.10 log out and shutdown buttons no longer work

Posted: Sun Oct 28, 2012 6:26 am
by cwsnyder
I am using LMDE Xfce, so I can't give you exact directions, maybe someone else can chime in who is actually using LM 13. In Debian, I right-clicked the button and changed the properties of the button. On LMDE, right-clicking the button/panel informed me that the button I was using was the session-menu.

Re: Xfce 4.10 log out and shutdown buttons no longer work

Posted: Sun Oct 28, 2012 11:41 am
by RytronII
I should clarify -- when I say power off button, I refer to the keyboard power button. (not my keyboard) http://www.quickonlinetips.com/archives ... r-keys.jpg

Re: Xfce 4.10 log out and shutdown buttons no longer work

Posted: Sun Oct 28, 2012 6:49 pm
by cwsnyder
Try this. Open the Xfce menu, select Settings >> Keyboard >> Applications Shortcuts tab >> +Add button. In the resulting popup box, type: sudo shutdown now, which we know works, select the OK button, then when the next box opens, press the power button on your keyboard. This should put the keyboard scan code for your power button in your keyboard operations box and allow you to shutdown after entering your password.

Re: Xfce 4.10 log out and shutdown buttons no longer work

Posted: Mon Oct 29, 2012 5:02 am
by RytronII
cwsnyder wrote:Try this. Open the Xfce menu, select Settings >> Keyboard >> Applications Shortcuts tab >> +Add button. In the resulting popup box, type: sudo shutdown now, which we know works, select the OK button, then when the next box opens, press the power button on your keyboard. This should put the keyboard scan code for your power button in your keyboard operations box and allow you to shutdown after entering your password.
Hi cwsnyder. That would work fine but is there a method to shutdown without using my password?

Re: Xfce 4.10 log out and shutdown buttons no longer work

Posted: Mon Oct 29, 2012 6:55 am
by Flemur
This'll let users run "shutdown" (as they should be able to w/o this screwing around...):

Code: Select all

# chmod u+s /sbin/shutdown
There's also ways of adding a user to "sudoers" ...

Re: Xfce 4.10 log out and shutdown buttons no longer work

Posted: Mon Oct 29, 2012 10:13 am
by RytronII
Thanks guys.

Update: That's odd! The keyboard power button works again (I dont know what fixed it as I changed nothing). :?:

Re: Xfce 4.10 log out and shutdown buttons no longer work

Posted: Mon Oct 29, 2012 11:56 am
by SantaFe
RytronII wrote:Thanks guys.

Update: That's odd! The keyboard power button works again (I dont know what fixed it as I changed nothing). :?:
The same reason any appliance starts working again when the repairman comes by! The machines are out to get us! ;)

Glad it's working though! :D

Re: Xfce 4.10 log out and shutdown buttons no longer work

Posted: Mon Oct 29, 2012 4:09 pm
by RytronII
SantaFe wrote: The same reason any appliance starts working again when the repairman comes by! The machines are out to get us! ;)

Glad it's working though! :D
Thank you my friend.

Perhaps gremlins were at work then got bored and left. :?

Re: Xfce 4.10 log out and shutdown buttons no longer work

Posted: Tue Oct 30, 2012 4:28 am
by RytronII
No!

I spoke too soon, it no longer works (keyboard power button). I hit it and the numlock light goes off. The code provided earlier in the thread will do.

Re: Xfce 4.10 log out and shutdown buttons no longer work

Posted: Thu Nov 01, 2012 3:08 pm
by RytronII
The keyboard power button works again. I did noting. :?