Since my other computer is a datacenter, and my laptop is just a
glorified vt100, I figured how to autosuspend it when it's idle for some
time.
I already at xidle(1) in my .xsession to start xlock(1). I then
discovered -startCmd in xlock(1).
I know have this:
$ cat xlock_zzz
#! /bin/sh
exec /usr/X11R6/bin/xlock -startCmd "/bin/sleep 300 && /usr/sbin/zzz"
and this in my .xsession:
xidle -program /home/florian/bin/xlock_zzz -timeout 300 &
So after 5 minutes xidle starts xlock and 5 minutes after that my laptop
autosuspends. If I unlock the laptop before 5 minutes expire the sleep
gets killed and the laptop doesn't suspend.
--
I'm not entirely sure you are real.
No comments:
Post a Comment