Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASUS ROG Gladius II Core #1366

Open
evrifaessa opened this issue Nov 11, 2022 · 11 comments · May be fixed by #1367
Open

ASUS ROG Gladius II Core #1366

evrifaessa opened this issue Nov 11, 2022 · 11 comments · May be fixed by #1367

Comments

@evrifaessa
Copy link

libratbag has support for similar devices such as Gladius II and Gladius II Origin. If you are interested in implementing this mouse, I can provide you any diagnostic data you need.

@staticssleever668
Copy link
Member

Hello, that would be nice!
Please, post the output of lsusb -vd 0b05: in the terminal.

Gentle ping, @kyokenn. Since you made the driver for ASUS devices, would you like to get mentioned whenever support for new devices for it is requested?
I also checked your rogdrv repository, this mouse doesn't seem to be supported there either.

@kyokenn
Copy link
Contributor

kyokenn commented Nov 12, 2022

Since you made the driver for ASUS devices, would you like to get mentioned whenever support for new devices for it is requested?

Yeah, sure.

@evrifaessa
Copy link
Author

@kyokenn, here is the output:

[evrifaessa@fedora ~]$ lsusb -vd 0b05:

Bus 001 Device 005: ID 0b05:18dd ASUSTek Computer, Inc. ROG GLADIUS II CORE
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0b05 ASUSTek Computer, Inc.
  idProduct          0x18dd 
  bcdDevice            2.03
  iManufacturer           1 ASUSTeK
  iProduct                2 ROG GLADIUS II CORE
  iSerial                 3 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x005b
    bNumInterfaces          3
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      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      34
         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
      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
    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      66
         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     0x0006  1x 6 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     136
         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     0x0011  1x 17 bytes
        bInterval               1

@kyokenn kyokenn linked a pull request Nov 13, 2022 that will close this issue
@kyokenn
Copy link
Contributor

kyokenn commented Nov 13, 2022

I have added device file https://github.com/kyokenn/libratbag/blob/g2core/data/devices/asus-rog-gladius2-core.device
You can test it without rebuilding, if you already have the latest libratbag build with asus driver.

@evrifaessa
Copy link
Author

@kyokenn, I don't know if I have the ASUS driver. I don't have any ASUS .device files related to ASUS models in /usr/share/libratbag. I tried adding this device file, then restarting the ratbagd service, but Piper still can't detect my mouse.

@kyokenn
Copy link
Contributor

kyokenn commented Nov 13, 2022

I don't have any ASUS .device files related to ASUS models

I see. So you have an older version. You need to build the latest one. You can build from my branch.

@staticssleever668
Copy link
Member

staticssleever668 commented Nov 14, 2022

@evrifaessa, the support for ASUS devices only came out very recently, in v0.17 released less than a week ago, so not all distros have updated to it yet. Since that may take a while, you should probably build libratbag yourself. https://github.com/libratbag/libratbag/wiki/Building-from-source.

To track whether libratbag in repository of your distro has been updated, I suggest using Repology: https://repology.org/project/libratbag/versions.

@evrifaessa
Copy link
Author

I'm using Fedora 37. I think I'll wait until the update arrives to me.

@staticssleever668
Copy link
Member

Would it be possible to just test it with rogdrv?

@staticssleever668
Copy link
Member

@evrifaessa, hi! Fedora 38 with libratbag v0.17 has been out for a while, if you've updated, could you check it now?

@evrifaessa
Copy link
Author

Just tested. Piper can now recognize the mouse. Though I can say there are a few issues.

  • It recognizes two different devices under the same name. A regular one and one with unknown button mappings.
  • LEDs are kind of buggy:
    1. Solid colors won't work
    1. The device has two RGB spots, not three
  • The DPI can go up to 6200, whereas Piper only lets you go until 600.
  • No image of the mouse exists. The default one is shown instead (the mouse holding a 404 sign)
  • If you remove two of the three profiles, leaving only one, the two profiles you've removed eventually come back with the default settings.

This is my initial testing. Let me know if I can help with any debugging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants