jamulussoftware / jamulus

Jamulus enables musicians to perform real-time jam sessions over the internet.
https://jamulus.io
Other
1k stars 223 forks source link

Turn off screensaver if connected to a server (LXQt) #834

Open ann0see opened 3 years ago

ann0see commented 3 years ago

Status: done for macOS, Linux is missing

If you run Jamulus on Debian 10 under LXQt the screensaver automatically starts if Jamulus is connected to a server. Same problem on macOS (probably BigSur). It should be possible to inform the system that the application is active see the windows docs on this: https://docs.microsoft.com/de-de/windows/win32/api/winbase/nf-winbase-setthreadexecutionstate?redirectedfrom=MSDN

It probably depends on the OS how to manage this.

260

chrisrimple commented 3 years ago

I've experienced a similar issue on MacOS: the screen can go dark (power saver) while Jamulus is running.

Apple > System Preferences > Desktop & Screen Saver > Screen Saver > After After n Minutes

Apple > System Preferences > Energy Saver > Power Adapter > Turn Display Off After n Minutes

ghost commented 3 years ago

Does activating the screen saver actually interrupt the audio in Jamulus? I think that if Jamulus can prevent the screen saver from activating, it should be an option that only affects that instance of Jamulus... The Reason is: Suppose the screen saver option is automatically activated by Jamulus, because it was saved, then you decide to decide to run 'only the Jamulus server. But the server grabs the 'deactivate screen saver setting' leaving you wondering why the screen saver stopped working.

ann0see commented 3 years ago

I think that the screensaver is already not active if you run the server (#260). I haven't tested this yet.

ghost commented 3 years ago

Maybe this screen saver issue needs to thoroughly investigated. Especially if Jamulus needs to have the screen saver disabled for performance reasons. I'm starting to think that Jamulus should leave the screen saver alone... Some other application should deal with it.

ann0see commented 3 years ago

I think it might depend on which state Jamulus is in. So if you're connected to a server the screensaver should not start. But if you're not connected it should still be enabled.

chrisrimple commented 3 years ago

From my own experience on MacOS, the Energy Saver setting is in effect when the Jamulus client is running. On multiple occasions, I have been playing with other musicians on a Jamulus server and had my screen go dark. A click or keypress awakes it, but also requires a login (depends on security settings). If the client is running, it would be nice if it reported to the OS that it's "busy".

pljones commented 1 year ago

Android https://stackoverflow.com/questions/44100627/how-to-disable-screensaver-on-qt-android-app

Desktop https://forum.qt.io/topic/119513/screensaver/3

iOS - not found anything yet...