You are not logged in.
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
Do you have dbus running?
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
AFAIK it requires polkit installed and operating
Lenovo G50 | LXQT-git | compton | conky
Offline
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
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
Thanks for the tip. Unfortunately it didn't work . I don't get the shutdown/reboot options, and the same error pops in the terminal when calling lxsession-logout.
Offline
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
Offline
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
Offline
ls -l `which shutdown`
Can you run the shutdown command as an ordinary user?
http://linux.byexamples.com/archives/31 … -password/
Offline
** (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?
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
Offline
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
^ He says in his first post:
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
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
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
@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
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
Hal doesn't exist in the repository
Offline
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
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
Hal doesn't exist in the repository
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
Offline
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
Please, take your problem to appropriate category Other Architectures or ArchARM bbs.
Yes, Arch Linux != Arch Linux ARM.
Offline
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
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
Offline