Vmware Ubuntu Resolution

Oct 30, 2021

Problem

When I start my virtual machine, the screen resolution only allows me to use a small portion of the screen. The rest of the screen is either off-limits or acts as a black background. Furthermore, going into fullscreen mode does not cause it to change anything about this issue. Switching from host Vista to Ubuntu also did nothing, since both work in the same manner.

This what xrandr shows:
Screen 0: minimum 1 x 1, current 1920 x 1080, maximum 8192 x 8192
Virtual1 connected primary 1920x1080+0+0 (normal left inverted right x axis   y axis) 0mm x 0mm
   1920x1080      60.0*+
   2560x1600      60.0  
   1920x1440      60.0  
   1856x1392      60.0  
   1792x1344      60.0  
   1920x1200      59.9  
   1600x1200      60.0  
   1680x1050      60.0  
   1400x1050      60.0  
   1280x1024      60.0  
   1440x900       59.9  
   1280x960       60.0  
   1360x768       60.0  
   1280x800       59.8  
   1152x864       75.0  
   1280x768       59.9  
   1024x768       60.0  
   800x600        60.3  
   640x480        59.9 

* *Looks like the problem was solved by proper configuration. But what about screen resolution? Let's find out. I logout from Kubuntu, restart Kubuntu, and login to the same account. Under Display Settings, Screen Resolution is set to 1920x1080 - just as it should be.

Solution

I had a problem where the display on the virtual machine would always get set to safemode, even if I updated software like the vmplayer. As a workaround, simply edit settings of your virtual machine (in vmware). Go to "preferences" and then "settings". Once you're there, find the "display" settings. Here you can select wether you want your graphics shared with your host system or not.

$ xrandr -q

tanay@ubuntu:~$ xrandr -q Screen 0: minimum 1 x 1, current 1904 x 1070, maximum 8192 x 8192 Virtual1 connected primary 1904x1070+0+0 (normal left inverted right x axis y axis) 0mm x 0mm    800x600       
60.0 +   60.3      2560x1600      60.0      1920x1440      60.0      1856x1392      60.0      1792x1344      60.0      1920x1200      59.9  1600x1200      60.0      1680x1050      60.0      1400x1050      60.0  1280x1024      60.0      1440x900       59.9      1280x960       60.0  1360x768       60.0      1280x800       59.8      1152x864       75.0  1280x768       59.9      1024x768       60.0      640x480        59.9  1904x1070_75.00   74.9*  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)

If you're wondering which output is connected, take a look and see that Virtual 1 is connected. Here you can change your resolution to figure out the best setting for your screen.

Eg:cvt <horizontal length> <vertical length> <refresh rate>

$ cvt 1900 1070 75

* The output is:

* The output

# 1904x1070 74.87 Hz (CVT) hsync: 83.85 kHz; pclk: 216.00 MHz Modeline "1904x1070_75.00"  216.00  1904 2040 2240 2576  1070 1073    1083 1120
-hsync +vsync

Compare this:

newmode ( "%%!PS-Adobe-3.0" ) 25 25 n 1 0 0 1776 883 l 1 ,

$ xrandr --newmode "1904x1070_75.00"  216.00  1904 2040 2240 2576  1070 1073 1083 1120 -hsync +vsync

I'm not sure how to find out about the screen resolution. Which command do I need to use?

$ xrandr --addmode Virtual1 1904x1070_75.00

Clicking on "OK" with the configuration window for this monitor will set it in ub

$ xrandr --output Virtual1 --mode 1904x1070_75.00

* There are two ways to go about this.

If you are not comfortable modifying your .xprofile file, I would recommend editing the ubuntu display gui setting and finding the resolution of your display- for me, this is 1904 x 1070 (16:9).

Make sure this screen resolution is marked as 'Default Screen Resolution'.

Once you have chosen the desired mode, you can permanently make it your default by using "xrandr --newmode" in your .xprofile file.

This command will work only if the linux distro supports it.

$ gedit ~/.xprofile
I cannot establish an internet connection on my Ubuntu/VMWare...
I am running Ubuntu on a virtual machine. On...
I need to shutdown my Guest OS for the...
I'm sharing a folder on my virtual machine and...
I have an Ubuntu virtual machine hosted on my...
I've been working on the iOS app in VMWare for...