Kodi Joypad XML help
-
There is a /home/kodi, which is another one, and a /home/pi/.kodi folder, this is the one which we are talking about, with Kodi settings. Note the dot in ".kodi", this means that is a hidden folder so you have to set your explorer to show hidden files. This folder only appears the first time you launch kodi.
Also when creating the xml keymap, make sure you know which key numbers correspond to your joystick buttons, it is explained in retropie kodi wiki how to find that.
Your last problem, I don't know what it is, never saw something like that I think. -
@Rascas I didn't know it was hidden. That changes everything. Concerning the second problem, when I quit kodi and return back to emulation station, the GUI is black with white lines on it. When I navigate the broken menu, the GUI responds because the lines "change", so to speak and the menu sounds continue to operate, I simply can't see them. I'm going to memorize the location of a game and try to launch it to see if the GUI goes back to normal.
-
You might try your Pi with another TV or monitor and see if you're having the same issues. This issue is very vague and could be something to do with the resolution or refresh rate. If it works fine on another display, then you might need to set those manually from inside /boot/config.txt
Here's some information about the various video modes:
http://elinux.org/RPiconfig#VideoThat page also has a lot of useful information about other topics so I would recommend skimming through it.
Edit: an example for let's say 720p at 60hz with Overscan disabled and sound forced through HDMI
sudo nano /boot/config.txt
disable_overscan=1 hdmi_force_hotplug=1 hdmi_group=1 hdmi_mode=4 hdmi_drive=2
-
@backstander thanks man, I will. It'll be about 18 hours before I can post up any results. In addition, I hope I can link to a clip of what my retropie is doing later for you all to assess.
-
Alright, time for an update on my problem. I've had a look at the config file and I set the output to NTSC, which is what my TV uses, and there was no change. I also tried my RPI on a few different TVs and monitors using analog and HDMI. It still bugs out the screen when I quit kodi back to emulation station. Any ideas?
-
I've heard of rare issues with Kodi's built in HDMI-CEC compatibility enabled. Maybe disabling it will help?
When you're in Kodi try navigating to this menu: System -> Settings -> System -> Input Devices -> Peripherals -> CEC adapter (or something like that)
Then disable "turn off device on exit" -
@backstander I've done as you suggested, only the option to disable "turn off devices on exit" doesn't exist. I did, however, find an option list of devices to turn off upon shutdown and changed it to 'none'. This did nothing to solve my problem.
-
i'm also having an issue with getting my controls to work in Kodi.
They do work on the retropie side, but when i go into the kodi port, they dont work. when i do alter the kodi xml, with the corresponding buttons of my retropie controller cfg button ids, only 1 button will work.i'm currently creating a gameboy with retropie in it, so its using a Teensy lc, as a keyboard/mouse/joystick combo.
this is my current es_input config.
<inputConfig type="joystick" deviceName="Teensyduino Keyboard/Mouse/Joystick" deviceGUID="03000000c01600008204000011010000">
<input name="a" type="button" id="1" value="1"/>
<input name="b" type="button" id="0" value="1"/>
<input name="down" type="hat" id="0" value="4"/>
<input name="left" type="hat" id="0" value="8"/>
<input name="lefttop" type="button" id="4" value="1"/>
<input name="right" type="hat" id="0" value="2"/>
<input name="righttop" type="button" id="5" value="1"/>
<input name="select" type="button" id="6" value="1"/>
<input name="start" type="button" id="7" value="1"/>
<input name="up" type="hat" id="0" value="1"/>
<input name="x" type="button" id="3" value="1"/>
<input name="y" type="button" id="2" value="1"/>when i use those button Ids in the kodi xml, i only get a response from 1 button.
i cant figure out how to get them all working properly.
-
After some further investigation, I found out that my version of Kodi 16.1 (RetroPie 3.8.1) uses this file for my wireless Xbox 360 controller:
/usr/share/kodi/system/keymaps/xbox360.xml
Here is just a sample of my file:
<keymap> <global> <joystick name="Xbox Gamepad (userspace driver)"> <altname>Controller (Xbox 360 Wireless Receiver for Windows)</altname> <button id="1">Select</button><!--A--> <button id="2">ParentDir</button><!--B--> <button id="3">FullScreen</button><!--X--> <button id="4">ContextMenu</button><!--Y--> <button id="5">Stop</button><!--LEFT SHOULDER BUTTON--> <button id="6">Pause</button><!--RIGHT SHOULDER BUTTON--> <button id="7">PreviousMenu</button><!--BACK--> <button id="7,8">Quit</button><!--BACK+START--> <button id="8">XBMC.ActivateWindow(settings) </button><!--START--> <button id="9">Playlist</button><!--LEFT ANALOGUE STICK BUTTON--> <button id="10">XBMC.UpdateLibrary(video)</button><!--RIGHT ANALOGUE STICK BUTTON--> <hat id="1" position="up">Up</hat><!--DPAD UP--> <hat id="1" position="down">Down</hat><!--DPAD DOWN--> <hat id="1" position="right">Right</hat><!--DPAD RIGHT--> <hat id="1" position="left">Left</hat><!--DPAD LEFT--> <axis limit="-1" id="2">Up</axis><!--LEFT ANALOGUE UP--> <axis limit="+1" id="2">Down</axis><!--LEFT ANALOGUE DOWN--> <axis limit="+1" id="1">Right</axis><!--LEFT ANALOGUE RIGHT--> <axis limit="-1" id="1">Left</axis><!--LEFT ANALOGUE LEFT--> <axis limit="-1" id="4">VolumeUp</axis><!--RIGHT ANALOGUE UP--> <axis limit="+1" id="4">VolumeDown</axis><!--RIGHT ANALOGUE DOWN--> <axis limit="-1" id="5">AnalogSeekBack</axis><!--RIGHT ANALOGUE LEFT--> <axis limit="+1" id="5">AnalogSeekForward</axis> <!--RIGHT ANALOGUE RIGHT--> <axis limit="-1" id="3">ScrollDown</axis><!--LEFT TRIGGER--> <axis limit="+1" id="3">ScrollUp</axis><!--RIGHT TRIGGER--> </joystick> </global>
Just for fun, give this a try!
Edit this file and add "kodi-standalone":
nano ~/RetroPie/roms/ports/Kodi.sh
#!/bin/bash /opt/retropie/supplementary/runcommand/runcommand.sh 0 "kodi-standalone" "kodi"
-
@backstander I would love to try, but I am sadly lacking in knowledge of the raspberry pi to utilize it in such a manner.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.