Comment 5 for bug 310353

Revision history for this message
In , Mfabian (mfabian) wrote :

Is it still true that it is hardcoded? Stefan Dirsch (CC:) installed 10.2 Beta1 recently on a test machine where the monitor was not correctly detected. /etc/X11/xorg.conf contained DisplaySize 16 16 in the "Monitor" section after the installation which is of course hideously wrong. The fonts in the login screen of gdm were *huge* because of this, it was barely possible to log in. And after logging in, all fonts in the Gnome desktop were *huge* as well. If Gnome had hardcoded 96 dpi, this wouldn't have happened. I don't want to say that hardcoding were a good idea. I just have the impression that it isn't hardcoded at the moment. Apparently gconfd uses the dpi it can get from the X-server. But it seems to get the dpi from the X-server only once and then remember it. That means even if you notice the problem and fix "DisplaySize" in /etc/X11/xorg.conf to contain the correct values, the font size in Gnome will stay wrong. To fix the problem for Gnome as well after fixing it in /etc/X11/xorg.conf, one has to kill gconfd and delete the dpi entry in ~/.gconf (or just rm -rf ~/.gconf* to make sure).