zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    tomcat2章1
    tomcat1章1
    线程安全的CopyOnWriteArrayList
    Java Security: Illegal key size or default parameters?
    struct和typedef struct
    C可变参数函数 实现
    C和C++混合编程(__cplusplus 与 external "c" 的使用)
    WebRTC之带宽控制部分学习(1) ------基本demo的介绍
    WebRTC代码走读(八):代码目录结构
    webrtc中的带宽自适应算法
  • 原文地址:https://www.cnblogs.com/litifeng/p/10355598.html
Copyright © 2011-2022 走看看