doc:appunti:software:kodi_addon_disable_screensaver
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
doc:appunti:software:kodi_addon_disable_screensaver [2023/05/20 17:09] – [How to disable the screensaver into a Kodi add-on] niccolo | doc:appunti:software:kodi_addon_disable_screensaver [2023/05/20 19:26] – [Web References] niccolo | ||
---|---|---|---|
Line 9: | Line 9: | ||
There are several Kodi settings related to the screensaver, | There are several Kodi settings related to the screensaver, | ||
- | Into the add-on code you can use the Python function **xbmc.executeJSONRPC()** to communicate with Kodi itself, using the [[https:// | + | Into the add-on code you can use the Python function **xbmc.executeJSONRPC()** to communicate with Kodi itself, using the [[https:// |
^ powermanagement.displaysoff | ^ powermanagement.displaysoff | ||
^ screensaver.mode | ^ screensaver.mode | ||
^ screensaver.time | ^ screensaver.time | ||
- | ^ screensaver.usedimonpause | + | ^ screensaver.usedimonpause |
<code python> | <code python> | ||
Line 40: | Line 40: | ||
json_rpc = json.loads(xbmc.executeJSONRPC(json.dumps(command))) | json_rpc = json.loads(xbmc.executeJSONRPC(json.dumps(command))) | ||
</ | </ | ||
- | ===== System settings | + | ===== Using a built-in function |
+ | |||
+ | There is another way to disable the screensaver in Kodi: it is a [[https:// | ||
+ | |||
+ | <code python> | ||
+ | # Prevent any screensaver to start. | ||
+ | xbmc.executebuiltin(' | ||
+ | |||
+ | # ... Add-on executes its job... | ||
+ | |||
+ | # Restore the screensaver default behaviour. | ||
+ | xbmc.executebuiltin(' | ||
+ | </ | ||
===== Web References ===== | ===== Web References ===== | ||
Line 47: | Line 59: | ||
* **[[https:// | * **[[https:// | ||
* **[[https:// | * **[[https:// | ||
+ | * **[[https:// | ||
+ | * **[[https:// | ||
doc/appunti/software/kodi_addon_disable_screensaver.txt · Last modified: 2023/05/20 19:29 by niccolo