![]() |
Jellyfin-Inhibit-Sleep for Linux - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Off Topic (https://forum.jellyfin.org/f-off-topic) +--- Forum: General Discussion (https://forum.jellyfin.org/f-general-discussion) +--- Thread: Jellyfin-Inhibit-Sleep for Linux (/t-jellyfin-inhibit-sleep-for-linux) |
Jellyfin-Inhibit-Sleep for Linux - Kwakers - 2025-04-26 I'm not sure if this is where I am supposed to post this so please move to the correct location if needed. 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 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. RE: Jellyfin-Inhibit-Sleep for Linux - JustAnotherDude - 2025-04-27 I have my system set to just never suspend, always on. Does the system wake up and allow jellyfin streaming once it is already asleep? RE: Jellyfin-Inhibit-Sleep for Linux - Kwakers - 2025-04-27 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. |