Wireless Controllers

After getting my MonsterBorg I had a lot of issues getting the new PS DualShock 4 wireless controller working. Below is what I had to do to get it to pair properly.

$ sudo bluetoothctl

Once in the bluetooth ctl do the following:

[bluetooth]# agent on
Agent registered
[bluetooth]# default-agent
Default agent request successful
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# discoverable on
Changing discoverable on succeeded
[CHG] Controller Discoverable: yes
[bluetooth]# pairable on
Changing pairable on succeeded
[bluetooth]# scan on
Discovery started
[CHG] Controller {MAC address of RPI} Discovering: yes
[NEW] Device {MAC address of PS4} Wireless Controller

Put the PS4 DualShock 4 into pairing mode by pressing and holding the
PlayStation and Share buttons until the light bar starts flashing.

[bluetooth]# devices
Device {MAC address of PS4} Wireless Controller

Find your controller's MAC in the response from above.

[bluetooth]# pair {MAC address of PS4}

[CHG] Device {MAC address of PS4} Connected: yes
[CHG] Device {MAC address of PS4} UUIDs: 00001124-0000-1000-8000-00805f9b34fb
[CHG] Device {MAC address of PS4} UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Device {MAC address of PS4} ServicesResolved: yes
[CHG] Device {MAC address of PS4} Paired: yes
Pairing successful
Authorize service
[agent] Authorize service 00001124-0000-1000-8000-00805f9b34fb (yes/no):

Type ``yes`` to the above question.

[Wireless Controller]#

Type ``quit`` to exit back to the bash CLI.

Your wireless controller should be paired, you can check by seeing if a
ls /dev/input/js* file exists.

$ sudo reboot

After the RPI comes back up log in again and press the PS button on your
controller. The controller should connect to the RPI automatically. Once again
check by seeing if ls /dev/input/js* exists.

Subscribe to Comments for "Wireless Controllers"