[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: A bug?



martin f krafft wrote:
also sprach Russell Shaw <rjshaw@iprimus.com.au> [2003.02.23.2229 +0100]:

On my system, /etc/X11/xinit/xserverrc contains:

 #!/bin/sh
 exec /usr/bin/X11/X -dpi 100 -nolisten tcp

Can anyone verify this on another system?


yes.


This caused the screen to always be 100dpi (xdpyinfo), so
i changed it to:

 #!/bin/sh
 exec /usr/bin/X11/X -nolisten tcp


debian made a choice at one point to make the screen 100dpi by
default. what's your problem with that?

If you set DisplaySize in /etc/X11/XF86Config-4:

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

Then 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.

Doesn't that mean 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.





Reply to: