How to use a high polling rate mouse on Linux

I just bought a Cooler Master Storm Mizer mouse. Unboxing here:

This mouse is not so expensive and has a good specification (8200 DPI and 1000Hz). But by default Linux uses 125Hz polling rate.

You can change it passing the “mousepoll” parameter to usbhid module.

Edit the file /etc/modprobe.d/modprobe.conf and add:

options usbhid mousepoll=1

The value 1 means 1 milisecond poll period (1000Hz), 2 milisecond = 500Hz, and so on.

Now remove the usbhid module and load it again to get it working:

$ sudo -s
# modprobe -r usbhid && modprobe usbhid

Unplug and plug your mouse again (optional)

Now you can test if everything is working as expected:

$ wget https://github.com/ian-kelling/evhz/raw/master/evhz.c
$ gcc -o evhz evhz.c
$ sudo -s
# ./evhz
Press CTRL-C to exit.

event0: AT Translated Set 2 keyboard
event1: Cooler Master Storm Mizar Mouse
event2: Power Button
event3: Sleep Button
event4: Lid Switch
event5: Power Button
event6: PC Speaker
event7: Dell WMI hotkeys
event8: HDA Digital PCBeep
event9: HDA Intel PCH Mic
event10: HDA Intel PCH Headphone
event11: HDA Intel PCH HDMI/DP,pcm=3
event12: PS/2 Generic Mouse
event13: Cooler Master Storm Mizar Mouse
event14: Video Bus
event15: Video Bus
event16: Laptop_Integrated_Webcam_HD
event17: Cooler Master Storm Mizar Mouse
event18: Cooler Master Storm Mizar Mouse
Cooler Master Storm Mizar Mouse: Latest   500Hz, Average   500Hz
Cooler Master Storm Mizar Mouse: Latest   500Hz, Average   500Hz
Cooler Master Storm Mizar Mouse: Latest   500Hz, Average   500Hz
Cooler Master Storm Mizar Mouse: Latest  1000Hz, Average   625Hz
Cooler Master Storm Mizar Mouse: Latest  1000Hz, Average   700Hz

Very nice!

Source: https://wiki.archlinux.org/index.php/Mouse_polling_rate

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s