XBMC does not act on input from PS3 controller - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116) +--- Thread: XBMC does not act on input from PS3 controller (/showthread.php?tid=197747) |
XBMC does not act on input from PS3 controller - solbero - 2014-06-12 I have successfully paired my original PS3 DualShock 3 controller with XBMC on OpenELEC v4.0.4. Unfortunately, XBMC does not seem to act on the output being sent by the controller after I have turned it on by pressing the "PS" button on it. Here is a dump of dmesg after I have started the OpenELEC.: http://pastebin.com/bZyxfVcD Here is the same dump after I have pressed the "PS" button: http://pastebin.com/UP4zcFmV The strange thing is that the output sent by the controller is recognised by programs such as Retroarch after I have turned it on. Also, if I restart XBMC by issuing Code: systemctl restart xbmc Is there some way to make XBMC recognise the remote when I turn it on without issuing a "soft reboot"? I am thinking this might by some issue with EventServer. As well, here is the output of my /storage/.xbmc/userdata/keymaps/keyboard.xml: Code: <keymap> Edit: Clarity RE: XBMC does not act on input from PS3 controller - teeedubb - 2014-06-12 I have the same problem with a 360 controller and the steamos-xpad driver. I use a udev rule to toggle xbmcs joystick support when the 360 controller is connected which enables input from the controller. Though it doesn't seem to work if media is playing. You'll need to change it to suit the ps3 controller. http://forum.xbmc.org/showthread.php?tid=157499&pid=1722549#pid1722549 Also have you tried garbears retro player builds? I know he is working on a new joystick api but I don't k ow if its included in those builds. RE: XBMC does not act on input from PS3 controller - solbero - 2014-06-13 @teeedubb - I have seen several places on the net that people enable bluetooth devices at startup using udev rules. I am very thankful that you shared your solution for the XBOX controller, but hacking that script is a little bit above my level. Perhaps someone else with more code skills than I and the same PS3 controller problem will be able to make use of it. RE: XBMC does not act on input from PS3 controller - lrusak - 2014-06-13 (2014-06-13, 08:48)solbero Wrote: @teeedubb - I have seen several places on the net that people enable bluetooth devices at startup using udev rules. I am very thankful that you shared your solution for the XBOX controller, but hacking that script is a little bit above my level. Take a look at the reply I said on the OpenELEC forum. I think it just comes down to you knockoff controller reporting a different name, if you change the name in the keymap file it should work. Next I have done what teeedubb (thank you very much for this) suggested and created a udev rule. It will work for you as well. nano /storage/.config/xbmc-hotplug.sh Code: #!/bin/sh Now make it executable Code: chmod +x /storage/.config/xbmc-hotplug.sh Then, create the udev rule. nano /storage/.config/udev.rules.d/99-joystick.rules Code: ACTION=="add", KERNEL=="js*", SUBSYSTEM=="input", RUN+="/storage/.config/xbmc-hotplug.sh" If for whatever reason you want to change the udev rule to only affect the ps3 controller you have to take a look at the udev information Code: udevadm info -q all -a /dev/input/js0 RE: XBMC does not act on input from PS3 controller - solbero - 2014-06-16 Irusak Wrote:Take a look at the reply I said on the OpenELEC forum. I think it just comes down to you knockoff controller reporting a different name, if you change the name in the keymap file it should work.I should have been a more precise in my original post. I am using an original PS3 DualSchock 3 controller when experiencing the problem described here. The controller is being recognised without a problem by the underlying OS (e.i. OpenELEC). I was not my intention to start mixing threads from different forums. EDIT: I have tested the script you provided, Irusak, and it works well. However, it does assume that the default values are used by the webserver (e.g. username=XBMC, password=[blank]). What part of the script would I need to change to tell it to connect to the JSON RPC using a different username and password? Also, is the hotplugging issue a bug know to the XBMC devs? Would there be any point in posting this issue on the bugtracker? Terminal output when the default username and password is not used (in this case, I used XBMC:12345): Code: * Hostname was NOT found in DNS cache RE: XBMC does not act on input from PS3 controller - Seneca - 2014-11-26 I've also managed to pair the controller, but no buttonpresses are working if I don't run "systemctl restart xbmc", then the interface starts working. Everything but the "arrowkeys" on the sixxaxis works. I've also noticed that everytime the controller goes to sleep, I have to restart xbmc the same way to make it work again. I'm running the latest version of openelec stable 4.2.1 on Zotac ION2 and using a generic bluetooth dongle. Have you found a solution? Regards RE: XBMC does not act on input from PS3 controller - teeedubb - 2014-11-27 Try a helix build, Linux hotplugging has been fixed thanks to zzattack. |