Ubuntu nVidia显卡双显示器手动调节分辨率
2016-03-08 13:29
411 查看
在上一篇文章中,我们成功安装了英伟达的显卡驱动。但当同一显卡外接两台不同分辨率的显示器的时候,第二台显示器的分辨率只有640x480与320x240两个选项。本文将解决这个问题。
首先,安装好英伟达显卡驱动后,在终端敲入
可以打开英伟达控制中心。如下图
如果在这里可以更改分辨率,那么很幸运,文章到此结束。
如果不能更改,那么需要用到另一条命令也就是xrandr。
在终端中输入
可以查看当前外接显示器位于那个插口,数据大致如下:
可以看到外接显示器位于DVI-I-0口,现在我们输入想添加的分辨率
我们得到了
不懂是什么意思,不过不重要,我们复制Modeline后面的一堆东西。
然后在终端中新建这个mode。
按照linux的设计理念(道听途说),没有返回值就是成功了。
第一步中看到了外接显示器位于DVI-I-0口,所以输入命令
此时此刻进入系统设置里就可以调节第二个显示器的分辨率了。
如果输出为一段错误信息,类似于
就要修改一下配置文件了,这里用gedit,vim同理。
sudo gedit /etc/X11/xorg.conf
找到
把
改的范围大一点,我这个是改过的。
重启,然后应该就可以了,有问题欢迎留言共同探讨。
首先,安装好英伟达显卡驱动后,在终端敲入
sudo nvidia-settings
可以打开英伟达控制中心。如下图
如果在这里可以更改分辨率,那么很幸运,文章到此结束。
如果不能更改,那么需要用到另一条命令也就是xrandr。
在终端中输入
xrandr
可以查看当前外接显示器位于那个插口,数据大致如下:
Screen 0: minimum 8 x 8, current 3360 x 1080, maximum 16384 x 16384 DVI-I-0 connected 1440x900+1920+0 (normal left inverted right x axis y axis) 0mm x 0mm 640x480 59.94 512x384 70.07 60.00 400x300 72.19 320x240 60.05 VGA-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 476mm x 268mm 1920x1080 60.00*+ 1680x1050 59.95 640x480 75.00 72.81 59.94 DVI-I-1 disconnected (normal left inverted right x axis y axis) HDMI-0 disconnected (normal left inverted right x axis y axis)
可以看到外接显示器位于DVI-I-0口,现在我们输入想添加的分辨率
cvt 1440 900
cvt命令的意思是calculate VESA cvt mode lines。大体就是输入分辨率,然后按照VESA(Video Eletronics Standard Association,视频电子标准协会)的标准计算该输出的modeline(扫描频率)。
我们得到了
# 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后面的一堆东西。
"1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
然后在终端中新建这个mode。
xrandr --newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
按照linux的设计理念(道听途说),没有返回值就是成功了。
第一步中看到了外接显示器位于DVI-I-0口,所以输入命令
xrandr --addmode DVI-I-0 "1440X900_60.00"
此时此刻进入系统设置里就可以调节第二个显示器的分辨率了。
如果输出为一段错误信息,类似于
X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 153 (RANDR). Minor opcode of failed request: 18 (RRAddOutputMode). Serial number of failed request: 29. Current serial number in output stream: 30
就要修改一下配置文件了,这里用gedit,vim同理。
sudo gedit /etc/X11/xorg.conf
找到
Section "Monitor" Identifier "Monitor0" VendorName "Unknown" ModelName "CRT-0" HorizSync 28.0 - 82.0 VertRefresh 43.0 - 72.0 Option "DPMS" EndSection
把
HorizSync 28.0 - 82.0 VertRefresh 43.0 - 72.0
改的范围大一点,我这个是改过的。
重启,然后应该就可以了,有问题欢迎留言共同探讨。
相关文章推荐
- Ubuntu 默认壁纸历代记
- Ubuntu Remix Cinnamon 20.04 评测:Ubuntu 与 Cinnamon 的完美融合
- 关于Ubuntu 11.10启动提示waiting for the network configuration的问题
- 在 Ubuntu 桌面中使用文件和文件夹
- 如何知道你的 Linux 用的哪种显卡?
- ubuntu下chrome无法同步问题解决
- Ubuntu Linux使用体验
- 使用 GNOME 优化工具自定义 Linux 桌面的 10 种方法
- 以Ubuntu 9.04为例 将工作环境迁移到 Linux
- VirtualBox虚拟机XP与宿主机Ubuntu互访共享文件夹
- 从USB安装Ubuntu Server 10.04.3 图文详解
- Ubuntu 15.04 正式版发布下载
- Linux-Ubuntu 10.04安装Cadence-ic610 方法总结图解
- Ubuntu 12.04和Windows 7双系统安装图解
- 开机出现:grub rescue的修复方法
- Ubuntu连接Android真机调试
- 你应该选择 Ubuntu 还是 Fedora?
- 100 个最佳 Ubuntu 应用(中)
- 看看我的Ubuntu Linux截图
- Ubuntu 12.04 LTS服务器版安装过程及使用图解