You are not logged in.

#1 2010-09-03 13:00:24

cobra-the-joker
Member
Registered: 2010-09-03
Posts: 6

Cant shutdown in LXDE

Hey guys
i just installed archlinux and i choosed LXDE with Slim as they are light weight .
but i got some problem here with power control .. i cant reboot , shutdown , hibernate , suspend my session ... i only can logout .

here is my PolicyKit.conf file :

<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->

<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"[url]http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd[/url]">

<!-- See the manual page PolicyKit.conf(5) for file format -->

<config version="0.1">
    <match action="org.freedesktop.hal.storage.mount-removable">
        <return result="yes"/>
    </match>
    <match action="org.freedesktop.hal.power-management.shutdown">
        <return result="yes"/>
    </match>
    <match action="org.freedesktop.hal.power-management.reboot">
        <return result="yes"/>
    </match>
</config>

and this is my daemons array :

DAEMONS=(syslog-ng dbus hal networkmanager crond alsa b43)

Offline

#2 2010-09-03 13:12:35

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Cant shutdown in LXDE

Are you in the power group ?


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2010-09-03 13:15:55

cobra-the-joker
Member
Registered: 2010-09-03
Posts: 6

Re: Cant shutdown in LXDE

yes i am in the power group

[root@myhost cobra]# grep cobra /etc/group
network:x:90:cobra
audio:x:92:cobra
power:x:98:cobra

Offline

#4 2010-09-03 13:28:20

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Cant shutdown in LXDE

How do you start lxde? Via 'exec startlxde' in .xinitrc?

Offline

#5 2010-09-03 13:35:39

cobra-the-joker
Member
Registered: 2010-09-03
Posts: 6

Re: Cant shutdown in LXDE

This is how  i start LXDE .

exec ck-launch-session startlxde

Offline

#6 2010-09-03 15:13:36

cobra-the-joker
Member
Registered: 2010-09-03
Posts: 6

Re: Cant shutdown in LXDE

maybe this can help ...

when i typed this in the terminal :

dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop

i got this :

Error org.freedesktop.ConsoleKit.Manager.NotPrivileged: Not Authorized

Offline

#7 2010-09-03 15:15:38

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Cant shutdown in LXDE

Is your system updated??

I have never used LXDE, but it seems strange to me that they would still require PolicyKit files considering that HAL has been deprecated and most apps now tend to shy away from using it.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#8 2010-09-03 15:28:43

cobra-the-joker
Member
Registered: 2010-09-03
Posts: 6

Re: Cant shutdown in LXDE

yes my system is updated .
and i dont really love LXDE ... i just wanted to have a nice and fast OS that i can rely on it to do my work .
my computer is 2.5 GB and its not that slow .
and my work is office stuff , programming ( C++ , Java , Python , Mono ) .
if you have another alternative to LXDE that will solve these problems ... i dont mind to switch .

Offline

#9 2010-09-03 15:58:48

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Cant shutdown in LXDE

Edit: have you read this:

http://wiki.archlinux.org/index.php/LXD … _from_LXDE

Last edited by anonymous_user (2010-09-03 15:59:42)

Offline

#10 2010-09-03 16:04:29

cobra-the-joker
Member
Registered: 2010-09-03
Posts: 6

Re: Cant shutdown in LXDE

yes anonymous_user ... i have read that and applied it and nothing changed .

Offline

#11 2010-09-03 16:15:05

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Cant shutdown in LXDE

You could just create two launchers. The first for shutdown and the second for reboot.

xterm -e "sudo shutdown -h now"
xterm -e "sudo shutdown -r now"

If you don't want to enter your password everytime, just add it to your sudoers files.

Or if you really don't mind switching DE, you could try Xfce.

Last edited by anonymous_user (2010-09-03 16:15:32)

Offline

#12 2010-09-03 16:20:34

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Cant shutdown in LXDE

Yeah, adding /sbin/shutdown and /sbin/reboot to your sudoers file with NOPASSWD should do the trick.

I use the same in my i3 setup.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB