此方法针对显示首选项的最大分辨率只有800*600的情况。
第一步:在终端中输入命令:cvt 1024 768
(“1024 768“是根据分辨率来写的,其它的分辨率有:600*480 、800*600 、1024*768、1400x1050、1600x1200、1280x720、1920x1080等)
如果你想设置显示器的分辨率为1600*1200的话,则输入命令:cvt 1600 1200
第二步:记下终端中输出的参数。(注:不同显示器的参数有所不同,所以必须运行第一个命令,而不能照搬别人的显示器的参数)
# 1024x768 59.92 Hz (CVT 0.79M3) hsync: 47.82 kHz; pclk: 63.50 MHzModeline "1024x768_60.00" 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsync
第三步:在终端中输入命令:sudo gedit /etc/X11/xorg.conf
此文件如果是空白的,则在文件中加入如下内容。注意要将Modeline和Modes中的参数替换。保存文件后重启系统就可以成功的更改分辨率。
Section "InputDevice"Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
EndSection
Section "Device"
Identifier "Configured Video Device"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 30.0 - 83.0
VertRefresh 50.0 - 75.0
Option "DPMS"
Modeline "1024x768_60.00" 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsync
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Monitor0"
SubSection "Display"
Virtual 1024 768
Modes "1024x768"
EndSubSection
EndSection