After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 545112 - Using gnome-display-properties causes X DPI setting to change
Using gnome-display-properties causes X DPI setting to change
Status: RESOLVED FIXED
Product: gnome-desktop
Classification: Core
Component: libgnome-desktop
2.23.x
Other Linux
: Normal normal
: ---
Assigned To: Desktop Maintainers
Desktop Maintainers
Depends on:
Blocks: randr-tracker
 
 
Reported: 2008-07-28 09:25 UTC by Sebastien Bacher
Modified: 2012-06-21 21:30 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description Sebastien Bacher 2008-07-28 09:25:45 UTC
the bug has been described on https://bugs.edge.launchpad.net/ubuntu/+source/gnome-control-center/+bug/246718

"After gnome-display-properties has been invoked by a user and ~/.gnome2/monitors.xml created, X dpi will always be set to 96 when the user logs in to gnome. This is especially annoying since it's not obvious necessarily obvious to the user why it happens, and some people like me will tend to spend considerable time looking throught X and GDM configuration before finding the cause of the problem. Removing ~/.gnome2/monitors.xml works, but I suppose that is not an ideal solution for everyone."

gnome-rr-config.c seems to use a 96 hardcoded value, maybe it should be using /desktop/gnome/font_rendering/dpi rather?
Comment 1 Bastien Nocera 2012-06-20 15:53:18 UTC
commit e9dee9d73b92e7c0d7c81104d8284a9915f96292
Author: Bastien Nocera <hadess@hadess.net>
Date:   Wed Jun 20 16:52:35 2012 +0100

    gnome-rr: Document the default DPI setting
    
    As X.org lies to us because the monitors lie to it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=545112
Comment 2 Anders Kaseorg 2012-06-21 21:30:31 UTC
> As X.org lies to us because the monitors lie to it.

This is no longer true.  As of xorg-server 1.7.0 (October 2009), X.org no longer even uses the values supplied by monitors.  It already forces 96 DPI by default.  The developers have been emphatic that they don’t intend to change this.

http://cgit.freedesktop.org/xorg/xserver/commit/?id=fff00df94d7ebd18a8e24537ec96073717375a3f
https://bugs.freedesktop.org/show_bug.cgi?id=23705

GNOME should not force 96 DPI when X.org already does so.  A user who wants to manually configure a value other than 96 DPI should not have to do so in more than one place.

Please reopen this.