关于 usb 端口

我现在碰到一个非常有趣的问题。
我昨天刚装了 openSUSE。
一开始的时候 USB 鼠标不能用。然后今天系统升级打了些补丁可以用了。
这是题外话
我的电脑有两个 USB 接口,一个是 USB2.0 的,一个是 USB3.0 的。
我现在用一个 USB hub 插在 USB3.0 的接口上,然后 usb hub 上连接 usb 鼠标,打印机,一切正常。
但是将 usb hub 插在 usb2.0 的接口上,什么都不能用。
我尝试用手机连接 usb2.0 接口,u 盘也尝试过。都没有读取。但是用手机连接以后有供电(手机出现充电状态)
用 usb 键盘连接 2.0 的接口,无反应。

不是 usb 接口的问题。在 windows 下 usb2.0 接口完全正常可以用。

请问大概会是什么出了问题?因为我完全搞不懂症状的特点所以无法查阅资料。。。
是 usb2.0 的驱动和 usb3.0 的驱动不一样么?

PS 我是完全的小白刚接触 linux.

有没有搜索过互联网?

首先我建议你按照这个 askubuntu 上面的几个命令,用 lsusb、lspci 这些命令查找一下,把你的电脑上输出的结果放到论坛上面。

如果连“硬件信息”都没有的话,再是大神也很难给出答案的。

其次,我搜索到一个相近案例:http://askubuntu.com/questions/349659/usb-2-0-port-does-not-work-usb-3-0-ports-do-work-running-ubuntu-13-04

从 askubuntu 的这个帖子上看,共同的现象就是连 BIOS 的启动菜单都无法找到 USB2 接口。 所以也请你看一下 BIOS 的启动菜单,看一下你的 BIOS 能否找到 USB2 接口,如果不能,那么你应该联系电脑厂商并且询问情况了。 因为不仅仅是 Linux 找不到,而是 BIOS 都找不到。

除此之外我没有搜索到其他案例。 这个问题看起来不常见。

lsusb
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 002: ID 1532:0037 Razer USA, Ltd
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 04f3:0018 Elan Microelectronics Corp.
Bus 001 Device 004: ID 8087:07da Intel Corp.
Bus 001 Device 005: ID 04f2:b328 Chicony Electronics Co., Ltd

上面那个 lsusb 是在只在 usb3.0 查了我的鼠标的情况下输出的结果
那个 lspci 的命令是什么。。。好像执行不出来。我是新手。。

