您的位置:首页 > 其它

Ubuntu 11.04更改分辨率

2011-11-05 20:34 246 查看
本文转载:http://www.linuxidc.com/Linux/2011-08/41465.htm

第一步:在终端中输入命令: cvt 1024 768

(“1024 768“是根据分辨率来写的,其它的分辨率有:600*480 、800*600 、1024*768、1400x1050、1600x1200、1280x720、1920x1080等).如果你想设置显示器的分辨率为 1600*1200的话,则输入命令:cvt 1600 1200

第二步:记下终端中输出的参数,如下面则是我在终端中输入cvt 1024 768后显示的参数。

(注:不同显示器的参数有所不同,所以必须运行第一个命令,而不能照搬别人的显示器的参数)

# 1024x768 59.92 Hz (CVT 0.79M3) hsync: 47.82 kHz; pclk: 63.50 MHz

Modeline "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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: