Skip to content

Instantly share code, notes, and snippets.

@vijayantkatyal
Created July 25, 2016 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vijayantkatyal/37e5c924be160372e114b154a2773c6f to your computer and use it in GitHub Desktop.
Save vijayantkatyal/37e5c924be160372e114b154a2773c6f to your computer and use it in GitHub Desktop.
install xbox one controller driver on retro pie
# Get rpi-source... easier than dkms shenanigans with headers from here
# https://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi
sudo wget https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source -O /usr/bin/rpi-source && sudo chmod +x /usr/bin/rpi-source && /usr/bin/rpi-source -q --tag-update
# Clean anything from a previous install
sudo rm -rfv /usr/src/4.4.11-v7
sudo install bc
# Run it
sudo rpi-source
# Fetch and install the latest version of xpad. Here's my controller
# https://github.com/paroj/xpad/blob/master/xpad.c#L131
sudo git clone https://github.com/paroj/xpad.git /usr/src/xpad-0.4
sudo install dkms
sudo dkms install -m xpad -v 0.4
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment