1 |
On 05/31/2016 05:17 PM, Daniel Frey wrote: |
2 |
> On 05/30/2016 12:42 PM, Daniel Frey wrote: |
3 |
>> I finally got around to upgrading all my frontends to kodi-14, and none |
4 |
>> of them have any usb keyboard input. I have a physical keyboard plugged |
5 |
>> in and it doesn't respond to keypresses. |
6 |
> |
7 |
> I managed to figure this out. |
8 |
> |
9 |
> All of my frontends start mythfrontend and I'd created a menu entry for |
10 |
> xbmc/kodi in mythfrontend itself, so I could start it when needed. |
11 |
> |
12 |
> Kodi dropped sdl support[1] and so now when it is started in this manner |
13 |
> X doesn't focus the newly-created kodi window. If you boot directly into |
14 |
> kodi apparently this issue doesn't happen. |
15 |
> |
16 |
> To get around this, I modified my kodi startup script that mythfrontend |
17 |
> uses: |
18 |
> |
19 |
> #!/bin/bash |
20 |
> /usr/bin/kodi & |
21 |
> sleep 3 |
22 |
> DISPLAY=:0 xdotool windowfocus `xwininfo -display :0 -name "Kodi" | grep |
23 |
> "Window id:" | cut -d\ -f4` |
24 |
> |
25 |
> So the script starts kodi, detaches it, waits a couple seconds for it to |
26 |
> start up, then queries X for it's window ID and forces focus to it. |
27 |
> |
28 |
> Works now. |
29 |
> |
30 |
> Dan |
31 |
> |
32 |
|
33 |
..aaand I forgot the reference! |
34 |
|
35 |
[1] http://forum.kodi.tv/showthread.php?tid=212458&pid=1872100#pid1872100 |