OS X Keyboard shortcut to switch between fullscreen displays
#1
Question 
Back in my old Plex days, there used to be a keyboard shortcut that would switch between fullscreen displays #1 and #2. I haven't yet managed to figure out if something similar can be accomplished in XBMC. Any ideas?

The problem is that when my projector is off (but still plugged in), it's difficult to "blindly" move XBMC from the secondary to the primary display.
Reply
#2
Did you try cmd + f
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#3
I believe CMD+F only switches between windowed and fullscreen mode, and doesn't switch between monitors.
Reply
#4
It kinda depends - if the second monitor is not detected as usable from osx the cmd + f would make it windowed on the other (usable) monitor. Another cmd + f would then make it fullscreen on this monitor. I guess this won't work for you because even your projector is turned off it is still detected as a valid screen by osx.

You might be able to accomplish this by using the jsonrpc api which allows to control all the settings. (official ios remote for example allows you to change those settings - which includes the selection of the output screen). For mapping this on a keyboard you would need to write a small python script which does the related json-rpc request and then map the call of this script to a button via the builtin function "RunScript".

Long story short - no straight forward easy solution for this but it is solvable in an advanced (ugly) way.
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#5
Many thanks for your response. You are right in that CMD+F does not work in my case, for the reason you stated.

From my limited understanding of the JSON-RPC API/v6, it seems like the method GUI.SetFullscreen would not be suitable to call to switch the fullscreen display. Do you have any pointers what syntax may be used to change that setting?

I guess using keymapped built-in scripting in itself will not suffice to achieve this and the JSON-RPC has to be used in addition...
Reply
#6
Ha murphy ... what you want to do is documented here:

http://trac.xbmc.org/ticket/15115

and is broken for osx ... but maybe you can make it work by using the toggle fullscreen afterwards ...
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#7
Murphy's Law indeed. I was able to reproduce the bug, and the toggle fullscreen command didn't fix the issue. Guess I'll just have to wait until it's fixed.

Thanks again!
Reply
#8
https://github.com/xbmc/xbmc/pull/5502

I used this script to test (no multimonitor here - just switching between fullscreen and windowed):

http://pastebin.com/NbTxp86g

might need adaption to change videoscreen.screen to 1 or 0 aswell (not sure if both will be needed).
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#9
There is no fix for this yet... or does it work? Cmd + F does not work for me in switching between monitors/TVs.. and both are on and even in the right input. It only switches between fullscreen and windowed.I have Kodi 15.1
Reply

Logout Mark Read Team Forum Stats Members Help
Keyboard shortcut to switch between fullscreen displays1