sca*_*che 17 xrandr xorg multiple-monitors antialiasing
我正在使用双显示器,其中一个旋转了 90 度。字体抗锯齿在旋转的显示器中看起来不正确(即,字符周围有彩虹边框)。
我相信这是因为 X 在两台显示器上使用相同的子像素渲染顺序。有没有办法为每个显示器配置不同的子像素渲染顺序?(即,监视器 1 = RGB,监视器 2 = vRGB)。
您必须将显示器配置为单独的 X 屏幕,而不是共享桌面。然后 Ubuntu 应该允许您调整各个 X 屏幕的子像素顺序。
否则,如果窗口跨越两个具有不同子像素顺序的显示设备,会发生什么情况?或者更棘手的是,克隆模式下的两个显示器具有不同的物理顺序(RGB 与 BGR)。
这是目前所有操作系统的已知限制,需要进行重大重新设计才能修复。动态调整是不可行的,因为进行渲染的库必须知道您所在的屏幕并进行动态调整。另外,假设您的一个屏幕上有一半窗口,另一个屏幕上有一半窗口 - 它不知道该选择哪个。
设置多个 X 屏幕:
sudo dpkg-reconfigure -phigh xserver-xorg
按照以下步骤设置主显示器。(我不知道如何从 CLI 执行此特定步骤)lspcixorg.confas xorg.conf.origpossible 并打开它:sudo vi /etc/X11/xorg.conf现在分成两个Device部分并列出BusID要共享的卡的名称,并列出驱动程序,如下所示:
Section "Device"
Identifier "nvidia0"
# Your preferred driver
Driver "nvidia"
# Edit the BusID with the location of your graphics card
BusID "PCI:2:0:0"
Screen 0
EndSection
Section "Device"
Identifier "nvidia1"
# Your preferred driver
Driver "nvidia"
# Edit the BusID with the location of your graphics card
BusId "PCI:2:0:0"
Screen 1
EndSection
Run Code Online (Sandbox Code Playgroud)现在创建两个Screen部分(当然使用您选择的参数,唯一需要匹配的是Device本节中的参数与Identifier上一节中的参数),如下所示:
Section "Screen"
Identifier "Screen0"
Device "nvidia0"
Monitor "Monitor0"
DefaultDepth 24
Subsection "Display"
Depth 24
Modes "1600x1200" "1024x768" "800x600" "640x480"
EndSubsection
EndSection
Section "Screen"
Identifier "Screen1"
Device "nvidia1"
Monitor "Monitor1"
DefaultDepth 24
Subsection "Display"
Depth 24
Modes "1600x1200" "1024x768" "800x600" "640x480"
EndSubsection
EndSection
Run Code Online (Sandbox Code Playgroud)现在Monitor为每个监视器创建一个部分,如下所示:
Section "Monitor"
Identifier "monitor name here"
EndSection
Section "Monitor"
Identifier "monitor name here"
# Rotate as you want (your question says one is rotated)
Rotate "left"
EndSection
Run Code Online (Sandbox Code Playgroud)最后,更新该ServerLayout部分以使用和定位这两个Screen部分:
Section "ServerLayout"
...
Screen 0 "Screen0"
Screen 1 "Screen1" leftOf "Screen0"
...
EndSection
Run Code Online (Sandbox Code Playgroud)重新启动 X 并祈祷吧!如果它确实有效,那么可以根据需要继续进行微调。
现在对于子像素渲染顺序,font.conf请在/etc/X11/font.conf`
中进行此更改~/font.conf。背景
| 归档时间: |
|
| 查看次数: |
3379 次 |
| 最近记录: |