[10:35] <picsel> hi there, i've got a small problem with the lock screen on suspend. I use a shortcut with the command 'dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend' to suspend but the screen isn't locked after wake-up :(
[10:36] <picsel> I already checked if in dconf under org.gnome.desktop.screensaver the key "ubuntu-lock-on-suspend" is true
[10:38] <picsel> oh, i forgot: I'm using Ubuntu Gnome 14.04
[10:43] <darkxst> picsel, suspend is handled by logind these days
[10:44] <darkxst> and the "ubuntu-lock-on-suspend" is handled within gnome-shell, so won't be applied from your shortcut
[10:49] <picsel> thanks! i googled a bit and found out, that this command works: 'dbus-send --print-reply --system --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.Suspend boolean:true' Or is there maybe even a better way?
[10:53] <darkxst> picsel, that is probably right, but you might also need to call org.gnome.ScreenSaver.Lock first (pretty sure that is what happens when suspend through -shell)
[10:59] <picsel_> i tried it out and it seems, that it is not needed. So: Thanks for your help! Bye!