Re: [PATCH] hid-core: Configurable USB HID Mouse Interrupt PollingInterval

From: Mikkel Krautz
Date: Fri Dec 17 2004 - 21:29:08 EST


Greg KH wrote:

On Sat, Dec 18, 2004 at 02:12:50AM +0000, Mikkel Krautz wrote:


Hi!

This patch adds the option "USB HID Mouse Interrupt Polling Interval"
to drivers/usb/input/Kconfig, and a few lines of code to
drivers/usb/input/hid-core.c, to make the config option function.

It allows people to change the interval, at which their USB HID mice
are polled at. This is extremely useful for people who require high
precision, or just likes the feeling of a very precise mouse. ;)

As the Kconfig help implies, setting a lower polling interval is known
to work on several mice produced by Logitech and Microsoft. I only
have a Logitech MX500 to test it on. My results have been positive,
and so have many other people's.



Why not just make it a sysfs file, so you can tune it per device? That
way you also don't have to make it a Kconfig option.

thanks,

greg k-h



I'm not too familiar with sysfs, so I really don't know.

The interval is set when the device is configured - that's only once.

Therefore I think a static value in Kconfig is fine. Wouldn't a sysfs entry be a little overkill for this?


Mikkel Krautz

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/