Bug#182191: Xserver always sets screens to 100dpi, ignores DisplaySize
Package: xbase-clients
Version: 4.2.1-3
Severity: normal
Hi,
I found that DisplaySize in the monitor section of
/etc/X11/XF86Config-4 is always being ignored. This
can be seen with "xdpyinfo" and /var/log/XFree86.0.log
to be 100dpi.
Section "Monitor"
Identifier "Philips"
VendorName "Philips"
ModelName "C20 (CM0500)"
HorizSync 31.5,35.2,37.8,48,56,64
DisplaySize 312 234
VertRefresh 50-90
Option "DPMS"
Gamma 2.4 2.5 2.6
EndSection
I found it's an xbase-clients installation bug. It makes the windows,
fonts, and icons in X the wrong size.
If you look in /var/log/XFree86.0.log or xdpyinfo, you'll find
that DisplaySize is ignored and you get a physical screen size different
to your real screen. It gets set to 100dpi when mine should be around 80dpi.
It means that any assumptions about font and window sizes by
X apps is all wrong. Instead of 1pt being 1/72", it's more like 1/60",
so all the fonts end up bigger than they should. It also means that
changing the resolution from 800x600 to 1024x768 changes the *physical*
screen size, making all the fonts and everything else change size when
they should be constant.
/etc/X11/xinit/xserverrc contains:
#!/bin/sh
exec /usr/bin/X11/X -dpi 100 -nolisten tcp
So i changed it to:
#!/bin/sh
exec /usr/bin/X11/X -nolisten tcp
which fixes the problem.
Reply to: