当我将 USB 鼠标插入计算机时,日志中出现以下错误:
Mar 24 21:43:03 homer kernel: [ 2674.768039] usb 2-9: new full-speed USB device number 3 using ohci_hcd
Mar 24 21:43:03 homer kernel: [ 2674.952050] usb 2-9: device descriptor read/64, error -62
Mar 24 21:43:03 homer kernel: [ 2675.236034] usb 2-9: device descriptor read/64, error -62
Mar 24 21:43:03 homer kernel: [ 2675.516035] usb 2-9: new full-speed USB device number 4 using ohci_hcd
Mar 24 21:43:04 homer kernel: [ 2675.696042] usb 2-9: device descriptor read/64, error -62
Mar 24 21:43:04 homer kernel: [ 2675.980047] usb 2-9: device descriptor read/64, error -62
Mar 24 21:43:04 homer kernel: [ 2676.260043] usb 2-9: new full-speed USB device number 5 using ohci_hcd
Mar 24 21:43:05 homer kernel: [ 2676.668034] usb 2-9: device not accepting address 5, error -62
Mar 24 21:43:05 homer kernel: [ 2676.764039] hub 2-0:1.0: unable to enumerate USB device on port 9
Mar 24 21:43:14 homer kernel: [ 2685.852045] usb 2-9: new full-speed USB device number 7 using ohci_hcd
Mar 24 21:43:14 homer kernel: [ 2686.036033] usb 2-9: device descriptor read/64, error -62
Mar 24 21:43:14 homer kernel: [ 2686.324032] usb 2-9: device descriptor read/64, error -62
Mar 24 21:43:14 homer kernel: [ 2686.608043] usb 2-9: new full-speed USB device number 8 using ohci_hcd
Mar 24 21:43:15 homer kernel: [ 2686.788043] usb 2-9: device descriptor read/64, error -62
Mar 24 21:43:15 homer kernel: [ 2687.076043] usb 2-9: device descriptor read/64, error -62
我在 askubuntu 上看到过类似的问题,错误消息也类似,但从未出现过错误 -62。这个错误代码是什么意思?有没有包含所有错误代码及其含义的表格?我在 Google 上搜索了一下,但没找到。
答案1
确实有一个内核错误代码列表,根据系统的设置,您应该可以在中找到这些代码/usr/include/asm-generic/errno.h
。要找到错误 62,只需运行:
$ grep '62' /usr/include/asm-generic/errno.h
#define ETIME 62 /* Timer expired */
要浏览超过 100 个错误代码的完整列表,请尝试:
cat /usr/include/asm-generic/errno.h | less
这应该可以帮您找到 USB 设备故障的原因。我怀疑硬件(USB 设备)在连接方面存在故障,内核在尝试运行设备时超时 = 错误 62。