bug: usbhid.mousepoll not working

From: Mathias Steiger <hidden>
Date: 2021-01-24 09:36:58

Kernel Version: 5.11-rc3
Hardware: ARM
OS: Linux
Driver is xhci and can't be disabled.

It doesn't matter what value I use and it saves, it is always treated as if unset (i.e. "0").

In contrast: it is working on my 5.10.9-arch1-1 x86 PC (ehci only) with module reload, after unplugging and plugging the cable back in.


Tell me what I can do.


I set usbhid.mousepoll=50 via kernel option or unload and load module with it.
cat /sys/module/usbhid/parameters/mousepoll
50

I unplug and replug the cable like on my x86 PC. No effect.
./evhz
HID 0e8f:2517 Mouse: Latest    62Hz, Average    91Hz
HID 0e8f:2517 Mouse: Latest   125Hz, Average    91Hz
HID 0e8f:2517 Mouse: Latest    62Hz, Average    91Hz
HID 0e8f:2517 Mouse: Latest   125Hz, Average    91Hz
...
Razer Razer DeathAdder: Latest  1000Hz, Average   921Hz
Razer Razer DeathAdder: Latest  1000Hz, Average   921Hz
Razer Razer DeathAdder: Latest  1000Hz, Average   921Hz
Razer Razer DeathAdder: Latest  1000Hz, Average   921Hz

https://bugzilla.kernel.org/show_bug.cgi?id=211325


I also want to stress how this is important on ARM systems: With the normal polling rate of 100Hz, Youtube may use up to 60% additional CPU in Firefox on a 2017 TV box, making either 1080p videos stutter or throttle down to 144p all the time. With a gaming mouse that defaults to 1000Hz, it may totally max out the CPU even on 480p. On a TV box, people rather use low-accuracy mini-keyboard trackpads than normal mice. Those can be set to 20Hz and as low as 10Hz without any difference in usability. As a person might use both the remote mini-keyboard from the couch to watch TV and also a normal set of mouse/keyboard when sitting in front of the TV and using the TV box for office applications or browsing.

It would be best if mousepoll could be set per device instead.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help