libratbag / piper

GTK application to configure gaming devices
GNU General Public License v2.0
4.58k stars 173 forks source link

Cannot find any devices - Logitech G502 X Plus #961

Closed dotaxis closed 1 month ago

dotaxis commented 1 month ago

Information

Describe the bug Piper does not detect my mouse

To Reproduce Steps to reproduce the behavior:

  1. Build piper and libratbag from source
  2. Enable & start ratbagd service
  3. Launch piper
  4. No devices detected

Logs Please start the daemon with verbosity and reproduce the issue.

First make sure it isn't running already.

 ╰─λ sudo ratbagd --verbose=raw
Starting ratbagd version 0.17 (API version 2)
Initializing libratbag
ratbag debug: New device: MSI MYSTIC LIGHT 
ratbag debug: Using data directory '/usr/local/share/libratbag'
ratbag debug: No data file found for 1462:7c91
ratbag debug: New device: SONiX QK75N
ratbag debug: Using data directory '/usr/local/share/libratbag'
ratbag debug: No data file found for 05ac:024f
ratbag debug: New device: SONiX QK75N
ratbag debug: Using data directory '/usr/local/share/libratbag'
ratbag debug: No data file found for 05ac:024f
ratbag debug: New device: SONiX QK75N
ratbag debug: Using data directory '/usr/local/share/libratbag'
ratbag debug: No data file found for 05ac:024f
ratbag debug: New device: SONiX QK75N
ratbag debug: Using data directory '/usr/local/share/libratbag'
ratbag debug: No data file found for 05ac:024f
ratbag debug: New device: Logitech G502 X PLUS
ratbag debug: Using data directory '/usr/local/share/libratbag'
ratbag debug: No data file found for 046d:c095
ratbag debug: New device: Logitech G502 X PLUS
ratbag debug: Using data directory '/usr/local/share/libratbag'
ratbag debug: No data file found for 046d:c095
ratbag debug: New device: Logitech G502 X PLUS
ratbag debug: Using data directory '/usr/local/share/libratbag'
ratbag debug: No data file found for 046d:c095
DBus server ready

Additional context Add any other context about the problem here.

dotaxis commented 1 month ago

Whoops. I had a .device file in the wrong place.

I copied this one from /usr/share/libratbag to /usr/local/share/libratbag and the device is detected.

logitech-g502-x-plus-wireless.device

[Device]
Name=Logitech G502 X Plus
DeviceMatch=usb:046d:c095
Driver=hidpp20

The image is missing and not all of the buttons appear to be remappable but that is an entirely different issue.