Bug 441848

Summary: Intel driver gives bogus screen size in mm
Product: [Fedora] Fedora Reporter: Peter Bloomfield <peterbloomfield>
Component: xorg-x11-drv-i810Assignee: Adam Jackson <ajax>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: xgl-maint
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-04-10 18:33:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Small program to dump screen size.
none
xorg.conf
none
Xorg.0.log for intel driver
none
Xorg.0.log for vesa driver
none
Correct Xorg.0.log for intel driver none

Description Peter Bloomfield 2008-04-10 15:00:14 UTC
Description of problem:
When intel is used, my screen (Sony SDM-X82) is reported to be 40959 mm by 6553
mm, whereas vesa gives the correct 361 x 292.  I wouldn't care, except that
Evince believes what it's told (unwisely, imo), and refuses to show a
US-letter-size pdf larger than a small postage stamp--but that's another story.

Version-Release number of selected component (if applicable):
xorg-x11-drv-i810-2.2.1-20

How reproducible:
Every time.

Steps to Reproduce:
1.  Attached is a short program that uses {Width,Height}MMOfScreen to display
what the server claims.
2.
3.
  
Actual results:
Screen is 1280 (40959 mm) wide by 1024 (6553 mm) high.

Expected results:
Screen is 1280 (361 mm) wide by 1024 (292 mm) high.

Additional info:
lspci shows:
00:02.0 VGA compatible controller: Intel Corporation 82945G/GZ Integrated
Graphics Controller (rev 02)
00:02.1 Display controller: Intel Corporation 82945G/GZ Integrated Graphics
Controller (rev 02)

xorg.conf and Xorg.0.log to follow.

Comment 1 Peter Bloomfield 2008-04-10 15:00:14 UTC
Created attachment 302003 [details]
Small program to dump screen size.

Comment 2 Peter Bloomfield 2008-04-10 15:01:33 UTC
Created attachment 302004 [details]
xorg.conf

Comment 3 Peter Bloomfield 2008-04-10 15:02:54 UTC
Created attachment 302007 [details]
Xorg.0.log for intel driver

Comment 4 Peter Bloomfield 2008-04-10 15:03:32 UTC
Created attachment 302008 [details]
Xorg.0.log for vesa driver

Comment 5 Peter Bloomfield 2008-04-10 15:17:57 UTC
Created attachment 302009 [details]
Correct Xorg.0.log for intel driver

Comment 6 Adam Jackson 2008-04-10 18:27:42 UTC
Can you compare the output of 'xdpyinfo | grep dimensions' with 'xrandr | grep
mm' for me?  I think we're just getting out of sync somewhere.

Comment 7 Adam Jackson 2008-04-10 18:33:26 UTC
Actually, not an X bug.  Turns out this was due to gnome-desktop setting the DPI
for you, wildly incorrectly.

Comment 8 Peter Bloomfield 2008-04-10 18:41:28 UTC
OK--just for the sake of completeness:

$ xdpyinfo | grep dimensions
  dimensions:    1280x1024 pixels (40959x6553 millimeters)
$ xrandr | grep mm
VGA connected 1280x1024+0+0 (normal left inverted right x axis y axis) 359mm x 287mm

How can I get gnome-desktop to not mess with the DPI?

Comment 9 Adam Jackson 2008-04-10 20:35:10 UTC
Update to gnome-desktop 2.21.1-2