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

Bug#251319: marked as done ([xbase-clients] /etc/X11/xinit/xserverrc calls X the wrong way)



Your message dated Sat, 29 May 2004 04:14:01 -0500
with message-id <20040529091401.GJ18796@deadbeast.net>
and subject line Bug#251319: [xbase-clients] /etc/X11/xinit/xserverrc calls X the wrong way
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 27 May 2004 23:59:56 +0000
>From daniel.skorka@stud.uni-karlsruhe.de Thu May 27 16:59:56 2004
Return-path: <daniel.skorka@stud.uni-karlsruhe.de>
Received: from nat-ph3-wh.rz.uni-karlsruhe.de (localhost) [129.13.73.33] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BTUmy-0000Zy-00; Thu, 27 May 2004 16:59:56 -0700
Received: from daniel by localhost with local (Exim 4.32)
	id 1BTUe8-00010v-Bo
	for submit@bugs.debian.org; Fri, 28 May 2004 01:50:48 +0200
Date: Fri, 28 May 2004 01:50:48 +0200
To: submit@bugs.debian.org
Subject: [xbase-clients] /etc/X11/xinit/xserverrc calls X the wrong way
Message-ID: <[🔎] 20040527235048.GA3839@e202.hadiko.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.5.1+cvs20040105i
From: Daniel <daniel.skorka@stud.uni-karlsruhe.de>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: xbase-clients
Version: 4.3.0.dfsg.1-1

/etc/X11/xinit/xserverrc calls X like that:
'exec /usr/bin/X11/X -dpi 100 -nolisten tcp'

The '-dpi 100' bit is wrong. It overrides anything you might have
written in the config file, which is very annoying. The config file has a
way to specify the screen size. The config file is the correct place to
put this information. The commandline in some script is _not_.

---------------------------------------
Received: (at 251319-done) by bugs.debian.org; 29 May 2004 09:14:02 +0000
>From branden@deadbeast.net Sat May 29 02:14:02 2004
Return-path: <branden@deadbeast.net>
Received: from dhcp065-026-182-085.indy.rr.com (redwald.deadbeast.net) [65.26.182.85] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BTzuk-0002D4-00; Sat, 29 May 2004 02:14:02 -0700
Received: by redwald.deadbeast.net (Postfix, from userid 1000)
	id 9DB19649DC; Sat, 29 May 2004 04:14:01 -0500 (EST)
Date: Sat, 29 May 2004 04:14:01 -0500
From: Branden Robinson <branden@debian.org>
To: 251319-done@bugs.debian.org
Subject: Re: Bug#251319: [xbase-clients] /etc/X11/xinit/xserverrc calls X the wrong way
Message-ID: <20040529091401.GJ18796@deadbeast.net>
References: <[🔎] 20040527235048.GA3839@e202.hadiko.de>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="W/D3X8sky0X3AmG5"
Content-Disposition: inline
In-Reply-To: <[🔎] 20040527235048.GA3839@e202.hadiko.de>
Mail-Copies-To: nobody
X-No-CC: I subscribe to this list; do not CC me on replies.
User-Agent: Mutt/1.5.6i
Delivered-To: 251319-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 


--W/D3X8sky0X3AmG5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, May 28, 2004 at 01:50:48AM +0200, Daniel wrote:
> Package: xbase-clients
> Version: 4.3.0.dfsg.1-1
>=20
> /etc/X11/xinit/xserverrc calls X like that:
> 'exec /usr/bin/X11/X -dpi 100 -nolisten tcp'
>=20
> The '-dpi 100' bit is wrong. It overrides anything you might have
> written in the config file, which is very annoying. The config file has a
> way to specify the screen size. The config file is the correct place to
> put this information. The commandline in some script is _not_.

The issue is significantly more complex than you imply.

Permit me to refer you to the Debian X FAQ.

http://necrotic.deadbeast.net/xsf/XFree86/trunk/debian/local/FAQ

  *) Why are some fonts (or graphical rulers) sized incorrectly?

  Programs that try to optimize font sizes for better screen output (such as
  FontConfig-based applications) and those that try to show real-world geom=
etry
  (like inch/centimeter scales in the GIMP) need to know the pixel density =
of
  the display to be accurate.  This value is the ratio of the display's pix=
el
  resolution to the physical size of your monitor -- generally between 70 a=
nd
  120 DPI (dots per inch).  If the DPI value used by the X server does not =
match
  the actual monitor characteristics, applications that use this informatio=
n are
  likely to display fonts and other graphics that are scaled incorrectly ba=
sed
  on this inaccurate information.  You can use the xdpyinfo program in the
  xbase-clients package to check the assumed monitor size and dot resolutio=
n.
  The DPI value is retrieved by X client applications by querying the X ser=
ver;
  therefore, the X server needs to know (or be told) what value to use.

  Two ways to get an accurate DPI value to your application are:

  1) pass the -dpi option to the X server (this also works for many non-XFr=
ee86
     X servers); or
  2) let the XFree86 X server calculate the DPI value based on the DisplayS=
ize
     parameter in its configuration file, XF86Config-4.  See the
     XF86Config-4(5x) manual page for details.

  The first method is recommended if you already know the DPI value of your
  monitor and wish to always run it at the same resolution; the second meth=
od is
  the more flexible way, but only available for the XFree86 X server.

  Locate and edit the scripts which start the X server:

  /etc/X11/xinit/xserverrc for xinit and startx (in the xbase-clients packa=
ge)
  /etc/gdm/gdm.conf for gdm
  /etc/kde3/kdm/Xservers for kdm
  /etc/X11/wdm/Xservers for wdm
  /etc/X11/xdm/Xservers for xdm

    Passing the -dpi option to the X server:

    In each of these files above, replace the value after -dpi with the cor=
rect
    number.

    Letting the XFree86 X server calculate the DPI:

    In each of the files above, remove the -dpi word and the following numb=
er.
    Then edit /etc/X11/XF86Config-4 and locate the "Monitor" section there.
    Add a line like:

      DisplaySize     288 216

    to it. The numbers above are horizonatal and vertical dimensions of the
    monitor's visible screen area (in milimeters) which you can often find =
in
    the monitor's manual.  Manually measuring the visible screen area with a
    ruler or tape measure may be the most precise method, but keep in mind =
that
    depending on the modeline definitions, the exact measurements of the vi=
sible
    portions screen may differ from mode to mode.

  When you've finished, restart the X server and use xdpyinfo to check the =
new
  DPI settings.

Closing this spurious report.  Please edit your conffiles if you dislike the
defaults; that's why they're conffiles.

--=20
G. Branden Robinson                |     One doesn't have a sense of humor.
Debian GNU/Linux                   |     It has you.
branden@debian.org                 |     -- Larry Gelbart
http://people.debian.org/~branden/ |

--W/D3X8sky0X3AmG5
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iEUEARECAAYFAkC4VFkACgkQ6kxmHytGonzNdwCXUzpuVB0rqfSsHpusD5VGYIa/
ZgCgm5ckxWhST+HYlC2XNPMZtiE30b0=
=OZFU
-----END PGP SIGNATURE-----

--W/D3X8sky0X3AmG5--



Reply to: