Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* X Server Screen Size
@ 1995-04-06  4:00 steve
  1995-04-07  4:00 ` Pete Halverson
  0 siblings, 1 reply; 2+ messages in thread
From: steve @ 1995-04-06  4:00 UTC (permalink / raw)


Hi All,
  Can someone tell me how to change the X servers details relating to physical
screen size??
To clarify:
  The X server knows how big the screen is in millimetres (xdpyinfo shows this). 
This can be retrieved using the X functions DisplayWidthMM() and 
DisplayHeightMM(). 
The question is how do I tell the X server how big my screen is such that these 
functions return correct values.

Thanks for the help

Steve





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: X Server Screen Size
  1995-04-06  4:00 X Server Screen Size steve
@ 1995-04-07  4:00 ` Pete Halverson
  0 siblings, 0 replies; 2+ messages in thread
From: Pete Halverson @ 1995-04-07  4:00 UTC (permalink / raw)


In article <D6Lw6v.HFq@ncgrafix.demon.co.uk>, steve@ncgrafix.demon.co.uk
(steve) wrote:

> How do I tell the X server how big my screen is such that these 
> functions return correct values?

The XDec server supports a command line option that specifies the
resolution of the display, in pixels/inch.  So if your display is 1024x768
pixels, and the physical size of the image area of your monitor is
300mmx225mm, then your horizontal and vertical resolution is
1024/(300/25.4) = 86.7dpi.

If you start your server with the option

    X -dpi 87

(either by hand or from Xdm in /usr/lib/X11/xdm/Xservers), it should then
report the physical attributes correctly.

If you have different horizontal and vertical resolutions, you can specify
these as

   X -dpix 87 -dpiy 89

but I'd probably try to tweak the display controls a bit to get dpix ==
dpiy, as there are probably lots of apps out there that think that pixels
are square :-)

pch



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-04-07  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-04-06  4:00 X Server Screen Size steve
1995-04-07  4:00 ` Pete Halverson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox