本文共 832 字,大约阅读时间需要 2 分钟。
Q: 如何通过命令行方式修改XWindows的分辨率和刷新频率?
A: 可以通过手工修改/etc/X11/XF86Config文件的方式来改变分辨率,对于手工 改变刷新频率,需要知道显示器支持的水平扫描频率和垂直扫描频率范围,这里 提到的刷新率一般指的是垂直扫描频率。然后修改下面Monitor Section的HorizSync设置和VertRefresh字段 Section "Monitor"Identifier "Monitor"ModelName "1280X1024@70HZ"Option "DPMS"VendorName "--> LCD"HorizSync 28-82VertRefresh 57-70EndSection然后修改Screen Section的DefaultDepth所对应的SubSection的ModesSection "Screen"DefaultDepth 16SubSection "Display"Depth 15Modes "640x480" EndSubSectionSubSection "Display"Depth 16#将Modes改为 1024x768 800x600 640x480 Modes "1024x768" "800x600" "640x480" EndSubSectionSubSection "Display"Depth 24Modes "640x480" EndSubSectionSubSection "Display"Depth 32Modes "640x480" EndSubSectionSubSection "Display"Depth 8Modes "640x480" EndSubSectionDevice "Device"Identifier "Screen"Monitor "Monitor"EndSection转载地址:http://pysqi.baihongyu.com/