I used to lock screen with this command, but it stopped working recently, probably after update. I'm running VERSION="13.10, Saucy Salamander"
. How can I restore this function?
$ gdmflexiserver method return sender=:1.10 -> dest=:1.97 reply_serial=2
I used to invoke this command with openbox keybinding:
<keybind key="XF86ScreenSaver">
<action name="Execute">
<execute>gdmflexiserver</execute>
</action>
I think it used to work from terminal emulator as well.
UPDATE: To my surprise, it works again. This might be because of system update.
method return sender=:1.10 -> dest=:1.71 reply_serial=2
tty
, and this is for a display manger I couldn't useexport display=..
, I got this error:Not running inside a display manager, XDG_SEAT_PATH not defined
. Also, don't be daft like me and rundm-tool lock
in a terminal when you are logged in ;D – Wilf Jan 19 '14 at 13:45tty
? But with something likeXDG_SEAT_PATH="/org/freedesktop/DisplayManager/Seat0" dm-tool lock
it should work (as the error suggests). (Check your XDG_SEAT_PATH in the gui withecho $XDG_SEAT_PATH
) Though this dm-tool method is kinda broken in my 12.04 as if I lock the screen with it, then switch totty
, then switch back, the screen is unlocked. :D I don't know if this is corrected in 13.10. That's why I said your method is the one and gave an up for it. (Just that method isn't related to lightdm, so maybe the OP is looking for this) – falconer Jan 19 '14 at 13:53dm-tool lock
has no effect, but it can list Seat0 so I guess it should work. – Rumca Jan 19 '14 at 14:09