Q: 如何通過命令行方式修改XWindows的分辨率和刷新頻率?
A: 可以通過手工修改/etc/X11/XF86Config文件的方式來改變分辨率,對于手工
改變刷新頻率,需要知道顯示器支持的水平掃描頻率和垂直掃描頻率范圍,這里
提到的刷新率一般指的是垂直掃描頻率。然后修改下面Monitor Section的HorizSync設置和VertRefresh字段
Section "Monitor"
Identifier "Monitor[0]"
ModelName "1280X1024@70HZ"
Option "DPMS"
VendorName "--> LCD"
HorizSync 28-82
VertRefresh 57-70
EndSection
然后修改Screen Section的DefaultDepth所對應的SubSection的Modes
Section "Screen"
DefaultDepth 16
SubSection "Display"
Depth 15
Modes "640x480"
EndSubSection
SubSection "Display"
Depth 16
#將Modes改為 1024x768 800x600 640x480
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "640x480"
EndSubSection
SubSection "Display"
Depth 32
Modes "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "640x480"
EndSubSection
Device "Device[0]"
Identifier "Screen[0]"
Monitor "Monitor[0]"
EndSection