|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
Thinkpad x220 resume not locking screen
Hi,
I'm running OpenBSD 5.7 and Gnome3 on my Thinkpad x220 and everything is working great with one small exception: When I open my laptop after it has been suspended, the screen is not locked. Is there something I need to configure to get this to lock on lid close so that when it opens I am prompted for my password just as if the screen locked normally via a timeout? Thanks in advance. |
|
|||
Thanks for the suggestion. I looked at the apmd manpage and it was pretty clear. I created /etc/apm and put a file called "resume" in there with the following contents:
dbus-send --type=method_call --dest=org.gnome.ScreenSaver /org/gnome/ScreenSaver \ org.gnome.ScreenSaver.Lock echo "resuming..." >>/tmp/results.txt I marked the file as executable and have verified that the dbus-send command does lock the screen. I can see that /tmp/results.txt is getting appended to so I know it's running. Any suggestions? I tried renaming the file to suspend and am getting the same results. Sorry to be such a n00b. I'd be fine even with a way to configure Gnome to lock on resume from suspend. It just seems silly to have an encrypted drive and have opening the lid when I suspend take me right to the desktop. Last edited by bceverly; 24th May 2015 at 11:01 PM. |
|
||||
I have the following within the $HOME/{.xinitrc,.xsession} script. These are the same file, linked with ln(1) in the event I manually start X or use xdm(1).
Code:
xidle -delay 3 -sw -program "/usr/X11R6/bin/xlock -mode atunnels" & Code:
pkill -USR1 xidle sleep 2 |
|
|||
Quote:
|
|
||||
Both script fragments show in this thread were excerpts from longer scripts. I'm sorry if that added any confusion.
I used hash bangs (or, as Wikipedia calls them, shebangs) as these are executable shell scripts. Per apmd(8): Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
for all who love suspend/resume | ocicat | OpenBSD General | 2 | 21st October 2013 04:35 AM |
OpenBSD keeps locking up/crashing | unixjingleman | OpenBSD General | 7 | 18th April 2012 02:26 PM |
Error in locking Authority | jerryw | OpenBSD Installation and Upgrading | 4 | 14th November 2009 06:25 PM |
Thinkpad boot screen | Carpetsmoker | Off-Topic | 6 | 21st September 2009 05:11 PM |
Locking a Computer | JMJ_coder | General software and network | 8 | 21st September 2008 03:33 AM |