On 05/31/2016 05:17 PM, Daniel Frey wrote:
> On 05/30/2016 12:42 PM, Daniel Frey wrote:
>> I finally got around to upgrading all my frontends to kodi-14, and none
>> of them have any usb keyboard input. I have a physical keyboard plugged
>> in and it doesn't respond to keypresses.
> 
> I managed to figure this out.
> 
> All of my frontends start mythfrontend and I'd created a menu entry for
> xbmc/kodi in mythfrontend itself, so I could start it when needed.
> 
> Kodi dropped sdl support[1] and so now when it is started in this manner
> X doesn't focus the newly-created kodi window. If you boot directly into
> kodi apparently this issue doesn't happen.
> 
> To get around this, I modified my kodi startup script that mythfrontend
> uses:
> 
> #!/bin/bash
> /usr/bin/kodi &
> sleep 3
> DISPLAY=:0 xdotool windowfocus `xwininfo -display :0 -name "Kodi" | grep
> "Window id:" | cut -d\  -f4`
> 
> So the script starts kodi, detaches it, waits a couple seconds for it to
> start up, then queries X for it's window ID and forces focus to it.
> 
> Works now.
> 
> Dan
> 

..aaand I forgot the reference!

[1] http://forum.kodi.tv/showthread.php?tid=212458&pid=1872100#pid1872100



Reply via email to