4 ms·
Circadian – Suspend-on-Idle Daemon for GNU/Linux Power Management
- LanternLight83 4y agoAwesome 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...).
- morsch 4y agoStill 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.
- viraptor 4y agoIt 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?
- morsch 4y agoOn 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.
- deleted 4y ago[deleted]
- goodpoint 4y agoThis is done already in various mobile Linux distributions.
- goombacloud 4y agoFor 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).
- jacooper 4y agoNow if only the home server can wake it self up on a web request...
- flas9sd 4y agoyes, 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 https://github.com/sameerdhoot/wolweb
- jacooper 4y agoI 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.
- jacooper 4y agoApparently its possible with Openresty https://serverfault.com/questions/948283/from-nginx-wake-another-server-and-redirect-request-to-it https://serverfault.com/questions/948283/from-nginx-wake-ano... And Caddy using a plugin https://github.com/dulli/caddy-wol https://github.com/dulli/caddy-wol