Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
is there a way to set the polling rate for a touchpad?
Im using a Magic Trackpad 2 and Im receiving 90 updates per second from my customized kernel-module.
But bInterval in lsmod reports an poll-rate of 8ms, how is that possible? So it should update 125 times a second, not only 90.
Ive tried to set the mousepoll option in usbhid without effect.
I was pointing you at a possible reason why the polling rate might not be work as expected. Is the the mouse connected to a USB 2.0 or USB 3.0 port? Is the xhci_hcd driver in use for that port?
can do this on monday. But it is a Raspberry Pi 3B+ so cant be a USB3 for sure
the driver in use is the bcm5974 (a USB driver), which I modified slightly to send the polled data to my application directly. The system is a raspbian with simple Xfce desktop so that the Xorg-Server will run the driver. So possibly I have to change something on the xorg settings?
what drivers are possible and which one would be worse?
And if I have that "bad" driver, could I easily change some lines of code in the source and recompile it? I guess it would be a bad idea, because a lot of other devices might get screwed or so? ^^
Stay with the line of investigation (as per post #2 and #4). The Archwiki reference mentions
Quote:
Polling rate not changing
The USB 3 driver xhci-hcd may be ignoring the usbhid mousepoll setting. See the linux-usb mailing list message and Bug.
The xhci-hcd module should respect the interval requested by the device, so check the documentation for the device for a hardware or firmware setting.
A work-around that may help is to connect the device to a port using a different driver.
Another work-around is to disable xHCI. There might be a BIOS setting for this or you can do so by blacklisting the xhci-hcd module. However, either way will cause any USB 3 ports to act as USB 2 as the kernel will use the ehci-hcd module instead.
When we know if that is impacting here, it is possible to force the use of the ehci-hcd driver.
The other aspect I'm now wondering about is setting the polling rate with respect to the bcm5974 driver. I assume that you followed advice relating to the usbhid driver, and that won't be relevant here AFAIU.
The 'Spd=12' paramter shows that it is behaving as a 'full-speed' (USB 1.1) device, rather than a 'high-speed' (USB 2.0) device. Although these HID devices don't require high data rates (so full-speed is more than sufficient), I'm not sure if this might impact on the maximum polling rate somehow.
The 'Spd=12' paramter shows that it is behaving as a 'full-speed' (USB 1.1) device, rather than a 'high-speed' (USB 2.0) device. Although these HID devices don't require high data rates (so full-speed is more than sufficient), I'm not sure if this might impact on the maximum polling rate somehow.
I see the update rate in my application, which is fed directly from the bcm driver.
And Im creating a new input prototype and goal is less then 40ms total in out latency. At the moment I have 80ms, which is too much (you can feel it). So I try to minimize every possible bottleneck.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.