Debian Bug report logs -
#405133
messes up the display resolution (i.e. the dpi setting)
Reported by: Rogier <rogierg@12move.nl>
Date: Sun, 31 Dec 2006 16:48:02 UTC
Severity: normal
Tags: patch
Found in version kde-guidance/0.7.0-1
Fixed in version kde-guidance/0.8.0-4
Done: Michael Meskes <meskes@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Debian KDE Extras Team <pkg-kde-extras@lists.alioth.debian.org>:
Bug#405133; Package kde-guidance.
(full text, mbox, link).
Acknowledgement sent to Rogier <rogierg@12move.nl>:
New Bug report received and forwarded. Copy sent to Debian KDE Extras Team <pkg-kde-extras@lists.alioth.debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: kde-guidance
Version: 0.7.0-1
Severity: normal
Tags: patch
After installation of kde-guidance, and restart of X, all fonts were displayed
*much* larger than before. Changing the X-server resolution did not have any effect.
It appeared that using the default installation settings, guidance insists on
rounding the resolution to 96 or 120 dpi. In my case this means a 28% (!) increase
in font size (from 75dpi to 96dpi).
I have tried finding a way to change this behavior, but displayconfig does not have
an option to configure this. After reading the source, I manually created a file
/etc/kde3/displayconfigrc containing the text 'dpi=xserver'.
(For the benefit of other people reading this report: this file can be created in
any of the paths returned by 'kde-config --path config')
IMHO, kde-guidance's default policy should be to modify nothing, and use the X
server's setting. This also gives best results if the user may start X sessions
on different X servers (with different resolutions...). Consistency is also
improved across applications when some do, and others don't use xrdb's value.
Another reason is that users may install kde-guidance along with a large batch
of other software, or upgrades, and be puzzled as to why their fonts seem to
have changed. Few may discover kde-guidance causes this, and even less will
discover how to change this, except by removing kde-guidance again...
I propose to change FixXorgDPI in
/usr/share/python-support/kde-guidance/displayconfig-restore.py as follows:
----------------------------------------------------------------
--- displayconfig-restore.orig 2006-12-31 16:35:55.000000000 +0100
+++ displayconfig-restore.py 2006-12-31 16:47:23.000000000 +0100
@@ -62,24 +62,25 @@
# resource database. Most X applications (Qt and GTK apps at least) will then
# use this DPI for font rendering.
#
def FixXorgDPI(desiredDPI):
# dpi is:
- # None - round the DPI.
+ # None - Use the X server's DPI.
# xserver - Use the X server's DPI.
+ # round - Round the X server's DPI.
# <number> - DPI to use.
- if desiredDPI=="xserver":
+ if desiredDPI=="xserver" or desiredDPI is None:
return
dpi = 96
try:
- if desiredDPI is not None:
+ if desiredDPI != "round":
dpi = int(desiredDPI)
except ValueError:
- desiredDPI = None
+ desiredDPI = "round"
- if desiredDPI is None:
+ if desiredDPI == "round":
xserver = xf86misc.XF86Server()
if len(xserver.getScreens())!=0:
(width,height,width_mm,height_mm) = xserver.getScreens()[0].getDimensions()
w_dpi = float(width)/(float(width_mm)/25.4)
h_dpi = float(height)/(float(height_mm)/25.4)
----------------------------------------------------------------
Regards,
Rogier.
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages kde-guidance depends on:
ii kdelibs4c2a 4:3.5.5a.dfsg.1-5 core libraries and binaries for al
ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries
ii libgcc1 1:4.1.1-19 GCC support library
ii libpythonize0 0.4.0-3 Python packages to support KDE app
ii libqt3-mt 3:3.3.7-1 Qt GUI Library (Threaded runtime v
ii libstdc++6 4.1.1-19 The GNU Standard C++ Library v3
ii libx11-6 2:1.0.3-4 X11 client-side library
ii libxext6 1:1.0.1-2 X11 miscellaneous extension librar
ii libxrandr2 2:1.1.0.2-5 X11 RandR extension library
ii libxrender1 1:0.9.1-3 X Rendering Extension client libra
ii libxxf86vm1 1:1.0.1-2 X11 XFree86 video mode extension l
ii pykdeextensions 0.4.0-3 Python packages to support KDE app
ii python 2.4.4-2 An interactive high-level object-o
ii python-dbus 0.71-3 simple interprocess messaging syst
ii python-kde3 3.15.2+20060422-3 KDE3 bindings for Python
ii python-support 0.5.6 automated rebuilding support for p
ii python2.4 2.4.4-1 An interactive high-level object-o
ii sysv-rc 2.86.ds1-36 System-V-like runlevel change mech
kde-guidance recommends no packages.
-- no debconf information
Information forwarded to debian-bugs-dist@lists.debian.org, Debian KDE Extras Team <pkg-kde-extras@lists.alioth.debian.org>:
Bug#405133; Package kde-guidance.
(full text, mbox, link).
Acknowledgement sent to fboudra@free.fr:
Extra info received and forwarded to list. Copy sent to Debian KDE Extras Team <pkg-kde-extras@lists.alioth.debian.org>.
(full text, mbox, link).
Message #10 received at 405133@bugs.debian.org (full text, mbox, reply):
hi,
thanks for the report and the submitted patch.
I send it to simon and sebas for a review.
cheers,
Fathi
Message #13 received at 405133-submitter@bugs.debian.org (full text, mbox, reply):
hi,
finally i have some feedback from simon about the issue:
> It is more a question about what the default policy should be.
> For kubuntu it works the way we (=the Kubuntu Devs) want it to.
> Perhaps other distros want different defaults. I can imagine.
> I would be happy to accept a patch which makes it easy to set the default
> policy at packaging time.
> i.e. by the packager using a one line patch to change a DEFAULT_POLICY
> variable in one of the *.py files.
> It should maybe be a build time switch, but that is a bit tricky to do right
> now)
and sebastian:
> I've put that kind of stuff as const-like vars at the top of the file in
> powermanage.py
cheers,
Fathi
Tags added: pending
Request was from Anibal Monsalve Salazar <anibal@debian.org>
to control@bugs.debian.org.
(Thu, 12 Jun 2008 10:51:30 GMT) (full text, mbox, link).
Reply sent to Michael Meskes <meskes@debian.org>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to Rogier <rogierg@12move.nl>:
Bug acknowledged by developer.
(full text, mbox, link).
Message #20 received at 405133-close@bugs.debian.org (full text, mbox, reply):
Source: kde-guidance
Source-Version: 0.8.0-4
We believe that the bug you reported is fixed in the latest version of
kde-guidance, which is due to be installed in the Debian FTP archive:
guidance-backends_0.8.0-4_i386.deb
to pool/main/k/kde-guidance/guidance-backends_0.8.0-4_i386.deb
kde-guidance-powermanager_0.8.0-4_i386.deb
to pool/main/k/kde-guidance/kde-guidance-powermanager_0.8.0-4_i386.deb
kde-guidance_0.8.0-4.diff.gz
to pool/main/k/kde-guidance/kde-guidance_0.8.0-4.diff.gz
kde-guidance_0.8.0-4.dsc
to pool/main/k/kde-guidance/kde-guidance_0.8.0-4.dsc
kde-guidance_0.8.0-4_i386.deb
to pool/main/k/kde-guidance/kde-guidance_0.8.0-4_i386.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 405133@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Michael Meskes <meskes@debian.org> (supplier of updated kde-guidance package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Wed, 11 Jun 2008 12:53:05 +0200
Source: kde-guidance
Binary: kde-guidance guidance-backends kde-guidance-powermanager
Architecture: source i386
Version: 0.8.0-4
Distribution: unstable
Urgency: low
Maintainer: Debian KDE Extras Team <pkg-kde-extras@lists.alioth.debian.org>
Changed-By: Michael Meskes <meskes@debian.org>
Description:
guidance-backends - collection of system administration tools for GNU/Linux
kde-guidance - collection of KDE system administration tools for GNU/Linux
kde-guidance-powermanager - HAL based power manager applet
Closes: 405133 445571 463220 473797 475172
Changes:
kde-guidance (0.8.0-4) unstable; urgency=low
.
* Added guidance-backend package, closes: #473797
* Moved init script to new package because that's where the program is
that is called during boot process.
* Changed installation directory to integrate with python,
closes: #475172, #463220
* Enabled grubconfig.
* Cleaned up debian/rules.
* Added displayconfigrc file to make kde-guidance use the X server setting,
closes: #405133
* Fixed one patch to work with python 2.4.
* Added patch to make wineconfig use apt-get instead of adept and not ask
about universe, closes: #445571
Checksums-Sha1:
3936e3e2b867b894ad12c7add600f0b6fcfdf067 1494 kde-guidance_0.8.0-4.dsc
e3f13fd80ac9eb48eec913f5ae37d68e257474c5 108653 kde-guidance_0.8.0-4.diff.gz
f6ddf2a462b6c921e898c58b16b9c851a1d174ff 540280 kde-guidance_0.8.0-4_i386.deb
921fd7b89bf6cd7ce6aee7a555df091beadcd38f 252624 guidance-backends_0.8.0-4_i386.deb
deecfd61872d0fe6565618d327e931cd7e3c672c 62988 kde-guidance-powermanager_0.8.0-4_i386.deb
Checksums-Sha256:
5a5691d35e49a3b4170b0e3622d90edf7cf6616f5e35f78fd341a44fca8a52bb 1494 kde-guidance_0.8.0-4.dsc
7fd68f91131504e2677ec5982863e18fe8f0c3898c7533e0b5ff56fd750a9738 108653 kde-guidance_0.8.0-4.diff.gz
8a23ce4f29680872104525ff80307fff31b5db204ecb5c6a0fa0d76415075627 540280 kde-guidance_0.8.0-4_i386.deb
bc75ab1c56b641f4aed0f4aa2f092b778f3fe718aae0135023d5fe028b998908 252624 guidance-backends_0.8.0-4_i386.deb
ec1b3e02f50cfa2c092460f781c7b30b89c6c00d15ded5dcabd982217ebcda2f 62988 kde-guidance-powermanager_0.8.0-4_i386.deb
Files:
376e5cc3772b2a199e99ec8611152b9c 1494 kde optional kde-guidance_0.8.0-4.dsc
f0c5c683104866412801b1354bea41f9 108653 kde optional kde-guidance_0.8.0-4.diff.gz
4641457132fd465fce37e111b01e2143 540280 kde optional kde-guidance_0.8.0-4_i386.deb
77e46d8bd60178bda1a3f4d2c5453775 252624 kde optional guidance-backends_0.8.0-4_i386.deb
8b29ef75338ccb2fb2ebf7c3727835a1 62988 kde optional kde-guidance-powermanager_0.8.0-4_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iD8DBQFIT+stVkEm8inxm9ERAq8SAKCGp6F30uPPBEQvQaT6h+cVtbHaIQCfWuOi
lfo/oK97SukMr2x2zUohkzY=
=M9lc
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Wed, 16 Jul 2008 07:29:04 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Fri Jan 5 12:09:53 2018;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.