我的 Thinkpad T14s 在运行 Ubuntu 20.04 LTS 时出现了问题。几个月前我第一次遇到了这个问题。当我通过电缆或智能手机连接光驱时,什么也没发生。智能手机也没有给电池充电。而且我无法访问任何 USB 闪存驱动器。
之前我降级到了 5.8.0-50-generic 内核(但这只是一次尝试,因为我并不真正知道我在那里做了什么)。有一段时间它似乎工作了,但后来又停止了。就在最近,我升级到了 5.11.0-40-generic #44~20.04.2-Ubuntu SMP Tue Oct 26 18:07:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux。我不知道该检查什么才能缩小问题范围。在其他电脑上,所有这些 USB 设备都可以正常工作,而我的笔记本电脑的两个 USB 端口都出现了同样的功能障碍。
我猜,您可能会询问某些命令的输出。我将尝试在这里直接提供这些输出。
lsusb
Bus 007 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 006 Device 003: ID 8087:0029 Intel Corp.
Bus 006 Device 002: ID 06cb:00bd Synaptics, Inc.
Bus 006 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 002: ID 058f:9540 Alcor Micro Corp. AU9540 Smartcard Reader
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 04f2:b6cb Chicony Electronics Co., Ltd Integrated Camera
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
lsusb -v > lsusbvoutput
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
sudo uhubctl
Current status for hub 3 [1d6b:0003 Linux 5.8.0-50-generic xhci-hcd xHCI Host Controller 0000:05:00.0, USB 3.00, 2 ports]
Port 1: 02a0 power 5gbps Rx.Detect
Port 2: 02a0 power 5gbps Rx.Detect
Current status for hub 2 [1d6b:0002 Linux 5.8.0-50-generic xhci-hcd xHCI Host Controller 0000:05:00.0]
Port 1: 0100 power
Port 2: 0507 power highspeed suspend enable connect [04f2:b6cb Chicony Electronics Co.,Ltd. Integrated Camera 0001]
当 USB 端口工作一段时间后,我还可以对 lsusb 进行差异检查:
496c496
< Bus 004 Device 002: ID 058f:9540 Alcor Micro Corp. AU9540 Smartcard Reader
---
> Bus 004 Device 003: ID 058f:9540 Alcor Micro Corp. AU9540 Smartcard Reader
592a593,650
> bInterval 0
>
> Bus 004 Device 002: ID 0e8d:1887 MediaTek Inc. Portable Super Multi Drive
> Device Descriptor:
> bLength 18
> bDescriptorType 1
> bcdUSB 2.00
> bDeviceClass 0
> bDeviceSubClass 0
> bDeviceProtocol 0
> bMaxPacketSize0 64
> idVendor 0x0e8d MediaTek Inc.
> idProduct 0x1887
> bcdDevice 0.00
> iManufacturer 1
> iProduct 2
> iSerial 3
> bNumConfigurations 1
> Configuration Descriptor:
> bLength 9
> bDescriptorType 2
> wTotalLength 0x0020
> bNumInterfaces 1
> bConfigurationValue 1
> iConfiguration 4
> bmAttributes 0xa0
> (Bus Powered)
> Remote Wakeup
> MaxPower 500mA
> Interface Descriptor:
> bLength 9
> bDescriptorType 4
> bInterfaceNumber 0
> bAlternateSetting 0
> bNumEndpoints 2
> bInterfaceClass 8 Mass Storage
> bInterfaceSubClass 2 SFF-8020i, MMC-2 (ATAPI)
> bInterfaceProtocol 80
> iInterface 5
> Endpoint Descriptor:
> bLength 7
> bDescriptorType 5
> bEndpointAddress 0x81 EP 1 IN
> bmAttributes 2
> Transfer Type Bulk
> Synch Type None
> Usage Type Data
> wMaxPacketSize 0x0200 1x 512 bytes
> bInterval 0
> Endpoint Descriptor:
> bLength 7
> bDescriptorType 5
> bEndpointAddress 0x02 EP 2 OUT
> bmAttributes 2
> Transfer Type Bulk
> Synch Type None
> Usage Type Data
> wMaxPacketSize 0x0200 1x 512 bytes
我希望我提供了足够的细节并且您能够帮助我。
此致
答案1
更新:没有重启,而是真的关闭了电脑,在恢复模式下启动当前内核 5.11.0-40-generic,它又恢复正常工作了。然后我启动了同一个内核,但没有恢复模式,它仍然正常工作。不知道为什么,但我很高兴。谢谢你的建议!