Comment 6 for bug 1498655

Revision history for this message
Pierre-Loup A. Griffais (plagman) wrote :

I believe the second line of the rule Marc attached might be obsolete; either way, it isn't relevant to the scope of this issue.

Attached a dump of the udev database with both a wired controller and a wireless receiver for the controller connected.

I'm a little nervous about creating a rule based on device class, because the controller/receiver has generic HID endpoints that are used to program it. I don't believe these will match any particular device class. In addition, the controller's firmware will be updated on the fly by the Steam client, which might change the endpoint count and types in the future.

However product IDs might be a good fit; here are the four PIDs that the current model of controllers will report during everyday use:

 D0G_PID = 0x1102,
 D0GGLE_PID = 0x1142,
 D0G_BOOTLOADER_PID = 0x1002,
 D0GGLE_BOOTLOADER_PID = 0x1042,

That being said, there aren't any other USB devices reporting a Valve Corp. USB vendor ID of 0x28DE in the wild right now, but there will be soon when eg. the controllers for the HTC Vive VR headset ship out to the world, so a rule matching any Valve-owned device would be more future-proof.