Skip to contentSkip to conversation

Dualshock 4 usb issues

DISCUSSION shhhum 1 participant 1 message Feb 3, 2021 Bluetooth drivers

lore
Share & tools
lore

shhhum

author
#0 lore raw

Hello. I'm using BlueZ 5.55 and Linux 5.10.12.

After following Gentoo guide to connect DS4 with bluetooth -
https://wiki.gentoo.org/wiki/Sony_DualShock#DualShock_4 - I was able to successfully pair, trust and connect the gamepad.

[bluetooth]# pair A4:53:85:AF:F5:05
Attempting to pair with A4:53:85:AF:F5:05
[CHG] Device A4:53:85:AF:F5:05 Connected: yes
[CHG] Device A4:53:85:AF:F5:05 UUIDs: 00001124-0000-1000-8000-00805f9b34fb [CHG] Device A4:53:85:AF:F5:05 UUIDs: 00001200-0000-1000-8000-00805f9b34fb [CHG] Device A4:53:85:AF:F5:05 ServicesResolved: yes
[CHG] Device A4:53:85:AF:F5:05 Paired: yes
Pairing successful
[CHG] Device A4:53:85:AF:F5:05 WakeAllowed: yes
Authorize service
[agent] Authorize service 00001124-0000-1000-8000-00805f9b34fb (yes/no): yes [Wireless Controller]# trust A4:53:85:AF:F5:05
[CHG] Device A4:53:85:AF:F5:05 Trusted: yes
Changing A4:53:85:AF:F5:05 trust succeeded
[Wireless Controller]# info
Device A4:53:85:AF:F5:05 (public)

	Name: Wireless Controller
	Alias: Wireless Controller
	Class: 0x00002508
	Icon: input-gaming
	Paired: yes
	Trusted: yes
	Blocked: no
	Connected: yes
	WakeAllowed: yes
	LegacyPairing: no
	UUID: Human Interface Device... (00001124-0000-1000-8000-00805f9b34fb)
	UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
	Modalias: usb:v054Cp09CCd0100

However, recently I've started to notice that after plugging my DS4 with usb I can no longer connect my DS4 with bluetooth. After some "debugging" I've noticed that for some reason plugging DS4 with usb cable prints those lines in bluetoothctl:

[CHG] Device A4:53:85:AF:F5:05 Connected: no
[CHG] Device A4:53:85:AF:F5:05 Trusted: no
Authorize service
[agent] Authorize service 00001124-0000-1000-8000-00805f9b34fb (yes/no):

And after some time:

[agent] Authorize service 00001124-0000-1000-8000-00805f9b34fb (yes/no): Request canceled [DEL] Device A4:53:85:AF:F5:05 Wireless Controller

So my guess is while I'm doing my "buisness", authorization request gets cancelled and BlueZ automatically deletes the device. But why BlueZ requesting authorization in the first place if I'm plugging my gamepad through usb? Inetestingly, authorization is requested every time I plug my gamepad with USB, no matter if my device is already in "trusted" state.

I'm not sure if this is bug with BlueZ, Linux kernel or if it's even a bug at all, but since BlueZ deletes my device, I decided to write this to linux-bluetooth mailing list. I am happy to provide further information if required.

Thanks.