• UBUNTU添加新的分辨率


    首先,直接运行xrandr查看下分辨率的情况:

    $ xrandr

     Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 4096 x 4096
     LVDS1 connected (normal left inverted right x axis y axis)
        1024x600       60.0 +
        800x600        60.3     56.2
        640x480        59.9
     VGA1 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
        1024x768       60.0 *
        800x600        60.3     56.2
        848x480        60.0
        640x480        59.9
     标星号的那行就是我正在使用的分辨率。
     下面用cvt命令生成一个modeline,为后续添加分辨率作准备:

     $ 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
     再运行xrandr --newmode来创建一个分辨率模式,使用“Modeline”后的内容(--rmmode删除这个模式):

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

      接着用xrandr --addmode把这个模式添加到显示器上(--delmode把这个模式从该显示器上移除):

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

     最后是应用这个模式:

    $ xrandr --output VGA1 --mode "1440x900_60.00"

     到此,我的屏幕看上去就清爽多了。
     用xrandr查看一下:
     $ xrandr
     Screen 0: minimum 320 x 200, current 1440 x 900, maximum 4096 x 4096
     LVDS1 connected (normal left inverted right x axis y axis)
        1024x600       60.0 +
        800x600        60.3     56.2
        640x480        59.9
     VGA1 connected 1440x900+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
        1024x768       60.0
        800x600        60.3     56.2
        848x480        60.0
        640x480        59.9
        1440x900_60.00   59.9*
     设置完后我的屏幕向左偏出了约5个像素,直接在显示器(硬件)上调就可以了。
     参考:https://wiki.ubuntu.com/X/Config/Resolution

    但是重启系统以后发现还是1024*768的分辨率,而且也还是没有1440*900的选项

    最后是应用这个模式,在终端输入:
    $ xrandr --output VGA1 --mode "1440x900_60.00"
    这时屏幕分辨率应该已经变成1440*900了,但是重启后还是会变回1024*768,所以需要将此模式保存并作为默认分辨率。根据luojie-dune提供的方法:
    在终端输入:$sudo gedit /etc/X11/xorg.conf
    然后在里面粘贴入:

    Section "Monitor"
    Identifier "Configured Monitor"
    Modeline "1024x768_60.00" 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsync
    Modeline "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
    Option "PreferredMode" "1440x900_60.00"
    EndSection
    
    Section "Screen"
    Identifier "Default Screen"
    Monitor "Configured Monitor"
    Device "Configured Video Device"
    EndSection
    
    Section "Device"
    Identifier "Configured Video Device"
    EndSection

    保存。重启后终于变成1440*900了。

    http://forum.ubuntu.org.cn/viewtopic.php?t=401399

  • 相关阅读:
    怎样监听HTTP请求的发出与完成
    在Ubuntu下安装source Insight
    Android 5.1 预制输入法
    RK3288编译 Android 5.1 固件
    Android编程之Listener侦听的N种写法及实现原理
    android thread Runnable
    Android Service完全解析(下)
    Android Service完全解析(上)
    android 串口 android-serialport-api
    Android Studio在Ubuntu下离线安装Gradle
  • 原文地址:https://www.cnblogs.com/ynxf/p/5952398.html
Copyright © 2020-2023  润新知