我有一个搭载了intel+nvidia双主板的电脑,它自带一个显示屏,但是通过minidp插口外接了一个显示器。
我想要让自带的显示器使用intel主板,让外接的显示器使用nvidia显存。
我查看了wiki中有关xorg和xrandr的内容linux系统双显示器设置,简单地设置了xorg.conf,并且运行xrandr--auto后xorg会崩溃。我不清楚问题出在那里、如何修补。
同时我使用awesome窗口管理器,我想要让这两个显示器共享同一个桌面,让窗口可以自由地在两个屏幕之间联通。我在wiki上见到了大量相关的页面,例如
这种页面提供了好多不同的方案,也提供了不同的xorg.conf模板linux系统双显示器设置,但同时让我倍感蒙蔽。我不太清楚其中的个别概念,例如SourceOutput,SinkOutput,SinkOffload这种概念linux课程,也不晓得个别选项意味着哪些,例如Option"AllowEmptyInitialConfiguration"。我应当选择那个方案,怎样更深入的理解这种方案之间的区别linux之家,或则你现今采用的是哪些方案,欢迎提供你的建议。
复现步骤
运行
startx
,步入awesome窗口管理器
打开图形终端运行
xrandr --auto
图形界面消失,显示tty,startx输出了一些错误内容
可能有用的信息
复现步骤3中,回到tty后startx输出的错误内容在这儿
对应的xorg.log文件在这儿
/5P5EQCNPE
xrandr的输出为
xrandr--listproviders的输出
Providers: number : 2
Provider 0: id: 0x45 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 2 associated providers: 1 name:Intel
Provider 1: id: 0x220 cap: 0x2, Sink Output crtcs: 4 outputs: 5 associated providers: 1 name:NVIDIA-G0
笔记本的两个图形卡
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
01:00.0 VGA compatible controller: NVIDIA Corporation GP106M [GeForce GTX 1060 Mobile] (rev a1)
/etc/X11/xorg.conf的内容如下
$ cat /etc/X11/xorg.conf
Section "Device"
Identifier "Screen0"
Driver "intel"
BusID "PCI:0:2:0"
EndSection
Section "Device"
Identifier "Screen1"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection
已安装的包