由于之前重复的安装卸载Unity桌面,今天遇到了在设置虚拟机分辨率的时候,遇到了Unknown Display问题
参考网上内容 使用 xrandr调节分辨率
xrandr只能在虚拟机本地终端执行,不能使用ssh远程操作。
1.输入xrandr查看可设置的分辨率取值 *为当前屏幕分辨率取值
$ xrandr Screen : minimum x , current x , maximum x Virtual1 connected primary 136+ (normal left inverted right x axis y axis) 0mm x 0mm 800x1440 60.00 1856x1392 60.00 1792x1344 0x800 59.81 1152x864 0x768 59.87 1024x768 0x480 59.94 Virtual2 disconnected (normal left inverted right x axis y axis) Virtual3 disconnected (normal left inverted right x axis y axis) Virtual4 disconnected (normal left inverted right x axis y axis) Virtual5 disconnected (normal left inverted right x axis y axis) Virtual6 disconnected (normal left inverted right x axis y axis) Virtual7 disconnected (normal left inverted right x axis y axis) Virtual8 disconnected (normal left inverted right x axis y axis)
2.临时设置 分辨率
xrandr -s 1280x768_59.
3.永久设置分辨率 参数output的值 Virtual1 根据第一步输出信息得到
xrandr --output Virtual1 --mode 1360x768
负责任的讲一下,上面的永久设置在重启之后会失效!