Mousepoll refresh sample rate

Hi,

Anyone know the correct way to set the mousepoll rate to 200-500Hz as default when the computer starts?

Found some information describing how to do it for other distributions, but it doesn’t work with opensuse 12.3.

Apparently there should be a way to set a mousepoll value (these are from ubuntu)

1 = 1000Hz
2 = 500Hz
4 = 250Hz
8 = 125Hz
10 = 100Hz (Default)

It will set how often the mouse polls for changes and the mouse pointer movement will be much smoother, possibly it costs more CPU time but it’s ok for me, prefer ultra smooth movement.

Thanks,
Regards

On Sat 16 Mar 2013 07:56:02 PM CDT, abusername wrote:

Hi,

Anyone know the correct way to set the mousepoll rate to 200-500Hz as
default when the computer starts?

Found some information describing how to do it for other distributions,
but it doesn’t work with opensuse 12.3.

Apparently there should be a way to set a mousepoll value (these are
from ubuntu)

1 = 1000Hz
2 = 500Hz
4 = 250Hz
8 = 125Hz
10 = 100Hz (Default)

It will set how often the mouse polls for changes and the mouse pointer
movement will be much smoother, possibly it costs more CPU time but it’s
ok for me, prefer ultra smooth movement.

Thanks,
Regards

Hi
What driver is the mouse using? Then you need to check the module
options to see if you can configure. My default is 125Hz when checked
with evhz.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.3 (x86_64) Kernel 3.7.10-1.1-desktop
up 16:48, 3 users, load average: 0.10, 0.10, 0.12
CPU Intel® i5 CPU M520@2.40GHz | GPU Intel® Ironlake Mobile

Guess it is the standard usb optical mouse driver that is included in OpenSuse 12.3 - Gnome, usbhid module thing.
According to evhz the current Hz is 125Hz.

Found some instructions on this page, but the files it refers to does not exist in my installation.

https://wiki.archlinux.org/index.php/Mouse_Polling_Rate

For instance there is no file called modprobe.conf and don’t know if its just a matter of adding one and it gets run automatically during startup.

/etc/modprobe.d/modprobe.conf

So not sure where to put

options usbhid mousepoll=2

Thanks,
Regards

On Sat 16 Mar 2013 09:36:01 PM CDT, abusername wrote:

malcolmlewis;2536333 Wrote:
> Hi
> What driver is the mouse using? Then you need to check the module
> options to see if you can configure. My default is 125Hz when checked
> with evhz.
>
> –
> Cheers Malcolm °¿° (Linux Counter #276890)
> openSUSE 12.3 (x86_64) Kernel 3.7.10-1.1-desktop
> up 16:48, 3 users, load average: 0.10, 0.10, 0.12
> CPU Intel® i5 CPU M520@2.40GHz | GPU Intel® Ironlake Mobile

Guess it is the standard usb optical mouse driver that is included in
OpenSuse 12.3 - Gnome, usbhid module thing.
According to evhz the current Hz is 125Hz.

Found some instructions on this page, but the files it refers to does
not exist in my installation.

Mouse polling rate - ArchWiki

For instance there is no file called modprobe.conf and don’t know if
its just a matter of adding one and it gets run automatically during
startup.

/etc/modprobe.d/modprobe.conf

So not sure where to put

options usbhid mousepoll=2

Thanks,
Regards

Hi
But are you actually using usbhid?


lsmod |grep hid
In my case it returns;
hid_logitech_dj

/sbin/modinfo hid_logitech_dj

This module doesn’t have any options to add…

The files for openSUSE are in /etc/modprobe.d/ here you would add your
own file eg 99-mousepoll.conf and add the options line.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.3 (x86_64) Kernel 3.7.10-1.1-desktop
up 18:14, 3 users, load average: 0.13, 0.07, 0.05
CPU Intel® i5 CPU M520@2.40GHz | GPU Intel® Ironlake Mobile

I usually just add usbhid.mousepoll=2 to grub2 boot options under yast. I am using the usbhid driver and at least on 12.2 can verify it does work using evhz. Though I never noticed a difference in mouse reactivity or anything. I can only assume 125hz is enough. I would go 250hz at most.

It also returns hid_logitech_dj when I try it on this computer, so I guess there is no way to increase the mousepoll rate then?
Just out of curiosity, what does the xx- number stand for in the filenames in modprobe.d/ ?

Thanks,
Regards

ok, dont think it will work since it isn’t usbhid that is in use. Do you mean the input textbox called “Optional Kernel Command Line Parameter:” in Boot Loader Options? just appending **usbhid.mousepoll=2 **

Thanks,
Regards

Actually it did work, according to evhz it averages roughly 500Hz with mousepoll 2. :slight_smile:

Many thanks,
Regards

Yes, this option is only for this module. It just so happens that this is the one I need so the parameter works.

Do you mean the input textbox called “Optional Kernel Command Line Parameter:” in Boot Loader Options? just appending **usbhid.mousepoll=2 **

Quite correct. I just tested it on 12.3 and it works.

Hopefully this helps you in the future. Any method mentioned in this thread would work. I just prefer the boot loader way.

Why can’t we do something simpler like use the mouse config tool on your DE to control pointer speed

I can configure mouse speeds on a GNOME/openSUSE 12.3 machine using below tool

http://paste.opensuse.org/images/7107638.png

This option is about increasing the rate that the kernel updates the mouse position, not speed. I am assuming a slightly higher mouse polling rate would help with high level FPS gaming.