1

I use my desktop as a file server for music which plays on my Sonos system. Now, after the computer hasn't been in use for time X, it will go to standby/sleep mode and thus, the music will stop. Now I was wondering if there's a way to prevent the computer from going to sleep if let's say a particular bandwith in egress direction is active on eth0?
So that I can keep my sleep settings if the computer is not being used (and no music is playing).

stdcerr
  • 1,080
  • 5
  • 19
  • 36

1 Answers1

0

This has been answered here...

Is there any way to make Ubuntu not to suspend while a download in progress?

Its a program I wrote to sort out the exact same problem and more. In my case I was serving to Kodi and DLNA devices videos, pictures and music; also when doing backups to another server.

It also solves the problem of running a program unattended over a period of time.

Launchpad link here:

https://launchpad.net/keep.awake

DanglingPointer
  • 1,123
  • 1
  • 13
  • 23