LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 08-13-2012, 02:42 AM   #1
Arcosanti
Member
 
Registered: Apr 2004
Location: Mesa, AZ USA
Distribution: Slackware 13.37 kernel 2.6.39 gcc 4.5.2
Posts: 155

Rep: Reputation: 8
xfce4 power management not locking the screen during suspend/hibernate.


This looks like a well known bug in xfce4 where the screen is not locked during a suspend and hibernate resume, even though the option is checked. How can I go about getting the screen to lock when doing one of these two processor states as a work around? This is a Dell Latitude D400 laptop.
 
Old 08-13-2012, 03:20 AM   #2
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,517

Rep: Reputation: 90
I'm not at a Slackware box right now, but two ideas come to my mind.
1) create a bash script that calls both ("xscreensaver-command --lock" and "pm-suspend" I think for example) and create a starter or a key combination for it to run. May require that you enable a normal user to call the latter via sudo.
2) hack pm-suspend and pm-hibenate. Those are shell scripts AFAIR. And AFAIK they can be expanded by hooks, but I never fiddled around with that. So I guess it could be possible to call xscreensaver-command --lock by creating a hook file for it.

Could not check the commands right now, but I hope it is helpful to you.
 
Old 08-15-2012, 03:12 AM   #3
Arcosanti
Member
 
Registered: Apr 2004
Location: Mesa, AZ USA
Distribution: Slackware 13.37 kernel 2.6.39 gcc 4.5.2
Posts: 155

Original Poster
Rep: Reputation: 8
I've actually tried to do the hook thing and have had no luck in getting it to work. I've seen some posts on the net in various places suggesting that XAthority might have something to do with it. I have no idea of what that is or how to deal with it.
 
Old 08-15-2012, 09:36 PM   #4
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware, OpenBSD, FreeBSD
Posts: 728

Rep: Reputation: 168Reputation: 168
Check out xlock as an alternative.
 
Old 08-18-2012, 10:25 PM   #5
Arcosanti
Member
 
Registered: Apr 2004
Location: Mesa, AZ USA
Distribution: Slackware 13.37 kernel 2.6.39 gcc 4.5.2
Posts: 155

Original Poster
Rep: Reputation: 8
Sorry for the delay in replying, I had some stuff to take care of that took priority. I already am trying this with xlock. It works just fine in an X terminal but not in a power management script. As previously stated XAuthority appears to be the culprit.

Last edited by Arcosanti; 08-18-2012 at 10:26 PM.
 
Old 08-26-2012, 07:33 PM   #6
Arcosanti
Member
 
Registered: Apr 2004
Location: Mesa, AZ USA
Distribution: Slackware 13.37 kernel 2.6.39 gcc 4.5.2
Posts: 155

Original Poster
Rep: Reputation: 8
Well my screen is now locking during suspend and hibernate. It looks like the problem was related to this other I problem I was having and not XAuthority after all:

http://www.linuxquestions.org/questi...ot-4175423933/
 
  


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
gnome-power-manager Suspend / Hibernate problem Robhogg Debian 1 11-04-2008 05:51 PM
Hibernate / Suspend Not Working - Gnome Power Manager ls37 Linux - Newbie 5 12-30-2007 01:14 PM
Power Saving Modes (Hibernate vs Suspend) carlosinfl Linux - General 3 06-29-2007 09:19 AM
hibernate, suspend, is it safe to unplug mains power when battery in? lugoteehalt Linux - Laptop and Netbook 8 03-08-2007 07:58 AM
Screen saver/ machine locking up power management proiblem? lesleyb Suse/Novell 0 03-24-2006 01:48 AM


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

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