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

Reply via email to