LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-29-2013, 06:11 AM   #1
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Rep: Reputation: 47
LXDE can't shutdown or reboot


I can't shutdown LXDE using 'logout' button. (nothing happens)
/var/log doesn't seem to contain any errors.

~/.cache/lxsession/LXDE contains this error:

Code:
(lxsession-logout:10421): GLib-GIO-CRITICAL **: g_dbus_proxy_call_sync_internal: assertion `error == NULL || *error == NULL' failed

(lxsession-logout:10421): GLib-CRITICAL **: g_variant_unref: assertion `value != NULL' failed
using latest Debian testing amd64.
thanks.
 
Old 11-29-2013, 07:33 PM   #2
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Have you tried to do this from terminal as root?
Code:
halt
 
Old 11-29-2013, 07:50 PM   #3
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Did this just occur recently?
I ask because I had a similar issue (though it may be unrelated) and I worked around it by using gdm3 as my display manager rather than lightdm. I'd prefer lightdm in some ways but I like the way gdm3 looks in Debian now so I'll leave it as it is.
https://www.linuxquestions.org/quest...ce-4175483284/
Apologies if it is unrelated.
 
Old 11-29-2013, 07:50 PM   #4
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Original Poster
Rep: Reputation: 47
sorry I forgot to mention that poweroff and similar work.
 
Old 11-29-2013, 09:59 PM   #5
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Well that means the involved files are correct anyway.

As Lxde is Open Box based you should be able to check the file for the shutdown menu (logout or what ever). I believe that would be where your problem is.

I can't remember where OB stores that file let alone Lxde. One option would be to write a little script and put it in your menu with the options you want on it.

Does Lxde use the obmenu package? If so you should be able to check the man page for that and get some info.

I haven't had a Debian Lxde install on here for a while and the OB install I have is on here is not what I am using normally. I have a calculation running right now that will not finish until morning. If you haven't solved this by then I will pop over there and see what I can find that may help.
 
Old 12-01-2013, 12:29 AM   #6
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
I really need to look into this further. I know I had a script you could add to the OB menu, would think you could do the same for whatever Lxde uses.

But turns out that my menu in Debian OB Sid (because it is Sid OB I can use the label SOB - I may be a grumpy geezer but that doesn't mean I ever grew up) only has "Exit" in it and it just logs you out. This works out because you do have the option of shutting down or rebooting from the Login screen but seems rather strange.

Lxde probably uses the OB menu or one of their own. Should be in a similar location. The obmenu that I edited is located;
/home/tom/.config/openbox/menu.xml

I added 2 entries below the Exit entry;
Code:
		<item label="Exit">
			<action name="Exit"/>
		</item>
                <item label="Reboot">
			<action name="Execute">
				<execute>gksu /sbin/reboot</execute>
			</action>
		</item>
                <item label="Shut Down">
			<action name="Execute">
				<execute>gksu /sbin/halt</execute>
			</action>
		</item>
Problem with that is that I am using gksu to run the command so am asked for my root password.

They both work though very well.

Never noticed that before. This is not an old install. It is on an external I formated with a GPT partition system to try it out (love it) and have mainly been doing things in terminal on here so just type reboot when I am ready to leave.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC18: running a command on shutdown (or reboot) before every other shutdown operation P5music Fedora 3 04-23-2013 03:56 PM
[SOLVED] Preserve modified keymap across reboot in LXDE/Openbox nokangaroo Linux - Desktop 1 06-17-2011 12:53 AM
Unable to shutdown/reboot server, no shutdown process running dctw Linux - Server 5 03-31-2010 05:46 AM
[FYI] "last -f <old wtmp> -x reboot shutdown" incorrect for last reboot and shutdown catkin Linux - General 1 03-25-2010 11:52 PM
Cannot shutdown from LXDE. cantab Arch 4 11-16-2009 10:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration