Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
screenlocking on suspend (s2ram)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3685

PostPosted: Wed Sep 13, 2017 11:11 am    Post subject: screenlocking on suspend (s2ram) Reply with quote

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
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Wed Sep 13, 2017 11:42 am    Post subject: Reply with quote

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
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3685

PostPosted: Sat Sep 16, 2017 6:36 am    Post subject: Reply with quote

Thanks for your reply. How are you getting it linked with suspend?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum