I spent a bit of time trying to install and configure this but in the end it worked. I’m going to share what I did to help anyone who is experiencing the same problem or who wants to configure the control the same way I configured it.
Prerequisites
Make sure you have the following packages installed: dkms, linux-headers, git, and a bluetooth implementation. I’ll be using bluez.
xpadneo
I decided to use the xpadneo driver since it has more features and is more up-to-date than the default driver. It is a advanced driver for the XBOX controller. To install it, clone the repository and run the install script.
Testing
After installing the driver, connect the controller to the computer via bluetooth. To do this, you must activate the bluetooth service:
Then, press the sync button on the controller and run the following command:
This will open the bluetooth control panel. Run the following command to find the controller:
You may notice the controller’s MAC address. Copy it and run the following command:
After that, you can see if it’s working on cli by looking on the output of connect info. If it’s connected it will print “Connected: yes”.
Troubleshooting
I had a lot of problems with the controller not working properly. If you have the same problem, try pressing the sync button again and repeating the process above after unpair controller. You can unpair with the following command:
If you still have problems, try following the instructions on the xpadneo repository. They have a lot of information on how to solve problems with the controller.