Changing the mouse polling rate

Refer to the wiki instead of reading this section.
Locked
User avatar
McKack
Posts: 359
Joined: Thu Jul 07, 2011 7:01 pm
Location: Norway
Contact:

Changing the mouse polling rate

Post by McKack » Sat Jul 09, 2011 1:19 pm

About
If you're experiencing a laggy aim/mouse translation after having increased the DPI to it's max as well as calibrated your configuration following the Configuration & Calibration guide - the problem might be the default (USB) mouse polling rate of the operating system, or in a worst case scenario, a crappy Bluetooth dongle. So let's give the mouse polling rate a shot before we dump the Bluetooth dongle.

WARNING
You're doing this at your own risk! We're not responsible for any damage you may cause to your console, computer or peripherals.



For Ubuntu 10 or later
This method has only been tested with Ubuntu 10 and 11, but may work with older versions.

Edit the modules file

In Terminal:

Code: Select all

gksudo gedit /etc/modules
After entering the password (if prompted) the modules file will be opened in a text editor with the proper permissions, allowing you to edit it.

Then, at the bottom add these two lines and save the file:

Code: Select all

-r usbhid
usbhid mousepoll=NUMBER
Image

Where NUMBER is:
1 = 1000Hz
2 = 500Hz
4 = 250Hz
8 = 125Hz
10 = 100Hz (Default)

Example for 250Hz:

Code: Select all

-r usbhid
usbhid mousepoll=4
P.S.
Normally a polling rate of either 250Hz or 500Hz is enough. Newer mice may or may not benefit from 1000Hz. Just remember that a high polling rate is a strain on both your computer and mouse which may create more lag than mend it.

Restart and verify

That's it! Just restart Ubuntu, verify that the change has taken effect, and you're good to go

Run this command in terminal to verify the value you set:

Code: Select all

cat /sys/module/usbhid/parameters/mousepoll
Image


For Windows Vista/7
In Windows, if you have a mouse like the Logitech MX518, you're stuck with a polling rate of 125Hz by default, unlike the Logitech G5, G500 and new G400 that change it to 500Hz, 1000Hz and 1000Hz respectively.
There's is a way to change the default rate of 125Hz to 250Hz though for your mouse, so you can have the benefit of both smoother aim and a faster response time from running the emulator in it's 250Hz mode.

Image

Changing the mouse polling rate in Windows Vista/7 isn't as easy as in Ubuntu, unfortunately, since you simply can't change a value in some file or the registry, but are required to use a modified USB HID driver while running Windows in Test Mode to allow the driver to work, instead.

Requirements
First of all you'll need to download the NGOHQ's Driver Signer Enforcement Overrider:
http://www.ngohq.com/home.php?page=dseo

Then grab this archive I've compiled containing both the USB HID driver and DIMR (handy tool to check the current rate of your mouse, author unknown) and extract the HIDUSBF folder anywhere you'd like on your computer:
http://solidfiles.com/d/ff84/

(Credits go out to SweetLow for the drivers - We don't offer support for these drivers so check the readme file for further instructions, troubleshooting and links)

It is also recommended to turn off UAC but may not be required (everything must be run as administrator):
http://windows.microsoft.com/en-US/wind ... -on-or-off

Install the driver and enable Test Mode
To install the driver simply right click the HIDUSBF.INF file in the HIDUSBF folder and select Install

To enable Test Mode, run the Driver Signer Enforcement Overrider (dseo13b.exe) and click the Next button after having selected the Enable Test Mode option.

Image

Restart Windows to complete the process.

Sign the driver
After restarting Windows you'll be in Test Mode, verified by a watermark in the lower right hand corner of your desktop. You'll now be able to sign the driver you installed.

Image

To sign the driver, run the Driver Signer Enforcement Overrider again and click the Next button after having selected the Sign a System File option.

In the next window enter the following text into the text field and click OK:

Code: Select all

C:\Windows\System32\Drivers\HIDUSBF.SYS
Restart Windows to take the newly signed driver into use.

Adjust your mouse polling rate and verify
After having restarted Windows, open up the HIDUSBF folder you extracted in the beginning and run Setup.exe

Image

Now, make sure the Mouses Only checkbox is ticked and that you have the right mouse selected if there are several devices listed. Then simply tick the Filter On Device checkbox, select 250 from the Selected Rate dropdown box and click the Restart button.

Your mouse should now be running with a polling rate of 250Hz!
You can verify this by running the dimr.exe file in the HIDUSBF folder and moving the mouse around.

Image
Before and after.

P.S.
If the polling rate didn't change you might have to restart Windows for it to take effect.


For Windows XP
Changing the mouse polling rate in Windows XP is a piece of cake compared to Windows Vista/7 since you don't need to sign any drivers and all that jazz.

Download
Download the following archive and extract the HIDUSBF folder anywhere you'd like on your computer:
http://solidfiles.com/d/ff84/

(Credits go out to SweetLow for the drivers - We don't offer support for these drivers so check the readme file for further instructions, troubleshooting and links)

Adjust your mouse polling rate and verify
Open up the HIDUSBF folder you extracted in the previous step and run Setup.exe

Image

Now, make sure the Mouses Only checkbox is ticked and that you have the right mouse selected if there are several devices listed. Then simply tick the Filter On Device checkbox, select 250 from the Selected Rate dropdown box and click the Restart button.

Your mouse should now be running with a polling rate of 250Hz!
You can verify this by running the dimr.exe file in the HIDUSBF folder and moving the mouse around.

Image

P.S.
If the polling rate didn't change you might have to restart Windows for it to take effect.

Locked