Skip to content

Instantly share code, notes, and snippets.

@ashumkin
Forked from ivan/freerdp-dpi-help.md
Created April 12, 2021 16:03
Show Gist options
  • Save ashumkin/010618c71abdd61f15dcb070f88a5ef3 to your computer and use it in GitHub Desktop.
Save ashumkin/010618c71abdd61f15dcb070f88a5ef3 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

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