zoukankan      html  css  js  c++  java
  • Ubuntu 分辨率更改 xrandr Failed to get size of gamma for output default

    一,问题

    版本信息描述: Ubuntu 16.04 LTS

    安装了Ubuntu后分辨率和显示器不匹配xrandr 命令不能给出相关信息。因此尝试了不同的方法。

    二,xrandr --addnewmode

    这是别人在stackoverflow上回答的最多的一种方法:

    gtf 1920 1080 60

    1920x1080的分辨率,60Hz刷新频率

    于是可以得到一个Modeline:

    "1920x1080_60.00"  172.80  1920 2040 2248 2576  1080 1081 1084 1118  -HSync +Vsync

    把这一行复制下来运行:

    xrandr --newmode "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync

    再增加一个:

    xrandr --addmode VGA1 "1920x1080_60.00"

    此处VGA1可以是HDM等等其他(Have no idea about this)

    最后:

    xrandr --output VGA1 --mode "1920x1080_60.00"

    但自己的是运行xrandr都不能给出回应,都有错误。因此这种方法不能奏效。

    三,xorg.conf

    1 sudo vim /etc/xorg.conf

    复制以下内容:

    Section "Monitor"
            Identifier   "Monitor0"
            VendorName   "Monitor Vendor"
            ModelName    "Monitor Model"
            HorizSync   28.0 - 70.0
            VertRefresh     56.0 - 75.0
    EndSection
    
    
    Section "Device"
            Identifier  "VMware SVGA"
            Driver      "vesa"
    EndSection
    
    
    Section "Screen"
            Identifier "Screen0"
            Device     "Card0"
            Monitor    "Monitor0"
            SubSection "Display"
                    Viewport   0 0
                    Depth     24
                    Modes     "1920x1080_60.00"
            EndSubSection
    EndSection
    

      

    :wq!(保存

    重新启动就成功了。

    四,后记

    还看到一种方法,是更改grub启动文件。但对我的没有作用。

    本文已在版权印备案,如需转载请访问版权印69407556

  • 相关阅读:
    Yii Model中添加默认搜索条件
    Yii CModel中rules验证 获取错误信息
    Yii CModel中rules验证规则[转]
    json转jsonscheme在线转换工具地址
    git的基本使用
    python笔记(二)-打印、注释、输入、变量命名
    python笔记(一)-pycharm的简单使用
    python自动化-操作excel方法的封装
    python基础学习-excel的读写
    Robot Framework中处理时间控件的选择
  • 原文地址:https://www.cnblogs.com/heenhui2016/p/8243103.html
Copyright © 2011-2022 走看看