LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   xfce4 power management not locking the screen during suspend/hibernate. (http://www.linuxquestions.org/questions/slackware-14/xfce4-power-management-not-locking-the-screen-during-suspend-hibernate-4175421805/)

Arcosanti 08-13-2012 02:42 AM

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.

titopoquito 08-13-2012 03:20 AM

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.

Arcosanti 08-15-2012 03:12 AM

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.

chess 08-15-2012 09:36 PM

Check out xlock as an alternative.

Arcosanti 08-18-2012 10:25 PM

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.

Arcosanti 08-26-2012 07:33 PM

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/


All times are GMT -5. The time now is 10:55 AM.