Mouse freezing after idle time

Hi All,

I am having a problem where my mouse (USB) is freezing after some idle time, and I am having to reboot everytime that happens.

I looked in the file /etc/X11/xorg.config to see if there is an entry for mouse and I could not find it. Instead I found the following entry:

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

My question is can I have more than one section input device where one of the identifier is Mouse ?

The /dev/input directory has the following, but I am not sure what to make of this.

[root@jhlinux input]# pwd
/dev/input
[root@jhlinux input]# ls
event0 event1 event2 mice mouse0

Please help the rookie. Thanks in advance.

Which RH/RHEL & kernel are you using?

If you replug the mouse, does it start working again?

Is there any relevant info in /var/log/messages?

Have you tried something like this in your xorg.conf?:

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

Which RH/RHEL & kernel are you using?
RHEL 5.1 kernel 2.6.18-8.el5

If you replug the mouse, does it start working again?
No I am having to reboot

Is there any relevant info in /var/log/messages?
There is nothing in there that stands out to me. I would have to know what I am looking for...

Have you tried something like this in your xorg.conf?:

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

This brings me back to my original question. Can I have multiple InputDevice sections in /etc/X11/xorg.conf file. Currently I have the following:

[root@jhlinux X11]# cat xorg.conf 

# Xorg configuration created by pyxf86config

Section "ServerLayout"
        Identifier     "Default Layout"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "us"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "nv"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Yes.

I am still having this problem and I just noticed something that might help explain what is going on. Just before my mouse freezes the following message is prompted on my command line:

"Message from syslogd@jhlinux at Mon Sep 27 23:37:04 2010 ...
jhlinux kernel: Disabling IRQ #209"

I am not sure what is going on. Please advise.

The IRQ value seems unusually high; perhaps an APIC IRQ?

Try booting with "irqpoll" option.

Also, run "dmesg" after you get the error and see if you get any further info.

Try booting with "irqpoll" option.

Sorry for my ignorance but how is this done ?

When you boot your system, press the <ESC> key and you should end up with a screen like the attached image. Enter "a" to modify the kernel arguments and enter "irqpoll". Enter "b" to boot your system.

If you want to add this kernel argument permanently, edit /etc/grub.conf. You should see lines similar to these:

title Red Hat Enterprise Linux Server   (2.6.18-53.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-53.el5 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.18-53.el5.img

Modify the 3 line as follows

      kernel /vmlinuz-2.6.18-53.el5 ro root=LABEL=/ rhgb quiet irqpoll
1 Like

Thank a lot. Since I added the irqpoll argument to the kernel, my mouse is no longer freezing.

I am not sure what the consequenses of this is but I am happy about my mouse not freezing.