Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 07-02-2012, 12:37 PM   #1
LQ Newbie
Registered: Dec 2009
Distribution: ubuntu
Posts: 24

Rep: Reputation: 0
get xfce 4.6.2 to lock screen on suspend

I'm using debian 6.0.2 which comes with xfce 4.6.2.

If I suspend the system the screen lock does not activate even though I have this option selected in the power manager.

This is documented here and here there is a suggestion for a workround.

Following those instructions I created this script
dbus-send --system --print-reply --dest=org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager.sleep

dbus-send --system --print-reply --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend
It suspends the system (instantly!) but doesn't lock the screen. Any suggestions?
Old 07-02-2012, 12:46 PM   #2
LQ Newbie
Registered: Dec 2009
Distribution: ubuntu
Posts: 24

Original Poster
Rep: Reputation: 0
Ah I also get the following error...

Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.NetworkManager was not provided by any .service files
Is it necessary to stop the network service before suspending?

I've now changed the script to

xscreensaver -nosplash
xscreensaver-command -lock

dbus-send --system --print-reply --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend
That does work, but I'm left with the doubt about the network.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No screen after suspend in -current using XFCE Kreezii Slackware 3 06-27-2012 01:34 PM
Lock screen (requiring password to unlock) when resuming from suspend theoldman Linux - Laptop and Netbook 2 12-17-2009 09:35 PM
Xfce screen lock: Not staying locked DaFrEQ Linux - Desktop 2 03-24-2009 09:50 AM
lock screen before suspend with power button BCarey Slackware 13 11-27-2007 11:04 PM
suspend seems to only lock the screen ??? sirmonkey Fedora 2 03-04-2007 09:10 PM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 06:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration