Discussion:
[xmonad] Can't lock screen with light-locker-command
Thomas Järvstrand
2018-11-22 16:45:53 UTC
Permalink
Hi!

I just moved back to xmonad after having used qtile for a few years and I'm
having trouble locking my screen using light-locker-command. When calling
"light-locker-command -l" from the command line, I get the this back:
"Received error message from the locker:
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.ScreenSaver was not provided by any .service files"

I'm running Ubuntu's mini.iso, lightdm, and a simple session file that just
calls /etc/X11/Xsession. My .xsession only adds "~/.cabal/bin" to the PATH
and execs xmonad. xmonad version is 0.15 but I get the same behaviour when
installing xmonad via apt and running the package's session. I have tried
purging and reinstalling both lightdm and light-locker. The curious thing
is that the same lock command works fine if I run qtile from my .xsession
instead of xmonad.

Any pointers would be greatly appreciated!

Thanks!
Thomas
Adam Sjøgren
2018-11-22 18:54:34 UTC
Permalink
Post by Thomas Järvstrand
Any pointers would be greatly appreciated!
Not quite what you are asking for, perphaps, but I use xscreensaver to
lock my screen, which I just start in a login-script with the
"-no-splash" option, and lock using a key: ("M-S-l", spawn
"xscreensaver-command -activate")


Best regards,

Adam
--
"Hur långt man än har kommit Adam Sjøgren
är det alltid längre kvar" ***@koldfront.dk
Thomas Järvstrand
2018-11-22 20:42:53 UTC
Permalink
Hi again!

I suppose what I would like to figure out is why it doesn't work to lock my
screen using light-locker from the command line. Unfortunately I'm not a
huge fan of the visuals of xscreensaver and would like to stay with
light-locker if possible.

Thomas
Post by Adam Sjøgren
Post by Thomas Järvstrand
Any pointers would be greatly appreciated!
Not quite what you are asking for, perphaps, but I use xscreensaver to
lock my screen, which I just start in a login-script with the
"-no-splash" option, and lock using a key: ("M-S-l", spawn
"xscreensaver-command -activate")
Best regards,
Adam
--
"Hur långt man Àn har kommit Adam SjÞgren
_______________________________________________
xmonad mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
Brandon Allbery
2018-11-22 20:44:26 UTC
Permalink
Something's wrong with connectivity to dbus. Would have to see how your
session is set up to know what's going on.
Post by Thomas Järvstrand
Hi again!
I suppose what I would like to figure out is why it doesn't work to lock
my screen using light-locker from the command line. Unfortunately I'm not a
huge fan of the visuals of xscreensaver and would like to stay with
light-locker if possible.
Thomas
Post by Adam Sjøgren
Post by Thomas Järvstrand
Any pointers would be greatly appreciated!
Not quite what you are asking for, perphaps, but I use xscreensaver to
lock my screen, which I just start in a login-script with the
"-no-splash" option, and lock using a key: ("M-S-l", spawn
"xscreensaver-command -activate")
Best regards,
Adam
--
"Hur långt man Àn har kommit Adam SjÞgren
Àr det alltid lÀngre kvar"
_______________________________________________
xmonad mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
_______________________________________________
xmonad mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
--
brandon s allbery kf8nh
***@gmail.com
Rasmus Edgar
2018-11-22 20:51:55 UTC
Permalink
Hi Adam,

If you are willing to try something else, I can recommend slock, which
works perfectly with XMonad and is extremely barebones.

https://tools.suckless.org/slock/

Br,
Rasmus Edgar
Post by Brandon Allbery
Something's wrong with connectivity to dbus. Would have to see how your
session is set up to know what's going on.
On Thu, Nov 22, 2018 at 3:43 PM Thomas Järvstrand
Hi again!
I suppose what I would like to figure out is why it doesn't work to
lock my screen using light-locker from the command line. Unfortunately
I'm not a huge fan of the visuals of xscreensaver and would like to
stay with light-locker if possible.
Thomas
Post by Thomas Järvstrand
Any pointers would be greatly appreciated!
Not quite what you are asking for, perphaps, but I use xscreensaver to
lock my screen, which I just start in a login-script with the
"-no-splash" option, and lock using a key: ("M-S-l", spawn
"xscreensaver-command -activate")
Best regards,
Adam
--
"Hur långt man än har kommit Adam Sjøgren
är det alltid längre kvar"
_______________________________________________
xmonad mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
_______________________________________________
xmonad mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
--

brandon s allbery kf8nh
***@gmail.com
Paul Fertser
2018-11-24 09:11:59 UTC
Permalink
Hello,
Post by Thomas Järvstrand
having trouble locking my screen using light-locker-command. When calling
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.ScreenSaver was not provided by any .service files"
This means that the application is trying to use an FDO DBus API to do
the actual locking. And indeed, its description says:

