Ubuntu 18.04 遺失 USB-C 顯示器和 USB 設備

Ubuntu 18.04 遺失 USB-C 顯示器和 USB 設備

因此,我進行了以下設定 - Alienware m15 R3 配備兩個透過 USB-C/Thunderbolt 3 連接埠連接的 Dell U2719DC 顯示器(第一個顯示器透過顯示連接埠/MST 為另一個顯示器供電)。第一個顯示器(為另一個顯示器供電並透過 USB-C 連接到筆記型電腦)有兩個裝置連接到內建的 USB 集線器 - 鍵盤和滑鼠。會發生什麼情況,在隨機時間(或由於觸發?)顯示器開始關閉,如果我重新插入它們,它們會在幾秒鐘內關閉,甚至根本不出現。我注意到,該過程有時會在啟動 Android 模擬器時啟動(啟動嚴格的開/關週期),lspci/lswh觸發單一開/關週期,有時在隨機點觸發。我嘗試tail -f /var/log/{messages,kernel,dmesg,syslog}在這種開/關瘋狂期間收集日誌。我一直看到(很多這樣的):

Feb  3 20:11:27 rudolfs-Alienware-m15-R3 kernel: [ 5918.379945] pcieport 0000:00:1b.0: Intel SPT PCH root port ACS workaround enabled
Feb  3 20:11:28 rudolfs-Alienware-m15-R3 kernel: [ 5919.648785] usb usb3: root hub lost power or was reset
Feb  3 20:11:28 rudolfs-Alienware-m15-R3 kernel: [ 5919.648790] usb usb4: root hub lost power or was reset

在其中一些(大約 70%)之後,我收到有關 USB 裝置斷開連接的通知:

Feb  3 20:12:24 rudolfs-Alienware-m15-R3 kernel: [ 5975.820361] usb 1-11: USB disconnect, device number 10
Feb  3 20:12:24 rudolfs-Alienware-m15-R3 kernel: [ 5975.820362] usb 1-11.1: USB disconnect, device number 11

當一切再次出現時,似乎這些裝置是顯示器中的 USB 集線器、鍵盤和滑鼠(分別是1-11.11-11.2):

 3 20:12:06 rudolfs-Alienware-m15-R3 kernel: [ 5957.323800] usb 1-11: new high-speed USB device number 10 using xhci_hcd
Feb  3 20:12:06 rudolfs-Alienware-m15-R3 kernel: [ 5957.748121] usb 1-11: New USB device found, idVendor=0451, idProduct=8442, bcdDevice= 1.00
Feb  3 20:12:06 rudolfs-Alienware-m15-R3 kernel: [ 5957.748127] usb 1-11: New USB device strings: Mfr=0, Product=0, SerialNumber=1
Feb  3 20:12:06 rudolfs-Alienware-m15-R3 kernel: [ 5957.748131] usb 1-11: SerialNumber: E4010869A2EA
Feb  3 20:12:06 rudolfs-Alienware-m15-R3 kernel: [ 5957.749738] hub 1-11:1.0: USB hub found
Feb  3 20:12:06 rudolfs-Alienware-m15-R3 kernel: [ 5957.749786] hub 1-11:1.0: 6 ports detected
Feb  3 20:12:07 rudolfs-Alienware-m15-R3 kernel: [ 5958.039762] usb 1-11.1: new full-speed USB device number 11 using xhci_hcd
Feb  3 20:12:07 rudolfs-Alienware-m15-R3 kernel: [ 5958.141685] usb 1-11.1: New USB device found, idVendor=1532, idProduct=005c, bcdDevice= 2.00
Feb  3 20:12:07 rudolfs-Alienware-m15-R3 kernel: [ 5958.141691] usb 1-11.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Feb  3 20:12:07 rudolfs-Alienware-m15-R3 kernel: [ 5958.141694] usb 1-11.1: Product: Razer DeathAdder Elite
Feb  3 20:12:07 rudolfs-Alienware-m15-R3 kernel: [ 5958.141697] usb 1-11.1: Manufacturer: Razer
Feb  3 20:12:07 rudolfs-Alienware-m15-R3 kernel: [ 5958.462582] usb 1-11.2: New USB device found, idVendor=046d, idProduct=c339, bcdDevice=13.00
Feb  3 20:12:07 rudolfs-Alienware-m15-R3 kernel: [ 5958.462583] usb 1-11.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Feb  3 20:12:07 rudolfs-Alienware-m15-R3 kernel: [ 5958.462584] usb 1-11.2: Product: Pro Gaming Keyboard
Feb  3 20:12:07 rudolfs-Alienware-m15-R3 kernel: [ 5958.462585] usb 1-11.2: Manufacturer: Logitech
Feb  3 20:12:07 rudolfs-Alienware-m15-R3 kernel: [ 5958.462586] usb 1-11.2: SerialNumber: 086B367A3231

當一切都在運行時,輸出lspci -tv是:

