Bug 168189

Summary: gdm should have a dpi of 96 by default
Product: [openSUSE] openSUSE 11.0 Reporter: Travis Hansen <thansen>
Component: GNOMEAssignee: Federico Mena Quintero <federico>
Status: RESOLVED FIXED QA Contact: E-mail List <nld10-bugs-qa>
Severity: Normal    
Priority: P3 - Medium CC: federico, landemaine, tom.horsley, vuntz
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: openSUSE 10.3   
Whiteboard: gnome-wrong-out-of-the-box, gnomeup-gdm
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 338002    

Description Travis Hansen 2006-04-20 20:09:21 UTC
GNOME uses a default dpi of 96.  I think it would be a good idea to have gdm mimic that behavior.

This could be done with X itself or with gdm.conf.
Comment 1 Federico Mena Quintero 2006-11-24 16:07:00 UTC
Actually, we should do something similar to what we do in bug #217790 (see attachment #106649 [details] for some skeleton code).

Basically:

1. We figure out the DPI from the physical dimensions of the screen which the X server reports.

2. If this DPI is within a reasonable range ([50, 500] in the code), we use it.  Otherwise, we use 96 DPI and assume that the server is broken.
Comment 2 Federico Mena Quintero 2006-11-24 16:11:26 UTC
You can reproduce this bug by putting "DisplaySize 16 16" in the "Monitor" section of your xorg.conf.  GDM will get *huge* fonts in the username/password entry, and in the dialogs which you can select.  Oddly enough, all the other text in the login screen appears with a reasonable size.
Comment 3 Hans Petter Jansson 2006-11-24 21:27:11 UTC
I think I've seen some code in GDM attempting to guess the DPI of the display...
Comment 4 Travis Hansen 2006-11-27 17:04:34 UTC
I think there is code in there to try to guess the dpi.  I just think we should default to 96 and let people change it if they want.  Other OS's/Distros/etc default to 96, and GNOME defaults to 96.  If not, an "Easy" option in gdmsetup would be helpful as well.  Right now I modify the xserver line to have --dpi 96 in there, but a DPI setting or even a whole Fonts section of settings for gdm would be nice.
Comment 5 Federico Mena Quintero 2007-10-25 00:13:40 UTC
Let me see if I can make GDM do the DPI checking / defaulting for openSUSE 10.3, to make it consistent with gnome-control-center.  This will definitely not happen for SLED 10 :)
Comment 6 Federico Mena Quintero 2007-10-30 01:36:07 UTC
*** Bug 184213 has been marked as a duplicate of this bug. ***
Comment 7 Mark Gordon 2007-11-30 17:52:47 UTC
*** Bug 345064 has been marked as a duplicate of this bug. ***
Comment 8 Vincent Untz 2009-04-28 23:14:56 UTC
This works now, since gdm uses gnome-settings-daemon too.
Comment 9 Thomas Horsley 2009-04-28 23:35:08 UTC
Unless, when user "gdm" is created, it gets created with gnome-settings-daemon
pre-configured to default to 96DPI, I wouldn't say this makes it "work". It
is still gonna use the totally bogus EDID info by default on a newly installed
system, and only a determined user familiar with the cryptic .gconf directory
will be able to take advantage of this "fix" by making it looks as if
user gdm had set DPI.
Comment 10 Vincent Untz 2009-04-29 13:27:25 UTC
(In reply to comment #9)
> Unless, when user "gdm" is created, it gets created with gnome-settings-daemon
> pre-configured to default to 96DPI, I wouldn't say this makes it "work". It
> is still gonna use the totally bogus EDID info by default on a newly installed
> system, and only a determined user familiar with the cryptic .gconf directory
> will be able to take advantage of this "fix" by making it looks as if
> user gdm had set DPI.

No. Because we force the DPI to 96 in GNOME at the moment.