dmesg | grep USB
    0.190016] ACPI: bus type USB registered
    0.576972] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    0.577171] ehci-pci 0000:00:1a.0: new USB bus registered, assigned bus number 1
    0.587016] ehci-pci 0000:00:1a.0: USB 2.0 started, EHCI 1.00
    0.587038] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    0.587040] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    0.587172] hub 1-0:1.0: USB hub found
    0.587465] ehci-pci 0000:00:1d.0: new USB bus registered, assigned bus number 2
    0.597019] ehci-pci 0000:00:1d.0: USB 2.0 started, EHCI 1.00
    0.597039] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    0.597041] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    0.597156] hub 2-0:1.0: USB hub found
    0.597304] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    0.597306] uhci_hcd: USB Universal Host Controller Interface driver
    0.609385] usbhid: USB HID core driver
    0.889212] usb 1-1: new high-speed USB device number 2 using ehci-pci
    1.003690] usb 1-1: New USB device found, idVendor=8087, idProduct=0024
    1.003695] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    1.003945] hub 1-1:1.0: USB hub found
    1.107301] usb 2-1: new high-speed USB device number 2 using ehci-pci
    1.221795] usb 2-1: New USB device found, idVendor=8087, idProduct=0024
    1.221802] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    1.222222] hub 2-1:1.0: USB hub found
    1.297573] usb 1-1.1: new full-speed USB device number 3 using ehci-pci
    1.385590] usb 1-1.1: New USB device found, idVendor=04f3, idProduct=0018
    1.385598] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    1.467587] usb 1-1.2: new full-speed USB device number 4 using ehci-pci
    1.488936] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 3
    1.489131] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
    1.489134] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    1.492795] hub 3-0:1.0: USB hub found
    1.493336] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 4
    1.493360] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
    1.493362] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    1.493491] hub 4-0:1.0: USB hub found
    1.557334] usb 1-1.2: New USB device found, idVendor=8087, idProduct=07da
    1.557339] usb 1-1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    1.630685] usb 1-1.3: new high-speed USB device number 5 using ehci-pci
    1.813000] usb 1-1.3: New USB device found, idVendor=04f2, idProduct=b328
    1.813004] usb 1-1.3: New USB device strings: Mfr=3, Product=1, SerialNumber=2
    1.813007] usb 1-1.3: Product: USB 2.0 Camera
    1.969722] usb 3-1: new full-speed USB device number 2 using xhci_hcd
    1.983005] usb 3-1: New USB device found, idVendor=1532, idProduct=0037
    1.983008] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    1.984694] hid-generic 0003:1532:0037.0002: input,hidraw0: USB HID v1.11 Mouse [Razer Razer DeathAdder 2013] on usb-0000:00:14.0-1/input0
    1.986820] hid-generic 0003:1532:0037.0003: input,hidraw1: USB HID v1.11 Keyboard [Razer Razer DeathAdder 2013] on usb-0000:00:14.0-1/input1
    1.987548] hid-generic 0003:1532:0037.0004: input,hidraw2: USB HID v1.11 Keyboard [Razer Razer DeathAdder 2013] on usb-0000:00:14.0-1/input2
    9.169171] hid-multitouch 0003:04F3:0018.0001: input,hiddev0,hidraw3: USB HID v1.11 Device [ELAN Touchscreen] on usb-0000:00:1a.0-1.1/input0
    9.686122] uvcvideo: Found UVC 1.00 device USB 2.0 Camera (04f2:b328)
    9.697297] input: USB 2.0 Camera as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3/1-1.3:1.0/input/input13
    9.697359] USB Video Class driver (1.1.1)
 7953.606626] usb 3-1: USB disconnect, device number 2
 7961.134882] usb 3-1: new full-speed USB device number 3 using xhci_hcd
 7961.148478] usb 3-1: New USB device found, idVendor=1532, idProduct=0037
 7961.148481] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
 7961.150352] hid-generic 0003:1532:0037.0005: input,hidraw0: USB HID v1.11 Mouse [Razer Razer DeathAdder 2013] on usb-0000:00:14.0-1/input0
 7961.152357] hid-generic 0003:1532:0037.0006: input,hidraw1: USB HID v1.11 Keyboard [Razer Razer DeathAdder 2013] on usb-0000:00:14.0-1/input1
 7961.153070] hid-generic 0003:1532:0037.0007: input,hidraw2: USB HID v1.11 Keyboard [Razer Razer DeathAdder 2013] on usb-0000:00:14.0-1/input2

我觉得不应该是 BIOS 都找不到吧。我的 USB2.0 在 windows 下面工作的非常正常啊。

dmesg | tail
8358.254714] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
8358.254716] usb 3-1: Product: Razer DeathAdder 2013
8358.254717] usb 3-1: Manufacturer: Razer
8358.256011] input: Razer Razer DeathAdder 2013 as /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0/input/input20
8358.256149] hid-generic 0003:1532:0037.0008: input,hidraw0: USB HID v1.11 Mouse [Razer Razer DeathAdder 2013] on usb-0000:00:14.0-1/input0
8358.257896] input: Razer Razer DeathAdder 2013 as /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.1/input/input21
8358.257968] hid-generic 0003:1532:0037.0009: input,hidraw1: USB HID v1.11 Keyboard [Razer Razer DeathAdder 2013] on usb-0000:00:14.0-1/input1
8358.258547] input: Razer Razer DeathAdder 2013 as /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.2/input/input22
8358.258615] hid-generic 0003:1532:0037.000A: input,hidraw2: USB HID v1.11 Keyboard [Razer Razer DeathAdder 2013] on usb-0000:00:14.0-1/input2
8360.962612] SFW2-INext-DROP-DEFLT IN=enp14s0 OUT= MAC=33:33:00:00:00:fb:d4:9a:20:f2:51:10:86:dd SRC=fe80:0000:0000:0000:d69a:20ff:fef2:5110 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=130 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=90

