HOW TO: Setup Xbox 360 Controller quickly in XBMC Live - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52) +---- Thread: HOW TO: Setup Xbox 360 Controller quickly in XBMC Live (/showthread.php?tid=98824) |
HOW TO: Setup Xbox 360 Controller quickly in XBMC Live - josephdyland - 2011-04-08 I have been a long time fan of XBMC since the Xbox days and have never been able to let go of the Xbox controller, I know there is a couple threads on here already with documentation on how to get things working on older versions of XBMC. I have followed these other posts on several installations and it has always taken me a couple days to get things working properly. Here is how to use the latest Versions of Grumbel's Userspace driver on Tested on a fresh install XBMC Live Dharma, all buttons and Triggers are also working 100% with this method. Add Grumbel PPA Code: sudo add-apt-repository ppa:grumbel/ppa Create a bash script that will start on system startup in a few steps Code: touch ~xbmc/xboxdrv.sh and open for editing Code: nano ~xbmc/xboxdrv.sh Paste this into the newsly created xboxdrv.sh Code: #!/bin/bash make xboxdrv.sh executable Code: chmod +x xboxdrv.sh Open rc.local so we can add a line to start the xboxdrv.sh script Code: nano /etc/rc.local Add this above exit 0 Code: /home/xbmc/xboxdrv.sh Thanks to , alexpigment, awef previous posts for pointing me in the right direction and of course grumbel - draggy - 2011-04-13 Thank you very much for the updated information josephdyland. I was able to get my controllers working with xbmc's interface easily. I wanted to add my two cents and provide an init.d startup script that I wrote. It could probably be cleaner, and it should probably use xboxdrv's daemon mode. But since daemon mode is broken in xboxdrv v0.7.3 screen sessions work just as well. Just edit the wireless and wired variables to indicate how many controllers you have. I have 2 wireless controller dongles so my setup looks like: WIRELESS=(0 1) http://pastebin.com/pKAeVnnQ Note: Of course if you use my startup script, you don't need josephdyland's xboxdrv.sh or the addition to rc.local - joelones - 2011-04-13 Are you guys able to resume from suspend without issues with xboxdrv? I've had problems in the past with this on 0.6.x. - draggy - 2011-04-13 I've never had a problem with it. - Haohmaru - 2011-04-24 draggy Wrote:I've never had a problem with it. Are you shure ? I can't use it either after coming back from suspend. But it works right away again if I reboot. - draggy - 2011-04-25 You are correct, I also have issues coming out of suspend now. What I did was just set it up to restart my xboxdrv sessions after the computer resumes. This of course also means that it doesn't work in xbmc until it is restarted. This isn't an issue for me as I don't use the controllers to control xbmc. I don't think this is a bug. I think it's just how the driver works because it has to re-init the usb ports when the computer resumes....I could be wrong though. I can't remember if older versions has resume issues.... - danz0l - 2011-05-08 draggy Wrote:Thank you very much for the updated information josephdyland. I was able to get my controllers working with xbmc's interface easily. Love your startup script and if i execute manually everything is fine and it works perfectly (although doesn't seem to work in xbmc ?) How are you executing it to run at startup ? I popped it in /etc/init.d/xbmdrv (making sure it was executable) and then updated the startup with sudo update-rc.d xbmdrv defaults But it doesnt start up as expected. What am i doing wrong ? - danz0l - 2011-05-08 Ah figured it out Removed my previous startups Quote:sudo update-rc.d -f xboxdrv remove The set the highest priority for the driver to run Quote:sudo update-rc.d -f xboxdrv start 1 2 3 4 5 . Now it gets loaded before xbmc and works as expected Excellent and thanks draggy - Phantisy - 2011-05-10 When I try to run it manually I get Quote:xbmc@HTPC:/etc/init.d$ sudo xboxdrv start UPDATE: I had the old version installed and every time I upgraded to the new version it was not overwriting the xboxdrv file. I deleted the files then reinstalled and now its working. 7.3 is what I have now and not 6.6 - teeedubb - 2011-06-11 What keymap file do you guys use to make it work with xbmc? - draggy - 2011-06-11 just use "-c /usr/share/doc/xboxdrv/examples/xbmc.xboxdrv" option when running xboxdrv and it works automatically with xbmc - teeedubb - 2011-06-18 Thanks, I fixed up my config and it works with xbmc and emulators. Quick question, do all the buttons work within xbmc for you guys? My Y + X buttons dont seem to do anything? wasnt Y was used to bring up the context menu on the xbox 1 (while browsing the library etc). Im using version 0.8.0 using the instructions from the 1st page. - gneville - 2011-08-14 draggy Wrote:Thank you very much for the updated information josephdyland. I was able to get my controllers working with xbmc's interface easily. Draggy - can you explain how I implement your script? I followed the post at the start of this thread and now my wireless 360 pad doesn't work at all. .! Thanks! - X3lectric - 2011-08-14 draggy Wrote:Thank you very much for the updated information josephdyland. I was able to get my controllers working with xbmc's interface easily. and that goes where? - draggy - 2011-08-15 You need to follow josephdyland's first step to install the driver, then you can use the script I created to run the controller drivers at startup. It's just an init.d script. See http://embraceubuntu.com/2005/09/07/adding-a-startup-script-to-be-run-at-bootup/ for instructions on how to install startup scripts for ubuntu. Don't forget to edit the parameters to match your setup. |