You are not logged in.
lxsession-logout uses dbus socket to request the actions, oblogout simply calls bash scripts.
Offline
Might be OT but I'm an openbox user and experienced similar problems, no graphical logout, reboot or shutdown.
This thread may hold the answer: https://bbs.archlinux.org/viewtopic.php?id=151786&p=1
Seems that the latest pango update may be the culprit. After downgrading to pango 1.30.1 full functionality was restored. YMMV.
Offline
I'm using lxdm with xfce. One System uses .xinitrc and create an logind session then working. Two other Systems doesn't and without an logind session I hasn't permission to suspend or mount devices. But I don't find the reason for this. I belive it could be the profile but I don't find something.
xinitrc contains this:
https://wiki.archlinux.org/index.php/Xi … he_session
Edit:
pam_ssh was the problem. When its enabled the pams doesn't work with logind.
Last edited by eanderalx (2012-11-03 16:09:41)
"Man kann ein Problem nicht mit den gleichen Denkstrukturen lösen, die zu seiner Entstehung beigetragen haben." (Albert Einstein)
"A problem cannot be solve at the same level of thinking at which it was created." (Albert Einstein)
Offline
I have the same problem, despite my setup is LXDM+MATE.
I guess the older Desktop Environments do not support systemd, and are not able to tell if the user has permission to shut down the machine.
I also have LXDM with MATE and have the same problem. Shutdown and reboot buttons are missing.
Btw, did you have the same problems with consolekit? I don't know if it worked well with consolekit because I just installed Arch Linux last night.
Last edited by hyuga (2012-11-03 18:21:50)
Offline
@hyuga
With consolekit everything worked fine. Installing consolekit-git from aur restores the buttons, but is. of course, a stepback.
Offline
@ricrogz
I got a build error while trying to make consolekit-git from the AUR. Did you experience problems building it?
"Never ascribe to malice that which is adequately explained by incompetence."
~ Napoleon I
Offline
Why are you trying to install consolekit? For example, you can shutdown with "systemctl poweroff" etc.
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
Why are you trying to install consolekit? For example, you can shutdown with "systemctl poweroff" etc.
Because the shutdown, restart buttons are missing.
Linux Performance Blog: http://haydenjames.io/
Offline
Ok so I pulled up my SSD and popped in a empty drive in my laptop and install Arch latest with kde4. On first boot to KDE4 the Shudown, Restart and Hibernate buttons are missing.
Last edited by hydn (2012-11-04 01:22:53)
Linux Performance Blog: http://haydenjames.io/
Offline
@cmorgenstern
No, I can build consolekit cleanly with no errors. What kind of error are you getting?
Offline
cmorgenstern, even though the maintainer didn't include it (and should have) git is required for git packages.
Offline
I'm using MATE with pure systemd (no consolekit installed).
No problems with 'sudo reboot' and 'sudo poweroff' from terminal, but only corresponding buttons are missing in shutdown dialog.
Last edited by clovenhoof (2012-11-04 16:55:19)
Offline
So far the only way I've been able to solve this is to disable SLiM and enable the KDE4 default KDM login manager. Now when I login, the Shutdown, Reboot and Hibernate buttons all appear in KDE4.
# systemctl disable slim
# systemctl enable kdm
Linux Performance Blog: http://haydenjames.io/
Offline
@Scimmia
Yes, installing git solves it. Sorry for the stupid question. I occasionally forget that because I've built the system from scratch, I sometimes need to install additional features that come pre-installed with other Linux distros.
Anyway, installing consolekit-git from the AUR restores the buttons to the menu and they all seem to work. I guess this does technically solve the problem, but it's not a good long-term solution, since ideally having those functions controlled by systemd would be better considering that Arch is now dropping all support for things like initscripts and going pure systemd. If anyone comes up with a better solution than this, I'm sure many of us who are experiencing this problem would be pleased.
"Never ascribe to malice that which is adequately explained by incompetence."
~ Napoleon I
Offline
I don't want consolekit. For me the buttons only fail to load when i use SLiM, XDM or XDM-arch to login but works fine with KDM. So I switched back to kdm and installed.. pacman -S archlinux-themes-kdm.
Linux Performance Blog: http://haydenjames.io/
Offline
I am using xdm with xdm-archlinux from AUR and have none of your problems. *Many* posts lately have been complaining about permission, etc. problems related to polkit.service. Apparently, polkit is not installing properly due to group id numbers. Please check your logs for incomplete install of polkit due to goup number conflicts. I recently had this problem due to an old install of gdm using group id 102 so polkit wouldn't install properly. Once gdm was removed and polkit reinstalled, no more problems encountered.
Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz
Offline
I made the switch to a pure systemd boot, and it seems to have resolved all the issues I had on my laptop. So far, so good, anyway ...
Offline
Yup I switched to systemd few days ago. Didn't resolve missing buttons so I did clean re-install of Slim + KDE4. No shutdown icons either. But systemd-analyze is not 150 mins faster at 1800ms, go figure. Luv this stuff. As mentioned icons work with KDM though.
Linux Performance Blog: http://haydenjames.io/
Offline
Reported as a bug against lxsession at https://bugs.archlinux.org/task/32508
Regards,
Offline
The upshot may be the removal of lxsession from the repos.
@hydn, this thread is regarding LXDE and lxsession-logout not KDE or KDM.
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
Yup so true. I'm working like a dream now! Hope u guys are sorted soon.
Linux Performance Blog: http://haydenjames.io/
Offline
lxsession-logout lacks the "Shutdown" and "Restart" buttons because it expects consolekit, hal or, apparently, ltsp to be present
such behavior is c hardcoded
logind support should be straightforward to implement; meanwhile I would suggest to revert to, say, a gtkdialog script wich calls systemctl poweroff / reboot directly (maybe specific sudoers permissions are needed, too):
modify the Logout entry of your ~/.config/lxpanel/LXDE/config
[Command]
FileManager=pcmanfm %s
Terminal=lxterminal
Logout=/path-to-your-gtkdialog-logout-script
to handle the lxpanel logout button, to the right, a .desktop file (a copy of your lxde-logout.desktop) is needed, wich execs the gtkdialog logout script
...
Icon=gnome-logout
Exec=/path-to-your-gtkdialog-logout-script
NoDisplay=true
this .desktop file has to be referenced in ~/.config/lxpanel/LXDE/panels/panel:
...
Plugin {
type = launchbar
Config {
Button {
id=/path-to-your-logout.desktop
}
}
}
Offline
Please also see post #44.
Last edited by loafer (2012-11-10 14:00:05)
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
This should be fixed with lxsession 0.4.6.1-3. Those who tested it found the functionality restored.
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
Bug 32508 is now closed and new version 0.4.6.1-3 of lxsession is in community repo. Big thanks to Bartłomiej for taking the bug, to Antonio for his patch and to Dave and Tiago for testing.
Regards,
Offline