question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does not support model CUH-ZCT2E

See original GitHub issue

Issue: ds4drv does not recognize some of the newer DS4 devices, including CUH-ZCT2E.

Expected behavior: ds4drv would recognize this controller like any other.

Potentially related bugs: #104, #114, #162, #163

Related info: My controller shows up using lsusb as 054c:05c4 Sony Corp. DualShock 4. My output when using ds4drv:

[info][controller 1] Created devices /dev/input/js1 (joystick) /dev/input/event16 (evdev) 
[info][bluetooth] Scanning for devices

At this point it hangs. Same thing when using hidraw via USB:

$ ds4drv --hidraw
[info][controller 1] Created devices /dev/input/js1 (joystick) /dev/input/event16 (evdev) 
[info][hidraw] Scanning for devices

I don’t think that it’s being recognized by hidraw at all. See this output after plugging it in from dmesg:

[61094.034997] usb 1-3: new full-speed USB device number 15 using xhci_hcd
[61094.184448] usb 1-3: New USB device found, idVendor=054c, idProduct=05c4
[61094.184470] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[61094.184484] usb 1-3: Product: Wireless Controller
[61094.184495] usb 1-3: Manufacturer: Sony Computer Entertainment
[61099.394990] sony 0003:054C:05C4.0013: failed to retrieve feature report 0x81 with the DualShock 4 MAC address

My system:

$ lsb_release -cdr:
Description:	Ubuntu 18.04.2 LTS
Release:	18.04
Codename:	bionic
$ uname -rs
Linux 4.15.0-46-generic

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12

github_iconTop GitHub Comments

3reactions
noabodycommented, Apr 23, 2022

On Arch, I modified the hid-sony-ds3usb-dkms package with the patch that chloekek referenced so that my Wingman XE adapter could be recognized as a DS4 controller. This adapter, and I presume many knock-off, or alternative controllers, use feature report 0x12 instead of 0x81. I think adding support for 0x12 in ds4drv would be of great benefit to users.

See more information at my blog.

Apparently ds4drv uses ATTR{product}=="<our product>" in file hidraw.py to identify supported devices? Here’s how I found mine:

$ lsusb
Bus 001 Device 003: ID 0c12:0efa Zeroplus Brook Wingman Converter XE
$ udevadm info -a /dev/bus/usb/001/003
ATTR{product}=="Brook Wingman Converter XE"

So, theoretically, we can add my adapter by modifying hidraw.py as so:

HID_DEVICES = {
    "Sony Interactive Entertainment Wireless Controller": HidrawUSBDS4Device,
    "Sony Computer Entertainment Wireless Controller": HidrawUSBDS4Device,
    "Wireless Controller": HidrawBluetoothDS4Device,
    "Brook Wingman Converter XE": HidrawUSBDS4Device,
}

What is the product “name” for CUH-ZCT2E? If it doesn’t match one of those shown then it may simply need to be added to the list. Feature report 0x12 may not help for the reported problem although it will probably help overall.

Some discussion of 0x12 can also be found here.

0reactions
BlessedBoicommented, Dec 4, 2022

CUH-ZCT2E already works fine with Bluetooth. The problem is USB-specific.

So you can for example change color of light bar using steam?

Read more comments on GitHub >

github_iconTop Results From Across the Web

CUH-ZCT2E - PlayStation
DUALSHOCK®4 Wireless Controller (1), Instruction manual (this document) (1), A USB cable is not included. To connect or charge the controller, use the...
Read more >
I wanna say that my PS4 controller (Model No. CUH-ZCT2E) is ...
My controller is not charging and turning on...I replaced it's battery with a new one but nothing really happened...please help me.
Read more >
Dualshock 4 controller (new model cuh-zct2e) not fully
Dualshock 4 controller (new model cuh-zct2e) not fully compatible with Windows 10? I tried new DS4 controller today (through wired and bluetooth ...
Read more >
DualShock 4 CUH-ZCT2 - iFixit
NOTE: These adapters are NOT supported by Sony. For the best results, it's best to stick to these adapters (or very similar equivalent...
Read more >
DualShock 4 CUH-ZCT2 support (PS4 Slim controller)
This is the first time I am hooking a DS4 to the Link so I can't tell if X-Y-A-B mappings are correct. I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found