On 11/26/18 9:26 AM, Peter Hessler wrote:
> On 2018 Nov 26 (Mon) at 01:18:59 +0000 (+0000), shadrock uhuru wrote:
> :
> :also how do i resume from hibernate or suspend with the screen locked
> :
> :i use i3 and lock the screen with xautolock and i3lock in .i3/config
> :
> :i put i3lock in /etc/apm/resume
> :
> :when i  resume from ZZZ no lock screen appears, i am brought straight
> :to  my desktop
> :
> :shadrock
> :
>
> /etc/apm/resume is ran as root, so you'll need that script to run i3lock
> as your user, or to trigger i3's screenlock mechanism
>
> I have a similar thing enabled on my laptop, but it's in /etc/apm/suspend:
> pkill -USR1 -x xidle
>
>
HI Peter

thanks for the reply


i have removed my resume file

and created a suspend file and linked hibernate to it with the following
in suspend:

#!/bin/sh
pkill -USR1 -x xidle


i also removed the xautolock and i3lock line in .i3/config

and added the following to .xinitrc:

xscreensaver-no-splash &
xidle -program '/usr/X11R6/bin/xlock -mode random' -timeout 300 &

the screen lock now works as expected when resuming the laptop.

thanks

shadrock



Reply via email to