Beginner Tip: You must use sudo when editing these files.
Such as:
gksudo gedit /etc/modules
Blackmagic’s solution:
Edit /etc/modules
gksudo gedit /etc/modules
Add these two lines onto the end:
-r usbhid
usbhid mousepoll=2
reboot.
Alternate solution that may work on Feisty (try the first one first):
Add
options usbhid mousepoll=2
on its own line at the end of /etc/modprobe.d/options
and then add
usbhid
on the end of /etc/modules
reboot
Alternate solution that may work on Edgy:
Add
options usbhid mousepoll=2
to /etc/modprobe.d/usbhid
and then add
usbhid
on its own line at the end of /etc/modules
reboot
aidanr’s alternate feisty solution
Create a file at /usr/local/bin/mymousesettings with the following inside:
#!/bin/bash
rmmod usbhid && modprobe usbhid mousepoll=2
or if you want to use lomoco (a program for changing the resolution on Logitech mice) you can use this instead:
(G5 and G7 mice don’t need lomoco because they are software-independant)
{
Install:
sudo apt-get install lomoco
lomoco’s Homepage: http://lomoco.linux-gamers.net/
#!/bin/bash
# -4 for 400 cpi, -8 for 800 cpi, -m for 1200 cpi, -h for 1600 cpi, -g for 2000 cpi
lomoco -h && rmmod usbhid && modprobe usbhid mousepoll=2
}
After doing either method enter the command
sudo visudo
and replace the line that says
%admin ALL=(ALL) ALL
with
%admin ALL=(ALL) ALL, NOPASSWD:/usr/local/bin/mymousesettings
Use Control + O and then hit enter to save and then use Control + X to exit.
Add that command to startup in System –> Preferences –> Sessions by clicking add and then adding
sudo sh /usr/local/bin/mymousesettings
as a new entry.
reboot
hanging the mouse polling?
http://gentoo-wiki.com/TIP_Change_mouse_hz
I added
options usbhid mousepoll=2
to /etc/modprobe.d/usbhid
(using “sudo nano”)
and then I added
usbhid
on the end of /etc/modules
=)
$ cat /sys/module/usbhid/parameters/mousepoll
2
1 = 1000Hz
2 = 500Hz
4 = 250Hz
8 = 125Hz
10 = 100Hz (Default)