flozz / rivalcfg

CLI tool and Python library to configure SteelSeries gaming mice
https://flozz.github.io/rivalcfg/
Do What The F*ck You Want To Public License
761 stars 62 forks source link

Request: Support for Steelseries Prime #166

Closed Meneth32 closed 1 year ago

Meneth32 commented 3 years ago

The new Prime mouse is out and I've got my hands on one. It features four buttons, and RGB-lit scroll wheel and fancy photodiode switches.

Webpage: https://steelseries.com/gaming-mice/prime

kern.log:

kernel: [10955808.899616] usb 4-4: new full-speed USB device number 2 using ohci-pci
kernel: [10955809.128943] usb 4-4: New USB device found, idVendor=1038, idProduct=182e
kernel: [10955809.128949] usb 4-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
kernel: [10955809.128952] usb 4-4: Product: SteelSeries Prime
kernel: [10955809.128954] usb 4-4: Manufacturer: SteelSeries
kernel: [10955809.560662] hidraw: raw HID events driver (C) Jiri Kosina
kernel: [10955809.608166] usbcore: registered new interface driver usbhid
kernel: [10955809.608169] usbhid: USB HID core driver
kernel: [10955809.653999] hid-generic 0003:1038:182E.0001: hiddev0,hidraw0: USB HID v1.11 Device [SteelSeries SteelSeries Prime] on usb-0000:00:13.0-4/input0
kernel: [10955809.654965] input: SteelSeries SteelSeries Prime as /devices/pci0000:00/0000:00:13.0/usb4/4-4/4-4:1.1/0003:1038:182E.0002/input/input12
kernel: [10955809.655446] hid-generic 0003:1038:182E.0002: input,hidraw1: USB HID v1.11 Mouse [SteelSeries SteelSeries Prime] on usb-0000:00:13.0-4/input1
kernel: [10955809.655880] hid-generic 0003:1038:182E.0003: hiddev1,hidraw2: USB HID v1.11 Device [SteelSeries SteelSeries Prime] on usb-0000:00:13.0-4/input2
kernel: [10955809.658490] input: SteelSeries SteelSeries Prime as /devices/pci0000:00/0000:00:13.0/usb4/4-4/4-4:1.3/0003:1038:182E.0004/input/input13
kernel: [10955809.716032] hid-generic 0003:1038:182E.0004: input,hidraw3: USB HID v1.11 Keyboard [SteelSeries SteelSeries Prime] on usb-0000:00:13.0-4/input3

lsusb:

$ sudo lsusb -d 1038:182E --verbose

Bus 004 Device 002: ID 1038:182e SteelSeries ApS
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x1038 SteelSeries ApS
  idProduct          0x182e
  bcdDevice            1.00
  iManufacturer           1 SteelSeries
  iProduct                2 SteelSeries Prime
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          109
    bNumInterfaces          4
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              200mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      37
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      2 Mouse
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      98
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0009  1x 9 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      21
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      76
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0009  1x 9 bytes
        bInterval               1
Device Status:     0x0000
  (Bus Powered)
flozz commented 3 years ago

Thank you for all the details about the device :)

Meneth32 commented 1 year ago

Tested and working. :)