每当我在 Ubuntu 10.04 启动后尝试插入光电鼠标时,操作系统似乎不会热插拔我的鼠标。要使用鼠标,我需要重新启动操作系统。是否有任何脚本可以激活我的鼠标?
lsusb 命令的输出是
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 093a:2510 Pixart Imaging, Inc. Hama Optical Mouse
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 004: ID 03f0:171d Hewlett-Packard Wireless (Bluetooth + WLAN) Interface [Integrated Module]
Bus 003 Device 003: ID 138a:0001 DigitalPersona, Inc Fingeprint Reader
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 046d:09b8 Logitech, Inc.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
我的系统日志的输出:
Oct 14 15:00:08 avi-laptop kernel: [15966.380131] usb 5-2: new low speed USB device using uhci_hcd and address 2
Oct 14 15:00:08 avi-laptop kernel: [15966.554437] usb 5-2: configuration #1 chosen from 1 choice
答案1
看一下这个错误报告,它也包含一些解决方法:https://bugs.launchpad.net/ubuntu/+source/linux/+bug/564459
答案2
它应该可以开箱即用...我认为你应该在 launchpad.net 上将其报告为一个错误。
答案3
这是一个错误,鼠标应该可以被自动检测。
你能跑吗
udevadm monitor
在终端中,看看插入鼠标时会打印什么?我得到了一堆事件:
KERNEL[1287101516.932598] add /devices/pci0000:00/0000:00:1a.1/usb4/4-1 (usb)
KERNEL[1287101516.937554] add /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.0 (usb)
KERNEL[1287101516.937637] add /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.0/0003:046D:C526.0003 (hid)
KERNEL[1287101516.941362] add /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.0/input/input38 (input)
KERNEL[1287101516.941765] add /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.0/input/input38/mouse2 (input)
KERNEL[1287101516.941827] add /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.0/input/input38/event8 (input)
KERNEL[1287101516.942005] add /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.0/0003:046D:C526.0003/hidraw/hidraw0 (hidraw)
KERNEL[1287101516.942317] add /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.1 (usb)
KERNEL[1287101516.942588] add /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.1/0003:046D:C526.0004 (hid)
UDEV [1287101516.943166] add /devices/pci0000:00/0000:00:1a.1/usb4/4-1 (usb)
UDEV [1287101516.949212] add /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.1 (usb)
UDEV [1287101516.949292] add /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.1/0003:046D:C526.0004 (hid)
UDEV [1287101516.950697] add /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.0 (usb)
KERNEL[1287101516.955641] add /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.1/input/input39 (input)
UDEV [1287101516.957342] add /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.0/0003:046D:C526.0003 (hid)
UDEV [1287101516.958723] add /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.0/0003:046D:C526.0003/hidraw/hidraw0 (hidraw)
KERNEL[1287101516.961049] add /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.1/input/input39/event9 (input)
KERNEL[1287101516.961188] add /class/usb (class)
UDEV [1287101516.962059] add /class/usb (class)
UDEV [1287101516.963646] add /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.0/input/input38 (input)
KERNEL[1287101516.965077] add /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.1/usb/hiddev0 (usb)
UDEV [1287101516.966175] add /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.1/usb/hiddev0 (usb)
KERNEL[1287101516.966837] add /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.1/0003:046D:C526.0004/hidraw/hidraw1 (hidraw)
UDEV [1287101516.967578] add /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.1/0003:046D:C526.0004/hidraw/hidraw1 (hidraw)
UDEV [1287101516.973294] add /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.1/input/input39 (input)
UDEV [1287101516.988644] add /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.0/input/input38/mouse2 (input)
UDEV [1287101517.012808] add /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.1/input/input39/event9 (input)
UDEV [1287101517.025623] add /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.0/input/input38/event8 (input)
通过将您所看到的内容与此进行比较,也许可以确定哪个基础设施部分出现了问题。