Bug 26194

Summary: nouveau reports DPI correctly in Xorg.0.log, but value reported by X incorrect
Product: xorg Reporter: Brian Tarricone <brian>
Component: Driver/nouveauAssignee: Nouveau Project <nouveau>
Status: RESOLVED DUPLICATE QA Contact: Xorg Project Team <xorg-team>
Severity: minor    
Priority: medium    
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
i915 platform: i915 features:

Description Brian Tarricone 2010-01-24 06:22:44 UTC
A bit odd:

$ grep -E 'DPI|dimensions' /var/log/Xorg.0.log
(**) NOUVEAU(0): Display dimensions: (290, 180) mm
(**) NOUVEAU(0): DPI set to (112, 112)

290mm x 180mm and 112x112 DPI are indeed correct (1280x800, 13.3" widescreen), however:

$ xdpyinfo | grep -E 'dimensions|resolution'
  dimensions:    1280x800 pixels (338x211 millimeters)
  resolution:    96x96 dots per inch

X appears to be getting bogus data, which screws up font sizing.

I'm on a MacBook Pro 13" with GeForce 9400M (NVac).  Using nouveau-drm from the
kernel tree with git rev eeec3a1ecd703d3a32fe223274d2a77686030d78 (built out of
tree for kernel 2.6.32-gentoo-r2), and xf86-video-nouveau git rev

If there's any more data or info I can provide, please let me know.
Comment 1 Julien Cristau 2010-01-24 06:37:29 UTC

*** This bug has been marked as a duplicate of bug 23705 ***
Comment 2 Brian Tarricone 2010-01-24 14:56:51 UTC
(In reply to comment #1)
> *** This bug has been marked as a duplicate of bug 23705 ***

Are you sure this is a dupe?  That bug seems to refer to a general problem with xorg-server 1.7.  When I use 'nvidia' instead of 'nouveau', my DPI is reported correctly.  So it sounds like this is something that the video driver does indeed have control over.

(If it's not *appropriate* for the video driver to 'unbreak' this, then of course I understand.)

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.