v18 Setup for Nintendo Switch Pro Controller in Leia under Ubuntu ?
#1
So far I was able to get the controller connected to Ubuntu 18.04 and at least get it working in Steam BPM in Bluetooth mode (had to do some udev trickery though for the steam client). Jstest-gtk lists the controller and it can be tested and calibrated.

In Kodi Leia (nightly Alpha2 20180517) it is even listed under connected devices as „Pro Controller“. The question would be how to properly assign the controller to Kodi and map the buttons, because that is not working at all. Also there is no fitting profile available to choose from, which might be the main issue here?

Hope someone can help out a bit
AMD Ryzen 5 2700 | Asus ROG Strix B350 ITX | Geforce RTX 2060 
Ubuntu 22.04 LTS | Kernel 6.1 | Nvidia blob drivers | Kodi v20
Reply
#2
@Juppstein I wrote an article on how to configure controllers in Krypton+

https://kodi.wiki/view/HOW-TO:Configure_controllers

Let me know if this doesn't work (I built the utility a few years ago so new controllers might have problems).
Reply
#3
Thanks for the link, that did the trick. The controller is now set up in Kodi and working, excep the right joystick. But apparently this is an issue with the controller under linux at the moment. But I am ok with that, it works well enough for Kodi to be used as an alternative to a XBox 360 controller.
AMD Ryzen 5 2700 | Asus ROG Strix B350 ITX | Geforce RTX 2060 
Ubuntu 22.04 LTS | Kernel 6.1 | Nvidia blob drivers | Kodi v20
Reply
#4
Awesome! Can you upload your button map so the switch controller works out of the box? Github PR preferred. There's an article on the wiki.
Reply
#5
@garbear , done and done. Hope I made everything correctly, as this is my first forray into github in regards to forking and pull requests Smile

As a side question, do I have to do anything special in order to get controllers to work in retroplayer?  I built kodi from a nightly and then added some cores. The games load up properly but none of my controllers (xbox 360, Switch Pro or an 8bitdo Arcade stick) will do anything in any core I was trying (nes, snes, segagenesis). I can open the controller panel from within retroplayer and assign buttons and all that, they just dont do anything though.
AMD Ryzen 5 2700 | Asus ROG Strix B350 ITX | Geforce RTX 2060 
Ubuntu 22.04 LTS | Kernel 6.1 | Nvidia blob drivers | Kodi v20
Reply
#6
(2018-06-01, 18:42)Juppstein Wrote: @garbear , done and done. Hope I made everything correctly, as this is my first forray into github in regards to forking and pull requests Smile

I think that officially makes you a developer Smile thanks!
(2018-06-01, 18:42)Juppstein Wrote: As a side question, do I have to do anything special in order to get controllers to work in retroplayer?  I built kodi from a nightly and then added some cores. The games load up properly but none of my controllers (xbox 360, Switch Pro or an 8bitdo Arcade stick) will do anything in any core I was trying (nes, snes, segagenesis). I can open the controller panel from within retroplayer and assign buttons and all that, they just dont do anything though.

You need to build the peripheral.joystick add-on. The Readme at my Kodi repo links to instructions here: https://github.com/kodi-game/peripheral.joystick
Reply
#7
@garbear  this I have already done before and the addon seems to be loading properly. Though looking through the log files in kodi I see that retroplayer is expecting xml files for a game when it is run or loaded. If I should open a new thread for this in the retroplayer forum just tell me. I dont wanna clog up space in the wrong place Smile

