Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 342965 - ThinkPad T400, Radeon HD3470: bad display size in X.org
Summary: ThinkPad T400, Radeon HD3470: bad display size in X.org
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-27 17:46 UTC by Marek Kozlowski
Modified: 2015-02-22 02:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Xorg.0.log (Xorg.0.log,31.01 KB, text/plain)
2010-10-27 17:46 UTC, Marek Kozlowski
Details
xorg.conf (xorg.conf,4.87 KB, text/plain)
2010-11-07 11:47 UTC, Marek Kozlowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Kozlowski 2010-10-27 17:46:23 UTC
When starting X (x11-base/xorg-x11-7.4-r1) wrong display size is set:

(II) RADEON(0): Setting screen physical size to 381 x 238

while it should be 304x190. I tried manually create xorg.conf and set the DisplaySize option but it was completely ignored! 

Reproducible: Always
Comment 1 Marek Kozlowski 2010-10-27 17:46:49 UTC
Created attachment 252271 [details]
Xorg.0.log
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-10-31 18:47:45 UTC
What is the output of the "xrandr" command when you are in X?
Comment 3 Marek Kozlowski 2010-10-31 19:05:00 UTC
(In reply to comment #2)
> What is the output of the "xrandr" command when you are in X?

Hmmm...

$ xrandr 
Screen 0: minimum 320 x 200, current 1440 x 900, maximum 8192 x 8192
DVI-0 disconnected (normal left inverted right x axis y axis)
LVDS connected 1440x900+0+0 (normal left inverted right x axis y axis) 303mm x 190mm
   1440x900       60.0*+   50.0  
   1280x854       59.9  
   1280x800       59.8  
   1280x720       59.9  
   1152x768       59.8  
   1024x768       59.9  
   800x600        59.9  
   848x480        59.7  
   720x480        59.7  
   640x480        59.4  
VGA-0 disconnected (normal left inverted right x axis y axis)
Comment 4 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-11-01 21:16:17 UTC
So it looks correct to me. I think the Xorg.0.log message might have come from the default 96 dpi which the X server uses when no hardware/EDID reported value is known yet.

Resolving as WORKSFORME, please reopen if you find that applications see wrong dpi.
Comment 5 Marek Kozlowski 2010-11-02 10:08:31 UTC
(In reply to comment #4)
> So it looks correct to me. I think the Xorg.0.log message might have come from
> the default 96 dpi which the X server uses when no hardware/EDID reported value
> is known yet.
> 
> Resolving as WORKSFORME, please reopen if you find that applications see wrong
> dpi.

I'm not sure if it' OK. 1440x900 per 303x190 display gives native resolution 120dpi. But my system sets it to 96dpi. Numerous applications like Inkscape need adjusting (custom rescaling).
Comment 6 Wormo (RETIRED) gentoo-dev 2010-11-05 18:13:35 UTC
What does xdpyinfo say about resolution, does that look consistent?

e.g. mine says

  dimensions:    1280x800 pixels (303x190 millimeters)
  resolution:    107x107 dots per inch
Comment 7 Marek Kozlowski 2010-11-05 19:36:41 UTC
(In reply to comment #6)
> What does xdpyinfo say about resolution, does that look consistent?
> 
> e.g. mine says
> 
>   dimensions:    1280x800 pixels (303x190 millimeters)
>   resolution:    107x107 dots per inch

screen #0:
  dimensions:    1440x900 pixels (381x238 millimeters)
  resolution:    96x96 dots per inch


Comment 8 Wormo (RETIRED) gentoo-dev 2010-11-06 04:10:33 UTC
That does seem fishy. How about posting your xorg.conf?
Comment 9 Marek Kozlowski 2010-11-07 11:47:52 UTC
Created attachment 253497 [details]
xorg.conf
Comment 10 Marek Kozlowski 2010-11-07 11:49:29 UTC
(In reply to comment #9)
> Created an attachment (id=253497) [details]
> xorg.conf

The same with auto-configuration (no xorg.conf). Extra "DisplaySize" option in the Monitor section doesn't change anything. Seems to be completely ignored.

Comment 11 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-11-12 20:29:39 UTC
does "xrandr --dpi 107" help? (it will only affect newly started applications)
Comment 12 Marek Kozlowski 2010-11-17 21:32:23 UTC
(In reply to comment #11)
> does "xrandr --dpi 107" help? (it will only affect newly started applications)

I suppose that you mean:

xradr --dpi 120

? (it is the correct dpi for this size and this resolution). It help in the same way as 'startx -- -dpi 120'. It's a workaround but not the solution of the problem.

Comment 13 Marek Kozlowski 2010-11-26 17:51:03 UTC
An interesting detail:
I tried Gentoo 10.1 DVD nad it set thos values (display size as well as DPI) *correctly*!
Of course: different X version, different kernels and different configuration. Any idea how to debug it?
Comment 14 Matt Turner gentoo-dev 2015-02-22 02:10:43 UTC
There's not really anything Gentoo developers can do to solve this. Please file a bug upstream https://bugs.freedesktop.org/enter_bug.cgi?product=DRI if the problem persists.