I ran into something similar with Xubuntu. The problem seems to be based on multiple daemons running that are responsible for locking the screen. Simply uninstalling light-locker fixed my problem, but we're running gdm as the display manager...this may not be an option for you if you're running light-dm.
--
Kermit Short
Los Alamos National Laboratory
________________________________________
From: John Hupp [***@prpcompany.com]
Sent: Monday, March 09, 2015 2:57 PM
To: ltsp-***@lists.sourceforge.net
Subject: Re: [Ltsp-discuss] Ubuntu 14.04 ltsp-pnp, lock screen
Post by Vagrant CascadianPost by Antti HynönenI am using Ubuntu 14.04 ltsp-pnp but lock screen doesn't work on the clients?
If you have a really recent version of LTSP/LDM, the LDM_HASHPASS=true
option may help with that. Not sure how to re-enable locking on ubuntu,
though.
live well,
vagrant
I find the same problem on Lubuntu 14.04 with ltsp-pnp.
Trying to investigate, I note that Lubuntu uses the lxlock command to
lock the screen, and this works OK on standalone Lubuntu or on the LTSP
server.
The command is just a simple script located at /usr/bin/lxlock. Contents:
==================================
#!/bin/sh
#
# Try to lock the screen with those applications (in this order) :
# light-locker-command, xscreensaver, gnome-screensaver, slock, xlock,
i3lock and xdg-screensaver
if pidof light-locker >/dev/null; then
light-locker-command -l >/dev/null 2>&1
elif pidof xscreensaver >/dev/null; then
xscreensaver-command -lock >/dev/null 2>&1
elif pidof gnome-screensaver >/dev/null; then
gnome-screensaver-command --lock
elif which slock >/dev/null; then
slock &
elif which xlock 2>/dev/null; then
xlock $*
elif which i3lock >/dev/null; then
i3lock -d
else
# In the end, try to fallback to xscreensaver
# assert: gnome-screensaver is not running
xscreensaver -nosplash >/dev/null 2>&1 &
xscreensaver-command -lock >/dev/null 2>&1
fi
exit 0
==================================
The script finds that light-locker is indeed running and therefore
issues "light-locker-command -l". The output of that when run directly
in the terminal:
(light-locker-command:3417): GLib-CRITICAL **:
g_variant_is_object_path: assertion 'string != NULL' failed
(light-locker-command:3417): GLib-GIO-CRITICAL **:
g_dbus_message_new_method_call: assertion 'g_variant_is_object_path
(path)' failed
** (light-locker-command:3417): WARNING **: Couldn't allocate the
dbus message
==================================
I don't know how to interpret the messages above, but I do also note
that the light-locker-command manpage has this:
DESCRIPTION
light-locker-command is a tool for controlling an already
running
instance of light-locker. This is done though LightDM which
doesn't
ensure light-locker is running.
I note the Description phrase "This is done through LightDM." And now I
see that the light-locker package description also notes that it relies
on LightDM.
So for Lubuntu the issue seems to be that the display manager in use on
the clients is LDM rather than LightDM. Ubuntu also uses LightDM so the
same would apply.
Workarounds??
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net