终于调用出来了 lspci… 直接用 sudo lspci 没用。。。
sudo /sbin/lspci
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM76 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
02:00.0 Network controller: Intel Corporation Centrino Wireless-N 2230 (rev c4)
08:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5209 PCI Express Card Reader (rev 01)
0e:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 07)

做功课…

00:14.0 是你的 USB3
00:1a.0 是你的 USB2

你在 USB3 里面插入雷蛇鼠标之后,输出的信息表示系统认为你把一个雷蛇鼠标插入了 00:14.0

没有问题。

现在你试着把这个雷蛇鼠标从 USB3 拔出,再插入 USB2, 然后再运行一下 dmesg | tail 看一下。 我个人估计仍然会显示你把雷蛇鼠标插入了 00:14.0。

这个我进去看了。。

I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input0
U: Uniq=
H: Handlers=sysrq kbd event0
B: PROP=0
B: EV=120013
B: KEY=402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7

I: Bus=0011 Vendor=0002 Product=0007 Version=01b1
N: Name="SynPS/2 Synaptics TouchPad"
P: Phys=isa0060/serio1/input0
S: Sysfs=/devices/platform/i8042/serio1/input/input1
U: Uniq=
H: Handlers=mouse0 event1
B: PROP=5
B: EV=b
B: KEY=e520 10000 0 0 0 0
B: ABS=660800011000003

I: Bus=0019 Vendor=0000 Product=0005 Version=0000
N: Name="Lid Switch"
P: Phys=PNP0C0D/button/input0
S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input2
U: Uniq=
H: Handlers=event2
B: PROP=0
B: EV=21
B: SW=1

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input3
U: Uniq=
H: Handlers=kbd event3
B: PROP=0
B: EV=3
B: KEY=10000000000000 0
I: Bus=0019 Vendor=0000 Product=0006 Version=0000
N: Name="Video Bus"
P: Phys=LNXVIDEO/video/input0
S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:01/input/input4
U: Uniq=
H: Handlers=kbd event4
B: PROP=0
B: EV=3
B: KEY=3e000b00000000 0 0 0

I: Bus=0010 Vendor=104d Product=0000 Version=0000
N: Name="Sony Vaio Keys"
P: Phys=
S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:02/SNY5001:00/input/input8
U: Uniq=
H: Handlers=kbd event8 rfkill
B: PROP=0
B: EV=13
B: KEY=1f160f0000 c00000000 10010000000000 200000000 600f00102c00 380000240300400 e000000000000 0
B: MSC=10

I: Bus=0010 Vendor=104d Product=0000 Version=0000
N: Name="Sony Vaio Jogdial"
P: Phys=
S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:02/SNY5001:00/input/input9
U: Uniq=
H: Handlers=mouse2 event9
B: PROP=0
B: EV=7
B: KEY=40000 0 0 0 0
B: REL=100

I: Bus=0003 Vendor=04f2 Product=b328 Version=2917
N: Name="USB 2.0 Camera"
P: Phys=usb-0000:00:1a.0-1.3/button
S: Sysfs=/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3/1-1.3:1.0/input/input10
U: Uniq=
H: Handlers=kbd event10
B: PROP=0
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0010 Vendor=001f Product=0001 Version=0100
N: Name="PC Speaker"
P: Phys=isa0061/input0
S: Sysfs=/devices/platform/pcspkr/input/input11
U: Uniq=
H: Handlers=kbd event11
B: PROP=0
B: EV=40001
B: SND=6

I: Bus=0003 Vendor=04f3 Product=0018 Version=0111
N: Name="ELAN Touchscreen"
P: Phys=usb-0000:00:1a.0-1.1/input0
S: Sysfs=/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/input/input12
U: Uniq=
H: Handlers=mouse3 event12
B: PROP=2
B: EV=b
B: KEY=400 0 0 0 0 0
B: ABS=3273800000000003

I: Bus=0019 Vendor=0000 Product=0000 Version=0000
N: Name="Acer BMA150 accelerometer"
P: Phys=wmi/input1
S: Sysfs=/devices/virtual/input/input13
U: Uniq=
H: Handlers=event13 js0
B: PROP=0
B: EV=9
B: ABS=7

