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

posted @ 2018-01-08 15:53  何大卫  阅读(36133)  评论(1编辑  收藏  举报