Las*_*sus 5 display ubuntu thunderbolt nvidia-graphics-card ubuntu-16.04
我正在新的 Alienware R3 15 上设置 Ubuntu。我使用 Windows 10 双启动。我还有一个 Thunderbolt 显示器(Thunderbolt 2)。我最近买了一个适配器,这样我就可以将 Thunderbolt 显示器插入笔记本电脑上的 Thunderbolt 3 端口。
当我登录到 Windows 时,显示会被自动识别并按预期工作。在 Ubuntu 上,启动/加载屏幕在 Thunderbolt 显示器上闪烁一两秒钟,然后消失。然后我只是让笔记本电脑屏幕在登录屏幕加载时工作。登录后,显示对话框无法识别 Thunderbolt 显示器,只能识别笔记本电脑的屏幕。我已经尝试重新启动机器,因为我知道热插拔可能是一个问题。重新启动后我得到了相同的结果。
有什么技巧可以让它发挥作用吗?我在 Gnome (3.18.5) 上使用 16.04.2 LTS 64 位,我安装并选择了 GeForce GTX 1070/PCIe/SSE2 卡和专有的 Nvidia 375.39 驱动程序。同样,在同一台机器上的 Windows 中没有问题。
下面是运行的输出lspci。从这里的目录我相信Intel Corporation Device 15d9映射到JHL6340 Thunderbolt 3 NHI (C step) [Alpine Ridge 2C 2016]
lspci -vt
-[0000:00]-+-00.0 Intel Corporation Device 5910
+-01.0-[01]----00.0 NVIDIA Corporation Device 1be1
+-01.2-[02-3a]----00.0-[03-3a]--+-00.0-[04]----00.0 Intel Corporation Device 15d9
| +-01.0-[05-39]--
| \-02.0-[3a]--
+-02.0 Intel Corporation Device 591b
+-04.0 Intel Corporation Skylake Processor Thermal Subsystem
+-14.0 Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller
+-14.2 Intel Corporation Sunrise Point-H Thermal subsystem
+-16.0 Intel Corporation Sunrise Point-H CSME HECI #1
+-17.0 Intel Corporation Sunrise Point-H SATA controller [AHCI mode]
+-1c.0-[3b]--
+-1c.4-[3c]----00.0 Qualcomm Atheros Device e0b1
+-1c.5-[3d]----00.0 Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter
+-1d.0-[3e]----00.0 Toshiba America Info Systems Device 0115
+-1f.0 Intel Corporation Sunrise Point-H LPC Controller
+-1f.2 Intel Corporation Sunrise Point-H PMC
+-1f.3 Intel Corporation Device a171
\-1f.4 Intel Corporation Sunrise Point-H SMBus
Run Code Online (Sandbox Code Playgroud)
我运行命令sudo xrandr -q并得到输出:
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
1920x1080 60.02*+ 47.99
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
Run Code Online (Sandbox Code Playgroud)
然后命令xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x1e2 cap: 0x1, Source Output crtcs: 4 outputs: 4 associated providers: 0 name:NVIDIA-0
Provider 1: id: 0x46 cap: 0x2, Sink Output crtcs: 3 outputs: 4 associated providers: 0 name:modesetting
Run Code Online (Sandbox Code Playgroud)
然后是命令xrandr --setprovideroutputsource 1 0然后xrandr --current
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
1920x1080 60.02*+ 47.99
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-1-1 connected
2560x1440 59.95 +
1280x720 59.86
HDMI-1-1 disconnected
DP-1-2 disconnected
HDMI-1-2 disconnected
Run Code Online (Sandbox Code Playgroud)
请注意,DP-1-1 现在显示为已连接。此时,我可以打开显示设置并看到 Thunderbolt 显示屏。在那里我可以启用它并进行配置。现在看来工作正常。我从这里的帖子中确定了这些步骤
然后,我在“启动应用程序”对话框中添加了以下命令,以便在登录和注销后保留设置。
/bin/bash -c "sleep 10&&xrandr --setprovideroutputsource 1 0 && xrandr --output DP-1-1 --auto --primary --left-of DP-0"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
12914 次 |
| 最近记录: |