I: Bus=0001 Vendor=10ec Product=0269 Version=0001
N: Name="HDA Digital PCBeep"
P: Phys=card0/codec#0/beep0
S: Sysfs=/devices/pci0000:00/0000:00:1b.0/input/input14
U: Uniq=
H: Handlers=kbd event14
B: PROP=0
B: EV=40001
B: SND=6

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel PCH HDMI/DP,pcm=3"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input15
U: Uniq=
H: Handlers=event15
B: PROP=0
B: EV=21
B: SW=140

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel PCH Headphone"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input16
U: Uniq=
H: Handlers=event16
B: PROP=0
B: EV=21
B: SW=4

这些代码是在我将鼠标插入 USB2.0 的接口时候得到的。也就是说我的那个 usb 2.0 接口没有检测到我的鼠标。所以是有什么程序把那个 usb 接口的检测关闭了?上面显示 usb 接了一个触摸屏和我的摄像头。
有 Sysfs=/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/input/input12
和 S: Sysfs=/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3/1-1.3:1.0/input/input10
所以是 1-1.2 这个口没有检测到?

前面一段结果是我鼠标插在USB2.0的时候运行出的。后面一段是我将鼠标插入USB3.0得到的

sudo dmesg | tail
root's password:
 2091.493842] SFW2-INext-DROP-DEFLT IN=enp14s0 OUT= MAC=33:33:00:00:00:fb:3c:07:54:54:be:c4:86:dd SRC=fe80:0000:0000:0000:3e07:54ff:fe54:bec4 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=1356 TC=0 HOPLIMIT=255 FLOWLBL=600290 PROTO=UDP SPT=5353 DPT=5353 LEN=1316 
 2145.622163] SFW2-INext-DROP-DEFLT IN=enp14s0 OUT= MAC=33:33:00:00:00:fb:c8:bc:c8:94:46:1f:86:dd SRC=fe80:0000:0000:0000:cabc:c8ff:fe94:461f DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=202 TC=0 HOPLIMIT=255 FLOWLBL=936031 PROTO=UDP SPT=5353 DPT=5353 LEN=162 
 2146.632739] SFW2-INext-DROP-DEFLT IN=enp14s0 OUT= MAC=33:33:00:00:00:fb:c8:bc:c8:94:46:1f:86:dd SRC=fe80:0000:0000:0000:cabc:c8ff:fe94:461f DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=202 TC=0 HOPLIMIT=255 FLOWLBL=936031 PROTO=UDP SPT=5353 DPT=5353 LEN=162 
 2158.723799] SFW2-INext-DROP-DEFLT IN=enp14s0 OUT= MAC=33:33:00:00:00:fb:c8:bc:c8:94:46:1f:86:dd SRC=fe80:0000:0000:0000:cabc:c8ff:fe94:461f DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=202 TC=0 HOPLIMIT=255 FLOWLBL=936031 PROTO=UDP SPT=5353 DPT=5353 LEN=162 
 2185.816563] SFW2-INext-DROP-DEFLT IN=enp14s0 OUT= MAC=33:33:00:00:00:fb:28:37:37:42:d2:8d:86:dd SRC=fe80:0000:0000:0000:2a37:37ff:fe42:d28d DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=269 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=229 
 2207.235648] SFW2-INext-DROP-DEFLT IN=enp14s0 OUT= MAC=33:33:00:00:00:fb:c8:bc:c8:94:46:1f:86:dd SRC=fe80:0000:0000:0000:cabc:c8ff:fe94:461f DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=285 TC=0 HOPLIMIT=255 FLOWLBL=936031 PROTO=UDP SPT=5353 DPT=5353 LEN=245 
 2211.370625] SFW2-INext-DROP-DEFLT IN=enp14s0 OUT= MAC=33:33:00:00:00:fb:c8:bc:c8:94:46:1f:86:dd SRC=fe80:0000:0000:0000:cabc:c8ff:fe94:461f DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=285 TC=0 HOPLIMIT=255 FLOWLBL=936031 PROTO=UDP SPT=5353 DPT=5353 LEN=245 
 2211.691327] SFW2-INext-DROP-DEFLT IN=enp14s0 OUT= MAC=33:33:00:00:00:fb:70:cd:60:87:be:92:86:dd SRC=fe80:0000:0000:0000:72cd:60ff:fe87:be92 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=72 TC=0 HOPLIMIT=1 FLOWLBL=0 OPT ( ) PROTO=ICMPv6 TYPE=131 CODE=0 
 2215.348428] SFW2-INext-DROP-DEFLT IN=enp14s0 OUT= MAC=33:33:00:00:00:fb:70:cd:60:87:be:92:86:dd SRC=fe80:0000:0000:0000:72cd:60ff:fe87:be92 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=72 TC=0 HOPLIMIT=1 FLOWLBL=0 OPT ( ) PROTO=ICMPv6 TYPE=131 CODE=0 
 2231.710295] SFW2-INext-DROP-DEFLT IN=enp14s0 OUT= MAC=33:33:00:00:00:fb:c8:bc:c8:94:46:1f:86:dd SRC=fe80:0000:0000:0000:cabc:c8ff:fe94:461f DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=750 TC=0 HOPLIMIT=255 FLOWLBL=936031 PROTO=UDP SPT=5353 DPT=5353 LEN=710 



