View previous topic :: View next topic |
Author |
Message |
charles17 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 02 Mar 2008 Posts: 3685
|
Posted: Wed Sep 13, 2017 11:11 am Post subject: screenlocking on suspend (s2ram) |
|
|
How could one combine vlock -na ( package app-misc/vlock ) run as ordinary user with s2ram ( package sys-power/suspend ) so that screenlocking takes place before suspend?
When doing like su -c "s2ram" ; vlock -na then on resume nothing is locked but screen gets locked only some seconds later.
I want the screen locked immediately on resume, preferably directly before suspend. Any idea is much appreciated. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Roman_Gruber Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Wed Sep 13, 2017 11:42 am Post subject: |
|
|
Hi
I use i3wm and I use the following key combo to lock the screen as ordinary user
Code: | bindsym $mod+l exec "xscreensaver-command --lock; sleep 1 && xset dpms force off"
|
the dpms stuff disables the screen backlight, it keeps otherwise turned on. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
charles17 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 02 Mar 2008 Posts: 3685
|
Posted: Sat Sep 16, 2017 6:36 am Post subject: |
|
|
Thanks for your reply. How are you getting it linked with suspend? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|