码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu18.04分辨率

时间:2019-02-07 23:47:06      阅读:297      评论:0      收藏:0      [点我收藏+]

标签:--   orm   add   code   sync   设置   screen   noi   生成   

一、使用xrandr命令可以查询当前的显示状态。找出被连接的显示器名称:VGA-1

jack@noi:~$ xrandr
Screen 0: minimum 320 x 200, current 1680 x 1050, maximum 8192 x 8192
VGA-1 connected primary 1680x1050+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768      60.00  
   800x600       60.32    56.25  
   848x480       60.00  
   640x480       59.94  
   1680x1050_60.00  59.95* 
DVI-I-1 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)

二、如果xrandr查询结果中没有合适的分辨率,则可以通过newmode来添加,下面将给出VGA-1添加1680X1050的分辨率方法。 
1. 使用cvt生成一个modeline,命令如下:

jack@noi:~$ cvt 1680 1050 60
# 1680x1050 59.95 Hz (CVT 1.76MA) hsync: 65.29 kHz; pclk: 146.25 MHz
Modeline "1680x1050_60.00"  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync

2.使用newmode创建一个mode,参数就是上面的modeline后的内容,命令如下:

xrandr --newmode   "1680x1050_60.00" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync

3.将新模式输出到当前屏幕:

xrandr --addmode VGA-1 1680x1050_60.00

三、将以上配置保存到.bashrc文件内,便可永久设置,否则重启后就恢复初始设置了。

xrandr --newmode   "1680x1050_60.00" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
xrandr --addmode VGA-1 1680x1050_60.00

 

ubuntu18.04分辨率

标签:--   orm   add   code   sync   设置   screen   noi   生成   

原文地址:https://www.cnblogs.com/litifeng/p/10355598.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!