hckrnws
Still won't inhibit suspend when I'm streaming video via UPnP, from what I can tell. Too bad. Not that I'm complaining.
Does stuff like this just work with arbitrary third party apps in other operating systems? Ideally, I'd want a control panel with a list of applications that attempt to inhibit suspend, a possibility to override that intent, and perhaps a default policy for new applications.
It should be easy to add new services/ports to the list. Or if you're streaming, maybe your CPU load goes over the threshold anyway?
On a headless server, maybe, but I'd assume an open browser, even idle, will use up more CPU resources than streaming a video file, unless you're doing transcoding.
If it's easy to add a new service, that's nice, though now we're kind of back to the poking a handful of conf files and wafting the smoke of burning sage across your keyboard that the readme alludes to.
Comment was deleted :(
Awesome project! Might be posted because there was that thread about power savings earlier? All I need now is to pick a WAL daemon to run on my raspberry pi (er, it's actually a KVM with access to the POWER button so if I wanted eg. wake-on-stream I'd need to either use WAL anyways or rig something up to use my own trigger...).
For most use cases you can configure autosuspend and always wrap your commands with systemd-inhibit or gnome-session-inhibit. E.g., for an SSH session when starting tmux, or when you start the music player (for GNOME I guess that many players already do register inhibitors only when they play). One could also write a server that registers inhibitors as long as it serves connections (one could also use systemd socket activation and wrap the server in systemd-inhibit and terminate the server when done).
Now if only the home server can wake it self up on a web request...
yes, homeservers do not need to run at all times. I solve this by being able to ssh into the router from WAN via wireguard and sending out wake-on-LAN magic packets.
There are also webuis that can do this for you https://github.com/sameerdhoot/wolweb
I think a better idea would be a proxy that will send a wake-on-lan signal if the end point hasn't been connected to in a certain time frame.
Apparently its possible with Openresty
https://serverfault.com/questions/948283/from-nginx-wake-ano...
And Caddy using a plugin
This is done already in various mobile Linux distributions.
I'd be interested to learn a bit more about this. What are you referring to?
You mean this? https://i.stack.imgur.com/XriCj.jpg Anyway a DE independent power management tool sounds nice.
Crafted by Rajat
Source Code