You are not logged in.

#1 2012-08-09 20:10:59

doragasu
Member
Registered: 2012-03-03
Posts: 152

LXDE lacks options to shut down

I have installed a small system using LXDE and no login manager. I have followed the directions stated in the wiki to get shutdown, reboot, etc. options in the shutdown dialog:

1.- I have installed pm-utils and upower.
2.- User is in the power group.
3.- Contents of ~/.xinitrc:

#!/bin/sh
exec ck-launch-session startlxde

Now I only have the shutdown, reboot, etc. options for the root user. Non root users in the power group don't have these options available. Could it be because I don't use a login manager? How can I get these options?

EDIT: It looks like the problem is policykit/consolekit related, as for example USB pendrive auto mounting is not working (a "Not Authorized" dialog pops up).

Last edited by doragasu (2012-08-09 20:34:12)

Offline

#2 2012-08-09 21:16:53

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: LXDE lacks options to shut down

Do you have dbus running?

archwiki wrote:

To have all Shutdown, Reboot, Suspend and Hibernate Options working you need to have dbus running.

https://wiki.archlinux.org/index.php/Dbus

Last edited by 2ManyDogs (2012-08-09 21:18:03)

Offline

#3 2012-08-10 06:57:33

nbvcxz
Member
From: Poland
Registered: 2007-12-29
Posts: 202

Re: LXDE lacks options to shut down

AFAIK it requires polkit installed and operating


Lenovo G50 | LXQT-git | compton | conky

Offline

#4 2012-08-10 08:09:15

doragasu
Member
Registered: 2012-03-03
Posts: 152

Re: LXDE lacks options to shut down

Thanks for help. dbus is running (it's added to DAEMONS in rc.conf) and polkit is installed (but I don't know if I need to configure anything about it).

Previously I did a very similar installation and it worked flawlessly. The main difference is that in the previous installation, I was using SLiM, and now I don't use a login manager. I don't know if that can be related to the problem.

Edit: Using ps, I see two polkit instances running:

/usr/lib/polkit-1/polkitd --no-debug (launched by root)
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 (launched by my non privileged user)

EDIT2: Groups my non privileged user is added to:
lp wheel games video audio storage scanner power users

EDIT3: I have manually called (from the terminal) lxsession-logout and the dialog pops up (without shutdown, etc. options) but the following error appears in the console:

** (lxsession-logout:844): WARNING **: dbus-interface.c:94: DBUS: The name org.freedesktop.Hal was not provided by any .service files

** (lxsession-logout:844): WARNING **: dbus-interface.c:94: DBUS: The name org.freedesktop.Hal was not provided by any .service files

** (lxsession-logout:844): WARNING **: dbus-interface.c:94: DBUS: The name org.freedesktop.Hal was not provided by any .service files

Last edited by doragasu (2012-08-10 08:34:38)

Offline

#5 2012-08-10 08:51:56

Terminator
Member
From: Belgium
Registered: 2012-05-07
Posts: 265

Re: LXDE lacks options to shut down

doragasu wrote:

Previously I did a very similar installation and it worked flawlessly. The main difference is that in the previous installation, I was using SLiM, and now I don't use a login manager. I don't know if that can be related to the problem.

Try this in your .xinitrc:
exec ck-launch-session dbus-launch startlxde

Offline

#6 2012-08-10 08:59:43

doragasu
Member
Registered: 2012-03-03
Posts: 152

Re: LXDE lacks options to shut down

Thanks for the tip. Unfortunately it didn't work sad. I don't get the shutdown/reboot options, and the same error pops in the terminal when calling lxsession-logout.

Offline

#7 2012-08-10 10:12:01

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: LXDE lacks options to shut down

you should have in ~/.xinirc

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
exec startlxde --with-ck-launch

and # chmod 744 ~/.xinitrc


do it good first, it will be faster than do it twice the saint wink

Offline

#8 2012-08-10 11:08:54

doragasu
Member
Registered: 2012-03-03
Posts: 152

Re: LXDE lacks options to shut down

TheSaint wrote:

you should have in ~/.xinirc
[...]

Thanks but I'm out of luck. That didn't work either. No shutdown/reboot buttons and the same error messages sad

Offline

#9 2012-08-10 12:07:05

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: LXDE lacks options to shut down

ls -l `which shutdown`

Can you run the shutdown command as an ordinary user?
http://linux.byexamples.com/archives/31 … -password/

Offline

#10 2012-08-10 16:58:51

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: LXDE lacks options to shut down

doragasu wrote:
** (lxsession-logout:844): WARNING **: dbus-interface.c:94: DBUS: The name org.freedesktop.Hal was not provided by any .service files

HAL!!    What it does here??
How old is your LXDE? yikes yikes

EDIT
Strange but lxsession seems still looking for it. Even in my logs I found that.

Last edited by TheSaint (2012-08-15 01:47:36)


do it good first, it will be faster than do it twice the saint wink

Offline

