我目前正在尝试将我的新显示器 Samsung C34H890 (LC34H890WGIXCI) 连接到 Linux 笔记本电脑,但这不起作用。我尝试了相同的设置,但使用 Windows 而不是 Linux,一切正常,因此我相信电缆很好,笔记本电脑和显示器都支持这一点。根据我的研究,我需要加载一个内核模块,我这样做如下
sudo insmod /lib/modules/5.7.0-050700-generic/kernel/drivers/usb/typec/altmodes/typec_displayport.ko
# Not sure if the following one is needed
sudo insmod /lib/modules/5.7.0-050700-generic/kernel/drivers/usb/typec/altmodes/typec_nvidia.ko
然后,
[vova]## lsmod | grep type
typec_nvidia 16384 0
typec_displayport 16384 1 typec_nvidia
现在,当我尝试连接监视器时,我可以看到如下日志
[ 5275.924364] usb 3-4: new high-speed USB device number 8 using xhci_hcd
[ 5276.092475] usb 3-4: New USB device found, idVendor=04e8, idProduct=a020, bcdDevice= 1.00
[ 5276.092477] usb 3-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 5276.092478] usb 3-4: Product: 4-Port USB 2.0 Hub
[ 5276.092479] usb 3-4: Manufacturer: Generic
[ 5276.157371] hub 3-4:1.0: USB hub found
[ 5276.158502] hub 3-4:1.0: 4 ports detected
[ 5276.444583] usb 4-4: new SuperSpeed Gen 1 USB device number 6 using xhci_hcd
[ 5276.478572] usb 4-4: New USB device found, idVendor=04e8, idProduct=0411, bcdDevice= 1.00
[ 5276.478575] usb 4-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 5276.478576] usb 4-4: Product: 4-Port USB 3.0 Hub
[ 5276.478577] usb 4-4: Manufacturer: Generic
[ 5276.524492] usb 4-4: can't set config #1, error -71
[ 5276.531977] usb 4-4: USB disconnect, device number 6
这是我看到的最常见的错误代码,但我也看到了其他一些错误代码
[ 1018.915588] usb 4-4: Manufacturer: Generic
[ 1019.012984] [drm] [Link 0] WARNING MOD_HDCP_STATUS_DISPLAY_NOT_FOUND IN STATE HDCP_UNINITIALIZED STAY COUNT 0
[ 1024.163753] hub 4-4:1.0: USB hub found
[ 1024.163758] hub 4-4:1.0: config failed, can't read hub descriptor (err -22)
[ 1024.163814] usb 4-4: Failed to suspend device, error -19
[ 1024.163826] usb 4-4: USB disconnect, device number 5
或者
[ 53.421561] hub 4-4:1.0: USB hub found
[ 53.422890] hub 4-4:1.0: 4 ports detected
[ 58.615307] hub 4-4:1.0: config failed, can't get hub status (err -5)
[ 58.615516] usb 4-4: Failed to suspend device, error -19
我不知道 USB 是如何工作的,也不知道如何调试它以及进一步寻找什么。也许有人可以给我一些有用的提示或参考。也许驱动程序工作正常,但 X11 运行不正常?
如果这不是此类问题的正确资源,请告诉我,并提前致谢。