分页: 1 / 1

usb鼠标再次插入后系统不能识别

发表于 : 2008-02-28 23:45
asung1981
如果在启动的时候就插好usb鼠标,一切正常,但是在系统运行过程中拔下后,再查进入,鼠标只是光线闪烁一下就没有反应了
各位帮帮忙

发表于 : 2008-02-29 9:26
windwiny
硬件有问题吧

发表于 : 2008-02-29 9:32
eexpress
此时,记得看 dmesg|tail。
估计是鼠标识别的事情,比如xorg.conf里面的设备名。

发表于 : 2008-03-01 13:23
asung1981
原来的日志:
[ 312.844000] [<c0105223>] common_interrupt+0x23/0x30
[ 312.844000] [<c0102e00>] default_idle+0x0/0x60
[ 312.844000] [<c011dba2>] native_safe_halt+0x2/0x10
[ 312.844000] [<c0102e3c>] default_idle+0x3c/0x60
[ 312.844000] [<c0102413>] cpu_idle+0x53/0xe0
[ 312.844000] =======================
[ 312.844000] handlers:
[ 312.844000] [<f885b6a0>] (usb_hcd_irq+0x0/0x60 [usbcore])
[ 312.844000] Disabling IRQ #7


拔出鼠标后,观察到日志:
[ 312.844000] [<c0105223>] common_interrupt+0x23/0x30
[ 312.844000] [<c0102e00>] default_idle+0x0/0x60
[ 312.844000] [<c011dba2>] native_safe_halt+0x2/0x10
[ 312.844000] [<c0102e3c>] default_idle+0x3c/0x60
[ 312.844000] [<c0102413>] cpu_idle+0x53/0xe0
[ 312.844000] =======================
[ 312.844000] handlers:
[ 312.844000] [<f885b6a0>] (usb_hcd_irq+0x0/0x60 [usbcore])
[ 312.844000] Disabling IRQ #7
[ 7563.848000] usb 1-1: USB disconnect, address 2


再次插入后,日志没有变化

会是硬件的原因吗?

发表于 : 2008-03-01 21:46
eexpress
搜索 Disabling IRQ #7
难道deamon把相关的usb中断给关了?

发表于 : 2008-03-02 0:04
asung1981
下面是搜索的结果,感觉不是,因为在拔出之前此条信息就存在了

xulx@asung-workroom:~$ dmesg | grep IRQ
[ 0.000000] spurious 8259A interrupt: IRQ7.
[ 0.592000] PCI: Using IRQ router default [10de/0260] at 0000:00:0a.0
[ 1.792000] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
[ 4.200000] eth0: RTL8168b/8111b at 0xf887a000, 00:18:f3:ce:dc:dd, XID 38000000 IRQ 11
[ 4.252000] ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[5] MMIO=[df7ff000-df7ff7ff] Max Packet=[2048] IR/IT contexts=[4/4]
[ 14.680000] Yenta: ISA IRQ mask 0x0218, PCI irq 11
[ 265.628000] [<c015aab0>] handle_IRQ_event+0x30/0x60
[ 265.628000] [<c0106b1b>] do_IRQ+0x3b/0x70
[ 265.628000] Disabling IRQ #7
xulx@asung-workroom:~$ dmesg | grep #7
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
xulx@asung-workroom:~$ dmesg | grep '#7'
[ 265.628000] Disabling IRQ #7
xulx@asung-workroom:~$ cd /sys/class/input/

发表于 : 2008-03-02 0:37
asung1981
下面是我的 proc/interrupts文件,显示interrupts是usb再用,但不知道是不是被鼠标在用,如何判断?

在google里面发现这个问题比较普遍(7号中断的问题),而且似乎都和 usb mouse有关系,可能中断设知道的问题,但是不知道如何解决?试一下bios设置

发表于 : 2008-03-02 18:58
heejun
xorg.conf里面的鼠标驱动是什么?
如果是evdev的话是会出现这个问题的

发表于 : 2008-03-03 23:19
asung1981
xorg.conf中相应的内容是:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

应该是mouse吧

发表于 : 2008-03-03 23:32
eexpress
Option "Protocol" "ExplorerPS/2"
试试

发表于 : 2008-03-06 23:19
asung1981
可以了,谢谢!
能解释一下是什么意思吗