Reset the screensaver timer when enabling it with JSON RPC
#1
An user has requested to disable the screensaver when launching MAME and any other app because the screensaver may produce sounds that will overlap the launched app or be CPU intensive. To solve this issue, in the Advanced Launchers I use JSON RPC to disable the screensaver before launching the app:

python:

p_dic = {
'setting' : 'screensaver.mode',
'value' : '',
}
kodi_jsonrpc_dict('Settings.setSettingValue', p_dic)

When the launched app finishes execution I reenable the screensaver again with the previous value it had:

python:

p_dic = {
'setting' : 'screensaver.mode',
'value' : g_screensaver_mode,
}
kodi_jsonrpc_dict('Settings.setSettingValue', p_dic)

The problem is that the screensavers activates shortly after it is reenabled again. I believe that disabling/enabling the screensaver does not reset the timer used to start the screensaver.

Can you please fix this? Alternatively, a JSON RPC function can be created to reset this timer.

EDIT: forgot to mention, this issue has been tested in Leia 18.6.
Reply
#2
This minor bug is still present in 18.7. I bump the thread in the hope some dev will spot it. Thanks!
Reply

Logout Mark Read Team Forum Stats Members Help
Reset the screensaver timer when enabling it with JSON RPC0