Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Changing the mouse polling?

  1. #1
    Join Date
    Feb 2007
    Beans
    1,485

    Changing the mouse polling?

    Special Thanks to: Cesare Tirabassi and everyone contributing in this thread

    Beginner Tip: You must use sudo when editing these files.
    Such as:
    Code:
     gksudo gedit /etc/modules
    Blackmagic's solution:
    Edit /etc/modules
    Code:
    gksudo gedit /etc/modules
    Add these two lines onto the end:
    Code:
    -r usbhid
    usbhid mousepoll=2
    reboot.

    Alternate solution that may work on Feisty (try the first one first):
    Add
    Code:
    options usbhid mousepoll=2
    on its own line at the end of /etc/modprobe.d/options

    and then add
    Code:
    usbhid
    on the end of /etc/modules
    reboot

    Alternate solution that may work on Edgy:
    Add
    Code:
    options usbhid mousepoll=2
    to /etc/modprobe.d/usbhid

    and then add
    Code:
    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:
    Code:
    #!/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:
    Code:
    sudo apt-get install lomoco
    lomoco's Homepage: http://lomoco.linux-gamers.net/

    Code:
    #!/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
    Code:
    sudo visudo
    and replace the line that says
    Code:
    %admin ALL=(ALL) ALL
    with
    Code:
    %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
    Code:
    sudo sh /usr/local/bin/mymousesettings
    as a new entry.
    reboot
    Last edited by Cappy; June 17th, 2007 at 04:43 AM.

  2. #2
    Join Date
    Jun 2005
    Beans
    155

    Re: Changing the mouse polling?

    In my experience you have 2 choices:

    1. Open a console and do this:
    Code:
    sudo kate /sys/module/usbhid/parameters/mousepoll
    (if you use Ubuntu, replace kate with gedit)

    change the 0 to a 2 (500hz) and save the file. Then disconnect the USB-connector for your mouse and put it back again. You have to do this every time you boot your system.

    2. Compile your own kernel with the mouse-polling you prefer. You find some info on it here.
    I have recently compiled kernel 2.6.20.3 from kernel.org with the mouse-polling-patch mentioned in the above link. I did have to use "su" when I applied the patch, "sudo didn't work". Applying the patch is not enough, you also need to change the value to a 2 in xconfig.

  3. #3
    Join Date
    Feb 2007
    Beans
    1,485

    Re: Changing the mouse polling?

    Fixed it with the help of the Gentoo guide:
    http://gentoo-wiki.com/TIP_Change_mouse_hz

    I added
    Code:
    options usbhid mousepoll=2
    to /etc/modprobe.d/usbhid
    (using "sudo nano")

    and then I added
    Code:
    usbhid
    on the end of /etc/modules


    =)
    Code:
    $ cat /sys/module/usbhid/parameters/mousepoll
    2

  4. #4
    Join Date
    Jun 2005
    Beans
    155

    Re: Changing the mouse polling?

    Nice that worked for you!

    I have tried this and it didnt work for me, but that was on Kubuntu Breezy so it was some time ago. I will try this again when kubuntu Feisty comes.

    I will add this to my guide.

  5. #5
    Join Date
    Feb 2007
    Beans
    1,485

    Re: Changing the mouse polling?

    I read your UT2004 guide (that's the only game I play - AS @ Omnipotents when I'm bored, otherwise TAM/Freon) and that's what got me into trying to change my mouse polling =) The mouse polling for my G5 was 2ms in Windows and now it feels MUCH better in linux too! I don't have to "jerk" the mouse around as much and my shots are much better with hitscan.

  6. #6
    Join Date
    May 2006
    Beans
    209

    Re: Changing the mouse polling?

    in Windows i'm using at 250hz...how to use 250 hz also in ubuntu?

    anyway..if i try to edit mousepoll file with gedit, i can't do it! only with nano i can!

    2 = 500 hz

    and 250hz??

    thanks, bye

  7. #7
    Join Date
    Jun 2005
    Beans
    155

    Re: Changing the mouse polling?

    Here are all the mouse polls:

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

  8. #8
    Join Date
    May 2006
    Beans
    209

    Re: Changing the mouse polling?

    ok i've edit the 2 files (look Cappy's post)
    but i've set mousepoll to 4 (250 hz). i think is more stable with my mx310

    thanks, bye

  9. #9
    Join Date
    Jun 2005
    Beans
    155

    Re: Changing the mouse polling?

    2 ms = 500hz should work with your mouse, but use what you think is best for you

  10. #10
    Join Date
    Feb 2007
    Beans
    1,485

    Re: Changing the mouse polling?

    -
    Last edited by Cappy; June 20th, 2007 at 12:03 PM.


Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •