我一直尝试通过 ThinkPad USB 3 Pro 扩展坞(带有 DisplayLink 标签)的 DVI 端口将额外的显示器连接到装有 Ubuntu 18.04 的 Lenovo IdeaPad L340。所有其他驱动程序(声音、USB)都可以开箱即用,但显示器不行。
我按照 Ubuntu 18.04 驱动程序版本 5.1 的安装步骤进行操作 https://support.displaylink.com/knowledgebase/articles/684649
但是在运行脚本的步骤中失败了:
sudo ./displaylink-driver-5.1.26.run
Verifying archive integrity... 100% All good.
Uncompressing DisplayLink Linux Driver 5.1.26 100%
DisplayLink Linux Software 5.1.26 install script called: install
Distribution discovered: Ubuntu 18.04.4 LTS
WARNING: Version 1.7.0 of EVDI kernel module is already running.
Please reboot before attempting to re-install DisplayLink Linux Software.
Installation terminated.
经过一些谷歌搜索后,我做了以下事情:
$ sudo ./displaylink-driver-5.1.26.run --keep --noexec
displaylink-driver-5.1.26$ sudo ./displaylink-installer.sh uninstall
DisplayLink Linux Software 5.1.26 install script called: uninstall
Distribution discovered: Ubuntu 18.04.4 LTS
Uninstalling
Removing EVDI from kernel tree, DKMS, and removing sources.
Stopping displaylink-driver systemd service
Failed to stop displaylink-driver.service: Unit displaylink-driver.service not loaded.
Failed to disable unit: Unit file displaylink-driver.service does not exist.
Removing suspend-resume hooks
Removing udev rule
Removing Core folder
Uninstallation steps complete.
Please note that the evdi kernel module is still in the memory.
A reboot is required to fully complete the uninstallation process.
看起来卸载没有成功,因为 displaylink-driver.service 不存在。我重启了好几次;我甚至尝试在控制台模式下运行 Ubuntu,以避免 X 服务器出现任何问题。
按照此处的步骤更改 X 服务器的配置没有帮助: https://support.displaylink.com/knowledgebase/articles/1181623-displaylink-ubuntu-driver-after-recent-x-upgrades
这里提到的 DisplayLink / EVDI 构建均无帮助: https://forums.developer.nvidia.com/t/building-displaylink-evdi/73626
- lsusb 命令结果:
$lsusb
Bus 002 Device 004: ID 17ef:1017 Lenovo
Bus 002 Device 003: ID 17e9:433f DisplayLink
Bus 002 Device 002: ID 17ef:1016 Lenovo
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 174f:1176 Syntek
Bus 001 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 006: ID 0cf3:e500 Atheros Communications, Inc.
Bus 001 Device 004: ID 17ef:1017 Lenovo
Bus 001 Device 008: ID 04e8:6860 Samsung Electronics Co., Ltd Galaxy (MTP)
Bus 001 Device 002: ID 17ef:1016 Lenovo
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- dkms 初始状态:
$dkms status
nvidia, 440.59, 5.3.0-59-generic, x86_64: installed
- 构建 DisplayLink/EVDI 后的 dkms 状态
$ dkms status
evdi, devel, 5.3.0-59-generic, x86_64: installed (WARNING! Diff between built and installed module!)
nvidia, 440.59, 5.3.0-59-generic, x86_64: installed
- 内核版本
$uname -a
Linux 5.3.0-59-generic #53~18.04.1-Ubuntu
我将非常感激任何帮助;如果需要更多信息,请告诉我。
谢谢。
答案1
安装成功……终于。
如果有人遇到同样的问题,以下是我所做的。我不确定我是如何解决这个问题的,但我尝试了不同的方法:
- 要使用此安装程序安装驱动程序: https://github.com/AdnanHodzic/displaylink-debian
我运行了脚本 displaylink-debian.sh 和脚本 evdi.sh,得到了相同的结果,但它安装了一些可能有帮助的库。
- 删除已运行的 evdi 版本
- 我首先停止了 gdm3
sudo service gdm3 stop
- 然后我再次运行卸载命令以及使用 modprobe 的其他几个命令
sudo ./displaylink-installer.sh uninstall
modprobe -r evdi
modprobe -r evdi-1.6.0
重新启动后,安装完成(使用问题中的第一个命令),并且检测到显示屏但是是黑屏;另一次重新启动解决了黑屏问题。