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

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
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 LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Husse: "Don't fix it if it ain't broken, don't break it if you can't fix it."
Image
cwsnyder

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.
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

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.
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

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.
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 20
Level 20
Posts: 10097
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: 21
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
Locked

Return to “Xfce”