USB键盘偶尔能用

USB键盘偶尔能用

几天前,我买了一个 SL640 Hama USB 键盘,用于装有 Ubuntu 12.04 的笔记本电脑。但我遇到了问题,因为它 10 次中只有一次能用!

在我女朋友的笔记本电脑上(运行 Windows Vista),这个键盘始终能用。在我的笔记本电脑上,当我启动 Windows 7 而不是 Ubuntu 时,它也始终能用。

以下是一些信息:

~$ lsusb
Bus 006 Device 003: ID 04d9:1503 Holtek Semiconductor, Inc. Shortboard Lefty

正如您所看到的,操作系统识别了它,但键盘没有反应......甚至 Caps Lock 和 Num Lock 键都没有闪烁。

关于旧版支持(对 GRUB 有用),我在 BIOS 中没有找到任何条目。但我对此不感兴趣。我只想在 Ubuntu 中使用它。

然而,在 GRUB 中它有时可以工作。

令人惊讶的是,现在我已经启动了笔记本电脑:USB 键盘在 GRUB 中无法使用,但自从 ubuntu 登录后它就可以使用了!现在我正在用它打字。

嗯...这意味着 Ubuntu 有正确的驱动程序,它们可以工作。但如何始终正确地“加载”它们呢?

这是另一个例子:

经过几次插入/拔出操作后,现在可以工作了。

以下是 的输出dmesg

[ 1007.280090] usb 6-1: USB disconnect, device number 19
[ 1010.192060] usb 5-2: new low-speed USB device number 20 using uhci_hcd
[ 1010.732051] usb 5-2: device not accepting address 20, error -84
[ 1010.844046] usb 5-2: new low-speed USB device number 21 using uhci_hcd
[ 1011.133123] usb 5-2: can't set config #1, error -84
[ 1029.848104] usb 5-2: USB disconnect, device number 21
[ 1038.064057] usb 4-2: new low-speed USB device number 4 using uhci_hcd
[ 1038.363131] usb 4-2: can't set config #1, error -84
[ 1089.120105] usb 4-2: USB disconnect, device number 4
[ 1096.460073] usb 6-1: new low-speed USB device number 20 using uhci_hcd
[ 1097.060046] usb 6-1: device not accepting address 20, error -71
[ 1097.172077] usb 6-1: new low-speed USB device number 21 using uhci_hcd
[ 1097.534131] generic-usb: probe of 0003:04D9:1503.0016 failed with error -84
[ 1097.554110] generic-usb: probe of 0003:04D9:1503.0017 failed with error -32
[ 1140.952075] usb 6-1: USB disconnect, device number 21
[ 1145.968084] usb 6-1: new low-speed USB device number 22 using uhci_hcd
[ 1146.512052] usb 6-1: device not accepting address 22, error -71
[ 1146.624087] usb 6-1: new low-speed USB device number 23 using uhci_hcd
[ 1146.957109] generic-usb: probe of 0003:04D9:1503.0018 failed with error -84
[ 1147.000116] generic-usb: probe of 0003:04D9:1503.0019 failed with error -84
[ 1199.480080] usb 6-1: USB disconnect, device number 23
[ 1201.928080] usb 5-2: new low-speed USB device number 22 using uhci_hcd
[ 1202.301173] generic-usb: probe of 0003:04D9:1503.001A failed with error -84
[ 1202.342182] generic-usb: probe of 0003:04D9:1503.001B failed with error -84
[ 1227.008092] usb 5-2: USB disconnect, device number 22
[ 1234.416066] usb 4-2: new low-speed USB device number 5 using uhci_hcd
[ 1234.960058] usb 4-2: device not accepting address 5, error -71
[ 1235.072071] usb 4-2: new low-speed USB device number 6 using uhci_hcd
[ 1235.616071] usb 4-2: device not accepting address 6, error -84
[ 1235.728071] usb 4-2: new low-speed USB device number 7 using uhci_hcd
[ 1235.903088] usb 4-2: can't set config #1, error -84
[ 1258.256080] usb 4-2: USB disconnect, device number 7
[ 1265.796058] usb 5-2: new low-speed USB device number 23 using uhci_hcd
[ 1266.388076] usb 5-2: device not accepting address 23, error -71
[ 1266.500074] usb 5-2: new low-speed USB device number 24 using uhci_hcd
[ 1266.793126] usb 5-2: can't set config #1, error -84
[ 1333.152111] usb 5-2: USB disconnect, device number 24
[ 1336.520066] usb 6-1: new low-speed USB device number 24 using uhci_hcd
[ 1336.805091] usb 6-1: can't set config #1, error -84
[ 1402.592088] usb 6-1: USB disconnect, device number 24
[ 1406.020078] usb 5-2: new low-speed USB device number 25 using uhci_hcd
[ 1406.299121] usb 5-2: can't set config #1, error -84
[ 1564.288095] usb 5-2: USB disconnect, device number 25
[ 1566.968105] usb 6-1: new low-speed USB device number 25 using uhci_hcd
[ 1567.508073] usb 6-1: device not accepting address 25, error -71
[ 1567.620073] usb 6-1: new low-speed USB device number 26 using uhci_hcd
[ 1568.164069] usb 6-1: device not accepting address 26, error -84
[ 1568.276085] usb 6-1: new low-speed USB device number 27 using uhci_hcd
[ 1568.326126] usb 6-1: device descriptor read/all, error -84
[ 1568.440071] usb 6-1: new low-speed USB device number 28 using uhci_hcd
[ 1568.651128] usb 6-1: can't set config #1, error -84
[ 1649.848120] usb 6-1: USB disconnect, device number 28
[ 1653.104073] usb 5-2: new low-speed USB device number 26 using uhci_hcd
[ 1653.462591] input:   USB Keyboard as /devices/pci0000:00/0000:00:1d.0/usb5/5-2/5-2:1.0/input/input17
[ 1653.462767] generic-usb 0003:04D9:1503.001C: input,hidraw0: USB HID v1.10 Keyboard [  USB Keyboard] on usb-0000:00:1d.0-2/input0
[ 1653.552194] input:   USB Keyboard as /devices/pci0000:00/0000:00:1d.0/usb5/5-2/5-2:1.1/input/input18
[ 1653.552337] generic-usb 0003:04D9:1503.001D: input,hidraw1: USB HID v1.10 Device [  USB Keyboard] on usb-0000:00:1d.0-2/input1

我该如何解决这个问题,让键盘在 Ubuntu 中始终能用?请帮忙!

答案1

我认为这个问题已经过时了,但对于那些仍然有这个麻烦的人(就像我一样):

我在使用 Microsoft Comfort Curve Keyboard 2000 时也遇到过类似的问题。这个键盘有时会突然死机,所以我不得不重新插入它。

我已经通过关闭 irqbalance(如 Alen 所写)并在启动时在内核选项中启用 irqpoll 解决了这个问题:(来自 ubuntugeek.com 的解决方案

gksudo gedit /etc/default/grub

将 GRUB_CMDLINE_LINUX 设置为

GRUB_CMDLINE_LINUX=”acpi=force irqpoll”

然后

sudo update-grub

然后重新启动。

答案2

打开终端并输入:gksu gedit /etc/default/irqbalance

删除所有内容并粘贴以下内容:

#Configuration for the irqbalance daemon

#Should irqbalance be enabled?
ENABLED="0"
#Balance the IRQs only once?
ONESHOT="0"

保存并重新启动。

相关内容