Kodi Community Forum

Full Version: XBOX ONE controller and KODI
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

Long time user of KODI on windows and absolutely loving it. Just dipped my toe into the world of raspberry pi and got a Pi 4B to use it as a mediacenter, light retro gaming and steamstreaming from my main computer in my bedroom. After some ruminating and testing I decided to just go with Raspbian Buster and I installed KODI, steamlink and retropie with no problems. (Well, had to figure out HOW to do it first, but that's another story. Big Grin ) After being surprised that it was not as easy as I expected to connect the xbox controller via Bluetooth (had to to it via xpadneo to get it to work properly) I could see it work well with steamlink and retropie. 

So in my naivety I thought KODI would be just as good to go. No dice however. It's like it's not seeing it at all (Also tried it with a USB cable and still no go) and when I try to use the configuration screen for the KODI controller absolutely nothing happens besides it timing out. After some googling I tried to install the kodi-peripheral-joystick via sudo apt install (I am assuming that is how you go about it Big Grin ) and I see it listed under addons and it seems to be there I always time out on the configuration screen.

So I am at my wits end and seeking help. Smile
Make sure the peripheral-joystick addon is enabled in Kodi, just installing it isn't enough. I never tried that controller but should work, either USB or Bluetooth.
(2020-05-25, 18:44)rascas Wrote: [ -> ]Make sure the peripheral-joystick addon is enabled in Kodi, just installing it isn't enough. I never tried that controller but should work, either USB or Bluetooth.

I triple checked and it looks enabled to me. I am assuming it is enabled as the peripheral list got it listed with a checkmark and when I go to the addon itself I can disable it.  I can only surmise that means it is currently enabled.
Ok. That controller seems to work in RetroPie and Kodi without any drivers, so try without xpadneo. There are lots of tutorials on how to configure that controller in RetroPie, it envolves running one command at system startup.
(2020-05-26, 00:04)rascas Wrote: [ -> ]Ok. That controller seems to work in RetroPie and Kodi without any drivers, so try without xpadneo. There are lots of tutorials on how to configure that controller in RetroPie, it envolves running one command at system startup.

It's working fine on retropie. It's just not working on kodi. Before I used xpadneo I had to hook it up via USB or else I could never get the controller to work. I did also try it with the USB cable on kodi as well before and after xpadneo with the same result. It's like kodi doesn't see the controller at all, even if both steamlink and retropie sees it just fine.
Post your Kodi https://kodi.wiki/view/Log_file with xpadneo and connected via bluetooth.
(2020-05-26, 00:38)rascas Wrote: [ -> ]Post your Kodi https://kodi.wiki/view/Log_file with xpadneo and connected via bluetooth.

Here you go. Hope I did that correctly. (after enable the debugging log I restarted kodi with xpadneo and bluetooth connection (after first ensuring it was working in steamlink) and went to the configure peripheral screen and tried to do it for the kodi controller. With no luck of course. Anyhoo, here is the log:

https://paste.kodi.tv/iyozoyamak.kodi
Check this:
https://forum.libreelec.tv/thread/14429-...ecognized/

PS: For Raspbian change nano /storage/.config/udev.rules.d/99-gamepad.rules by sudo nano /etc/udev/rules.d/99-gamepad.rules
(2020-05-26, 11:43)rascas Wrote: [ -> ]Check this:
https://forum.libreelec.tv/thread/14429-...ecognized/

PS: For Raspbian change nano /storage/.config/udev.rules.d/99-gamepad.rules by sudo nano /etc/udev/rules.d/99-gamepad.rules

That worked like a charm! Thank you!
Excellent! Another thing, from your log you have only 76 MB dedicated to the GPU, the recommended for the the Pi 4 is 320 MB. Have fun.
(2020-05-27, 03:12)rascas Wrote: [ -> ]Excellent! Another thing, from your log you have only 76 MB dedicated to the GPU, the recommended for the the Pi 4 is 320 MB. Have fun.

Oh yea... I have been meaning to shift that number, but I got caught up with that danged controller. Big Grin

So 320 is the sweetspot? Does it matter if I give it more?