{"repo":"bulletmark/sleep-inhibitor","free":true,"listed":false,"github":"https://github.com/bulletmark/sleep-inhibitor","clone":"git clone https://github.com/bulletmark/sleep-inhibitor.git","description":"Program to run plugins to inhibit system sleep/suspend","language":"Python","stars":32,"topics":["sleep","suspend","plex","backup","autosuspend","jellyfin"],"license":null,"category":"self-hosted-apps","readme_excerpt":"SLEEP-INHIBITOR This is a simple program to inhibit sleep/suspend on systemd based Linux systems (or on compatible systems running elogind). Some examples of the default plugins provided are: 1. Plugin to inhibit sleep while any audio is playing. 2. Plugins to inhibit sleep while Plex or Jellyfin media server is serving media server is serving content. 3. Plugin to inhibit sleep while a specified process is running. I use this to prevent sleep while my home backup is running. You can also create your own custom plugins. They are extremely trivial to create as can be seen in the provided examples. A plugin can be created in shell script or any programming language. It must simply return an exit code to indicate whether the system should can be slept/suspended, or not. Sleep-inhibitor runs each plugin at the period you specify (or the default 5 minutes) and checks the result to inhibit sleep or not until at least the next check period. The latest version of this document and code is available at https://github.com/bulletmark/sleep-inhibitor. :warning: Warning : Unfortunately this program is currently somewhat handicapped due to this systemd issue (and/or this GNOME issue). Until this issue is addressed, your system may not automatically [re-]suspend if still idle after it has been inhibited, even though sleep-inhibitor has removed the inhibit. Motivation When looking for a solution for this issue I found the autosuspend package but, in addition to providing plugins, that packag","default_branch":null,"files":null,"tree":[],"storefront":"/r/bulletmark","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bulletmark/sleep-inhibitor/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}