xpad icon indicating copy to clipboard operation
xpad copied to clipboard

xbox360 leds blinking

Open posti85 opened this issue 7 years ago • 0 comments

I've found out that the gamepad leds don't work in OSMC unless some lines of the source code are modified. That's because /sys/class/leds/xpadN files aren't being created.

I document the whole process in case it is useful for someone:

sudo apt-get update
sudo apt-get install git dkms rbp2-headers-`uname -r`
sudo ln -s /usr/src/rbp2-headers-`uname -r` /lib/modules/`uname -r`/build
sudo git clone https://github.com/paroj/xpad.git /usr/src/xpad-0.4
sudo nano /usr/src/xpad-0.4/xpad.c

Now add at the end of the first #includes block:

#define CONFIG_JOYSTICK_XPAD_FF 1
#define CONFIG_JOYSTICK_XPAD_LEDS 1

Then save the file. Now continue with the driver installation/compilation:

sudo dkms install -m xpad -v 0.4 --force
sudo shutdown -r now

Now the leds should work properly.

But I don't think this is the proper way to make it work in OSMC. Sam from OSMC team says that is something with the driver: https://discourse.osmc.tv/t/howto-scripts-for-using-xbox-controller-in-retrosmc/9331/91.

posti85 avatar Dec 04 '18 22:12 posti85