Xorg增加虚拟屏幕大小超过8192 x 8192

时间:2017-10-04 16:13:54

标签: screen-resolution display multiple-monitors xorg external-display

我有一台4K显示器(3840 x 2160)和两台QHD显示器(2560 x 1440),我希望将它们并排放置。这当前是不可能的,因为这需要的水平虚拟分辨率是8960像素(3840 + 2560 + 2560),但是X服务器设置的最大(水平)虚拟分辨率是8192像素。有没有办法增加超过8192x8192像素的最大虚拟分辨率?

我到目前为止所做的尝试:

  • 我没有xorg.conf文件 - 我尝试自己手动创建一个"Display"子部分,并在其中设置不同的"Virtual"值,重新启动,没有任何更改。< / LI>
  • 尝试了各种xrandr命令变体,--fb和/或--panning参数设置为所需的最大值(8960x2160+0+0),再次无济于事。 (输出:xrandr: screen cannot be larger than 8192x8192 (desired size 8960x2160)

我确实曾在某处(编辑: here)宣读了英特尔的图形处理器不支持比8192x8192像素更高的虚拟屏幕分辨率(我的系统正在使用{ {1}}带有Core i7-6700HQ图形处理器的CPU,但遗憾的是我无法确认此信息 - 希望情况并非如此。

编辑:确实可能不是这样:

Intel HD Graphics 530

我的xrandr输出(我目前有第三个显示器位于右下方,因此8192x3600虚拟屏幕分辨率):

#: glxinfo -l | grep GL_MAX_TEXTURE_SIZE
GL_MAX_TEXTURE_SIZE = 16384
GL_MAX_TEXTURE_SIZE = 16384

1 个答案:

答案 0 :(得分:1)

我能够通过以下步骤来解决此问题,以生成并修改xorg.conf文件并将其放入/etc/X11/xorg.conf

我在使用gnome-session-fallback的{​​{1}}的Ubuntu 16.04上,每当我尝试使所有三个全分辨率都达到时,我会收到有关虚拟大小无法超过metacity的错误。 >

我不确定您是否在8192x8192 gnome unity上是否重要。

重新启动之前-生成一个metacity文件。

xorg.conf.new

例如,我有两个$ sudo X :2 -configure # will make a file /home/$USER/xorg.conf.new or ~/xorg.conf.new $ cat ~/xorg.conf.new |grep Screen|more Screen 0 "Screen0" 0 0 Screen 1 "Screen1" RightOf "Screen0" Section "Screen" Identifier "Screen0" Section "Screen" Identifier "Screen1" ,并且我正在尝试使用3个监视器-我认为无论生成什么内容,您都不需要三个Screen Sections

Screen Sections

如果您需要在此大小以上的glx,请检查您的glx是否可以处理。

Monitor 1: 3840x2160 x 32 in
Monitor 2: 3840x2160 x 32 in
Monitor 3: 1920x1080 x 22 in

修改8192x8192目录中的glxinfo -l | grep GL_MAX_TEXTURE_SIZE GL_MAX_TEXTURE_SIZE = 16384 GL_MAX_TEXTURE_SIZE = 16384 文件,并通过xorg.conf.new命令/home/username

添加大小
glxinfo

Virtual 16384小节下,两个小节的sudo nano ~/xorg.conf.new 共24个Display添加Depth

Screen

Virtual 16384复制到 Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" SubSection "Display" Viewport 0 0 Depth 1 EndSubSection SubSection "Display" Viewport 0 0 Depth 4 EndSubSection SubSection "Display" Viewport 0 0 Depth 8 EndSubSection SubSection "Display" Viewport 0 0 Depth 15 EndSubSection SubSection "Display" Viewport 0 0 Depth 16 EndSubSection SubSection "Display" Viewport 0 0 Depth 24 Virtual 16384 16384 <-- ADD THIS. EndSubSection EndSection Section "Screen" Identifier "Screen1" Device "Card1" Monitor "Monitor1" SubSection "Display" Viewport 0 0 Depth 1 EndSubSection SubSection "Display" Viewport 0 0 Depth 4 EndSubSection SubSection "Display" Viewport 0 0 Depth 8 EndSubSection SubSection "Display" Viewport 0 0 Depth 15 EndSubSection SubSection "Display" Viewport 0 0 Depth 16 EndSubSection SubSection "Display" Viewport 0 0 Depth 24 Virtual 16384 16384 <-- ADD THIS. EndSubSection EndSection ,然后重新启动。

xorg.xonf.new

当您重新登录时,请在/etc/X11/xorg.conf sudo cp /home/user/xorg.conf.new /etc/X11/xorg.conf # Modify user sudo shutdown -r now gnome或您使用的任何显示器上设置监视器。

更新:

重新启动,注销或解锁后,我发现监视器设置没有保存。

可能的metacity问题可能与以下错误有关:

unity

此修补程序是从此帖子中多个答案的一部分中找到的:

gnome

我更喜欢从终端运行此脚本,因为我在登录后首先打开了一个脚本。

首次登录时配置错误-显示器放置不正确:

https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1292398

现在使用系统设置来设置显示器,以使用正确的设置创建一个新的https://askubuntu.com/questions/6137/saving-monitor-settings文件。

从我的仓库https://raw.githubusercontent.com/alextomko/monitors/master/monitors中复制Nicolas Bernaerts的固定脚本,并将其放在要从终端运行的路径中。

cd ~/.config
mv ~/.config/monitors.xml{,.bak}