From: zyphr <infzyphr@gmail.com>
To: Mikkel Krautz <krautz@gmail.com>
Cc: linux-kernel@vger.kernel.org, greg@kroah.com, vojtech@suse.cz
Subject: Re: [PATCH] hid-core: Configurable USB HID Mouse Interrupt Polling Interval
Date: Tue, 8 Feb 2005 16:15:53 +0100 [thread overview]
Message-ID: <3de2c80b050208071520375d28@mail.gmail.com> (raw)
In-Reply-To: <20050207185706.GA6701@omnipotens.localhost>
[-- Attachment #1: Type: text/plain, Size: 3415 bytes --]
Something looks odd.
I've tested this with 2.6.11-rc3-bk5 + your lasted patch
cat /sys/module/usbhid/parameters/mousepoll says it's at 2ms
but if I check /proc/bus/usb/devices it's reading 10ms
I've used parameter under /etc/modules (debian sarge)
in there I have added: usbhid mousepoll=2
this used to work ok with:
http://omfg.linux.dk/pub/configurable-hid-mouse-polling/archive/chmp-r5-add-modparam.patch
rmmod usbhid and then "modprobe usbhid mousepoll=x" with a different value,
does change the vualue under /sys
but under /proc/bus/usb/devices it keeps reading the same value (10ms)
I also tried replugging the mouse, the value's stay the same.
I am just a just user, so maybe I did something wrong =)
Thanks,
Joep
On Mon, 7 Feb 2005 19:57:06 +0100, Mikkel Krautz <krautz@gmail.com> wrote:
> This includes the kernel-parameters.txt-patch, and the hid-core.c-patch, without the extra else-statement.
>
> Thanks,
> Mikkel
>
> Signed-off-by: Mikkel Krautz <krautz@gmail.com>
> ---
> --- clean/Documentation/kernel-parameters.txt
> +++ dirty/Documentation/kernel-parameters.txt
> @@ -73,6 +73,7 @@
> SWSUSP Software suspension is enabled.
> TS Appropriate touchscreen support is enabled.
> USB USB support is enabled.
> + USBHID USB Human Interface Device support is enabled.
> V4L Video For Linux support is enabled.
> VGA The VGA console has been enabled.
> VT Virtual terminal support is enabled.
> @@ -1393,6 +1394,9 @@
> Format: <io>,<irq>
>
> usb-handoff [HW] Enable early USB BIOS -> OS handoff
> +
> + usbhid.mousepoll=
> + [USBHID] The interval which mice are to be polled at.
>
> video= [FB] Frame buffer configuration
> See Documentation/fb/modedb.txt.
> --- clean/drivers/usb/input/hid-core.c
> +++ dirty/drivers/usb/input/hid-core.c
> @@ -37,13 +37,20 @@
> * Version Information
> */
>
> -#define DRIVER_VERSION "v2.0"
> +#define DRIVER_VERSION "v2.01"
> #define DRIVER_AUTHOR "Andreas Gal, Vojtech Pavlik"
> #define DRIVER_DESC "USB HID core driver"
> #define DRIVER_LICENSE "GPL"
>
> static char *hid_types[] = {"Device", "Pointer", "Mouse", "Device", "Joystick",
> "Gamepad", "Keyboard", "Keypad", "Multi-Axis Controller"};
> +/*
> + * Module parameters.
> + */
> +
> +static unsigned int hid_mousepoll_interval;
> +module_param_named(mousepoll, hid_mousepoll_interval, uint, 0644);
> +MODULE_PARM_DESC(mousepoll, "Polling interval of mice");
>
> /*
> * Register a new report for a device.
> @@ -1695,6 +1702,10 @@
> if (dev->speed == USB_SPEED_HIGH)
> interval = 1 << (interval - 1);
>
> + /* Change the polling interval of mice. */
> + if (hid->collection->usage == HID_GD_MOUSE && hid_mousepoll_interval > 0)
> + interval = hid_mousepoll_interval;
> +
> if (endpoint->bEndpointAddress & USB_DIR_IN) {
> if (hid->urbin)
> continue;
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
[-- Attachment #2: dmesg_2.6.11-rc3-bk5.txt --]
[-- Type: plain/text, Size: 11776 bytes --]
[-- Attachment #3: proc.bus.usb.devices.txt --]
[-- Type: plain/text, Size: 1905 bytes --]
next prev parent reply other threads:[~2005-02-08 15:16 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-07 18:57 [PATCH] hid-core: Configurable USB HID Mouse Interrupt Polling Interval Mikkel Krautz
2005-02-08 15:15 ` zyphr [this message]
2005-02-08 16:02 ` Oliver Neukum
2005-02-08 16:09 ` Vojtech Pavlik
-- strict thread matches above, loose matches on Subject: below --
2005-02-07 16:46 Mikkel Krautz
2005-02-07 15:44 Mikkel Krautz
2005-02-07 15:59 ` Randy.Dunlap
2005-02-07 17:16 ` Domen Puncer
2005-02-07 17:00 ` Randy.Dunlap
[not found] ` <20050207174303.GA3113@ucw.cz>
2005-02-07 17:51 ` Mikkel Krautz
2005-02-07 17:56 ` Mikkel Krautz
[not found] ` <20050207183818.GB2006@ucw.cz>
2005-02-07 18:41 ` Mikkel Krautz
2005-02-07 15:42 Mikkel Krautz
2004-12-18 2:12 Mikkel Krautz
2004-12-18 0:43 ` Gene Heskett
2004-12-18 1:27 ` Greg KH
2004-12-18 4:22 ` Mikkel Krautz
2004-12-18 3:36 ` Gene Heskett
2004-12-18 4:42 ` Mikkel Krautz
2004-12-18 2:59 ` Greg KH
2004-12-18 4:55 ` Mikkel Krautz
2004-12-18 17:39 ` Mikkel Krautz
2004-12-18 15:40 ` Marcel Holtmann
2004-12-18 17:44 ` Mikkel Krautz
2004-12-18 16:53 ` Greg KH
2004-12-19 1:52 ` Mikkel Krautz
2005-02-06 19:07 ` Vojtech Pavlik
2005-02-06 20:00 ` Mikkel Krautz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3de2c80b050208071520375d28@mail.gmail.com \
--to=infzyphr@gmail.com \
--cc=greg@kroah.com \
--cc=krautz@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=vojtech@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.