-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Until next patched lxsession maintainer upload one may use systemd power
management for unprivileged users.
Systemd platform is default in debian nowadays and consolekit is not actively
maintained in favour of systemd-logind. [1]
It will also solve the policykit-1 issues mentioned above, USB stick mount
permission and so on.
To do so, one need to be on an active systemd-logind session.
Check:
loginctl show-session $XDG_SESSION_ID | grep Active
If not active, then X is not running on same tty where login occured. [2]
Modify: /etc/X11/xinit/xserverrc
-------------------------------------------------
#!/bin/sh
if [ -z "$XDG_VTNR" ]; then
exec /usr/bin/X -nolisten tcp "$@"
else
exec /usr/bin/X -nolisten tcp "$@" vt$XDG_VTNR
fi
-------------------------------------------------
Handled by polkit users can use systemd power management commands:
systemctl reboot
systemctl poweroff
systemctl suspend
systemctl hibernate
systemctl hybrid-sleep
By the way logout can be done by:
pkill lxsession
or
pkill -u user
This alo might be added directly to lxpanel, system wide or for each user
separately.
[Replace the logout (lxde-logout) entry, if lxsession-logout part of lxsession
is not needed.]
Modify panel file for example:
------------------------------
item {
image=gnome-logout
name=poweroff
action=systemctl poweroff
}
------------------------------
One may add various items of course.
Cheers,
Tomek
[1] http://www.freedesktop.org/wiki/Software/ConsoleKit/
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=743015
-----BEGIN PGP SIGNATURE-----
iQEcBAEBCgAGBQJTfeQ6AAoJEJg+e5imGIIP5GMH/Rk4PxfrrovYeZmUGxPuZ9ku
1sRed70d9Opyoef+rP1SK/sp+6hKuKVmtNhtaFjk8QrdXRx1h0z1LVDeVTORQti7
moJdqQOUPiWbvYE6Z/rl1XAc/IuQzH4pwCeAHER/yiA8X2jMJWyiyvpQL4nJV0q9
zbWXQDXPzw6T+dao7Ksxg8PrJ/J/jUtBwTOn+3o8JcTip5u+utjvHhWNqdjLob6O
zSjmiVhhYJijNDcZbowd1EcvuF/6d0nAdFjyzGLy+fYr90W3DA6yZJqvBeWrk5WS
FeQSm36VnBDqqPPNp6ryBHt4Kz935pJ4VqwxQHdJLaY38fL3hsEMQWBwEzXczc8=
=Xkih
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]