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