Jstest-gtk
To see if the controller works, install jstest-gtk (it’s in Ubuntu’s repository). It will list all connected game controllers and show which buttons are pressed and which not.
Install it with:
sudo apt-get install jstest-gtk
Xboxdrv
My Playstation 3 Dualshock 3 Sixaxis controller worked quite well, sometimes, without any drivers. But it was quite unreliable, and the L2 and R2 triggers wouldn’t get recognized in Euro Truck Simulator 2. A much better solution is to install and run xboxdrv to emulate it as a Xbox 360 controller when you want to play games.
Install xboxdrv:
sudo apt-get install xboxdrv
Start it with:
sudo xboxdrv --detach-kernel-driver
Press the Playstation button on the controller to get xboxdrv start receiving and processing the inputs from the controller. This will print a lot of text in the terminal. If you want to quit it, press Ctrl-c. When it’s running, open Jstest-gtk and see if the controller now shows up as a Xbox Gamepad instead, and if all buttons, triggers and joysticks work.
I connected my controller with a USB cable, so I can’t say if this will work through Bluetooth.
