You are not logged in.

#1 2011-08-04 08:40:51

blackbart
Member
Registered: 2011-08-04
Posts: 4

[SOLVED] Low polling rate of external mouse

Hi all,

I have a problem on my laptop Dell M5030 with external USB mouse: it's polling rate very low.
Value in /sys/module/usbhid/parameters/mousepoll is 8, but evhz util shows that it's polling rate only 10Hz.
ALPS touchpad works fine. Also if I change video driver to vesa external mouse becomes works correctly at 125Hz rate.
Video card on this laptop is Mobility Radeon HD4200. Changing between catalyst and opensource driver didn't take effect.
Mouse works the same with evdev and mouse drivers.

xorg.conf

Section "ServerLayout"
    Identifier     "aticonfig Layout"
    Screen      0  "aticonfig-Screen[0]-0" 0 0
    InputDevice  "mouse0"  "CorePointer"
    InputDevice  "keyboard0"  "CoreKeyboard"
EndSection

Section "Files"
  ModulePath "/usr/lib/xorg/modules/extensions/fglrx"
  ModulePath "/usr/lib/xorg/modules"
EndSection

Section "Module"
    SubSection "extmod"
    Option "omit xfree86-dga"
    EndSubSection
    Load "dbe"
    Load "record"
    Load "dri"
    Load "glx"
    Load "GLcore"
    Load "type1"
    Load "freetype"
EndSection

Section "InputDevice"
    Identifier "mouse0"
    Driver     "mouse"
    Option     "Protocol" "auto"
    Option     "Device"  "/dev/input/mice"
    Option     "ZAxisMapping" "4 5 6 7"
EndSection

Section "InputDevice"
    Identifier "keyboard0"
    Driver     "kbd"
    Option     "XkbRules" "xorg"
    Option     "XkbModel"  "pc106"
    Option     "XkbLayout" "us,ru"
    Option     "XkbOptions" "grp:alt_shift_toggle"
EndSection

Section "Monitor"
    Identifier   "aticonfig-Monitor[0]-0"
    Option        "VendorName" "ATI Proprietary Driver"
    Option        "ModelName" "Generic Autodetecting Monitor"
    Option        "DPMS" "true"
EndSection

Section "Device"
    Identifier  "aticonfig-Device[0]-0"
    Driver      "fglrx"
    BusID       "PCI:1:5:0"
EndSection

Section "Screen"
    Identifier "aticonfig-Screen[0]-0"
    Device     "aticonfig-Device[0]-0"
    Monitor    "aticonfig-Monitor[0]-0"
    DefaultDepth     24
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection

Section "ServerFlags"
    Option "AutoAddDevices"  "false"
    Option "AIGLX"  "on"
EndSection

Could anyone help to solve this problem?

Thanks.

Last edited by blackbart (2011-08-04 11:36:37)

Offline

#2 2011-08-04 08:50:26

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] Low polling rate of external mouse

Bizarre. I'd first look at interrupt conflicts - show some info:

cat /proc/interrupts
dmesg

Offline

#3 2011-08-04 08:59:46

blackbart
Member
Registered: 2011-08-04
Posts: 4

Re: [SOLVED] Low polling rate of external mouse

cat /proc/interrupts looks fine

            CPU0       CPU1
   0:        565     206040   IO-APIC-edge      timer
   1:          9       1944   IO-APIC-edge      i8042
   8:          0          1   IO-APIC-edge      rtc0
   9:          0          1   IO-APIC-fasteoi   acpi
  11:          0          0   IO-APIC-fasteoi   fglrx[0]@PCI:1:5:0
  12:          0          2   IO-APIC-edge      i8042
  16:        124      24660   IO-APIC-fasteoi   ath9k, hda_intel
  17:          0         26   IO-APIC-fasteoi   ehci_hcd:usb1, ehci_hcd:usb2
  18:         39      99965   IO-APIC-fasteoi   ohci_hcd:usb3, ohci_hcd:usb4, ohci_hcd:usb5
  40:          0          0   PCI-MSI-edge      PCIe PME
  41:          0          0   PCI-MSI-edge      PCIe PME
  42:         90       8170   PCI-MSI-edge      ahci
  43:          0          2   PCI-MSI-edge      eth0
 NMI:          0          0   Non-maskable interrupts
 LOC:      76155       7255   Local timer interrupts
 SPU:          0          0   Spurious interrupts
 PMI:          0          0   Performance monitoring interrupts
 IWI:          0          0   IRQ work interrupts
 RES:      55455      55161   Rescheduling interrupts
 CAL:        307         46   Function call interrupts
 TLB:       1702       1584   TLB shootdowns
 TRM:          0          0   Thermal event interrupts
 THR:          0          0   Threshold APIC interrupts
 MCE:          0          0   Machine check exceptions
 MCP:         16         16   Machine check polls
 ERR:          0
 MIS:          0

