X11 DPI Scaling: Debunking the Myth
2025-06-25
The author challenges the common belief that X11 doesn't support DPI scaling by successfully drawing a two-inch circle across multiple screens with varying sizes and resolutions. Using OpenGL and X server configuration events, the author dynamically adjusts the circle's radius based on physical screen dimensions obtained from the X server. Despite encountering minor inaccuracies, like a discrepancy in the TV's reported size, the experiment proves DPI scaling in X11 is achievable. The process highlights the importance of ignoring limitations imposed by others and pursuing seemingly impossible tasks.
Development
DPI scaling