(2023-05-29, 07:41)DaVu Wrote: I can confirm your problem and unfortunately I don't have a solution for you. It seems to be a problem on the latest Kodi master.
The post above was written in 2020. Kodi 18.x was the stable release at that time. Maybe I tested with Kodi 19 master compiled on my own but, tbh, I can't remember anymore.
I am currently checking the skin Titan mod for a Nexus update.
I noticed that the sreensaver is not deactivated when listening to music.
I never noticed it because I always have a visualisation + fanart background when listening to music, but when I switch to fanart background only, the sreensaver is activated when listening to music.
It should be controlled by the "script.skin.helper.service", but it doesn't work anymore.
Here is the corresponding code:
python:
def check_screensaver(self):
'''Allow user to disable screensaver on fullscreen music playback'''
if getCondVisibility(
"Window.IsActive(visualisation) + Skin.HasSetting(SkinHelper.DisableScreenSaverOnFullScreenMusic)"):
if not self.screensaver_disabled:
# disable screensaver when fullscreen music active
self.screensaver_disabled = True
screensaver_setting = kodi_json('Settings.GetSettingValue', '{"setting":"screensaver.mode"}')
if screensaver_setting:
self.screensaver_setting = screensaver_setting
kodi_json('Settings.SetSettingValue', {"setting": "screensaver.mode", "value": None})
log_msg(
"Disabled screensaver while fullscreen music playback - previous setting: %s" %
self.screensaver_setting, xbmc.LOGINFO)
elif self.screensaver_disabled and self.screensaver_setting:
# enable screensaver again after fullscreen music playback was ended
kodi_json('Settings.SetSettingValue', {"setting": "screensaver.mode", "value": self.screensaver_setting})
self.screensaver_disabled = False
self.screensaver_setting = None
log_msg(
"fullscreen music playback ended - restoring screensaver: %s" %
self.screensaver_setting, xbmc.LOGINFO)
I have tested with kodi versions (18.9, 19.5,20.1). I assume that this code worked until kodi 17.
But the code doesn't seem to work anymore.
It would of course be good to have this setting directly in kodi settings.
I found this function "screensaver.disableforaudio" in kodi, that should probably be the function I am missing.