settings usb mouse rate

Alexander Best alexbestms at math.uni-muenster.de
Tue Jul 14 13:26:01 UTC 2009


i tested the patch with rates of 1, 100 and 1000:

1: random copy&pastes when moving the mouse
100: also random copy&pastes when moving the mouse
1000: OK

setting hw.usb.ums.debug=15 indicates that the polling rate is set exactly to
moused's -F value.

at some point i experienced a crash including a reboot. no core dump was
produced however. i've tried to reproduce the crash but wasn't able to. i
think the crash occured when i booted with a low -F value, then set -F to a
higher value in /etc/rc.conf and after that unplugged the mouse and plugged it
in again. as i said i'm not able to produce the panic any longer. might have
been caused by old code fragments in my /usr/src.

alex

Hans Petter Selasky schrieb am 2009-07-14:
> Hi,

> On Tuesday 14 July 2009 13:28:28 Alexander Best wrote:
> > thx for the patch. i'm recompiling my kernel right now and will
> > test the
> > changes right away. any reason you limited the rate to <= 1000? i
> > had a
> > quick look at the specs of my mouse:

> USB has a limitation of polling 1000 times per second.


> > - 6400 frames per second (5.8 megapixels per second)
> > - 1800dpi Razer Precision 3G infrared sensor

> > what about the mouse resolution? moused comes has the "-r" switch
> > to change
> > it. would usb mice benefit from that option?

> I'm not sure if setting the mouse resolution has a standard USB
> request yet.
> Else it would not be much trouble adding support for that aswell.

> --HPS


More information about the freebsd-usb mailing list