
我正在建立一個 Linux Live-Distro。
我的 xorg.conf 看起來像這樣:
Section "Monitor"
Identifier "Monitor0"
Option "dpms" "off"
Option "dpms" "false"
DisplaySize 349 196
#does NOT work
PreferredMode "1360x768"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultColorDepth 24
SubSection "Display"
Depth 24
Modes "1360x768" "1280x720" "1024x768" "800x600"
EndSubSection
EndSection
所以如果我每次使用時都插入(測試)全高清電視1920x1080。改變時
Modes "1360x768" "1280x720" "1024x768" "800x600"
進入
Modes "1280x720" "1360x768" "1024x768" "800x600"
電視使用 1280x720。
是否可以依照「螢幕」部分的定義強制切換模式?
我的想法是 xorg-server 嘗試切換到“1360x768”,如果不起作用,則切換到“1280x720”,然後是 1024x768 等等(如 xorg.conf 中所定義)。
投注問候
答案1
現代 Xorg 根本不需要 xorg.conf。我會自動偵測所有連接的硬體(顯示裝置、螢幕、輸入裝置)並在運行時進行適當配置。甚至支援熱插拔。