Ubuntu下添加分辨率

Ubuntu下添加分辨率

 
查看系统当前支持的显示模式和分辨率
xrandr -q
输出如下
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 32767 x 32767
LVDS1 connected (normal left inverted right x axis y axis)
   1366x768       60.0 +
   1360x768       59.8     60.0 
   1024x768       60.0 
   800x600        60.3     56.2 
   640x480        59.9 
VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768       60.0*
   800x600        60.3     56.2 
   848x480        60.0 
   640x480        59.9 
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
HDMI3 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
DP3 disconnected (normal left inverted right x axis y axis)

为VGA1显示器添加1920x1080分辨率的显示模式,执行:
cvt 1920 1080 60
输出:
# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
根据以上输出,执行,注意newmode后的命令来自以上Modeline后的输出:
xrandr --newmode "1920x1080_60.00" 173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

再执行:
xrandr --addmode VGA1 "1920x1080_60.00"
xrandr --output VGA1 --mode 1920x1080_60.00



转自http://blog.sina.com.cn/s/blog_7bf53d470101bc55.html






最后是应用这个模式,在终端输入:
$ xrandr --output VGA1 --mode "1440x900_60.00"
这时屏幕分辨率应该已经变成1440*900了,但是重启后还是会变回1024*768,所以需要将此模式保存并作为默认分辨率。根据luojie-dune提供的方法:
在终端输入:$sudo gedit /etc/X11/xorg.conf
然后在里面粘贴入:
Section "Monitor"
Identifier "Configured Monitor"
Modeline "1024x768_60.00" 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsync
Modeline "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
Option "PreferredMode" "1440x900_60.00"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection

Section "Device"
Identifier "Configured Video Device"
EndSection
保存。重启后终于变成1440*900了。
ps:我的系统是12.04的,默认没有xorg.conf文件。将上述内容保存为xorg.conf文件就行了。另外,我在做的过程中没有使用luojie-dune同学的重启gdm和建立sh启动文件这两项也能成功。


转自http://forum.ubuntu.org.cn/viewtopic.php?t=401399
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值