I got a new joystick for Christmas, an PlayStation 4 Dualshock controller. I decided that today was the day for setting it up. I assumed it wouldn’t be a big task, but I encountered some problems booting the NUC. I ended up disassemble the bot in order to remove one of the RAM modules. Need to investigate this further as I want to be able to use the full 16 GB that I have available.
Anyway, back to the DS4, the Bluetooth was somehow disabled, don’t know what have happened as I have used it previously with the DS3. A quick
sudo chmod +x /usr/sbin/bluetoothd
sudo service bluetooth restart
did the trick. All you need to do then is to “pair” the controller just like any other bluetooth device. Push and hold both the “PlayStation” and “Share” buttons at the same time until the controller starts blinking. It is now in “pairing” mode, then pair the controller with the computer using the bluetooth menu (bluetooth icon–>Set Up New Device…)!
sudo apt-get install jstest-gtk jstest-gtk
This allowed me to setup the joystick, and display the raw values of the joystick. I was not able to see any data from the accelerometer and gyroscope. I’ll leave that for now and revisit if I need this down the road.
-P-