AWS EC2 g4dn.xlarge - Parsec 1536x1024 - CRU not working?

0

I created an AWS EC2 instance using the g4dn.xlarge instance (Windows 2022 Server) and aimed to use Parsec for throttling the download stream to 3Mbps. However, I couldn't set the EC2 instance's display resolution to 1536x1024 to match my laptop's display resolution.

Even after installing the correct NVIDIA GPU drivers (And confirming that a PNP monitor in device manager appears related to the Tesla T4 GPU driver) and also trying to use the CRU (custom resolution utility) I cannot add a display resolution of 1536x1024 to the instance.

I did however, successfully do this when using NVIDIA Tesla T4 instances via Azure VMs ... The only difference I know is that the NVIDIA GPU Grid Drivers used by Microsoft are not the same as those drivers that one must download via AWS documentation.

How can I force a display resolution to appear from the dropdown on Windows display settings on the AWS EC2 g4dn.xlarge instance same as I can do when using hosted server on Azure VM ? with same Nvidia Tesla T4 GPU? when using Parsec to connect to the instance?

asked a month ago72 views
2 Answers
2

Some corrections to re:post Agent article

After installing NICE DCV, set default resolution to 1536 by 1024, and block resolution change.

reg.exe add HKEY_USERS\S-1-5-18\Software\GSettings\com\nicesoftware\dcv\display /v console-session-default-layout /t REG_SZ /d "[{'w':<1536>, 'h':<1024>, 'x':<0>, 'y': <0>}]" /f

reg add HKEY_USERS\S-1-5-18\Software\GSettings\com\nicesoftware\dcv\display /v enable-client-resize /t REG_DWORD /d 0 /f

Restart Windows or DCV server for new default resolution to take effect. Connect using Parsec. Screenshot below G4DN with Parsec

More information from Change Windows EC2 instance default screen resolution

AWS
EXPERT
answered a month ago
0

To set a custom display resolution like 1536x1024 on an AWS EC2 g4dn.xlarge instance with Windows Server 2022, you'll need to follow a specific process that involves using the NVIDIA drivers and potentially the Amazon DCV (NICE Desktop Cloud Visualization) server. Here's how you can approach this:

  1. First, ensure you have the correct NVIDIA drivers installed. For G4dn instances, you should use the NVIDIA Data Center drivers for best performance, especially for computational workloads. These drivers provide support for up to four 4K displays per GPU.

  2. If you haven't already, install the Amazon DCV server on your instance. DCV server version 2023.1 or later on Windows Server 2019 or later installs an Indirect Display Driver (IDD) which enables support for higher display resolutions and reduces CPU usage.

  3. After installing DCV, you can set a custom resolution using the Windows Registry. Open an administrator command prompt or PowerShell session and run the following command to set the default resolution to 1536x1024:

    reg.exe add HKEY_USERS\S-1-5-18\Software\GSettings\com\nicesoftware\dcv\display /v console-session-default-layout /t REG_SZ /d "{w:<1536>, h:<1024>, x:<0>, y: <0>}" /f

  4. If you want to ensure that the resolution doesn't go below 1536x1024, you can also set a minimum resolution:

    reg add HKEY_USERS\S-1-5-18\Software\GSettings\com\nicesoftware\dcv\display /v min-head-resolution /t REG_SZ /d "(1536, 1024)" /f

  5. To prevent the DCV client from changing the display resolution, you can run:

    reg add HKEY_USERS\S-1-5-18\Software\GSettings\com\nicesoftware\dcv\display /v enable-client-resize /t REG_DWORD /d 0 /f

  6. After making these changes, restart your instance or the DCV service.

  7. When connecting to your instance using Parsec, the custom resolution should now be available.

If you're still having issues after following these steps, it's possible that there are differences in how AWS and Azure implement their GPU virtualization or in the specific driver versions they use. The NVIDIA GRID drivers used by Azure might have different capabilities or configurations compared to the ones available for AWS instances.

In case the above method doesn't work, you might need to contact AWS support for further assistance, as they may have specific recommendations for your use case with Parsec and custom resolutions on G4dn instances.
Sources
Change Windows EC2 instance default screen resolution | AWS re:Post
Change Windows EC2 instance default screen resolution | AWS re:Post
Amazon EC2 G4 Instances — Amazon Web Services (AWS)

profile picture
answered a month ago
profile picture
EXPERT
reviewed a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions