Hi @
ronie, thanks for the great screensaver!
I want to either press a button on my remote that activates the screensaver (same as "Preview" in Settings / Interface -> Screensaver) or else be able to do it with the JSON-RPC API.
This command (from
this thread) works for the "Dim" screensaver but not this one:
json:
{"jsonrpc":"2.0","method":"GUI.ActivateWindow","id":1,"params":{"window":"screensaver"}}
That returns a standard result of "OK" but my screen goes black and I get a pop-up that reads:
Quote:Screensaver: Picture Slideshow Screensaver
Add-on couldn't be loaded.
An unknown error has occurred.
I then have to hit "OK" twice. The first time clears the black screen and the second dismisses the popup.
My kodi.log contains this in response to that JSON-RPC command:
Code:
2022-01-06 23:20:36.837 T:3018 ERROR <general>: Unable to load /home/watch/.kodi/addons/screensaver.picture.slideshow/default.py, reason: /home/watch/.kodi/addons/screensaver.picture.slideshow/default.py: invalid ELF header
Dismissing the popup generates two more log entries:
Code:
2022-01-06 23:23:19.363 T:3018 ERROR <general>: IAddonInstanceHandler::CreateInstance: screensaver.picture.slideshow returned bad status "Permanent failure" during instance creation
2022-01-06 23:23:19.363 T:3018 FATAL <general>: Screensaver: failed to create instance for 'screensaver.picture.slideshow' and not usable!
I'm not sure why it's complaining about
ELF headers since this is all interpreted code, but if it helps, I am running Ubuntu 20.04 amd64 (fully up to date, plus linux-image-5.13.0-23-generic as my kernel). Kodi's package is 19.3+git20211024.1813-49a04cd6a7-0~focal from team-xbmc's PPA.
The Preview button in settings works just fine, as does waiting for the screensaver to kick in.