In regards to the buttonmap I will try to start this push merge thing from scratch. Seems I messed it up for you guys, sorry in case I caused too much trouble. I am too new with this github stuff Big Grin
Quote:​​​​​​
10:17:43.145 T:139649147029248   ERROR: GetDirectory - Error getting
10:18:31.349 T:139655300345216   ERROR: Previous line repeats 2 times.
10:18:31.349 T:139655300345216   ERROR: AddOnLog: NES / Famicom (Nestopia UE): Setting nestopia_palette: invalid value "consumer" (values are: Palette; cxa2025as|consumer|canonical|alternative|rgb|pal|composite-direct-fbx|pvm-style-d93-fbx|ntsc-hardware-fbx|nes-classic-fbx-fs|raw|custom)
10:18:31.349 T:139655300345216   ERROR: CAddonCallbacksAddon - GetAddonSetting - can't find setting 'nestopia_overclock' in 'NES / Famicom (Nestopia UE)'
10:18:31.349 T:139655300345216   ERROR: AddOnLog: NES / Famicom (Nestopia UE): Setting nestopia_overclock not found by Kodi
10:18:31.351 T:139655300345216   ERROR: AddOnLog: NES / Famicom (Nestopia UE): Buttonmap version required, expected version 2 (min=2)
10:18:31.351 T:139655300345216   ERROR: AddOnLog: NES / Famicom (Nestopia UE): Kodi setting blargg_ntsc_filter unknown to libretro!
10:18:31.351 T:139655300345216   ERROR: AddOnLog: NES / Famicom (Nestopia UE): Kodi setting nospritelimit unknown to libretro!
10:18:31.351 T:139655300345216   ERROR: AddOnLog: NES / Famicom (Nestopia UE): Kodi setting palette unknown to libretro!
10:18:31.354 T:139655300345216   ERROR: AddOnLog: NES / Famicom (Nestopia UE): custom.pal not found in system directory.
10:18:31.354 T:139655300345216   ERROR: AddOnLog: NES / Famicom (Nestopia UE): NstDatabase.xml required to detect region and some mappers.
10:18:31.601 T:139655300345216   ERROR: RetroPlayer[RENDER]: Creating renderer for OpenGL
10:18:31.693 T:139654790444800  NOTICE: PulseAudio: Opened device alsa_output.pci-0000_09_00.6.analog-stereo in pcm mode with Buffersize 150 ms
10:18:44.969 T:139655300345216  NOTICE: Previous line repeats 1 times.
10:18:44.969 T:139655300345216   ERROR: AddOnLog: NES / Famicom (Nestopia UE): Setting nestopia_palette: invalid value "consumer" (values are: Palette; cxa2025as|consumer|canonical|alternative|rgb|pal|composite-direct-fbx|pvm-style-d93-fbx|ntsc-hardware-fbx|nes-classic-fbx-fs|raw|custom)
10:18:44.969 T:139655300345216   ERROR: CAddonCallbacksAddon - GetAddonSetting - can't find setting 'nestopia_overclock' in 'NES / Famicom (Nestopia UE)'
10:18:44.969 T:139655300345216   ERROR: AddOnLog: NES / Famicom (Nestopia UE): Setting nestopia_overclock not found by Kodi
10:18:44.970 T:139655300345216   ERROR: AddOnLog: NES / Famicom (Nestopia UE): Buttonmap version required, expected version 2 (min=2)
10:18:44.970 T:139655300345216   ERROR: AddOnLog: NES / Famicom (Nestopia UE): Kodi setting blargg_ntsc_filter unknown to libretro!
10:18:44.970 T:139655300345216   ERROR: AddOnLog: NES / Famicom (Nestopia UE): Kodi setting nospritelimit unknown to libretro!
10:18:44.970 T:139655300345216   ERROR: AddOnLog: NES / Famicom (Nestopia UE): Kodi setting palette unknown to libretro!
10:18:44.974 T:139655300345216   ERROR: AddOnLog: NES / Famicom (Nestopia UE): custom.pal not found in system directory.
10:18:44.975 T:139655300345216   ERROR: AddOnLog: NES / Famicom (Nestopia UE): NstDatabase.xml required to detect region and some mappers.
10:18:44.979 T:139655300345216   ERROR: Failed to open /home/kodi/Games/library/nes/Super Mario Bros. 3.xml: Failed to open file
10:18:44.979 T:139655300345216   ERROR: Previous line repeats 1 times.
10:18:44.979 T:139655300345216   ERROR: Failed to query savestate /home/kodi/Games/library/nes/Super Mario Bros. 3.xml
10:18:44.979 T:139655300345216   ERROR: RetroPlayer[SAVE]: Failed to load savestate
10:18:45.235 T:139655300345216   ERROR: RetroPlayer[RENDER]: Creating renderer for OpenGL
10:18:45.377 T:139654790444800  NOTICE: PulseAudio: Opened device alsa_output.pci-0000_09_00.6.analog-stereo in pcm mode with Buffersize 150 m
AMD Ryzen 5 2700 | Asus ROG Strix B350 ITX | Geforce RTX 2060 
Ubuntu 22.04 LTS | Kernel 6.1 | Nvidia blob drivers | Kodi v20
Reply
#8
(2018-06-02, 10:33)Juppstein Wrote: Though looking through the log files in kodi I see that retroplayer is expecting xml files for a game when it is run or loaded.
Quote:​​​​​​
0:18:44.979 T:139655300345216   ERROR: Failed to open /home/kodi/Games/library/nes/Super Mario Bros. 3.xml: Failed to open file
10:18:44.979 T:139655300345216   ERROR: Previous line repeats 1 times.
10:18:44.979 T:139655300345216   ERROR: Failed to query savestate /home/kodi/Games/library/nes/Super Mario Bros. 3.xml
10:18:44.979 T:139655300345216   ERROR: RetroPlayer[SAVE]: Failed to load savestate

Yes, Kodi implements auto-save by saving an XML file alongside the ROM. This should be generated on first play, though I've experienced this being generated in the wrong directory. I'll look into it.
(2018-06-02, 10:33)Juppstein Wrote: Seems I messed it up for you guys, sorry in case I caused too much trouble. I am too new with this github stuff Big Grin

On the contrary, I think it's awesome you're participating in the development effort. More people should look under the hood and figure out how things work. If you get stuck (the tools can be difficult) I'm here to help.
Reply
#9
@garbear   Thanks for the help. I've tried a new commit/pull request and I hope this time it is clean enough for you to be able to work with it Smile
AMD Ryzen 5 2700 | Asus ROG Strix B350 ITX | Geforce RTX 2060 
Ubuntu 22.04 LTS | Kernel 6.1 | Nvidia blob drivers | Kodi v20
Reply
#10
(2018-06-09, 11:35)Juppstein Wrote: @garbear   Thanks for the help. I've tried a new commit/pull request and I hope this time it is clean enough for you to be able to work with it Smile
  
Merged. Thanks for joining the development effort!
Reply

Logout Mark Read Team Forum Stats Members Help
Setup for Nintendo Switch Pro Controller in Leia under Ubuntu ?0