But in dmesg looks like something wrong:

[   17.661857] irq 18: nobody cared (try booting with the "irqpoll" option)
[   17.661863] Pid: 946, comm: X Tainted: P            2.6.39-ARCH #1
[   17.661865] Call Trace:
[   17.661867]  <IRQ>  [<ffffffff813e0493>] __report_bad_irq+0x40/0xa9
[   17.661879]  [<ffffffff810bf06b>] note_interrupt+0x19b/0x1e0
[   17.661884]  [<ffffffff810bd22f>] handle_irq_event_percpu+0xcf/0x2b0
[   17.661887]  [<ffffffff8108ea68>] ? tick_dev_program_event+0x48/0x110
[   17.661891]  [<ffffffff810bd455>] handle_irq_event+0x45/0x70
[   17.661894]  [<ffffffff810bf877>] handle_fasteoi_irq+0x57/0xd0
[   17.661897]  [<ffffffff8100da52>] handle_irq+0x22/0x40
[   17.661901]  [<ffffffff813ea92a>] do_IRQ+0x5a/0xe0
[   17.661904]  [<ffffffff813e8613>] common_interrupt+0x13/0x13
[   17.661906]  <EOI> 
[   17.661908] handlers:
[   17.661909] [<ffffffffa0006360>] (usb_hcd_irq+0x0/0x80 [usbcore])
[   17.661928] [<ffffffffa0006360>] (usb_hcd_irq+0x0/0x80 [usbcore])
[   17.661934] [<ffffffffa0006360>] (usb_hcd_irq+0x0/0x80 [usbcore])
[   17.661940] Disabling IRQ #18
[   21.053792] atl1c 0000:05:00.0: irq 43 for MSI/MSI-X
[  387.158345] usbcore: deregistering interface driver usbhid
[  395.083643] input: A4Tech PS/2+USB Mouse as /devices/pci0000:00/0000:00:12.0/usb3/3-1/3-1:1.0/input/input12
[  395.083825] a4tech 0003:09DA:000A.0002: input,hidraw0: USB HID v1.10 Mouse [A4Tech PS/2+USB Mouse] on usb-0000:00:12.0-1/input0
[  395.083846] usbcore: registered new interface driver usbhid
[  395.083848] usbhid: USB HID core driver

Offline

#4 2011-08-04 09:11:44

blackbart
Member
Registered: 2011-08-04
Posts: 4

Re: [SOLVED] Low polling rate of external mouse

Booting with irqpoll option doesn't change anything.

Offline

#5 2011-08-04 10:47:18

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] Low polling rate of external mouse

Seems to be a common problem with the Dell M5030. Some reading for you:

http://ubuntuforums.org/showthread.php?t=1781646
http://ubuntuforums.org/showthread.php?t=1645810
http://forum.ubuntu-tr.net/index.php?topic=24566.0 (try running that through Google Translate)

Offline

#6 2011-08-04 11:35:38

blackbart
Member
Registered: 2011-08-04
Posts: 4

Re: [SOLVED] Low polling rate of external mouse

Thanks you very much. Kernel option acpi=off solved the problem.

Offline

#7 2011-09-08 17:41:52

aw3k
Member
Registered: 2011-07-12
Posts: 5

Re: [SOLVED] Low polling rate of external mouse

I have same problem on the same laptop (maybe the external mouse is different smile )
Same dmesg message:

irq 18: nobody cared (try booting with the "irqpoll" option)

And booting with irqpoll has no effect except these lines in dmesg output:

[    0.000000] Misrouted IRQ fixup and polling support enabled
[    0.000000] This may significantly impact system performance

But I don't want to boot with acpi=off. Because with this option I can't set CPU frequency and (very important) USB devices (mouse and keyboard) don't work (don't get listed in lsusb).

Is there a way to have normal mouse polling with ACPI enabled? Or this is a hardware problem?

Offline

#8 2012-01-20 09:27:38

aw3k
Member
Registered: 2011-07-12
Posts: 5

Re: [SOLVED] Low polling rate of external mouse

Found out that this problem comes only with catalyst driver. With xf86-video-ati mouse works just fine.

Offline

Board footer

Powered by FluxBB