Re: [BUG] HID: logitech-hidpp: G502 LIGHTSPEED loses hi-res scroll state after S3 resume
From: Michal Pecio
Date: Thu Sep 10 2026 - 04:44:49 EST
On Wed, 9 Sep 2026 18:13:17 -0600, Quinn Schive wrote:
> I tested the patch you suggested, and so far it appears to have fixed
> the problem on my system.
Thanks for testing, looks like that issue may be somewhat widespread.
BTW, you may respond to the patch (in its original thread) with:
Tested-by: Your Name <email@address>
and a brief note that it's confirmed to work for you as well.
As for the Logitech driver, I'd guess it needs something like this.
Of course, the xHCI patch must be removed to reproduce this again.
diff --git a/drivers/hid/hid-logitech-hidpp.c b/drivers/hid/hid-logitech-hidpp.c
index 1504de32b1c8..0107ffc9efb3 100644
--- a/drivers/hid/hid-logitech-hidpp.c
+++ b/drivers/hid/hid-logitech-hidpp.c
@@ -4711,6 +4711,21 @@ static bool hidpp_application_equals(struct hid_device *hdev,
return report && report->application == application;
}
+static int hidpp_reset_resume(struct hid_device *hdev)
+{
+ struct hidpp_device *hidpp = hid_get_drvdata(hdev);
+ int ret = 1234;
+
+ /* reset disables hi-res scroll, restore if it was used */
+ if (hidpp && hidpp->vertical_wheel_counter.wheel_multiplier > 1)
+ ret = hi_res_scroll_enable(hidpp);
+
+ dev_info(&hdev->dev, "hidpp_reset_resume mult %d ret %d\n",
+ hidpp ? hidpp->vertical_wheel_counter.wheel_multiplier : 4321,
+ ret);
+ return 0;
+}
+
static int hidpp_probe(struct hid_device *hdev, const struct hid_device_id *id)
{
struct hidpp_device *hidpp;
@@ -5059,6 +5074,7 @@ static struct hid_driver hidpp_driver = {
.input_configured = hidpp_input_configured,
.input_mapping = hidpp_input_mapping,
.input_mapped = hidpp_input_mapped,
+ .reset_resume = pm_ptr(hidpp_reset_resume),
};
module_hid_driver(hidpp_driver);