Looking to make my PC stay awake when Plexamp is playing

I’m using Plexamp (v4.12.4) on my HTPC (Arch Linux, x84_64, Linux Kernel 6.17.7-arch1-1), and when I leave it playing, my PC’s sleep timer is not interrupted, meaning playback cuts off after 30 minutes, barring picking up the couch keyboard and hitting a key or wiggling the mouse. It would be really great not to have to do that.

I’ve gotten my setup automated to a point where I can wake the PC and TV and start playing with just my phone, but I have to keep waking it and hitting play. I’m exploring options for making a script that will look for media playing and block sleep (I know this can be done as I’ve seen games and browser-based media block sleep), but I’m notoriously not a programmer and I truly am not best positioned to make a fix myself.

The best thing, of course, would be if Plexamp got an update which blocked sleep during playback.

My PC just went to sleep in the middle of a song so I’ll go wake it now.

Just a thought. Where is the server? Different system? PC or linux box?

If its a WinPC. Wake on Lan settings in your computer bios might help. Depending on the mobo/system sometimes its a bios option sometimes not. And then depending on the operating system you can go into the WinPC settings and tell it to wake on network activity. And do the safety things, firewall etc…

Separate server, Windows PC. The server is always on and awake, it’s the client I have an issue with.

I actually use Wake-on-LAN to wake the HTPC from my phone via Home Assistant but playback pauses when the sleep timer kicks in, I’d really rather just find a way to suppress the timer based on media playback

Plexamp can cache a large number of files so your computer is basically idle during playback. Try reducing the cache so it doesn’t cache more than 30 minutes.