Ubuntu分辨率更改xrandrFailedtogetsizeofgammaforout。。。⼀,问题
版本信息描述: Ubuntu 16.04 LTS
安装了Ubuntu后分辨率和显⽰器不匹配。xrandr 命令不能给出相关信息。因此尝试了不同的⽅法。
⼆,xrandr --addnewmode
这是别⼈在stackoverflow上回答的最多的⼀种⽅法:
gtf 1920108060
1920x1080的分辨率,60Hz刷新频率
于是可以得到⼀个Modeline:
"1920x1080_60.00"172.8019202040224825761080108110841118  -HSync +Vsync
把这⼀⾏复制下来运⾏:
xrandr --newmode "1920x1080_60.00"172.8019202040224825761080108110841118 -HSync +Vsync
再增加⼀个:
xrandr --addmode VGA1 "1920x1080_60.00"
此处VGA1可以是HDM等等其他(Have no idea about this)
最后:
xrandr --output VGA1 --mode "1920x1080_60.00"
但⾃⼰的是运⾏xrandr都不能给出回应,都有错误。因此这种⽅法不能奏效。
三,f
1 sudo vim /f
复制以下内容:
Section "Monitor"
Identifier  "Monitor0"
VendorName  "Monitor Vendor"
ModelName    "Monitor Model"
HorizSync  28.0 - 70.0
VertRefresh    56.0 - 75.0
EndSection
Section "Device"get out of
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

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。