Re: [BUG] HID: logitech-hidpp: G502 LIGHTSPEED loses hi-res scroll state after S3 resume

From: Quinn Schive

Date: Wed Sep 09 2026 - 20:15:41 EST


Hi Michal,

I tested the patch you suggested, and so far it appears to have fixed the problem on my system.

For reference, I have two AMD PROM21 xHCI controllers:

0f:00.0 AMD 800 Series Chipset USB 3.x XHCI Controller [1022:43fd]
11:00.0 AMD 800 Series Chipset USB 3.x XHCI Controller [1022:43fd]

Before applying the patch, the problem was occurring often enough that it was very easy to reproduce. I was able to reproduce the resume failure on the unmodified Arch Linux 7.2.4 kernel:

xhci-pci-prom21 0000:11:00.0: xHC error in resume, USBSTS 0x401, Reinit
usb usb10: root hub lost power or was reset
usb usb11: root hub lost power or was reset

The same type of failure also occurred on the other PROM21 controller.

I then built the same Arch Linux 7.2.4 kernel with the v5 "usb: pci-quirks: always assert xHCI OS ownership" patch applied.

I have now completed 10+ consecutive S3 deep suspend/resume cycles with the patched kernel. This included several short manual suspend cycles, normal automatic suspend cycles, and one suspend lasting about 40 minutes.

So far, across all 10+ cycles, I have not seen any of the following:

xHC error in resume
USBSTS 0x401
PROM21 controller reinitialization
root hub lost power or was reset
reset of the Logitech LIGHTSPEED receiver

Subjectively, the G502 wheel has also remained completely normal after every resume. Before applying the patch, the slow scrolling problem was happening very frequently and was easy to reproduce, so the difference has been quite noticeable.

These are just my findings on this particular system, but at this point the patch appears to be working very well here.

If there are any additional tests, logs, or specific suspend/resume scenarios you would like me to try, please let me know and I would be happy to test them.

Thanks for pointing me to the patch.

Regards,
Quinn S.

On 2026-09-09 14:27, Michal Pecio wrote:
On Wed, 9 Sep 2026 09:58:28 -0600, Quinn Schive wrote:
After some S3 resumes, mouse wheel scrolling becomes approximately 8
times slower.

Turning the G502 off and back on immediately restores normal
scrolling.

I captured the failure before power-cycling the mouse.

During the resume that triggered the problem, both PROM21 xHCI
controllers reported:

xhci-pci-prom21 0000:11:00.0: xHC error in resume, USBSTS 0x401, Reinit
usb usb10: root hub lost power or was reset
usb usb11: root hub lost power or was reset

Hi,

You could try if this problem is fixed by the following patch:
https://lore.kernel.org/linux-usb/178832755831.50581.1058201741431375556@xxxxxxxxx/

That being said,

My interpretation, with the caveat that I am not familiar with the
HID++ driver internals, is:

1. Before suspend, the G502 is configured for high-resolution
scrolling and hid-logitech-hidpp stores wheel_multiplier=8.

2. During S3 resume, the PROM21 xHCI controller fails normal resume
and is reinitialized.

3. The LIGHTSPEED receiver gets a USB reset while USB persistence
keeps the logical receiver/HID device present.

4. The G502 appears to lose its high-resolution wheel reporting
configuration. In the affected state, one physical detent generates
only one raw increment.

5. hid-logitech-hidpp retains wheel_multiplier=8 and apparently does
not re-run the necessary high-resolution configuration on this
recovery path.

this still looks like missing functionality in the driver.
Needs to handle reset_resume() perhaps?

Regards,
Michal