This plugin for Jellyfin prevents the server from entering sleep mode whenever there are active streams.
At this time, this plugin is not part of the Jellyfin project. Use at your own risk.
-
Jellyfin 10.11: Go to Administration -> Dashboard -> Plugins, then click Manage Repositories on the top right.
- The option to add third-party repositories exists in earlier versions of Jellyfin as well, but the way to get there can be slightly different.
-
Click New Repository, enter some name like Prevent Sleep and add the following URL:
https://raw.githubusercontent.com/jonschz/jellyfin-plugin-preventsleep/refs/heads/main/manifest.json
-
Close the window and search for Prevent Sleep. You should then find the plugin. Click on it and install an appropriate version.
- You probably want to install the latest version unless you are running a pretty outdated version of Jellyfin; see also the details on the installation page and in the next paragraph.
Compiled binaries can be downloaded under Releases. Note that the most recent release only works with Jellyfin 10.9 or newer, and Jellyfin does not automatically update itself. If you run into issues, check your Jellyfin version first.
To install the compiled binary, download the .dll, go to your plugin folder, create a subfolder Jellyfin.Plugin.PreventSleep, and paste the .dll inside. After a restart of Jellyfin, the plugin should be enabled.
-
Only Jellyfin Server running on Windows and Linux is supported. In particular, this plugin will not work on MacOS, or Jellyfin docker containers (regardless of the host OS).
- On Linux, additional setup may be required. Please look at the Linux-specific documentation.
-
If the server runs Windows and supports Modern Standby (which applies to the vast majority of non-ancient Windows laptops), this plugin temporarily creates a Power Scheme to reliably prevent sleep while streaming. If this power scheme lingers after terminating Jellyfin, it can be deleted manually. See the Windows-specific documentation.
Please don't hesistate to report issues if you find any.
Every kind of help is welcome! Feel free to test the plugin, report issues, or open a pull request.
To build this plugin yourself, follow e.g. these steps. For debugging, see this manual.
This plugin's code and packages are distributed under the GPLv3 License. See LICENSE for more information.