DOWNLOAD AT : http://drop.io/xboxdrv_for_XBMC_live#
LOOK AT BOTTOM FOR DHARMA INSTRUCTIONS FROM USER ALEXPIGMENT!
XBMC Live is awesome, and using an Xbox 360 controller gives you that classic XBMC feel. But the kernel xpad driver/keymap.xml it comes with is not as full featured as grumbel's xboxdrv  userspace driver and does not work out of the box with 360 controllers on XBMC Live.
People have been using xboxdrv with the keymap XML from Tony Magro's informative tutorial  based on XBMC Live version 8.10 (which is based on Ubuntu 8.04). His keymap.xml file  works quite well with xboxdrv on XBMC Live 8.10, but has very weird behavior under XBMC 9.04 where hitting the shoulder buttons (which don't quite work properly) causes the analog sticks to stop working until you restart xboxdrv.
With the help of grumbel and some assists from the IRC crew, I have modified Tony Magro's keymap.xml to make xboxdrv work with XBMC Live 9.04! For completeness, I have also included Tony's keymap.xml with instructions and a startup script to use them on XBMC Live 8.10. He created the keymap.xml and tutorial for 8.10, NOT ME! I have also included the source for xboxdrv and the gplv3 license text, which I believe satisfies the GPL requirements for redistributing it. I have similarly included the Boost license for the libboost_thread .so library included in the package, though its license does not require distributing the source.
It should be noted that while most users will probably be running XBMC live, the "pre jaunty" keymap.xml/startup script pair will also work on XBMCUbuntu type installs under Ubuntu 8.04 (hardy) and Ubuntu 9.10 (intrepid). The "jaunty" keymap.xml/startup script pair works on karmic, but after r24108 (http://trac.xbmc.org/changeset/24108) the file needs to be copied to .xbmc/userdata/keymaps instead of .xbmc/keymaps.
XBMC WITH A XBOX-LIKE CONTROLLER FOREVARR!!1!1eleven
To install, read the README or README.dos.linefeeds.txt file and follow the instructions. You can verify your .tar.gz file by using the md5 file. Please feel free to post on this thread with any questions or ideas for improvements.
PS: Was not sure whether to post this on linux/live forum or on addons forum. Decided to go with live because most questions about xboxdrv seem to be in here. Apologies in advance if it's in the wrong one!
PPS: While I don't mention this in the README, I contribute this work, to the extent that any of it is copyrightable by me, to the public domain.
PPS: To start xboxdrv automagically at runtime, install screen :
apt-get install screen
cd /home/xbmc/xboxdrv_for_XBMC_live.v1 && screen -S xboxdrv_for_XBMC_live -d -m /home/xbmc/xboxdrv_for_XBMC_live.v1/xboxdrv_for_XBMC_live.9.04.jaunty.sh
This will start a screen session in the background as user root. If you want to attach to this screen session, log in via ssh as xbmc and :
sudo -s # to become root
screen -r xboxdrv_for_XBMC_live
In some cases/configurations, xboxdrv will have to start before XBMC so that XBMC detects it properly. I accomplished this by doing :
mv /etc/rc3.d/S99rc.local /etc/rc3.d/S19rc.local # start just before S20xbmc-live
PPS - KNOWN BUG : DVD Menus do not appear to work properly with this setup, UNLESS you hit left shoulder button first to bring up the "now playing" on screen display. LEAVE THE DISPLAY UP and you can navigate through menus, but if you drop the display you appear to lose control again.
Special thanks to Zaneium for this workaround!
PPPS - DHARMA INSTRUCTIONS PER HELPFUL USER ALEXPIGMENT :
1) Download the file xboxdrv_for_XBMC_live.v1.tar.gz from here: http://drop.io/xboxdrv_for_XBMC_live#
2) FTP into your system and transfer this file to the xbmc folder (should be where you are by default).
3) SSH into your system and type the following:
sudo tar -zxvf xboxdrv_for_XBMC_live.v1.tar.gz
4) Now change directories to the newly unzipped folder:
5) Do the following to generate a keymap file:
cp -vf ./keymap.xml.trigger.as.zaxis.jaunty ~/.xbmc/userdata/keymaps/xboxdrv.xbox360.keymap.xml
6a) Do the following for multi-controller support:
sudo nano xboxdrv_for_XBMC_live.9.04.jaunty.sh
6b) Once in nano, you will see that there is a line that starts with ./xboxdrv-linux... delete that line and paste (if you're using PuTTY to ssh, you can paste by right clicking):
./xboxdrv-linux-0.4.8 --wid 0 -s --dpad-as-button --deadzone 12000 --trigger-as-zaxis &
./xboxdrv-linux-0.4.8 --wid 1 -s --dpad-as-button --deadzone 12000 --trigger-as-zaxis &
./xboxdrv-linux-0.4.8 --wid 2 -s --dpad-as-button --deadzone 12000 --trigger-as-zaxis &
./xboxdrv-linux-0.4.8 --wid 3 -s --dpad-as-button --deadzone 12000 --trigger-as-zaxis &
Once this is done Ctrl+O to save (click Enter to accept changes), Ctrl+x to close nano
7a) Type the following to edit your rc.local file:
sudo nano /etc/rc.local
7b) Once in nano, type the following line above the line "exit 0"
cd /home/xbmc/xboxdrv_for_XBMC_live.v1 && sh ./xboxdrv_for_XBMC_live.9.04.jaunty.sh
Now type Ctrl+O to save, Enter to accept changes, Ctrl+X to exit nano
8) Type the following to reboot: