libratbag: Cannot find any devices Logitech G203

Information

  • ratbagd version (ratbagd --version): (0.13):
  • Distribution: Ubuntu 20.04
  • Kernel version (ex. uname -srmo): Linux 5.4.0-37-generic x86_64 GNU/Linux

Device info (if applicable): Bus 005 Device 002: ID 046d:c092 Logitech, Inc. G203 LIGHTSYNC Gaming Mouse

$ ratbagctl 'Logitech G203' info                                                                                                                                                       
Unable to find device Logitech G203

Describe the bug Upon launching the Piper application I get “Cannot find any devices” Screenshot from 2020-06-21 09-26-00

To Reproduce Steps to reproduce the behavior:

  1. Connect device via USB
  2. sudo apt install piper
  3. launch Piper

Logs

$ ratbagd --verbose=raw
Initializing libratbag
ratbag debug: New device: Logitech G203 LIGHTSYNC Gaming Mouse
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: No data file found for 046d:c092
ratbag debug: New device: Logitech G203 LIGHTSYNC Gaming Mouse
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: No data file found for 046d:c092
ratbag debug: New device: SHANWAN PS3 GamePad
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: No data file found for 054c:0268
ratbag debug: New device: Logitech Gaming Keyboard G610
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: No data file found for 046d:c333
ratbag debug: New device: Logitech Gaming Keyboard G610
ratbag debug: Using data directory '/usr/share/libratbag'
ratbag debug: No data file found for 046d:c333
DBus server ready

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

I’m presuming your device ID is the same as mine. You should check with lsusb

I’m on Ubuntu and did the following:

  1. Locate the device file in /usr/share/libratbag
  2. sudo nano /usr/share/libratbag/logitech-g102-g203.device
  3. Copy/paste below in the file
# G102 and G203 (USB)
[Device]
Name=Logitech Gaming Mouse G102/G103
DeviceMatch=usb:046d:c084;usb:046d:c092
Driver=hidpp20
LedTypes=logo;side;
  1. Save and exit (ctrl + x)
  2. Restart piper

I’m presuming your device ID is the same as mine. You should check with lsusb

I’m on Ubuntu and did the following:

1. Locate the device file in `/usr/share/libratbag`

2. `sudo nano /usr/share/libratbag/logitech-g102-g203.device`

3. Copy/paste below in the file
# G102 and G203 (USB)
[Device]
Name=Logitech Gaming Mouse G102/G103
DeviceMatch=usb:046d:c084;usb:046d:c092
Driver=hidpp20
LedTypes=logo;side;
1. Save and exit (ctrl + x)

2. Restart piper

Thanks, I had the same problem and it worked for me too. I think it’s worth noting that, in order to get it working, I had to restart ratbagd too. So: sudo killall ratbagd sudo systemctl start ratbagd.service

Thanks, this worked for me.