rudolfs@rudolfs-Alienware-m15-R3:~$ lspci -tv
-[0000:00]-+-00.0  Intel Corporation Device 9b54
           +-01.0-[01-03]----00.0-[02-03]----00.0-[03]--+-00.0  Advanced Micro Devices, Inc. [AMD/ATI] Device 7340
           |                                            \-00.1  Advanced Micro Devices, Inc. [AMD/ATI] Device ab38
           +-01.1-[04]--
           +-02.0  Intel Corporation Device 9bc4
           +-04.0  Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem
           +-12.0  Intel Corporation Device 06f9
           +-13.0  Intel Corporation Device 06fc
           +-14.0  Intel Corporation Device 06ed
           +-14.2  Intel Corporation Device 06ef
           +-15.0  Intel Corporation Device 06e8
           +-16.0  Intel Corporation Device 06e0
           +-1b.0-[05-3d]----00.0-[06-3d]--+-00.0-[07]----00.0  Intel Corporation JHL7540 Thunderbolt 3 NHI [Titan Ridge 2C 2018]
           |                               +-01.0-[08-3c]--
           |                               \-02.0-[3d]----00.0  Intel Corporation JHL7540 Thunderbolt 3 USB Controller [Titan Ridge 2C 2018]
           +-1b.4-[3e]----00.0  Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981
           +-1d.0-[3f]----00.0  Samsung Electronics Co Ltd NVMe SSD Controller SM951/PM951
           +-1d.4-[40]----00.0  SK hynix Device 1339
           +-1d.6-[41]----00.0  Realtek Semiconductor Co., Ltd. Device 3000
           +-1d.7-[42]----00.0  Intel Corporation Device 2723
           +-1f.0  Intel Corporation Device 068d
           +-1f.3  Intel Corporation Device 06c8
           +-1f.4  Intel Corporation Device 06a3
           \-1f.5  Intel Corporation Device 06a4

的輸出lsusb -tv是:

/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 10000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/8p, 10000M
    |__ Port 2: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
    |__ Port 4: Dev 3, If 0, Class=Mass Storage, Driver=uas, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/16p, 480M
    |__ Port 4: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 7: Dev 3, If 0, Class=Video, Driver=uvcvideo, 480M
    |__ Port 7: Dev 3, If 1, Class=Video, Driver=uvcvideo, 480M
    |__ Port 10: Dev 4, If 0, Class=Vendor Specific Class, Driver=, 12M
    |__ Port 10: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 11: Dev 15, If 0, Class=Hub, Driver=hub/6p, 480M
        |__ Port 5: Dev 18, If 0, Class=Human Interface Device, Driver=usbhid, 480M
        |__ Port 1: Dev 16, If 1, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 1: Dev 16, If 2, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 1: Dev 16, If 0, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 2: Dev 17, If 1, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 2: Dev 17, If 0, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 14: Dev 5, If 0, Class=Wireless, Driver=btusb, 12M
    |__ Port 14: Dev 5, If 1, Class=Wireless, Driver=btusb, 12M

在寫這篇文章之前做了很多谷歌搜索,所以我見過提到的相關內容:

  • BIOS 中的 Thunderbolt 安全性已關閉
  • bolt軟體包已安裝
  • 裝置/Thunderbolt 面板中沒有顯示任何內容,但我認為這很好,因為連接的裝置(2 個顯示器、鍵盤和滑鼠)實際上都不是 Thunderbolt 裝置?

有人提到雷電端口如果不活動就會進入睡眠狀態 - 所以我不明白另一端(在顯示器中)的 USB 集線器是否應該讓它們保持活動狀態?這個問題非常煩人,因為我實際上需要使用 Android 模擬器,但運行它會使機器無法使用。有什麼意見、建議嗎?我可以提供任何其他需要的資訊。

不確定這是否與問題相關,但我在 Ubuntu 軟體設定中有一個未知設備(我認為它是 Killer 無線卡,即使 wifi 工作)。未知的英特爾設備

實際上只是注意到有這些錯誤的單一區塊:

Feb  3 20:12:30 rudolfs-Alienware-m15-R3 kernel: [ 5981.555749] usb 1-11: new high-speed USB device number 14 using xhci_hcd
Feb  3 20:12:30 rudolfs-Alienware-m15-R3 kernel: [ 5981.638519] usb 4-1: Device not responding to setup address.
Feb  3 20:12:30 rudolfs-Alienware-m15-R3 kernel: [ 5981.683827] usb 1-11: Device not responding to setup address.
Feb  3 20:12:31 rudolfs-Alienware-m15-R3 kernel: [ 5981.850723] usb 4-1: Device not responding to setup address.
Feb  3 20:12:31 rudolfs-Alienware-m15-R3 kernel: [ 5981.891708] usb 1-11: Device not responding to setup address.
Feb  3 20:12:31 rudolfs-Alienware-m15-R3 kernel: [ 5982.055666] usb 4-1: device not accepting address 3, error -71
Feb  3 20:12:31 rudolfs-Alienware-m15-R3 kernel: [ 5982.099676] usb 1-11: device not accepting address 14, error -71

和:

Feb  3 20:12:35 rudolfs-Alienware-m15-R3 kernel: [ 5986.151734] usb usb4-port1: Cannot enable. Maybe the USB cable is bad?
Feb  3 20:12:35 rudolfs-Alienware-m15-R3 kernel: [ 5986.151820] usb usb4-port1: attempt power cycle

相關內容