libratbag: Logitech G915 TKL Not detected

Information libratbag: 0.15-1 Distro: Manjaro, up to date Kernel:Linux 5.12.2-1-MANJARO x86_64 GNU/Linux

sudo ratbagd --verbose:

ratbag debug: New device: Logitech G915 TKL LIGHTSPEED Wireless RGB Mechanical Gaming Keyboard
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: No data file found for 046d:c343

Logitech G915 TKL should be detected, but is not detected. Correct device ID per https://github.com/libratbag/libratbag/blob/master/data/devices/logitech-g915-tkl.device

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Reactions: 7
  • Comments: 16 (5 by maintainers)

Most upvoted comments

I don’t think it’s straight forward, I suspect this receiver works the same as the c547, which I started upstreaming but got busy and didn’t finish.

https://patchwork.kernel.org/project/linux-input/patch/20210123180334.3062995-1-lains@archlinux.org/#23958539

Hi, took this keyboard from package 15mins ago…

I’m running Arch on the same libratbag version, and in this version, the config file is missing for the device. One could also build from the master branch to include this device.

I got the color controls to work by just creating the missing file (which you linked):

/usr/share/libratbag/logitech-g915-tkl.device:
[Device]
Name=Logitech G915 TKL
DeviceMatch=usb:046d:c343;bluetooth:046d:b35f
LedTypes=logo;switches
Driver=hidpp20

[Driver/hidpp20]
DeviceIndex=1

I’m also having trouble with G915-TKL

libratbag 0.15-1+git1664-abe451d~ubuntu20.04.1

It only sees the receiver:

ratbag debug: 046d:c545 is a Logitech receiver, not a device. Ignoring...
ratbag debug: New device: Logitech USB Receiver
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: 046d:c545 is a Logitech receiver, not a device. Ignoring...
ratbag debug: New device: Logitech USB Receiver
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: 046d:c545 is a Logitech receiver, not a device. Ignoring...
ratbag debug: New device: Logitech USB Receiver
ratbag debug: Using data directory '/usr/share/libratbag'

It actually reports it three times.

solaar is showing the data ok, though:

solaar show
Lightspeed Receiver
  Device path  : /dev/hidraw4
  USB id       : 046d:C545
  Serial       : FCE9BE43
    Firmware   : 02.00.B0001
    Bootloader : 00.01
    Other      : 1B.19
  Has 1 paired device(s) out of a maximum of 2.
  Notifications: wireless, software present (0x000900)
  Device activity counters: 1=72

  1: G915 TKL LIGHTSPEED Wireless RGB Mechanical Gaming Keyboard
     Device path  : None
     WPID         : 408E
     Codename     : G915 TKL
     Kind         : keyboard
     Protocol     : HID++ 4.2
     Polling rate : 1 ms (1000Hz)
     Serial number: C2453C3F
     Model ID:      B35F408EC343
     Unit ID:       C2453C3F
        Bootloader: BL1 12.00.B0017
             Other:
          Firmware: MPK 14.00.B0017
             Other:
             Other:
     The power switch is located on the top left corner.
     Supports 38 HID++ 2.0 features:
         0: ROOT                   {0000}
         1: FEATURE SET            {0001}
         2: DEVICE FW VERSION      {0003}
            Firmware: Bootloader BL1 12.00.B0017 00008B79E978
            Firmware: Other
            Firmware: Firmware MPK 14.00.B0017 408E8B79E978
            Firmware: Other
            Firmware: Other
            Unit ID: C2453C3F  Model ID: B35F408EC343  Transport IDs: {'btleid': 'B35F', 'wpid': '408E', 'usbid': 'C343'}
     [...]

Note: Unit ID: C2453C3F Model ID: B35F408EC343 Transport IDs: {'btleid': 'B35F', 'wpid': '408E', 'usbid': 'C343'}

so apparently it seems to match the data file, which is present and correct.

How can I further debug this?? Thank you

Any news regarding the c547 lightspeed receiver @FFY00? It prevents sleep mode by causing instant wake-up, only solaar supports it and fixes this issue. Upstream support would be very welcome, allowing ratbagd to be used with it.

Hi @worzel910, please try appending usb:046d:407C to DeviceMatch, so data/devices/logitech-g915.device will look like

[Device]
Name=Logitech G915
DeviceMatch=usb:046d:c33e;usb:046d:407C
LedTypes=logo;switches
Driver=hidpp20

[Driver/hidpp20]
DeviceIndex=1

So, I looked into this again and found some similar issues where the problem can be worked around by connecting the keyboard to the computer through the USB cable. You can then just directly call piper and it just works. No nice picture from the keyboard is shown but I guess that’s piper’s problem. The changes persist afterwards so just connect the cable, open piper, change the config and you can disconnect again.

This doesn’t solve the problem but it’s something.

I’m running libratbag v0.16.r15.62f26e7-1 and the issue described by @pandiloko persists. ratbagd finds only the receiver and not the actual device repeating it three times:

ratbag debug: New device: Logitech USB Receiver
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: 046d:c541 is a Logitech receiver, not a device. Ignoring...
ratbag debug: New device: Logitech USB Receiver
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: 046d:c541 is a Logitech receiver, not a device. Ignoring...
ratbag debug: New device: Logitech USB Receiver
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: 046d:c541 is a Logitech receiver, not a device. Ignoring...

I’m decently sure this has been corrected in an update since.

Closing