I have made progress, but I still have weirdness: $ cat /home/ashes/bin/xlock.sh #!/bin/sh exec /usr/X11R6/bin/xlock -mode blank -lockdelay 60 -dpmsoff 90 -startCmd 'apm -C' -endCmd 'apm -H' +description
$ cat /home/ashes/.kde/Autostart/startup #!/bin/sh xset m 10,1 1 xidle -area 1 -timeout 900 -program /home/ashes/bin/xlock.sh & $ ls -l /home/ashes/bin/xlock.sh /home/ashes/.kde/Autostart/startup -rwxr-xr-x 1 ashes ashes 89 Jun 2 18:45 /home/ashes/.kde/Autostart/startup -rwxr-xr-x 1 ashes ashes 124 Jun 2 18:37 /home/ashes/bin/xlock.sh I used .kde/Autostart because KDM seems to ignore .xinitrc. xidle(1) is running after I reboot. If I let the system idle for 990 seconds, the blank screen comes up and the monitor turns off, but there is no password lock, and this is the problem. If I run /home/ashes/bin/xlock.sh manually, or if I 'pkill -30 -x xidle', then I do get a password prompt after waiting 60 seconds. xlock seems to ignore the -lockdelay option when it is run from xidle, but the rest of the options are working. Also, when I check /var/log/messages, I see entries for apm -C/H, but apm -C is being run when I tap the keyboard after 990 seconds... apm -C is not being run when xlock starts from xidle. apm -C is starting immediately when xlock is run from pkill or manually. Help please.