It relies on lightdm for locking and unlocking your session via
ConsoleKit/UPower or logind/systemd.
Post by Thomas Järvstrand
I'm running Ubuntu's mini.iso, lightdm, and a simple session file that just
So since you're using lightdm already what you need to figure out is
what package exactly is supposed to be providing
org.freedesktop.ScreenSaver on your system. I hope your distro people
can help figuring that out, the issue seems to be absolutely unrelated
to XMonad.

HTH
--
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:***@gmail.com
Thomas Järvstrand
2018-11-24 18:37:07 UTC
Permalink
Thanks for the reply! I do however believe that it is related to xmonad
somehow, or at least how I'm starting it, since the same command works fine
when I'm in a qtile session. Unfortunately I'm very much a newbie when in
comes to DBus and systemd

Thomas
Post by Paul Fertser
Hello,
Post by Thomas Järvstrand
having trouble locking my screen using light-locker-command. When calling
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.ScreenSaver was not provided by any .service files"
This means that the application is trying to use an FDO DBus API to do
It relies on lightdm for locking and unlocking your session via
ConsoleKit/UPower or logind/systemd.
Post by Thomas Järvstrand
I'm running Ubuntu's mini.iso, lightdm, and a simple session file that
just
So since you're using lightdm already what you need to figure out is
what package exactly is supposed to be providing
org.freedesktop.ScreenSaver on your system. I hope your distro people
can help figuring that out, the issue seems to be absolutely unrelated
to XMonad.
HTH
--
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
Brandon Allbery
2018-11-24 18:40:44 UTC
Permalink
The difference is that xmonad doesn't start a dbus session for you. Look at
the dbus-launch command for how to start a session, depending on how that
session is set up. For example, if you are using .xsession, you'll want to
use the eval version to make it available to everything launched from
.xsession instead of only from xmonad.
Post by Thomas Järvstrand
Thanks for the reply! I do however believe that it is related to xmonad
somehow, or at least how I'm starting it, since the same command works fine
when I'm in a qtile session. Unfortunately I'm very much a newbie when in
comes to DBus and systemd
Thomas
Post by Paul Fertser
Hello,
Post by Thomas Järvstrand
having trouble locking my screen using light-locker-command. When
calling
Post by Thomas Järvstrand
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.ScreenSaver was not provided by any .service files"
This means that the application is trying to use an FDO DBus API to do
It relies on lightdm for locking and unlocking your session via
ConsoleKit/UPower or logind/systemd.
Post by Thomas Järvstrand
I'm running Ubuntu's mini.iso, lightdm, and a simple session file that
just
So since you're using lightdm already what you need to figure out is
what package exactly is supposed to be providing
org.freedesktop.ScreenSaver on your system. I hope your distro people
can help figuring that out, the issue seems to be absolutely unrelated
to XMonad.
HTH
--
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
_______________________________________________
xmonad mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
--
brandon s allbery kf8nh
***@gmail.com
Thomas Järvstrand
2018-11-24 18:54:30 UTC
Permalink
Awesome, thank you a million! It wasn't the actual issue but it pointed me
in the right direction! The problem was that ~/.dbus and its contents were
owned by root and not readable by my user. Deleting the directory solved
the problem.

Thanks again!
Thomas
Post by Brandon Allbery
The difference is that xmonad doesn't start a dbus session for you. Look
at the dbus-launch command for how to start a session, depending on how
that session is set up. For example, if you are using .xsession, you'll
want to use the eval version to make it available to everything launched
from .xsession instead of only from xmonad.
Post by Thomas Järvstrand
Thanks for the reply! I do however believe that it is related to xmonad
somehow, or at least how I'm starting it, since the same command works fine
when I'm in a qtile session. Unfortunately I'm very much a newbie when in
comes to DBus and systemd
Thomas
Post by Paul Fertser
Hello,
Post by Thomas Järvstrand
having trouble locking my screen using light-locker-command. When
calling
Post by Thomas Järvstrand
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.ScreenSaver was not provided by any .service files"
This means that the application is trying to use an FDO DBus API to do
It relies on lightdm for locking and unlocking your session via
ConsoleKit/UPower or logind/systemd.
Post by Thomas Järvstrand
I'm running Ubuntu's mini.iso, lightdm, and a simple session file that
just
So since you're using lightdm already what you need to figure out is
what package exactly is supposed to be providing
org.freedesktop.ScreenSaver on your system. I hope your distro people
can help figuring that out, the issue seems to be absolutely unrelated
to XMonad.
HTH
--
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
_______________________________________________
xmonad mailing list
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
--
brandon s allbery kf8nh
Loading...