• [转]Ubuntu 18.04设置1920*1080


    Ubuntu升级后,发现分辨率没有1920*1080,在网上寻找了一个文章解决办法如下。

    方案一(临时性,重启会失效):

    1、打开终端。输入:cvt 1920 1080

    出现有modeline 的提示。

    2、使用 xrandr 创建新的 mode,--newmode 后面跟刚刚 cvt 产生的 modeline 后面的信息,如果去掉“_60.00”就可以在显示器首选项中看到。

    $ sudo xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

    3、添加新的 mode,--addmode 后面第一个参数是 命令xrandr 显示的列表中,目标输出设备的名称,

    $sudo xrandr --addmode VGA-1 "1920x1080_60.00"

    4、 将分辨率应用到指定的输出设备

    $ sudo xrandr --output  VGA-1 --mode "1920x1080_60.00"

    方案二(永久性,重启也不失效)

    添加 /etc/X11/xorg.conf 文件,将此模式保存为默认分辨率。

    1、$ sudo vim /etc/X11/xorg.conf

    (如果没有安装vim,可以使用“sudo gedit /etc/X11/xorg.conf”)

    粘贴以下内容:

    Section "Monitor"

    Identifier "Configured Monitor"

    Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

    Option "PreferredMode" "1920x1080_60.00"

    EndSection

    Section "Screen"

    Identifier "Default Screen"

    Monitor "Configured Monitor"

    Device "Configured Video Device"

    EndSection

    Section "Device"

    Identifier "Configured Video Device"

    EndSection

    2、保存。重启后就变成1920x1080了。

    ps:我的系统是18.04的,默认没有xorg.conf文件。但是没关系,将上述内容保存为xorg.conf文件就行了。

     转载链接:https://www.jiansuan.net/article_show_357.html


    ---------------------
    作者:国-哥
    来源:CNBLOGS
    原文:https://www.cnblogs.com/dlvguo/p/10486640.html
    版权声明:本文为作者原创文章,转载请附上博文链接!

  • 相关阅读:
    《Head First》 MVC运用的设计模式
    unity工具 Animator的使用
    服务器搭建 如果搭建KBE开源服务器
    unity 实战图片挖洞Mask(转载)
    unity博客 推荐(不断补充)
    unity实战 UGUI英雄联盟英雄头顶分段式血条
    unity组成 ToLua
    unity实战 UGUI Text 间距和ContentSizeFitter组件的适配
    unity工具 推荐(不断补充)
    各种单例模式的对比分析
  • 原文地址:https://www.cnblogs.com/vilogy/p/12625979.html
Copyright © 2020-2023  润新知