Ok, I got the script to run. It seemed to work but when exiting a game, all controls are lost except some mouse functions. Had to re-boot. I did notice while in KODI 15.2 settings, there is an input setting option to disable game controller joystick input. What?? Why didn’t I see this before? So I decided to set up everything on a fresh install without the script and just disable the input for the game controller in settings. I set up RCB to point to retroarch. Navigated with my remote to launch a game. Game launched fine and the game controller worked fine. Then when exiting the game, lo and behold! Exact same result as when using the script!! All inputs stop working including my remote. Even without launching a game, once the game controller is disabled and then re-enabled again, it will not function until I restart Kodi. While I was researching I did come across someone else having the same problem, I think there is a kill kodi in background and then restart on exit script. I found this: http://libretro.com/forums/showthread.php?t=3684 I couldn’t make heads or tails if it would work for Ubuntu. Can your script work or should I try to kill Kodi in back ground? thanks for all your support.
There is no problem running this on top of windows. It is so easy to set up. I used launch box and big box inside Kodi. Just Works, no tinkering! But I do not prefer to run on top of windows and all its overhead. there has got to be a way for this to work.