我无法弄清楚如何从 xorg.conf 文件中引用实际的图形设备。
Ubuntu 22.04 MATE
使用 zrandr 我得到两个输出:None-1:HDMI-1-1:
(顺便说一下,None-1 没有物理连接到任何东西(无线内部 MIPI 显示器),并且由于某种原因它是默认设置,我无法让 Xorg 显示到 HDMI 端口)
那么我在哪个部分引用 HDMI-1-1 并将其设为默认值?
我一直在读这个:https://www.oreilly.com/library/view/x-power-tools/9780596101954/ch04.html
但我看不出任何部分与真实设备之间的联系!
跟进:
我尝试向 xorg.conf 添加一些监视部分,但 xrandr 没有任何变化。
Section "Device"
Identifier "DRM Graphics Acclerated"
## Use modesetting and glamor
Driver "modesetting"
Option "AccelMethod" "glamor" ### "glamor" to enable 3D acceleration, "none" to disable.
Option "DRI" "2"
Option "Dri2Vsync" "true"
Option "TripleBuffer" "True"
## End glamor configuration
EndSection
Section "Screen"
Identifier "Default Screen"
SubSection "Display"
Depth 24
EndSubSection
Monitor "Default Monitor"
EndSection
Section "Monitor"
Identifier "Default Monitor"
Option "Monitor-HDMI-1-1" "HDMI monitor"
Option "Primary"
Option "Enable" "1"
EndSection
Section "Monitor"
Identifier "Unused Monitor"
Option "Monitor-None-1" "None monitor"
Option "Ignore" "1"
EndSection
xrandr 输出:
Screen 0: minimum 320 x 200, current 720 x 576, maximum 4096 x 4096
None-1 connected primary 720x576+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
720x576 60.00*+
HDMI-1-1 connected (normal left inverted right x axis y axis)
2560x1440 59.95 +
1920x1080 60.00 60.00 50.00 59.94 30.00 25.00 24.00 29.97 23.98
1920x1080i 60.00 50.00 59.94
1680x1050 59.88
1400x1050 59.95
1280x1024 75.02 60.02
1440x900 59.90
1280x960 60.00
1152x864 75.00
1280x720 60.00 50.00 59.94
1024x768 75.03 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
720x576 50.00
720x480 59.94
640x480 75.00 72.81 66.67