Kodi Community Forum
Changing xbmc resolution with json makes xbmc hangs - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+---- Forum: JSON-RPC (https://forum.kodi.tv/forumdisplay.php?fid=174)
+---- Thread: Changing xbmc resolution with json makes xbmc hangs (/showthread.php?tid=200052)



Changing xbmc resolution with json makes xbmc hangs - phate89 - 2014-07-16

Hi. I'm trying to switch my screen resolution through xbmc to add this option to a python script.
I obtain the allowed resolutions with this query:
Code:
{"jsonrpc":"2.0","method":"Settings.getSettings", "params":{"filter":{"section":"system","category":"videoscreen"}},"id":1}
And i use the value i wanted in this request of setting change:
Code:
{"jsonrpc":"2.0","method":"Settings.SetSettingValue", "params":{"setting":"videoscreen.resolution","value":27},"id":1}

But when i set the resolution with the 2nd query the os (windows) switch to the right resolution but xbmc hangs and doesn't respond anymore. If the video is playing the audio keeps playing. I had to manually kill the process.
If i select the same resolution from settings windows it works well.
What i'm doing wrong?
Here's a log:
http://xbmclogs.com/show.php?id=247964


RE: Changing xbmc resolution with json makes xbmc hangs - phate89 - 2014-07-17

Actually it happens only with "fake fullscreen" option enabled. with true fullscreen it works.
It's probably a problem of the confirmation dialog of the resolution change that xbmc isn't able to show in windowed mode from json rpc... But it's still a bug


RE: Changing xbmc resolution with json makes xbmc hangs - Montellese - 2014-07-17

This is a known issue. The code to switch resolution/display/refreshrate is so complex that it breaks everytime someone tries to change something in there.

There are other settings that show similar issues and all of them include a user interaction like a confirmation dialog.


RE: Changing xbmc resolution with json makes xbmc hangs - phate89 - 2014-07-17

Actually even with full screen doesn't work always properly. Sometimes it shows the yes/no dialog but with arrows i can't select yes or no and it works only with mouse...