Package: xprintidle Version: 0.2-4 Severity: normal --- Please enter the report below this line. --- some of the environment info is wrong. Running i386 squeeze in a ltsp nfs mounted environment that can not send email.
Working on a script to shut down ltsp terminal after a given idle time. This script is called by cron ever 10 minutes: #!/bin/bash #install xprintidle cron #add cron entry to lts.conf export DISPLAY=:7 export XAUTHORITY=`ps -ef|grep xinit |grep -v grep|cut -d" " -f 26` #`grep XAUTHORITY /var/log/ldm.log` # time is in miliseconds #90 minutes 90*60*1000 5400000 idletime=`/usr/bin/xprintidle` /bin/date +%T >> /tmp/idletime echo $idletime >> /tmp/idletime if (( $idletime > 5400000 )) ; then /sbin/shutdown -h now; fi ........................................................ Some of the debugging tmp file: 13:30:01 74472 13:40:02 125794 13:50:01 2525087 14:00:01 21486 14:10:01 2421775 14:20:01 12377 14:30:01 573954 14:40:01 25396 14:50:02 296359 15:00:01 2695648 If we look at 14:40:01 to 14:50:02 2695648 - 296359 = 2,399,289 ms This converts to 39.988 minutes of additional idle time in a 10 minute period. Simple tests look OK. root@ws-1-74:~# xprintidle ;sleep 10; xprintidle 2019311 2029552 let me know any additional info is needed. John McMonagle --- System information. --- Architecture: amd64 Kernel: Linux 3.2.0-0.bpo.1-amd64 Debian Release: 6.0.4 500 testing fondy.advocap.org 500 stable-updates ftp.debian.org 500 stable www.debian-multimedia.org 500 stable security.debian.org 500 stable ftp.us.debian.org 500 stable dl.google.com 200 squeeze-backports backports.debian.org --- Package information. --- Depends (Version) | Installed =======================-+-=========== libc6 (>= 2.2.5) | 2.11.3-3 libx11-6 (>= 0) | 2:1.3.3-4 libxext6 (>= 0) | 2:1.1.2-1 libxss1 | 1:1.2.0-2 Package's Recommends field is empty. Package's Suggests field is empty. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org