-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework OS screen saver handling #12342
Conversation
|
||
uint32_t sdlFlags = 0; | ||
|
||
#if defined(TARGET_DARWIN_OSX) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
CLog::LogF(LOGNOTICE, "Setup SDL"); | ||
|
||
/* Clean up on exit, exit on window close and interrupt */ | ||
std::atexit(SDL_Quit); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Rebased on #12353 so it builds on all platforms (hopefully) |
OSX built an older commit |
Build looks OK now - opinions? |
+1 |
please rebase on master to get rid of the commits from #12353 in this PR |
This isn't C
This changes the rules and functionality of the OS screen saver inhibition to be more in line in with how modern desktop environments work. Constant resetting of the screen saver is not necessary usually. If it is, the platform-specific backend will have to implement it. On desktop machines (that have an OS screen saver), the default should be to use that. If the user then chooses to activate the Kodi screen saver, this should completely override the OS screen saver as far as permitted by the desktop environment. During video playback etc., the OS screen saver must always be inhibited regardless of whether the Kodi screen saver is enabled. In embedded environments (that do not have an OS screen saver), the default should be to use the Kodi screen saver.
rebased |
jenkins build this please |
2 similar comments
jenkins build this please |
jenkins build this please |
This change seems to be causing Kodi on my Ubuntu 16.04 system to kill the screen after a few minutes. This never happened before. I didn't change anything about my OS or Kodi settings other than upgrading to a newer nightly. |
What exactly do you mean it "kills" your screen? |
Replace the WinSystemBase OS screen saver interface
Description
Current Kodi OS screen saver handling is not adapted to modern desktop windowing systems (which mostly use inhibitors instead of simulated activity) and it's unclear what it's trying to achieve. Some options might have been lost in time, especially on X11. New approach discussed with @FernetMenta:
screensaver.xbmc.builtin.dim
otherwise (embedded systems)from yol#7 (comment)
Motivation and Context
I looked into screen saver handling for the Wayland windowing implementation and noticed while reading the OSX and X11 code that the current state is quite inconsistent.
How Has This Been Tested?
X11 backend tested with various setting combinations.
OSX is untested and really not my area of expertise, so any feedback would be much appreciated.
Screenshots (if appropriate):
Types of change
Checklist: