• ubuntu18.04分辨率


    一、使用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
  • 相关阅读:
    压缩命令
    常用命令7-帮助命令1
    常用命令6--文件搜索命令4-grep
    常用命令5--文件搜索命令3-find
    常用命令4-文件搜索命令 2- which
    【转】Castle开发系列文章
    【摘录】C#多线程编程
    优化一
    Value Shadowing(不明確的方式存取变量)
    portability flaw : file separator (可移植性缺陷:文件分隔符)
  • 原文地址:https://www.cnblogs.com/litifeng/p/10355598.html
Copyright © 2020-2023  润新知