Home

mouseup

Back



I probably could have come up with a better name if I thought about it a little longer but I never have to run this script manually anyway.

Our server will shut down if there are no clients up but there are times when people forget to shut down their workstation so I then have a server and a workstation warming up the house and burning electricity for no good reason. This script is my answer to that problem.

Mouseup is started at boot and sleeps for given periods of time after which it checks to see if there has been any mouse activity. If the mouse has not moved and Codeine and Kaffeine are not up, it is assumed that nobody is on the desktop or watching a video and the box will shutdown.

You can find mouseup here. There is more information on running it behind the comments at the top of the script


Below is a screenshot made showing the output of mouseup in /var/log/mouseup in mcedit running in a ssh session on a client. Note that after the last check was made the mouse output was the same as at the previous check, and that Codeine and Kaffeine were both down. I was lucky to be there just when the ssh session terminated as the box shut down.


mouseup.jpg
Top