Xlock closes with no password needed after suspend to ram
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Xlock closes with no password needed after suspend to ram
This is a strange one. I recently bought a Thinkpad T42 to replace my old T21. Pretty much the same setup on both with Slack 12.1
I use exactly the same script to suspend to ram which has an xlock statement in it to require a log in in after resuming. This works fine on the T21 but I find on the T42 xlock will allow access to the desktop just by clicking mouse - ie it doesn't ask for a pass. Stranger still, when I try to test this by suspending and resuming straight away it works fine, but when I suspend and leave the laptop off for a while it doesn't work as it should.
Has anyone else found this problem and have any solution or ideas?
Maybe a power management issue, like the suspend event does not trigger the xlock call on the Thinkpad T42 ? I never tried something like this, could you tell how you have configured your suspend system ?
dive@DarkerStar(~/scripts) cat suspendlock
#!/bin/sh
killall -q artsd # need to reload sound system & modules
killall -q xfce-mcs-manager # and xfce wm theme
sync # write to disk just in case
echo -n mem > /sys/power/state # suspend
xlock +nolock # testing +nolock setting
recyclemods # script to rmmod & modprobe sound modules
xfce-mcs-manager # restart xfce wm theme
settime # script to set time from ntp server
aplay ~/sounds/chat2.wav # a little ding to let us know we are back
Added some comments so you can see what does what. I just run this script from xfce menu.
Maybe a power management issue, like the suspend event does not trigger the xlock call on the Thinkpad T42 ? I never tried something like this, could you tell how you have configured your suspend system ?
xlock does run - but password is bypassed. I'm trying out the -/+nolock option at the moment.
What is the output with: cat /sys/power/state on your system ?
(just for checking if mem is available)
Quote:
Originally Posted by dive
Stranger still, when I try to test this by suspending and resuming straight away it works fine, but when I suspend and leave the laptop off for a while it doesn't work as it should.
Could you ellaborate a bit, you mean it doesn't resume after some time ?
Theres nothing wrong with the suspension itself - that works fine - it's just xlock isnt working. I am going to try xscreensaver-command -lock to see if that works.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.