#11 2012-08-11 01:12:16

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,367

Re: LXDE lacks options to shut down

Did you startx or are you using slim/gdm/xdm/kdm?
This makes the difference as to whether certain buttons in the window manager appears.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#12 2012-08-11 01:22:24

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: LXDE lacks options to shut down

^ He says in his first post:

doragasu wrote:

I have installed a small system using LXDE and no login manager. I have followed the directions stated in the wiki to get shutdown, reboot, etc. options in the shutdown dialog:
1.- I have installed pm-utils and upower.
2.- User is in the power group.
3.- Contents of ~/.xinitrc:

Then later he says

doragasu wrote:

Previously I did a very similar installation and it worked flawlessly. The main difference is that in the previous installation, I was using SLiM, and now I don't use a login manager. I don't know if that can be related to the problem.

The big difference is that SLiM starts console-kit, so you don't have to start it in .xinitrc. I don't see how this could be the problem, because you are starting console-kit in your .xinitrc. I do think it's weird that you have two instances of policykit running, and I'd also like to know why lxsession-logout is calling Hal.

Last edited by 2ManyDogs (2012-08-11 01:31:58)

Offline

#13 2012-08-11 01:37:48

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,367

Re: LXDE lacks options to shut down

TheSaint wrote:

you should have in ~/.xinirc

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
exec startlxde --with-ck-launch

and # chmod 744 ~/.xinitrc

It should be chmod 0755 ~/.xinitrc because it's an executable.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#14 2012-08-11 21:42:09

doragasu
Member
Registered: 2012-03-03
Posts: 152

Re: LXDE lacks options to shut down

@vacant:

$ ls -l `which shutdown`
-rwxr-xr-x 1 root root 18520 Jun 30 14:06 /sbin/shutdown

@TheSaint: My distro es up to date (pacman -Syu), but I forgot to mention a maybe crucial detail: it's an Arch Linux Arm install.

I have tried chmodding 755 ~/.xinitrc, but that also doesn't work...

Offline

#15 2012-08-11 22:03:13

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: LXDE lacks options to shut down

doragasu wrote:

I forgot to mention a maybe crucial detail: it's an Arch Linux Arm install.

That might explain why lxsession-logout is calling Hal. Is Hal installed, or can you install it?

Offline

#16 2012-08-12 09:25:38

doragasu
Member
Registered: 2012-03-03
Posts: 152

Re: LXDE lacks options to shut down

Hal doesn't exist in the repository sad

Offline

#17 2012-08-12 09:55:17

ampe
Member
Registered: 2012-07-31
Posts: 27

Re: LXDE lacks options to shut down

I had this problem when I added ck-launch-session to my .xinitrc following a suggestion, it didn't solve anything and caused said problems, so I removed it again and problem solved. I use slim and xfce.

Offline

#18 2012-08-12 10:46:43

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: LXDE lacks options to shut down

ampe wrote:

I had this problem when I added ck-launch-session to my .xinitrc following a suggestion, it didn't solve anything and caused said problems, so I removed it again and problem solved. I use slim and xfce.

SLiM starts console-kit, so you don't have to. He's not using SLiM. See post #12.

Last edited by 2ManyDogs (2012-08-12 10:49:41)

Offline

#19 2012-08-12 21:00:03

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: LXDE lacks options to shut down

doragasu wrote:

Hal doesn't exist in the repository sad

So it's necessary to see if the links mentioned you will find the necessary package of Hal.
So you should look in http://arm.konnichi.com/2009/11/01/extra/os/$arch or a more recent directory of that site.


do it good first, it will be faster than do it twice the saint wink

Offline

#20 2012-08-14 12:17:28

doragasu
Member
Registered: 2012-03-03
Posts: 152

Re: LXDE lacks options to shut down

Unfortunately those links are for i686 and x86_64. I need armv5 packages. I'll try to find if there's something similar for Arch Linux ARM.

Offline

#21 2012-08-14 18:16:44

Barthalion
Forum Fellow
From: Poland
Registered: 2010-02-26
Posts: 111

Re: LXDE lacks options to shut down

Please, take your problem to appropriate category Other Architectures or ArchARM bbs.

Yes, Arch Linux != Arch Linux ARM.

Offline

#22 2012-09-22 05:14:06

moere
Member
Registered: 2010-02-14
Posts: 29

Re: LXDE lacks options to shut down

I had the same problems with x86_64!!

I dont think it is ARM specific.

I was not able to solve it.

My workaround is now using LXDM.
Works like a charm.
It has "all the features" I wanted "built in".
There is autologin etc.

cheers,
moere

Offline

#23 2012-09-22 10:49:08

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: LXDE lacks options to shut down

I didn't find any problem starting by xdm or lxdm. Just I used to have that ~/.xinitrc
Even once I changed to systemd all fine, but the results will happen while shutting down last time via initscripts.


do it good first, it will be faster than do it twice the saint wink

Offline

Board footer

Powered by FluxBB