pydata

Keep Looking, Don't Settle

Change Ubuntu Resolution in VMWARE

After reinstalling vmware 12 on my desktop, there is no choice of 1920x1080 resolotion available any more in Ubuntu in the vmware.

Find these two resolutions, the first one works for me. The second one does not.

  1. from this link

Create a text file with .sh extension. For example setscreen.sh

Insert the following text and save.

xrandr --newmode "1920x1080"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
xrandr --addmode Virtual1 1920x1080
xrandr --output Virtual1 --mode 1920x1080

Run this .sh file as an executable. Screen should go to 1920x1080.

Use "startup applications" to launch the file at startup.

Note: I am running Mint 17 but this should work fine in Ubuntu.

  1. from this link

相信大家都遇到过这样的情况,刚装完虚拟系统,虚拟机窗口全屏后,内容却没有全屏,在虚拟系统中想该分辨率,却发现系统根本没有物理显示器适合的这个最佳分辨率。这很蛋疼! 分享下我的经验,以Virtual Box+ Ubuntu系统为例。 1.安装VBOX的Utuntu共功能增强包:设备->增强功能包 2.我的显示器的最佳分辨率是1920*1080,打开Ubutn的终端,执行如下命令: ------------------------------华丽的分界线----------------------- $ 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 这是列出这个分辨率的模式相关信息,接着敲入:

$xrandr 得到显示器名称,这里显示名称是VBOX0 然后执行: sudo xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync(这个参数就是拷贝第一个命令的结果)

最后执行: sudo xrandr --addmode VBOX0 "1920x1080_60.00" OK,到Ubuntu的显示设置里面,可以看到有1920*1080的分辨率可以调节了,调节之!


上面这种方法本人试过,当时确实将19201080分辨率添加显示设置内,但重启ubuntu 12.04系统后再次进入桌面时报错,随之屏幕恢复至800600桌面,让人郁闷,不知道还有没有什么更好的办法,本人前面安装过11.10版,之后更新升级到12.04时没有出现分辨率的问题,都可以正常识别显示器为“笔记本显示器”,但直接安装最新的12.04版后确无法实现分辨率的调整。