mattanger / ckb-next

RGB Driver for Linux and OS X
http://forum.corsair.com/v3/showthread.php?t=133929
GNU General Public License v2.0
656 stars 77 forks source link

No Devices connected, Scimitar RGB #153

Closed unloco101 closed 7 years ago

unloco101 commented 7 years ago

I have a scimitar rgb which is not working on Manjaro/Arch linux. It works fine in windows 10. for troubleshooting purposes I have tried your variation of the usbid, as well as the usbid I get from lsusb. I have also tried the 0x4 with both usbid's.

My lsusb shows: Bus 001 Device 002: ID 1b1c:1b3e Corsair

this usbid is different than the one in the listed troubleshooting section. 0x1B1C:0x1B1E

is it possible that this is causing my problem?

Here is the output of CKB-DEV-DETECT

kb-dev-detect - Thu Apr 13 11:45:42 CDT 2017

Kernel: Linux tim-jaro 4.9.20-1-MANJARO #1 SMP PREEMPT Fri Mar 31 17:49:34 UTC 2017 x86_64 GNU/Linux

OS Version:
LSB Version:    n/a
Distributor ID: ManjaroLinux
Description:    Manjaro Linux
Release:    17.0.1
Codename:   Gellivara

USB Devices:

Bus 001 Device 002: ID 1b1c:1b3e Corsair 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x1b1c Corsair
  idProduct          0x1b3e 
  bcdDevice            1.09
  iManufacturer           1 
  iProduct                2 
  iSerial                 3 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           84
    bNumInterfaces          3
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              300mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      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      58
         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     0x0008  1x 8 bytes
        bInterval               8
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     172
         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     0x0040  1x 64 bytes
        bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      25
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1 2>&1

Dmesg:
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.9-x86_64 root=UUID=4ddf6a99-682b-4e11-bbcd-f2dfb8d89bb0 rw quiet loglevel=3 vga=current resume=UUID=76affa59-9e1c-4c92-ad0f-0e84b08aa09e usbhid.quirks=0x1b1c:0x1b3e:0x20000408
[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.9-x86_64 root=UUID=4ddf6a99-682b-4e11-bbcd-f2dfb8d89bb0 rw quiet loglevel=3 vga=current resume=UUID=76affa59-9e1c-4c92-ad0f-0e84b08aa09e usbhid.quirks=0x1b1c:0x1b3e:0x20000408
[    1.681651] input: Corsair Corsair Gaming SCIMITAR PRO RGB Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:1B1C:1B3E.0001/input/input2
[    1.681748] hid-generic 0003:1B1C:1B3E.0001: input,hidraw0: USB HID v1.11 Mouse [Corsair Corsair Gaming SCIMITAR PRO RGB Mouse] on usb-0000:00:14.0-1/input0
[    1.681875] hid-generic 0003:1B1C:1B3E.0002: item 0 1 0 8 parsing failed
[    1.681891] hid-generic: probe of 0003:1B1C:1B3E.0002 failed with error -22
[    2.489881] hid-generic 0003:04F2:1459.0003: input,hidraw1: USB HID v1.11 Mouse [PixArt HP USB Optical Mouse] on usb-0000:00:14.0-9/input0
[    2.793698] hid-generic 0003:1532:0118.0004: input,hidraw2: USB HID v1.11 Keyboard [Razer Razer DeathStalker] on usb-0000:00:14.0-10/input0
[    2.850407] hid-generic 0003:1532:0118.0005: input,hidraw3: USB HID v1.11 Keyboard [Razer Razer DeathStalker] on usb-0000:00:14.0-10/input1
[    2.851525] hid-generic 0003:1532:0118.0006: input,hidraw4: USB HID v1.11 Mouse [Razer Razer DeathStalker] on usb-0000:00:14.0-10/input2
unloco101 commented 7 years ago

Holy crap i got it to work! First of all, thank you for your work and proper code comments. For anyone else out there who are looking for a quick fix with the same mouse. I edited /src/ckb/daemon/usb.h and replaced the usb id with mine. Used "find" to locate all the old id's, followed the code comments on where else to edit, then rebuild.

tatokis commented 7 years ago

FYI, your device was already added in the testing branch. https://github.com/mattanger/ckb-next/blob/testing/src/ckb-daemon/usb.h#L69

unloco101 commented 7 years ago

Thanks for the update. I initially used ckb-next-latest-git on AUR, which i assumed was the testing branch. I honestly am not familiar with the workflow / managing repos, gits, and branches. Again thank you all for your work!

tatokis commented 7 years ago

@unloco101 I wasn't aware of that, thanks :) CC @light2yellow

Isn't the "latest" package supposed to have the code from testing? Could you please have a look?

ghost commented 7 years ago

It is and it has. Line 15: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=ckb-next-latest-git#n15