On Wed, Nov 28, 2018 at 10:56:13AM +0100, Marcus MERIGHI wrote:
> j...@openbsd.org (joshua stein), 2018.11.27 (Tue) 18:12 (CET):
> > On Tue, 27 Nov 2018 at 14:32:50 +0100, Marcus Merighi wrote:
> > > does 'xset(1) dpms 20' activate xidle(1) after 20 seconds?
> > > 
> > > How to repeat:
> > > 
> > > $ xset dpms 20
> > > $ xidle -timeout 180 &
> > > 
> > > With this I am locked out after 20 seconds, not 180.
> > 
> > The DPMS event activates the X screensaver which generates an X 
> > event that xidle is listening for.  xidle then runs its specified 
> > program (or defaults to xlock).
> 
> Thanks for confirming and the explanation of the cause!
> 
> I know you are having piles of experience with OpenBSD on all sorts of
> fancy hardware... what do you do for dimming the display and locking?

This is what I use to give myself a three second grace period between the 
screen going blank and the lock kicking in. The scroll lock led was for 
fun and cosmetics.

$ egrep '^xidle|^xlock' .Xresources  
xidle.*.timeout: 300
xidle.*.delay: 99999
xlock.*.lockdelay: 3
xlock.*.startCmd: xset dpms 3; sleep 3; xset led named "Scroll Lock"
xlock.*.endCmd: xset -dpms; xset -led named "Scroll Lock"

I start xidle in my ~.xsession

/Alesxander

Reply via email to