I have a computer that is only used some of the time, and I was was wondering if there was a way to have it turn itself off after a period of inactivity.
Here's the tricky part, if I was just thinking about having it turn itself off when the GUI is idle then I think it would be significantly easier, but I'm trying to make sure I don't cut anyone off who is actively using the machine via SSH as well. The computer in question is Debian 5.0.
Is there a way of detecting if the machine is idle, as in nobody using the GUI and nobody is using the machine via SSH? If an SSH connection is open, but is not actively being used, then the computer should consider that idle.