当前位置: 技术问答>linux和unix
linux下USB鼠标问题求助。
来源: 互联网 发布时间:2016-11-22
本文导语: 现在在linux 2.6.25下面遇到了一个关于USB鼠标的问题, 有的鼠标可以正常识别使用,有的则不行,往哪位同路人遇到过一下类似问题,烦请指点一下。 下面这个log是不能识别的USB鼠标: [39] usb 1-1: new low speed USB d...
现在在linux 2.6.25下面遇到了一个关于USB鼠标的问题,
有的鼠标可以正常识别使用,有的则不行,往哪位同路人遇到过一下类似问题,烦请指点一下。
下面这个log是不能识别的USB鼠标:
[39] usb 1-1: new low speed USB device using dwc_otg and address 2
[39]
[39] usb 1-1: configuration #1 chosen from 1 choice
[39] input: Generic USB K/B as /devices/platform/dwc_otg/usb1/1-1/1-1:1.0/input/input3
[39]
[39] input: USB HID v1.10 Keyboard [Generic USB K/B] on usb-dwc_otg_hcd-1
[40]
[40] input: Generic USB K/B as /devices/platform/dwc_otg/usb1/1-1/1-1:1.1/input/input4
[40] DWC_otg: check_periodic_bandwidth: already claimed usecs 117, required usecs 98
[40] DWC_otg: schedule_periodic: Insufficient periodic bandwidth for periodic transfer.
[40] DWC_otg: DWC OTG HCD URB Enqueue failed adding QTD. Error status -28[40]
[40] input: USB HID v1.10 Mouse [Generic USB K/B] on usb-dwc_otg_hcd-1
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=13ba ProdID=0017 Rev= 0.01S: Product=Generic USB K/B
C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=01 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=24ms
I:* If#= 1 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=usbhid
E: Ad=82(I) Atr=03(Int.) MxPS= 5 Ivl=10ms
下面这个是可以识别而且可以使用的USB的鼠标log
[35] usb 1-1: new low speed USB device using dwc_otg and address 2
[35]
[35] usb 1-1: configuration #1 chosen from 1 choice
[35] input: USB Optical Mouse as /devices/platform/dwc_otg/usb1/1-1/1-1:1.0/input/input3
[36] input: USB HID v1.11 Mouse [USB Optical Mouse] on usb-dwc_otg_hcd-1
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0
D: Ver[142] battery ad value : 893 , voltage 5490!!!
[142]
= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=192f ProdID=0416 Rev= 2.00S: Product=USB Optical Mouse
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 98mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 6 Ivl=10ms
在两个log中可以看出,不能使用的鼠标为USB HID v1.10 Mouse
能够使用的是USB HID v1.11 Mouse
而且PID和VID的版本有很大不同一个是Rev= 0.01,另一个是Rev= 2.00
多谢。
有的鼠标可以正常识别使用,有的则不行,往哪位同路人遇到过一下类似问题,烦请指点一下。
下面这个log是不能识别的USB鼠标:
[39] usb 1-1: new low speed USB device using dwc_otg and address 2
[39]
[39] usb 1-1: configuration #1 chosen from 1 choice
[39] input: Generic USB K/B as /devices/platform/dwc_otg/usb1/1-1/1-1:1.0/input/input3
[39]
[39] input: USB HID v1.10 Keyboard [Generic USB K/B] on usb-dwc_otg_hcd-1
[40]
[40] input: Generic USB K/B as /devices/platform/dwc_otg/usb1/1-1/1-1:1.1/input/input4
[40] DWC_otg: check_periodic_bandwidth: already claimed usecs 117, required usecs 98
[40] DWC_otg: schedule_periodic: Insufficient periodic bandwidth for periodic transfer.
[40] DWC_otg: DWC OTG HCD URB Enqueue failed adding QTD. Error status -28[40]
[40] input: USB HID v1.10 Mouse [Generic USB K/B] on usb-dwc_otg_hcd-1
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=13ba ProdID=0017 Rev= 0.01S: Product=Generic USB K/B
C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=01 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=24ms
I:* If#= 1 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=usbhid
E: Ad=82(I) Atr=03(Int.) MxPS= 5 Ivl=10ms
下面这个是可以识别而且可以使用的USB的鼠标log
[35] usb 1-1: new low speed USB device using dwc_otg and address 2
[35]
[35] usb 1-1: configuration #1 chosen from 1 choice
[35] input: USB Optical Mouse as /devices/platform/dwc_otg/usb1/1-1/1-1:1.0/input/input3
[36] input: USB HID v1.11 Mouse [USB Optical Mouse] on usb-dwc_otg_hcd-1
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0
D: Ver[142] battery ad value : 893 , voltage 5490!!!
[142]
= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=192f ProdID=0416 Rev= 2.00S: Product=USB Optical Mouse
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 98mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 6 Ivl=10ms
在两个log中可以看出,不能使用的鼠标为USB HID v1.10 Mouse
能够使用的是USB HID v1.11 Mouse
而且PID和VID的版本有很大不同一个是Rev= 0.01,另一个是Rev= 2.00
多谢。
|
我以前遇到过这个问题,查看源码有可能是内核自带的usb鼠标驱动中maxpacket值为8,而有些鼠标的maxpacket的值为9。这个需要自己修改驱动。