2025-04-27, 06:40 AM
To Prevent Stop Inhibit Sleep Suspension:
For windows try https://github.com/jonschz/jellyfin-plugin-preventsleep by @jonschz (Windows ONLY)
I have created a Linux application to prevent the Jellyfin server from suspending whilst a user is streaming a video.
Suspend the server after streaming depending on the inactivity timeout value and user inputs.
https://github.com/Kwakers01/Jellyfin-Inhibit-Sleep (For Linux)
Please feel free to test, add code (e.g. ssh/vnc detection), I have puts lots of comments in the code, configured logging and testing (on/off). I will try to look at ssh and vnc when I get my server built (tested on laptop).
Feel free to raise issues if needed, I may not be able to fix them but I will have a go and try to help, other users may try to help too.
I hope people find this useful.
To wake up the PC/Server you have to configure "wake-up on lan" or "wake-up on wireless lan" if your hardware supports it (which in 2024/2025 most do) on your PC/Server. You can then use a WOL client on your phone or laptop (or possibly streaming stick) to wake up the PC/Server.
WOL Clients I use:
Linux : gWakeOnLAN from the Linux Mint software manager.
Android : "Wake On Lan"
Apple : "RemoteBoot WOL".
All of these will wake up my Desktop PC (currently running Windows 10) in an upstairs room.
I use https://github.com/jonschz/jellyfin-plugin-preventsleep by @jonschz (Windows ONLY) to stop the windows desktop from sleeping whilst streaming.
I need to move it to Linux which is why I have created this application. There was a quick hack by @txhammer68, but it did not include preventing sleep if the OS was on the logon screen.
From what I read a while back, Jellyfin developers will not add a wol client to the jellyfin app. I believe the plex client has it, but not sure why Jellyfin clients don't. With the price of electric going up and modern pc's/laptops able to support running Jellyfin Server (e.g. memory size, processor and disk size), more people are just using an old laptop/pc to run JS. For the 2-4hrs a day/couple of days or so they use it, they want to be able to suspend it and wake it up after the 20-22hrs/days it is suspend. They don't want to have to have it running 24x7 when it is technically possible to suspend and wake it and has been for years.
For windows try https://github.com/jonschz/jellyfin-plugin-preventsleep by @jonschz (Windows ONLY)
I have created a Linux application to prevent the Jellyfin server from suspending whilst a user is streaming a video.
Suspend the server after streaming depending on the inactivity timeout value and user inputs.
https://github.com/Kwakers01/Jellyfin-Inhibit-Sleep (For Linux)
Please feel free to test, add code (e.g. ssh/vnc detection), I have puts lots of comments in the code, configured logging and testing (on/off). I will try to look at ssh and vnc when I get my server built (tested on laptop).
Feel free to raise issues if needed, I may not be able to fix them but I will have a go and try to help, other users may try to help too.
I hope people find this useful.
To wake up the PC/Server you have to configure "wake-up on lan" or "wake-up on wireless lan" if your hardware supports it (which in 2024/2025 most do) on your PC/Server. You can then use a WOL client on your phone or laptop (or possibly streaming stick) to wake up the PC/Server.
WOL Clients I use:
Linux : gWakeOnLAN from the Linux Mint software manager.
Android : "Wake On Lan"
Apple : "RemoteBoot WOL".
All of these will wake up my Desktop PC (currently running Windows 10) in an upstairs room.
I use https://github.com/jonschz/jellyfin-plugin-preventsleep by @jonschz (Windows ONLY) to stop the windows desktop from sleeping whilst streaming.
I need to move it to Linux which is why I have created this application. There was a quick hack by @txhammer68, but it did not include preventing sleep if the OS was on the logon screen.
From what I read a while back, Jellyfin developers will not add a wol client to the jellyfin app. I believe the plex client has it, but not sure why Jellyfin clients don't. With the price of electric going up and modern pc's/laptops able to support running Jellyfin Server (e.g. memory size, processor and disk size), more people are just using an old laptop/pc to run JS. For the 2-4hrs a day/couple of days or so they use it, they want to be able to suspend it and wake it up after the 20-22hrs/days it is suspend. They don't want to have to have it running 24x7 when it is technically possible to suspend and wake it and has been for years.