From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3b244b2bde7eaa91 X-Google-Attributes: gidfee84,public From: pch@mystech.com (Pete Halverson) Subject: Re: X Server Screen Size Date: 1995/04/07 Message-ID: #1/1 X-Deja-AN: 100061023 references: organization: Mystech Associates newsgroups: comp.unix.osf.osf1 In article , 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