User Tools

Site Tools


doc:appunti:software:kodi_addon_disable_screensaver

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:appunti:software:kodi_addon_disable_screensaver [2023/05/20 19:24] – [System settings] niccolodoc:appunti:software:kodi_addon_disable_screensaver [2023/05/20 19:29] (current) – [How to disable the screensaver from a Kodi add-on] niccolo
Line 5: Line 5:
 Writing the add-on I faced the problem to disable the screensaver during image playback. It turned out that on the internet you find several examples, which are sometimes confusing and not working. In this page I hope to explain all the possibilities offered by **Kodi 19 Matrix**. Writing the add-on I faced the problem to disable the screensaver during image playback. It turned out that on the internet you find several examples, which are sometimes confusing and not working. In this page I hope to explain all the possibilities offered by **Kodi 19 Matrix**.
  
-===== JSON RPC =====+Before Kodi 19 Matrix the only way to disable the screensaver was to change settings via the JSON RPC API, starting with version 19 it is possible (and simpler) to call a built-in function. 
 + 
 +===== Using JSON RPC =====
  
 There are several Kodi settings related to the screensaver, screen dimming and power saving. From the Python code of the add-on it is possible to read each setting and change its value. Generally it is necessary to read the current settings when the add-on is started, change the values if required and restore the previous values on add-on exit. There are several Kodi settings related to the screensaver, screen dimming and power saving. From the Python code of the add-on it is possible to read each setting and change its value. Generally it is necessary to read the current settings when the add-on is started, change the values if required and restore the previous values on add-on exit.
Line 59: Line 61:
   * **[[https://forum.kodi.tv/showthread.php?tid=354784|Toggle Screensaver on/off through JSON-RPC?]]**   * **[[https://forum.kodi.tv/showthread.php?tid=354784|Toggle Screensaver on/off through JSON-RPC?]]**
   * **[[https://kodi.wiki/view/JSON-RPC_API|Kodi JSON RPC API]]**   * **[[https://kodi.wiki/view/JSON-RPC_API|Kodi JSON RPC API]]**
 +  * **[[https://xbmc.github.io/docs.kodi.tv/master/kodi-base/index.html|Kodi Documentation]]** (current)
 +  * **[[https://codedocs.xyz/w3tech/xodi/index.html|Kodi Documentation]]** (snapshot of version 19.0)
  
doc/appunti/software/kodi_addon_disable_screensaver.1684610680.txt.gz · Last modified: 2023/05/20 19:24 by niccolo