From f9d15748416d80326d83fa756a80b5aa50ad43ea Mon Sep 17 00:00:00 2001 From: perfectra1n Date: Mon, 22 Jun 2026 13:49:04 -0700 Subject: [PATCH] data: enable INDEX_OFFSET on the G502 X PLUS The G502 X PLUS reports a 1-indexed active profile, so without INDEX_OFFSET libratbag targets the wrong profile and DPI/button changes never reach the device (the mouse boots on its first profile, reported as index 1). It also needs the existing G502X_PLUS LED quirk, so list both now that hidpp20 supports multiple quirks. Verified on hardware (usb:046d:4099 via the Lightspeed receiver, Linux 7.x): the device reports active profile index 1, INDEX_OFFSET maps it to 0, and the LED still reads correctly via the G502X_PLUS slot. --- data/devices/logitech-g502-x-plus.device | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/devices/logitech-g502-x-plus.device b/data/devices/logitech-g502-x-plus.device index 2b66ffcd..e15a51fc 100644 --- a/data/devices/logitech-g502-x-plus.device +++ b/data/devices/logitech-g502-x-plus.device @@ -5,4 +5,5 @@ DeviceType=mouse Driver=hidpp20 [Driver/hidpp20] -Quirk=G502X_PLUS +# G502X_PLUS: LED is in the 2nd slot. INDEX_OFFSET: profile index is 1-indexed. +Quirk=G502X_PLUS;INDEX_OFFSET