How does screenblank(1) calculate idle time

Mike Raffety sunloop!oconnor!porsche!miker at central.sun.com
Sat Apr 22 18:08:23 AEST 1989


screenblank checks BOTH the access and modify time on the devices (usually
/dev/kbd and /dev/mouse).  When an event occurs on either, a read(2) is
done to get the data, and the access time (ls -lu) is updated.
screenblank simply watches to see when those times get "old".



More information about the Comp.sys.sun mailing list