I am running Opensuse 11.1 on a mini home server, with a maximum of two client PCs. For 18 or more hours a day, neither client is connected. I would really like some way of having the server run only when needed, and sleep the rest of the time.
I’ve implemented WOL to get the server woken up with no problem, but I would like some mechanism to keep the server awake only when one or more of the clients is connected. Is this a simple thing to do? Could some process intermittently check to see if a client is connected, and put the server to sleep if not? Is that a simple thing to implement ? (I’m not very experienced at scripting). Is there a better / more obvious way to do it?
Thanks for your response. And if clients are still connected, do you know how I can reset the ‘machine idle’ (ie no keyboard/mouse activity) timer to zero? Is this maintained by the desktop or by X-windows?