2011-01-06, 17:32
awef Wrote:alexpigment, you could modify your guide to simply use the repository to get xboxdrv (which gets the latest version also).
I just tested this method on a fresh xbmc live install and it was quite simple (only for one controller but you get the idea):
First install xboxdrv:
Code:sudo add-apt-repository ppa:grumbel/ppa
sudo apt-get update
sudo apt-get install xboxdrv
Then, make a new bash script called ~xbmc/xboxdrv.sh containing:
Code:#!/bin/bash
rmmod xpad
modprobe uinput
modprobe joydev
xboxdrv --wid 0 -s -l 2 --dpad-as-button --deadzone 12000 --trigger-as-zaxis
(and make it executable)
Then, add this line to /etc/rc.local
Code:/home/xbmc/xboxdrv.sh
Lastly, copy the keymap same way you described.
That's it.
I have discovered that the wireless dongle sometimes can't be detected if it hasn't been shutdown/initialised properly.. through my various experiments I managed to run into this a few times. Properly turning off my PC seems to reset it, or you can unplug/replug the device. Worth noting.
While this is indeed useful, I think it still doesn't get around the fact that you have to download a special file (in this case, the keymap). grumbel (xboxdrv creator) is working with others right now to create a driver which includes wireless chatpad support. At that point, I will redo my tutorial steps and hopefully get it down to 3-4 steps or less.
Thanks for the input either way. I'll take this into consideration when I rewrite it.