Of course I don’t expect there to be a cross platform solution, but I would love to have some very minimal C programs/scripts that my app can spawn to inform the OS to stay awake.Īny ideas? How to solve this problem? Solution no. (It is not running on a server, but just a normal user’s PC – something like a torrent client.) I would like the software to signal to the OS to keep the machine awake (prevent it from going into sleep mode) while it is active. I have a piece of server-ish software written in Java to run on Windows and OS X.