您的位置:首页 > 其它

[亲测失败] Ubuntu 双显示器扩展方式 接显示器分辨率低的解决 [拼接整合]

2014-07-15 11:54 495 查看
Ubuntu 10.04双显示器扩展方式,笔记本外接显示器分辨率低增加没有的分辨率。

使用扩展方式,但是外接的显示器没有认出来(未知),分辨率超不过笔记本的1366x768,原本外接显示器是19寸宽屏1440x900,笔记本 1366x768,看了网上很多说要改xorg.conf文件,说起这个文件我就老火,以前的笔记本ati mobility x700显卡,在RedHat enterprise
5,Fedora 5,6,7,8,9.....上都无法图形安装,只能换成文本安装,安装好后,无法图形启动,要改xorg.conf中的驱动为vesa然后去下ati驱 动然后才正常,现在对xorg.conf没胃口了,不想去动它,哪天出毛病了,又要去改来改去,麻烦,Ubuntu老早就没这文件了,何必创建它,何必改
他,写个脚本,每次启动自动调整多好多省事

好了,下面开始

1,

$cvt 1440 900

结果如下

# 1440x900 59.89 Hz (CVT 1.30MA) hsync: 55.93 kHz; pclk: 106.50 MHz

Modeline "1440x900_60.00"  106.50  1440 1528 1672 1904  900 903 909 934 -hsync +vsync

Modeline后面的值在下边要用。然后执行

2,

$xrandr

得到显示器名称,我的为 VGA1,笔记本为LVDS1,大家以此类推,不一定都一样

3,

$sudo xrandr --newmode "1440x900_60.00"  106.50  1440 1528 1672 1904  900 903 909 934 -hsync +vsync

参数就是cvt结果中Modeline后面的那一堆,根据自己的参数调整。

4,

$xrandr

就可 以看到新加的那个设置了。

然后添加新的mode,执行

5,

$sudo xrandr --addmode VGA1 "1440x900_60.00"

然后设置一下就行了,大家看看xrandr的命令详解,www.linuxidc.com我这就只说我的笔记本在左 1366x768,外接显示器在右1440x900的命令,也就是右侧扩展屏幕

6,

$xrandr --output VGA1 --mode 1440x900_60.00 --right-of LVDS1

         打开外接显示器(最高分辨率),设置为右侧扩展屏幕

7,

补充:

xrandr 命令行可以很方便地切换双屏,常用方式如下,其他的可以自己探索:

xrandr --output VGA --same-as LVDS --auto

打开外接显示器(最高分辨率),与笔记本液晶屏幕显示同样内容(克隆)

xrandr --output VGA --same-as LVDS --mode 1024x768

打开外接显示器(分辨率为1024x768),与笔记本液晶屏幕显示同样内容(克隆)

xrandr --output VGA --right-of LVDS --auto

打开外接显示器(最高分辨率),设置为右侧扩展屏幕

xrandr --output VGA --off

关闭外接显示器

xrandr --output VGA --auto --output LVDS --off

打开外接显示器,同时关闭笔记本液晶屏幕(只用外接显示器工作)

xrandr --output VGA --off --output LVDS --auto

关闭外接显示器,同时打开笔记本液晶屏幕 (只用笔记本液晶屏)

(最后两种情况请小心操作,不要误把两个屏幕都关掉了。。。。)

8,写自启动脚本:

随便找个文件,加上执行权限,加入自启动程序列表中,这里不需要加sudo,也不需要sudo 密码,直接就是下面代码

#代码如下:

#!/bin/bash

xrandr --newmode "1440x900_60.00"  106.50  1440 1528 1672 1904  900 903 909 934 -hsync +vsync;

xrandr --addmode VGA1 "1440x900_60.00";

xrandr --output LVDS1 --mode 1366x768

xrandr --output VGA1 --mode 1440x900_60.00;

xrandr --output VGA1 --right-of LVDS1;

保存在主目录下命名为display,然后加入到系统--》首选项--》启动应用程序中,添加个启动程序,指向刚才那个文件。

唯一缺点,登录进去之后会有”无法应用原保存的显示器配置“的提示,不用理他啦,不过进去后,脚本马上就运行帮我们调好两个显示的正确参数了,呵呵,比修改xorg.conf简单多了,纯粹大炮打蚊子。

其他参考文章 :

ubuntu不能设置高分辨率问题的解决方法  http://www.jb51.net/os/Ubuntu/85861.html


Ubuntu11.04解决外接显示器分辨率低的问题   http://www.xuebuyuan.com/598788.html  非常好的文章吧! 我还没有试验

实践失败了!

调节外接显器分辨率为 1920x1080_60

第一步 :

hp@linux:~$ cvt 1920 1080

# 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

第二步 :

hp@linux:~$ xrandr

Screen 0: minimum 320 x 200, current 2646 x 1024, maximum 32767 x 32767

eDP1 connected 1366x768+0+256 (normal left inverted right x axis y axis) 309mm x 173mm

   1366x768       60.0*+   40.0  

   1360x768       59.8     60.0  

   1024x768       60.0  

   800x600        60.3     56.2  

   640x480        59.9  

DP1 connected primary 1280x1024+1366+0 (normal left inverted right x axis y axis) 509mm x 286mm

   1920x1080      60.0 +

   1600x900       60.0  

   1280x1024      75.0     60.0* 

   1152x864       75.0  

   1024x768       75.1     60.0  

   800x600        75.0     60.3  

   640x480        75.0     60.0  

   720x400        70.1  

HDMI1 disconnected (normal left inverted right x axis y axis)

DP2 disconnected (normal left inverted right x axis y axis)

HDMI2 disconnected (normal left inverted right x axis y axis)

VIRTUAL1 disconnected (normal left inverted right x axis y axis)

第三步 :

hp@linux:~$ sudo xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

第四步 :

hp@linux:~$ xrandr

Screen 0: minimum 320 x 200, current 2646 x 1024, maximum 32767 x 32767

eDP1 connected 1366x768+0+256 (normal left inverted right x axis y axis) 309mm x 173mm

   1366x768       60.0*+   40.0  

   1360x768       59.8     60.0  

   1024x768       60.0  

   800x600        60.3     56.2  

   640x480        59.9  

DP1 connected primary 1280x1024+1366+0 (normal left inverted right x axis y axis) 509mm x 286mm

   1920x1080      60.0 +

   1600x900       60.0  

   1280x1024      75.0     60.0* 

   1152x864       75.0  

   1024x768       75.1     60.0  

   800x600        75.0     60.3  

   640x480        75.0     60.0  

   720x400        70.1  

HDMI1 disconnected (normal left inverted right x axis y axis)

DP2 disconnected (normal left inverted right x axis y axis)

HDMI2 disconnected (normal left inverted right x axis y axis)

VIRTUAL1 disconnected (normal left inverted right x axis y axis)

  1920x1080_60.00 (0x11b)  173.0MHz

        h: width  1920 start 2048 end 2248 total 2576 skew    0 clock   67.2KHz

        v: height 1080 start 1083 end 1088 total 1120           clock   60.0Hz

第五步 :

hp@linux:~$ sudo xrandr --addmode DP1 "1920x1080_60.00"

最后一步不可以,失败了

xrandr --output DP1 --mode 1920x1080_60.00 --right-of LVDS1
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: