Knowledge Base

The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides
 
Search the VMware Knowledge Base (KB)   View by Article ID
 

Changing screen resolutions in a Linux guest operating system

Details

How do I switch the resolution of the X server in my Linux guest operating system?

Solution

The X server provided by the VMware application does not allow you to use Ctrl-Alt with - or + to change the resolution of your guest operating system. In order to switch resolutions, you need to manually change the resolution in your guest operating system's configuration file for the X server. Complete the following steps.

  1. Find out which configuration file your guest operating system is using.

    Look at /var/log/XFree.0.log; the configuration file is typically one of the following:
    /etc/X11/XF86Config
    /etc/X11/XF86Config-4 
    /etc/X11/xorg.conf
    For example:
    admin@localhost$ more /var/log/XFree86.0.log
    ...
    (==) Log file: "var/log/Xfree86.0.log", Time: Mon Apr 18
    10:36:19 2005
    (==) Using config file: "/etc/X11/XF86Config"
  2. Edit your X configuration file.  Ensure you create a backup of the file before making edits.

    In the "Screen" section, change the depth and modes of the "Display" subsection as follows:

    1. Depth - The color depth your host operating system uses.

    2. Modes - If multiple screen resolutions appear here, delete the screen resolutions that you do not want to use. The highest screen resolution remaining on the Modes line becomes the virtual machine's screen resolution for the host's color depth.
    Section "Screen"
            ...
        DefaultDepth    24
        SubSection "Display"
            Depth   24
            Modes   "1200x1600"
        EndSubsection
    EndSection
  3. Restart X after you have saved your changes to the configuration file.

Note: Only resolutions that the host operating system supports can be supported in the guest. This can lead to problems if you change the running X server on a Linux host machine, after you install VMware Tools in the guest. If you do change your host's X server and experience problems with your virtual machine's display resolution, try reinstalling VMware Tools.

Keywords

748; urlz; XF86Config; XF86Config-4; xorg.conf; display; depth; modes; screen

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback


Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (4000 or fewer characters)
Actions
KB: