/srv/irclogs.ubuntu.com/2014/07/15/#ubuntu-gnome.txt

=== prth|away is now known as |away
=== |away is now known as prth
picselhi 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:35
picselI already checked if in dconf under org.gnome.desktop.screensaver the key "ubuntu-lock-on-suspend" is true10:36
picseloh, i forgot: I'm using Ubuntu Gnome 14.0410:38
darkxstpicsel, suspend is handled by logind these days10:43
darkxstand the "ubuntu-lock-on-suspend" is handled within gnome-shell, so won't be applied from your shortcut10:44
picselthanks! 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:49
darkxstpicsel, 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:53
picsel_i tried it out and it seems, that it is not needed. So: Thanks for your help! Bye!10:59
=== prth is now known as prth|away

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!