Skip to content

Instantly share code, notes, and snippets.

@ivan
Last active March 15, 2024 09:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ivan/c1bde370c709959820a51abec81e8038 to your computer and use it in GitHub Desktop.
Save ivan/c1bde370c709959820a51abec81e8038 to your computer and use it in GitHub Desktop.
Use FreeRDP with non-standard DPI
xfreerdp /dynamic-resolution +decorations +fonts +aero +window-drag +multitransport /bpp:16 /rfx /codec-cache:rfx /video /scale-desktop:172 /scale-device:100

172% is the scaling factor we want.

/scale-device:100 is required because fucking Microsoft: "desktopScaleFactor (4 bytes): A 32-bit, unsigned integer. The requested desktop scale factor. This value MUST be ignored if it is less than 100% or greater than 500% or deviceScaleFactor is not 100%, 140%, or 180%. If this field is present, then the desktopOrientation and deviceScaleFactor fields MUST also be present."

https://msdn.microsoft.com/en-us/library/cc240510.aspx

@icedxu
Copy link

icedxu commented Mar 15, 2024

How to calculate deviceScaleFactor? not desktopScaleFactor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment