LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 10-17-2019, 11:24 AM   #1
Maziac
LQ Newbie
 
Registered: Oct 2019
Posts: 1

Rep: Reputation: Disabled
xhci (USB) poll time


Hi,

I have a problem with the USB drivers.
My goal is to override the polling rate of a USB controller (joystick, high speed).
The requested rate is 8ms but I would like to poll it at 1ms.

I tried the suggestions here:
https://wiki.archlinux.org/index.php/Mouse_polling_rate

But this does not seem to work as the xhci drivers are used and not the ehci drivers.
The BIOS has no option to disable the USB 3.0 capabilities.

So I compiled an own kernel and now I'm trying to hardcode the polling rate to 1ms.
Note: I don't need a "clean" solution. For me also a hack would do as this machine uses USB only for USB game controllers (and a mouse/keyboard).

But I cannot find the right location. I thought I could change the polling rate in
'usb_parse_endpoint' but this does not work.
I set the 'endpoint->desc.interval' to 1 and I also put a 'printk' there to see that the line is executed but without success.
Still the polling rate is 8ms.

I tried the same in 'hid-core.c/usbhid_start:case HID_GD_JOYSTICK' but without any success.
It seems like the interval value is overwritten somewhere else.

Any help is appreciated.

(I am using the kernel 4.15.18, Ubuntu 16.04.)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xhci smart auto: Cannot enable port 1. Maybe the USB cable is bad? pverha10 Slackware 5 04-18-2015 08:29 AM
USB 3.0 ports running on ehci when xhci is included in my kernel Alpha90 Linux - Hardware 2 11-02-2012 04:40 PM
Load test, boundary test & stress test for USB EHCI/xHCI driver rama_toshiba Linux - Kernel 5 02-29-2012 02:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration