- Newest
- Most votes
- Most comments
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
More information from Change Windows EC2 instance default screen resolution
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:
-
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.
-
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.
-
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
-
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
-
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
-
After making these changes, restart your instance or the DCV service.
-
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)
Relevant content
- asked 6 months ago
- asked 9 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago