
我無法弄清楚如何從 xorg.conf 檔案引用實際圖形設備。
Ubuntu 22.04 伴侶
使用 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