Ubuntu16.04在VirtualBox下安装分辨率不能设置,显示Unkown Display的解决办法
Ubuntu16.04在VirtualBox下安装分辨率不能设置,显示Unkown Display的解决办法
背景
由于工作需要,因此拷贝了一个别人在VirtualBox下暗转好的Ubuntu16.04系统,出现了显示不全的情况,在Ubuntu16.04系统设置里面也是Unkown Display,不能设置,因此本文解决此问题。
软件版本
PC机:win10 64位
VirtualBox:6.1.12
解决步骤
- Step1:
使用root权限在/etc目录下创建文件夹X11
,并在文件夹下创建文件xorg.conf
。 - Step2:
文件xorg.conf里面的内容(可根据自己实际情况修改分辨率值,数据来自中断下运行命令cvt 1920 1080
因为我想配置位1920*1080分辨率)如下:
Section “Monitor”
Identifier “Configured Monitor”
Modeline “1920x1080_60.00” 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
Option “PreferredMode” “1920x1080_60.00”
EndSection
Section “Screen”
Identifier “Default Screen”
Monitor “Configured Monitor”
Device “Configured Video Device”
EndSection
Section “Device”
Identifier “Configured Video Device”
EndSection
- Step3:
重启,查看是否生效。
写在最后
内容细节没有深究,只是修改了其中的分辨率数值,并且将此文件和文件夹放在了正确的路径(/etc/X11/xorg.conf)下,解决了当前问题,仅供参考。