You are not logged in.

#1 2008-08-15 16:44:01

temnozor
Member
Registered: 2008-08-15
Posts: 8

LXDE Logout/Shutdown/Reboot - LXPanel

Hello, i dont get it to have a lxpanel menu entriy to allow a user to reboot or shutdown the computer

i installed sudo and changed /etc/sudoers that every user can run /sbin/shutdown -h now /sbin/shutdown -r now and /sbin/reboot

if i dont change the lxpanel panel config i've a red logout button in the menu...when i use it i get the lxsession-logout .
.. but there is no reboot or shutdown..just a logout....

Plugin {
    type = menu
    Config {
        image=/usr/share/lxpanel/images/my-computer.png
        system {
        }
        separator {
        }
        item {
            command=run
        }
        item {
            image=gnome-logout
            command=logout 
        }
    }
}


if i use instead of command=logout command=sudo shutdown -h now nothing happens...

but when i run sudo shutdown -h now manually it works without a problem

Offline

#2 2008-08-15 19:11:11

jmrbcu
Member
From: Cuba
Registered: 2007-08-20
Posts: 112

Re: LXDE Logout/Shutdown/Reboot - LXPanel

add your user to power group


--------------------------------
Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo.
Recuerda: El arca de Noe fue construida por aficionados, el titanic por profesionales
-----------------------------------------------------------------

Offline

#3 2008-08-15 22:00:26

temnozor
Member
Registered: 2008-08-15
Posts: 8

Re: LXDE Logout/Shutdown/Reboot - LXPanel

if run

usermod -g power myuser

but i still get only the logout funktion and no reboot or shutdown

Offline

#4 2008-08-15 23:13:27

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: LXDE Logout/Shutdown/Reboot - LXPanel

Log out and then in again, that should apply the changes.

Offline

#5 2008-08-16 10:53:10

temnozor
Member
Registered: 2008-08-15
Posts: 8

Re: LXDE Logout/Shutdown/Reboot - LXPanel

dont works....only choice is "logout" and no reboot or shutdown

i start lxde using startlxde in .xinitrc in the users home

Offline

#6 2008-08-16 11:45:38

Kermit
Member
From: Chorzów, Poland
Registered: 2006-03-25
Posts: 78

Re: LXDE Logout/Shutdown/Reboot - LXPanel

I'm using LXDE too and "everything" is ok but I'm using LXDE with GDM - try it.
I say "everything" because Claws-Mail and Liferea after reboot/switch on shows old messages as not read...

Kermit.

Offline

#7 2008-08-31 10:54:54

oldherl
Member
Registered: 2008-08-31
Posts: 23

Re: LXDE Logout/Shutdown/Reboot - LXPanel

do not use "command=", use "action=" instead.
"command=" is for internal commands.

Offline

#8 2008-09-01 04:02:35

godane
Member
From: NH, USA
Registered: 2008-02-03
Posts: 241
Website

Re: LXDE Logout/Shutdown/Reboot - LXPanel

try me latest archiso-live distro since i use lxde and have it workiing the way you want it too.


I'm working on a live cds based on Archlinux. http://godane.wordpress.com/

Offline

#9 2008-09-30 23:40:39

Hrod beraht
Member
Registered: 2008-09-30
Posts: 186

Re: LXDE Logout/Shutdown/Reboot - LXPanel

Add yourself to the 'power' group, like this: http://wiki.archlinux.org/index.php/LXD … _from_LXDE

Bob

Offline

#10 2010-01-13 19:06:21

ardur
Member
Registered: 2010-01-13
Posts: 1

Re: LXDE Logout/Shutdown/Reboot - LXPanel

I simply did what wiki said: http://wiki.archlinux.org/index.php/LXDE

"To use startx you will need to define LXDE in your ~/.xinitrc file:

exec ck-launch-session startlxde

This will launch LXDE with HAL support that provides the ability to restart or shutdown your computer from the logout dialog."

Offline

#11 2010-03-16 02:33:13

jooch
Member
Registered: 2010-03-09
Posts: 49

Re: LXDE Logout/Shutdown/Reboot - LXPanel

ardur wrote:

I simply did what wiki said: http://wiki.archlinux.org/index.php/LXDE

"To use startx you will need to define LXDE in your ~/.xinitrc file:

exec ck-launch-session startlxde

This will launch LXDE with HAL support that provides the ability to restart or shutdown your computer from the logout dialog."

Thanks ardur, your suggestion fixed my problem! cool

Background of my problem:
I had problems since i installed a login manager (for which i used this guide). The guide suggested making an .xsession file (starting lxde withthout a session manager, doh! roll):

#!/bin/sh
exec bash --login -c 'startlxde'

I replaced the above code with ardur's code and was finally able to shutdown again.

Last edited by jooch (2010-03-16 02:34:43)

Offline

#12 2010-03-16 19:29:16

mandog
Member
From: Peru
Registered: 2008-09-17
Posts: 218

Re: LXDE Logout/Shutdown/Reboot - LXPanel

I use slim and use this line in  ~/.xinitrc thats the file in my home folder without it i just get log out like you. the only other thing i did was add my user name to power users, hal, policy-kit etc.
it tells you all this in the Wiki.
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

# ...or the Window Manager of your choice
exec ck-launch-session startlxde


I'm dyslexic Please do not complain about puntuation or spelling and remember most dyslexic people have above average iq.

Offline

Board footer

Powered by FluxBB