All Products
Search
Document Center

Elastic Compute Service:What do I do if I cannot change the screen resolution of a Windows instance that runs a UEFI image after I connect to the instance by using VNC?

Last Updated:Jun 14, 2024

This topic describes the cause of and solution to the following issue: After you use Virtual Network Computing (VNC) to connect to a Windows instance that runs a Unified Extensible Firmware Interface (UEFI) image, you cannot change the screen resolution of the instance.

Problem description

After you connect to a Windows instance that runs a UEFI image by using VNC, you cannot change the screen resolution of the instance.

Cause

The graphical output mode of specific operating systems that boot on UEFI is different from the graphical output mode of operating systems that boot on Legacy BIOS. Remote desktop protocols, such as VNC, in the operating systems that boot on UEFI may be unable to control the display settings. As a result, you cannot change the screen resolution.

Solution

Note

Perform the following operations to resolve the issue. In this example, an instance that runs Windows Server 2022 is used. The operations may vary based on the operating system of the instance.

  1. (Optional) To prevent issues caused by accidental operations, we recommend that you create snapshots for the disks attached to the instance to back up data in advance.

  2. Connect to the instance by using VNC.

    For more information, see Connect to an instance by using VNC

  3. Restart the instance in recovery mode.

    1. Open the Windows Settings window and click Update & Security.

    2. In the left-side navigation pane, click Recovery.

    3. On the Recovery page, click Restart Now.

      Important

      The restart operation may interrupt the services that are running on the instance. Before you restart the instance, we recommend that you back up instance data during off-peak hours.

  4. Open the UEFI Firmware Settings window.

    1. Click Troubleshoot.

      image

    2. Click UEFI Firmware Settings.

      image

    3. Click Restart to restart the instance and load the UEFI Firmware Settings menu.

      image

  5. Press the keyboard arrow keys to select options and change the screen resolution.

    1. Select Device Manager and press the Enter key.

      image

    2. Select OVMF Platform Configuration and press the Enter key.

      image

    3. By default, Change Preferred is selected. Press the Enter key.

      image

    4. Select a resolution, such as 1280×760, from the drop-down list and press the Enter key.

      image

    5. Press the F10 key to save the change, enter Y to confirm the change, and then press the Esc key to exit.

      image

  6. Restart the instance from within the instance.

    Important

    If you restart the instance in the ECS console, the screen resolution of the instance is reset when you connect to the instance by using VNC. You can perform the operations that are described in this topic to change the screen resolution of the instance again.

  7. Connect to the instance and check whether the screen resolution is changed.

    Right-click a blank area on the desktop and select Display settings to view the screen resolution.

References

For information about the boot modes of images, see Best practices for ECS instance boot modes.