I have this spare Sony Dualshock 4 Playstation controller lying around. It clicked in my head that it has a USB connection and so I plugged it into my Raspberry Pi running Astroberry to see if I could use it as a joystick. TL;DR: No.
Bus 001 Device 018: ID 054c:09cc Sony Corp. DualShock 4 [CUH-ZCT2x]
Which all look great, but I don't see a device for the controller in /dev (other than the /dev/bus/usb/... device). However, "dmesg" shows:
[421877.145969] usb 1-1.3: USB disconnect, device number 23
[421901.952654] usb 1-1.2: new full-speed USB device number 28 using xhci_hcd
[421902.089712] usb 1-1.2: New USB device found, idVendor=054c, idProduct=09cc, bcdDevice= 1.00
[421902.089735] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[421902.089753] usb 1-1.2: Product: Wireless Controller
[421902.089771] usb 1-1.2: Manufacturer: Sony Interactive Entertainment
[421903.003267] usb 1-1-port4: Cannot enable. Maybe the USB cable is bad?
[421903.102672] usb 1-1.4: new high-speed USB device number 30 using xhci_hcd
[421904.013294] usb 1-1-port4: Cannot enable. Maybe the USB cable is bad?
[421904.013955] usb 1-1-port4: attempt power cycle
[421905.263268] usb 1-1-port4: Cannot enable. Maybe the USB cable is bad?
[421906.173319] usb 1-1-port4: Cannot enable. Maybe the USB cable is bad?
[421906.173986] usb 1-1-port4: unable to enumerate USB device
Which doesn't look good.
Ekos doesn't seem to find it at all, so I'm guessing either I don't have a proper driver for this device, or it's simply not going to work. Does anyone have any clue?