ubuntu 分辨率调整

Ubuntu 分辨率更改 xrandr Failed to get size of gamma for output default

一,问题

版本信息描述: Ubuntu 18.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"

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

 

三,xorg.conf

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!(保存

重新启动就成功了。

posted @ 2019-10-16 21:43  correct  阅读(358)  评论(0)    收藏  举报