li@linux-ednq:~> sudo dmesg | tail
 2284.294718] usb 3-1: New USB device found, idVendor=1532, idProduct=0037
 2284.294725] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
 2284.294728] usb 3-1: Product: Razer DeathAdder 2013
 2284.294731] usb 3-1: Manufacturer: Razer
 2284.296235] input: Razer Razer DeathAdder 2013 as /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0/input/input22
 2284.296449] hid-generic 0003:1532:0037.000A: input,hidraw0: USB HID v1.11 Mouse [Razer Razer DeathAdder 2013] on usb-0000:00:14.0-1/input0
 2284.298359] input: Razer Razer DeathAdder 2013 as /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.1/input/input23
 2284.298525] hid-generic 0003:1532:0037.000B: input,hidraw1: USB HID v1.11 Keyboard [Razer Razer DeathAdder 2013] on usb-0000:00:14.0-1/input1
 2284.299162] input: Razer Razer DeathAdder 2013 as /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.2/input/input24
 2284.299244] hid-generic 0003:1532:0037.000C: input,hidraw2: USB HID v1.11 Keyboard [Razer Razer DeathAdder 2013] on usb-0000:00:14.0-1/input2

将鼠标拔出USB3.0再次接入2.0.的确和你说的一样系统认为USB3.0中还有鼠标

sudo dmesg | tail
 2284.296449] hid-generic 0003:1532:0037.000A: input,hidraw0: USB HID v1.11 Mouse [Razer Razer DeathAdder 2013] on usb-0000:00:14.0-1/input0
 2284.298359] input: Razer Razer DeathAdder 2013 as /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.1/input/input23
 2284.298525] hid-generic 0003:1532:0037.000B: input,hidraw1: USB HID v1.11 Keyboard [Razer Razer DeathAdder 2013] on usb-0000:00:14.0-1/input1
 2284.299162] input: Razer Razer DeathAdder 2013 as /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.2/input/input24
 2284.299244] hid-generic 0003:1532:0037.000C: input,hidraw2: USB HID v1.11 Keyboard [Razer Razer DeathAdder 2013] on usb-0000:00:14.0-1/input2
 2293.186455] SFW2-INext-DROP-DEFLT IN=enp14s0 OUT= MAC=33:33:00:00:00:fb:a8:20:66:30:52:ea:86:dd SRC=fe80:0000:0000:0000:aa20:66ff:fe30:52ea DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=158 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=118 
 2313.204435] SFW2-INext-DROP-DEFLT IN=enp14s0 OUT= MAC=33:33:00:00:00:fb:3c:07:54:54:be:c4:86:dd SRC=fe80:0000:0000:0000:3e07:54ff:fe54:bec4 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=1356 TC=0 HOPLIMIT=255 FLOWLBL=600290 PROTO=UDP SPT=5353 DPT=5353 LEN=1316 
 2333.146682] SFW2-INext-DROP-DEFLT IN=enp14s0 OUT= MAC=33:33:00:00:00:fb:70:cd:60:87:be:92:86:dd SRC=fe80:0000:0000:0000:72cd:60ff:fe87:be92 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=549 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=509 
 2361.510882] usb 3-1: USB disconnect, device number 6
 2364.586477] SFW2-INext-DROP-DEFLT IN=enp14s0 OUT= MAC=33:33:00:00:00:fb:3c:07:54:30:f3:e3:86:dd SRC=fe80:0000:0000:0000:3e07:54ff:fe30:f3e3 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=123 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=83

