LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 07-02-2012, 12:37 PM   #1
vayira
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 https://bugzilla.xfce.org/show_bug.cgi?id=6019 and here http://mail.xfce.org/pipermail/xfce/...ry/028398.html there is a suggestion for a workround.

Following those instructions I created this script
Code:
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
vayira
LQ Newbie
 
Registered: Dec 2009
Distribution: ubuntu
Posts: 24

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

Code:
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

Code:
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.

-
 
  


Reply


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


All times are GMT -5. The time now is 12:48 AM.

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