I am using ubuntu as NAS with Samba connected via Ethernet on my router to organize photos and movies. Automatic suspend is on after 15 minutes idle and it's working fine. It's also working fine when pressing a button to awake or via wol magic packets thru a client. I am using my laptop, 3-4 mobile phones, a tablet, and a pc to save photos and family documents as window or android clients to the server. I connect via wifi to the server for watching movies. The problem is that the server is suspending while I am watching (streaming) a movie. (vlc or kodi). Everything else is working fine! I want the server to suspend when idle and NO network traffic. How to do this?
Installed: ubuntu 18.04.1 lts. Gnome 3.28.2. AMD® Ryzen 3 2200g, 8gm ram, boot:ssd128gb, 3tb toshiba (data and movies)
pm-suspend
to suspend your server. You can set your bios to do a wake on network activities. – Bernard Wei Aug 28 '18 at 21:53