棘手 。 我没有想法了。。

感觉你直接插入USB2并不会反映到USB3. 只是从USB3转插到2不正确。

插入USB2的时候反映我感觉没找到这个东西。。

好像症状和askubunu上面那个不同。

棘手 。 我没有想法了。。

感觉你直接插入USB2并不会反映到USB3. 只是从USB3转插到2不正确。

插入USB2的时候反映我感觉没找到这个东西。。

好像症状和askubunu上面那个不同。

谢谢辛苦了。。。
最近要考试。等圣诞的时候我再想办法解决这个问题。
只要不把电脑BIOS搞坏就不是事儿。
我初步设想是自己去改写/proc/bus/input/devices 不知道改写了这个文档以后会不会被识别

棘手 。 我没有想法了。。

感觉你直接插入USB2并不会反映到USB3. 只是从USB3转插到2不正确。

插入USB2的时候反映我感觉没找到这个东西。。

好像症状和askubunu上面那个不同。

谢谢辛苦了。。。
最近要考试。等圣诞的时候我再想办法解决这个问题。
只要不把电脑BIOS搞坏就不是事儿。
我初步设想是自己去改写/proc/bus/input/devices 不知道改写了这个文档以后会不会被识别
我也一样。 在为期末奔波中。

新进展:

我在这个地方找到了和我一模一样的案例:
bugs.launchpad.net/ubuntu/+source/linux/+bug/1172908

很显然所有有问题的笔记本电脑都是 sony T 系列的(我的是 SVT13126CG)。最后一条回复说需要进入 BIOS 启用 IOMMU(很可惜我的 BIOS 里面没有这个选项找不到)

估计是 BIOS 的问题。但是 usb2.0 接口在 windows 下估计良好。不知道为什么在 linux 系统上会有这个问题。

:sob:

再次更新

bugs.launchpad.net/ubuntu/+source/linux/+bug/1210858

这里 Combat2 这位仁兄用了以下方法。

Found the problem.

changed pci-quirks.c in v3.11 with
— pci-quirks.c~ 2013-08-06 07:25:47.000000000 -0400
+++ pci-quirks.c 2013-08-30 14:23:47.597891192 -0400
@@ -921,9 +921,10 @@
writel(val, base + ext_cap_offset + XHCI_LEGACY_CONTROL_OFFSET);

hc_init:

  • /*
    if (usb_is_intel_switchable_xhci(pdev))
    usb_enable_xhci_ports(pdev);
  • */
    op_reg_base = base + XHCI_HC_LENGTH(readl(base));

    /* Wait for the host controller to be ready before writing any

rebuilt the kernel and the USB 2.0 ports now work!

现在的问题是:
首先我找不到 pci-quirk.c 在哪里。。。
没有然后了。。。
(我接触 linux 没几天求各位别喷我 特别是玛格丽特。。。感觉很凶的样子。。)

所有的硬件,除了封闭一派的苹果机和时尚有形的树梅派一类的东西,肯定会考虑好 WIndows 系统的各种问题。 所以说 windows 下良好是很正常的。 但是他们很少考虑 linux。

主要我不会改写那个东西(找不到他)
根据 ubuntu 论坛上说好像下个 kernel 的时候会进行修改这个问题(openSUSE13.1 才发布没多久啊擦。。。)
现在幸好 usb3.0 还是工作的用个 usb hub 就好了
等回国了树莓派也可以跑起来了可以试试 openSUSE 在 arm 上跑哈哈哈

我很面善的好么?

你添加这个源:

download.opensuse.org/repositories/Kernel:/HEAD/standard/

升级你的 kernel-desktop 为 3.13 版。注意这是升级内核,升级完下一次重启是黑屏的,因为你的闭源显卡驱动需要 the hard way 重装。

openSUSE 下的内核不需要重新编译,OBS 始终有最新内核,想换随时能换。