Xbox Controller Raspberry Pi
1
Install or update to the latest version of Raspberry Pi OS
2
Install the xboxdrv driver
technically
sudo apt-get install xboxdrv3
Connect a wireless Xbox controller
4
Connect an Xbox controller via USB cable
5
Connect a controller with Bluetooth
1. Disable Enhanced Re-Transmission Mode (ERTM)
echo 'options bluetooth disable_ertm=Y' | sudo tee -a /etc/modprobe.d/bluetooth.conf2. Start Bluetooth Tools
sudo bluetoothctl3. Search for the Xbox controller
agent on
default-agentscan on4. Connect to the Xbox controller
MAC_ADDRESSconnect MAC_ADDRESSMAC_ADDRESStrust MAC_ADDRESSquit5. Test the connection
sudo apt-get install joysticksudo jstest /dev/input/js06
Use an Xbox controller to replace mouse functions
sudo xboxdrv --detach-kernel-driver --silent --mouse7