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

Forum rules
Before you post please read how to get help
Post Reply
User avatar
RytronII
Level 4
Level 4
Posts: 363
Joined: Wed May 18, 2011 4:46 am
Location: Emerald Isle

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

Post 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.
Last edited by RytronII on Fri Nov 02, 2012 7:16 am, edited 1 time in total.
Husse: "Don't fix it if it ain't broken, don't break it if you can't fix it."
Image
cwsnyder
Level 6
Level 6
Posts: 1242
Joined: Wed Oct 20, 2010 6:49 am
Location: Nappanee, IN, USA

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

Post 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.
LMDE Mate 64-bit, LM17.3 Cinnamon 64-bit
Debian Mate 64-bit, Xubuntu xenial 64-bit, Ubuntu-Mate 14.04 64-bit, Antergos Xfce 64-bit, PCLinuxOS Mate 64-bit
User avatar
RytronII
Level 4
Level 4
Posts: 363
Joined: Wed May 18, 2011 4:46 am
Location: Emerald Isle

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

Post 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).
Husse: "Don't fix it if it ain't broken, don't break it if you can't fix it."
Image
cwsnyder
Level 6
Level 6
Posts: 1242
Joined: Wed Oct 20, 2010 6:49 am
Location: Nappanee, IN, USA

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

Post 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.
LMDE Mate 64-bit, LM17.3 Cinnamon 64-bit
Debian Mate 64-bit, Xubuntu xenial 64-bit, Ubuntu-Mate 14.04 64-bit, Antergos Xfce 64-bit, PCLinuxOS Mate 64-bit
User avatar
RytronII
Level 4
Level 4
Posts: 363
Joined: Wed May 18, 2011 4:46 am
Location: Emerald Isle

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

Post 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
Husse: "Don't fix it if it ain't broken, don't break it if you can't fix it."
Image
cwsnyder
Level 6
Level 6
Posts: 1242
Joined: Wed Oct 20, 2010 6:49 am
Location: Nappanee, IN, USA

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

Post 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.
LMDE Mate 64-bit, LM17.3 Cinnamon 64-bit
Debian Mate 64-bit, Xubuntu xenial 64-bit, Ubuntu-Mate 14.04 64-bit, Antergos Xfce 64-bit, PCLinuxOS Mate 64-bit
User avatar
RytronII
Level 4
Level 4
Posts: 363
Joined: Wed May 18, 2011 4:46 am
Location: Emerald Isle

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

Post 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?
Husse: "Don't fix it if it ain't broken, don't break it if you can't fix it."
Image
User avatar
Flemur
Level 18
Level 18
Posts: 8817
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

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

Post 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" ...
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
User avatar
RytronII
Level 4
Level 4
Posts: 363
Joined: Wed May 18, 2011 4:46 am
Location: Emerald Isle

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

Post by RytronII »

Thanks guys.

Update: That's odd! The keyboard power button works again (I dont know what fixed it as I changed nothing). :?:
Husse: "Don't fix it if it ain't broken, don't break it if you can't fix it."
Image
User avatar
SantaFe
Level 1
Level 1
Posts: 13
Joined: Mon Mar 07, 2011 9:00 pm

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

Post 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
User avatar
RytronII
Level 4
Level 4
Posts: 363
Joined: Wed May 18, 2011 4:46 am
Location: Emerald Isle

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

Post 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. :?
Husse: "Don't fix it if it ain't broken, don't break it if you can't fix it."
Image
User avatar
RytronII
Level 4
Level 4
Posts: 363
Joined: Wed May 18, 2011 4:46 am
Location: Emerald Isle

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

Post 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.
Husse: "Don't fix it if it ain't broken, don't break it if you can't fix it."
Image
User avatar
RytronII
Level 4
Level 4
Posts: 363
Joined: Wed May 18, 2011 4:46 am
Location: Emerald Isle

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

Post by RytronII »

The keyboard power button works again. I did noting. :?
Husse: "Don't fix it if it ain't broken, don't break it if you can't fix it."
Image
Post Reply

Return to “Xfce”