从今天起,我遇到了一个问题,我的鼠标每分钟会冻结两到三次,持续 2-3 秒。我不确定这是否是巧合,但自从我安装了 VirtualBox 以来,这种情况就开始了。之前我可以通过将鼠标插入另一个 USB 端口来解决这个问题,但现在问题又出现了。每次我的鼠标挂起时,我都会得到一个新的 USB 标识(dmesg):
[17578.250898] usb 5-2: new low speed USB device using ohci_hcd and address 26
[17578.444338] usb 5-2: configuration #1 chosen from 1 choice
[17578.452754] input: Logitech USB-PS/2 Optical Mouse as /devices/pci0000:00/0000:00:13.0/usb5/5-2/5-2:1.0/input/input50
[17578.453081] generic-usb 0003:046D:C01F.002E: input,hidraw0: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:13.0-2/input0
[17653.064963] usb 5-2: USB disconnect, address 26
[17653.832560] usb 5-2: new low speed USB device using ohci_hcd and address 27
[17654.062482] usb 5-2: configuration #1 chosen from 1 choice
[17654.071498] input: Logitech USB-PS/2 Optical Mouse as /devices/pci0000:00/0000:00:13.0/usb5/5-2/5-2:1.0/input/input51
[17654.073145] generic-usb 0003:046D:C01F.002F: input,hidraw0: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:13.0-2/input0
[17842.921032] usb 5-2: USB disconnect, address 27
[17843.805004] usb 5-2: new low speed USB device using ohci_hcd and address 28
[17844.030877] usb 5-2: configuration #1 chosen from 1 choice
[17844.039251] input: Logitech USB-PS/2 Optical Mouse as /devices/pci0000:00/0000:00:13.0/usb5/5-2/5-2:1.0/input/input52
[17844.039447] generic-usb 0003:046D:C01F.0030: input,hidraw0: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:13.0-2/input0
[17924.096795] usb 5-2: USB disconnect, address 28
[17924.898882] usb 5-2: new low speed USB device using ohci_hcd and address 29
[17925.090028] usb 5-2: configuration #1 chosen from 1 choice
[17925.098366] input: Logitech USB-PS/2 Optical Mouse as /devices/pci0000:00/0000:00:13.0/usb5/5-2/5-2:1.0/input/input53
[17925.098562] generic-usb 0003:046D:C01F.0031: input,hidraw0: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:13.0-2/input0
[17951.885283] usb 5-2: USB disconnect, address 29
[17952.734873] usb 5-2: new low speed USB device using ohci_hcd and address 30
[17952.948076] usb 5-2: configuration #1 chosen from 1 choice
[17952.956397] input: Logitech USB-PS/2 Optical Mouse as /devices/pci0000:00/0000:00:13.0/usb5/5-2/5-2:1.0/input/input54
[17952.956598] generic-usb 0003:046D:C01F.0032: input,hidraw0: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:13.0-2/input0
[17955.712738] usb 5-2: USB disconnect, address 30
[17956.500052] usb 5-2: new low speed USB device using ohci_hcd and address 31
[17956.714080] usb 5-2: configuration #1 chosen from 1 choice
[17956.723025] input: Logitech USB-PS/2 Optical Mouse as /devices/pci0000:00/0000:00:13.0/usb5/5-2/5-2:1.0/input/input55
[17956.723449] generic-usb 0003:046D:C01F.0033: input,hidraw0: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:13.0-2/input0
[17982.337262] usb 5-2: USB disconnect, address 31
[17983.161328] usb 5-2: new low speed USB device using ohci_hcd and address 32
[17983.375096] usb 5-2: configuration #1 chosen from 1 choice
[17983.383508] input: Logitech USB-PS/2 Optical Mouse as /devices/pci0000:00/0000:00:13.0/usb5/5-2/5-2:1.0/input/input56
[17983.383712] generic-usb 0003:046D:C01F.0034: input,hidraw0: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:13.0-2/input0
[17984.383585] usb 5-2: USB disconnect, address 32
[17985.176447] usb 5-2: new low speed USB device using ohci_hcd and address 33
[17985.382113] usb 5-2: configuration #1 chosen from 1 choice
[17985.390637] input: Logitech USB-PS/2 Optical Mouse as /devices/pci0000:00/
答案1
这很可能是为客户操作系统提供主机 USB 端口的 VirtualBox 集成模块无法正常工作。
尝试告诉 VirtualBox 不要管主机的 USB 端口。
答案2
同时,我不认为这是 VirtualBox 的问题。因为今天我切换到 Ubuntu Maverick,问题仍然存在。在我换了另一个鼠标后,问题突然消失了。即使我重新安装 Virtualbox 并运行图像,也不会出现任何鼠标滞后现象。我本来会说这是鼠标问题,但它无法解释为什么浏览器在我执行时会以恒定的间隔冻结(就像鼠标指针一样)qemu-img convert -O raw myfile.vhd myfile.bin
。我还没有重新安装 qemu,因为我现在不需要它,所以也许 qemu 仍然对系统做了一些“特殊”的事情。此外,它无法解释为什么旧鼠标可以与我的 Ubuntu 笔记本配合使用。但是好吧,我现在就不谈这个了,因为它现在还可以用。