Xpra synchronizes the DPI from the client to the server, so that applications will render with the correct settings and "look right" on the client. This may affect fonts, window sizes, cursors sizes, etc.
See also: image depth
- support varies greatly depending on the operating system and version, desktop environment, number of monitors attached and their resolution, etc
- with X11, there are far too many places where the DPI can be looked up, many places where it can be overridden
- for virtualized "hardware DPI" which some applications calculate from the virtual monitor dimensions, you will need a patched Xdummy driver and FakeXinerama: without a patched dummy driver, the hardware DPI - as reported by
xdpyinfo
- cannot be updated at runtime and must be set in advance, either in the/etc/xpra/xorg.conf
file or on theXvfb
command line - many applications will not reload the DPI settings, so they must be started after the client connects to get the correct DPI value (you may want to use
start-after-connect
)
For debugging or reporting issues, the most relevant pieces of information can be collected from:
- client and server debug output with
-d dpi
command line switch xdpyinfo
outputxrandr
output
- Physical vs logical DPI on X
- Of DPIs, desktops, and toolkits
- win32 API:
- WM_DPICHANGED
- GetDpiForMonitor
- SetProcessDpiAwareness
- Writing DPI-Aware Desktop and Win32 Applications
- Scaling Windows - The DPI Arms Race, in particular: Windows 8.1 - More DPI Changes
- About High Resolution for OS X
- Qt: Retina display support for Mac OS, iOS and X11
- xserver forces 96 DPI on randr-1.2-capable drivers, overriding correct autodetection
- please add option to avoid forcing of 96dpi
- xserver forces 96 DPI on randr-1.2-capable drivers, overriding correct autodetection
- Xorg: setting DPI manually
- KDE & Qt Applications and High DPI Displays with Scaling
- how different versions of windows use different icon sizes and where
- Ubuntu packaging problems
- #697 GTK screen dimension detection is broken with high DPI displays on windows7 and later
- #163 pass client DPI preference to server and use sane default value of
96
- #976 client display scaling
- #919 frame extents synchronization
- #887 chrome DPI
- #882 DPI with Ubuntu - not fixable as Ubuntu does not use Xdummy
- #1086 DPI handling improvements, MacOS support
- #1215 patched dummy driver for Debian and Ubuntu
- #1193 bug with client command line switch handling
- #1526 per-monitor DPI with MS Windows clients
- #1933 HIDPI awareness for MacOS