Announcement

Collapse
No announcement yet.

How to change the mouse polling rate?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to change the mouse polling rate?

    I'm trying to resolve the mouse problem with unity3d games. A few people have reported that changing the mouse polling rate fixes the issue. The problem is that I can't figure out how to change mine.

    I have a logitech trackball.

    I've tried adding the following lines to /etc/modules:

    -r usbhid
    usbhid mousepoll=8

    This should set the polling rate to 125HZ.

    I reboot and do a cat /sys/module/usbhid/parameters/mousepoll and it always returns '0'.

    I've also tried adding the following line to /etc/modprobe.d/usbhid.conf:

    options usbhid mousepoll=8

    Reboot, mousepoll still shows '0'.

    I'm using 64bit Kubuntu 16.04, fully updated.

    Any idea what I'm doing wrong?
    Last edited by deadtom; Nov 06, 2016, 09:52 PM.

    #2
    Create a file in /etc/modprobe.d and name it usbhid.conf
    In that file place
    options usbhid mousepoll=8

    Modinfo shows other parms for that module:
    Code:
    parm:           mousepoll:Polling interval of mice (uint)
    parm:           ignoreled:Autosuspend with active leds (uint)
    parm:           quirks:Add/modify USB HID quirks by specifying  quirks=vendorID:productID:quirks where vendorID, productID, 
                        and quirks are all in 0x-prefixed hex (array of charp)
    You may have to mess around with the "quirks" parm in that conf file. You can get the "vendorIDroductID" from an lspci listing.
    That module also depends on the hid module, which has two parms:
    Code:
    parm:           debug:toggle HID debugging messages (int)
    parm:           ignore_special_drivers:Ignore any special drivers and handle all devices by generic driver (int)
    You may want to turn on debugging messages using
    options hid debug=1
    in the usbhid.conf file, and also play with "ignore_special_drivers", perhaps.
    Last edited by Snowhog; Nov 06, 2016, 10:20 PM.
    "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
    – John F. Kennedy, February 26, 1962.

    Comment


      #3
      Originally posted by GreyGeek View Post
      ...Modinfo shows other parms for that module...
      Thanks for the response. I'm sure the answer is in there somewhere but you've gone way over my head. I have the device ID from lsusb but I have no idea what quirks are or what the hex codes mean.

      I've already tried adding 'options usbhid mousepoll=8' into usbhid.conf and that didn't change anything. cat /sys/module/usbhid/parameters/mousepoll still shows '0' after a reboot.

      Comment


        #4
        Originally posted by deadtom View Post
        Thanks for the response. I'm sure the answer is in there somewhere but you've gone way over my head. I have the device ID from lsusb but I have no idea what quirks are or what the hex codes mean.

        I've already tried adding 'options usbhid mousepoll=8' into usbhid.conf and that didn't change anything. cat /sys/module/usbhid/parameters/mousepoll still shows '0' after a reboot.
        Did you reboot? (I won't bother you with the modprobe commands to remove and reinstall a mod)

        BTW, post your lsusb and lspci outputs
        "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
        – John F. Kennedy, February 26, 1962.

        Comment


          #5
          Originally posted by GreyGeek View Post
          Did you reboot?
          I also tried removing the module using modprobe, with the intent to re-add it with the polling rate option, but it always gives me this:

          Code:
          $ sudo modprobe -r usbhid
          modprobe: FATAL: Module usbhid is in use.
          lsmod:
          Code:
          Module                  Size  Used by
          pci_stub               16384  1
          vboxpci                24576  0
          vboxnetadp             28672  0
          vboxnetflt             28672  0
          vboxdrv               454656  3 vboxnetadp,vboxnetflt,vboxpci
          uvcvideo               90112  0
          snd_usb_audio         176128  1
          videobuf2_vmalloc      16384  1 uvcvideo
          videobuf2_memops       16384  1 videobuf2_vmalloc
          videobuf2_v4l2         28672  1 uvcvideo
          videobuf2_core         36864  2 uvcvideo,videobuf2_v4l2
          v4l2_common            16384  1 videobuf2_v4l2
          videodev              176128  4 uvcvideo,v4l2_common,videobuf2_core,videobuf2_v4l2
          input_leds             16384  0
          snd_usbmidi_lib        36864  1 snd_usb_audio
          media                  24576  2 uvcvideo,videodev
          kvm_amd                65536  0
          kvm                   540672  1 kvm_amd
          snd_hda_codec_hdmi     53248  1
          snd_hda_intel          40960  1
          snd_hda_codec         135168  2 snd_hda_codec_hdmi,snd_hda_intel
          snd_oxygen             24576  1
          snd_hda_core           73728  3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
          snd_oxygen_lib         45056  1 snd_oxygen
          snd_mpu401_uart        16384  1 snd_oxygen_lib
          snd_hwdep              16384  2 snd_usb_audio,snd_hda_codec
          snd_pcm               106496  6 snd_usb_audio,snd_hda_codec_hdmi,snd_oxygen_lib,snd_hda_codec,snd_hda_intel,snd_hda_core
          irqbypass              16384  1 kvm
          snd_seq_midi           16384  0
          snd_seq_midi_event     16384  1 snd_seq_midi
          snd_rawmidi            32768  3 snd_usbmidi_lib,snd_mpu401_uart,snd_seq_midi
          serio_raw              16384  0
          snd_seq                69632  2 snd_seq_midi_event,snd_seq_midi
          edac_mce_amd           24576  0
          snd_seq_device         16384  3 snd_seq,snd_rawmidi,snd_seq_midi
          snd_timer              32768  2 snd_pcm,snd_seq
          edac_core              53248  0
          k10temp                16384  0
          snd                    81920  20 snd_oxygen,snd_usb_audio,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_oxygen_lib,snd_usbmidi_lib,snd_hda_codec,snd_hda_intel,snd_mpu401_uart,snd_seq_device
          i2c_piix4              24576  0
          soundcore              16384  1 snd
          shpchp                 36864  0
          tpm_infineon           20480  0
          8250_fintek            16384  0
          mac_hid                16384  0
          parport_pc             32768  0
          ppdev                  20480  0
          lp                     20480  0
          parport                49152  3 lp,ppdev,parport_pc
          autofs4                40960  2
          hid_logitech_hidpp     20480  0
          hid_logitech_dj        20480  0
          pata_acpi              16384  0
          hid_generic            16384  0
          usbhid                 49152  1
          hid                   118784  5 hid_generic,usbhid,hid_logitech_dj,hid_logitech_hidpp
          amdkfd                131072  1
          amd_iommu_v2           20480  1 amdkfd
          radeon               1515520  5
          i2c_algo_bit           16384  1 radeon
          psmouse               126976  0
          ttm                    94208  1 radeon
          firewire_ohci          40960  0
          drm_kms_helper        155648  1 radeon
          pata_jmicron           16384  0
          syscopyarea            16384  1 drm_kms_helper
          sysfillrect            16384  1 drm_kms_helper
          sysimgblt              16384  1 drm_kms_helper
          pata_atiixp            16384  2
          firewire_core          65536  1 firewire_ohci
          fb_sys_fops            16384  1 drm_kms_helper
          crc_itu_t              16384  1 firewire_core
          drm                   364544  15 ttm,drm_kms_helper,radeon
          ahci                   36864  2
          r8169                  81920  0
          libahci                32768  1 ahci
          mii                    16384  1 r8169
          wmi                    20480  0
          fjes                   28672  0
          lspci:
          Code:
          00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD790 Host Bridge
          00:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RX780/RD790 PCI to PCI bridge (external gfx0 port A)
          00:05.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RX780/RD790 PCI to PCI bridge (PCI express gpp port B)
          00:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD790 PCI to PCI bridge (PCI express gpp port C)
          00:07.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RX780/RD790 PCI to PCI bridge (PCI express gpp port D)
          00:09.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD790 PCI to PCI bridge (PCI express gpp port E)
          00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [IDE mode]
          00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
          00:12.1 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1 Controller
          00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
          00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
          00:13.1 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1 Controller
          00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
          00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller (rev 3c)
          00:14.1 IDE interface: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 IDE Controller
          00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller
          00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge
          00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
          00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor HyperTransport Configuration
          00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Address Map
          00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor DRAM Controller
          00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Miscellaneous Control
          00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Link Control
          01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Curacao PRO [Radeon R7 370 / R9 270/370 OEM] (rev 81)
          01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde/Pitcairn HDMI Audio [Radeon HD 7700/7800 Series]
          02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 03)
          04:00.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6315 Series Firewire Controller
          05:00.0 SATA controller: JMicron Technology Corp. JMB363 SATA/IDE Controller (rev 03)
          05:00.1 IDE interface: JMicron Technology Corp. JMB363 SATA/IDE Controller (rev 03)
          06:07.0 Multimedia audio controller: C-Media Electronics Inc CMI8788 [Oxygen HD Audio]
          Also lsusb, just for good measure:
          Code:
          Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
          Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
          Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
          Bus 005 Device 003: ID 04d9:1603 Holtek Semiconductor, Inc. Keyboard
          Bus 005 Device 002: ID 050d:0815 Belkin Components Nostromo n52 HID SpeedPad Mouse Wheel
          Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
          Bus 001 Device 002: ID 046d:0825 Logitech, Inc. Webcam C270
          Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
          Bus 004 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
          Bus 004 Device 003: ID 0d8c:0005 C-Media Electronics, Inc.
          Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
          Bus 003 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply
          Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
          I should also mention that this is a wireless trackball.

          Thanks again for your help. I do appreciate it.

          Comment


            #6
            That's because usbhid is dependent on hib, another mod also loaded. You have to delete them both, hid first.
            "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
            – John F. Kennedy, February 26, 1962.

            Comment

            Working...
            X