Hacker News new | ask | show | jobs
by goombacloud 1224 days ago
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).