仅为防止原文丢失,如果侵犯到原作者的权益,请联系本人删除。
【免责声明:本人所转载内容,均来自于网络,并不代表本人观点、立场,本人也不为其真实性负责】
经测试,Vmware+Centos7环境适用
原文地址:https://www.cnblogs.com/rnckty/p/5810714.html,以下为原文内容
解决方法:
[email protected]:~$ cvt 1920 1080 # 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync [email protected]:~$ xrandr --newmode "1920X1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync [email protected]:~$ xrandr --addmode Virtual1 "1920X1080_60.00" [email protected]:~$ xrandr --output Virtual1 --mode "1920X1080_60.00"
亲测真实有效。
If the last command doesn’t work for you,you can go back to ubuntu display gui setting and can chose the display you have added just now.For me the option was 1904 x 1070 (16:9)
However if you are fine with this experiment and have found the desired screen resolution and to make that permanent,write the all the last 3 commands starting from xrandr –newmode command in your .xprofile file using following command and then save,exit and restart your ubuntu vm and you will get your desired resolution permanently.
(如果上一个命令不为你工作,你可以回到Ubuntu显示界面设置,可以选择你刚才添加的显示。我选择1904×1070(16:9)
但是如果你是好的这个实验和发现所需的屏幕分辨率,使永久的,写的所有的最后3个命令从xrandr –在你的指挥方式。xprofile文件使用下面的命令,然后保存,退出并重新启动你的Ubuntu的虚拟机,你会得到你想要的分辨率永久。)
$ gedit ~/.xprofile