Connect PS4 Paspberry PI - Kraft2k/py_info_inv GitHub Wiki

$ sudo apt install pi-bluetooth


Install BlueZ

$ sudo apt -y install bluetooth bluez bluez-tools rfkill


$ systemctl is-enabled bluetooth.service

enabled


$ systemctl status bluetooth.service

bluetooth.service - Bluetooth service

Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)

Active: active (running) since Sat 2019-11-30 17:14:12 EAT; 3h 55min ago

 Docs: man:bluetoothd(8)

Main PID: 1638 (bluetoothd)

Tasks: 1 (limit: 18590)

Memory: 2.3M

  CPU: 47ms

CGroup: /system.slice/bluetooth.service

       └─1638 /usr/libexec/bluetooth/bluetoothd

.........


$ rfkill

ID TYPE DEVICE SOFT HARD

0 bluetooth tpacpi_bluetooth_sw blocked unblocked

1 wlan phy0 unblocked unblocked


If it is locked, unlock it with the command shown below

$ rfkill unblock 0

$ bluetoothctl show

Controller 20:79:18:5E:4B:64 (public) .........

$ bluetoothctl

Agent registered

[bluetooth]# agent KeyboardOnly

Agent is already registered

[bluetooth]# default-agent

Default agent request successful

[bluetooth]# power on

Changing power on succeeded

[bluetooth]# scan on

Discovery started

[CHG] Controller 20:79:18:5E:4B:64 Discovering: yes

........

Press SHARE + PS4 button on your controller. If pairing fails, you want to try in again, it should eventually connect.

PS4, last 4-digits 1078 connect 67:EF:5B:3B:9E:96

PS4, last 4-digits 1268 connect A0:5A:5C:B3:3A:75

PS4, last 4-digits 9866 connect 90:E9:D2:3B:C6:AF

PS4, with stick connect 84:17:66:E9:AC:CD