LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 10-22-2011, 05:26 AM   #1
sunnieside-up
Member
 
Registered: Aug 2011
Distribution: Debian
Posts: 68

Rep: Reputation: Disabled
pm-utils does not lock screen


Hi guys,

I'm running Arch linux, and using pm-utils to suspend. I have GNOME and XFCE installed, and under the XFCE cannot get the screen to lock when I suspend. I've tried putting scripts in /etc/pm/sleep.d, and they look like this:

Code:
#!/bin/bash

case "$1" in
hibernate|suspend)
xflock4
sleep 5
;;
*) exit $NA
;;
esac
But the screen won't lock! I've tried putting commands like /sbin/shutdown -h 0 into the file, and that successfully shuts down the computer if it tries to sleep, so the script is running, but it just won't lock my screen! Can anyone help me? Thanks!
 
Old 10-23-2011, 06:55 AM   #2
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
Does xflock4 run correctly on its own from the command line?

This is a Debian bug report but it may apply to any system with Xfce and gnome: #642551 - xflock4 does not lock the screen using gnome-screensaver - Debian Bug report logs
 
  


Reply



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
Disable lock session (lock screen) when switch user in KDE 4.x Murz Linux - Desktop 4 12-01-2010 08:28 AM
cannot access to any of gnome systems utils except synaptic and the welcome screen ap christian130 Debian 2 08-30-2009 10:24 AM
Num lock OFF and Caps & Screen Lock ON at Linux startup. Reversing? peteyperson Linux - Newbie 2 02-28-2009 11:44 AM
GDM "Lock screen" item fails to lock down. Swan1 SUSE / openSUSE 9 02-03-2009 12:00 AM
How to disable Lock Screen when close laptop screen? amosbatto Linux - Laptop and Netbook 2 01-16-2006 11:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 05:51 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration