FS#7129 - New xf86-video-intel sets wrong DPI settings

Attached to Project: Arch Linux
Opened by Martin Striz (martin.ufo) - Friday, 11 May 2007, 19:04 GMT
Last edited by Aaron Griffin (phrakture) - Thursday, 25 October 2007, 19:29 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Alexander Baldeck (kth5)
Architecture i686
Severity Critical
Priority Normal
Reported Version 0.8 Voodoo
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

After change to xf86-video-intel, truetype fonts became very large.

Output of "xdpyinfo | grep resolution" showed "resolution: 112x968 dots per inch". With i810 driver, it shows correctly 98x96 dpi.

I have got a laptop with Intel 915GM with default resolution 1280x800.
This task depends upon

Closed by  Aaron Griffin (phrakture)
Thursday, 25 October 2007, 19:29 GMT
Reason for closing:  Fixed
Additional comments about closing:  Patch accepted upstream
Comment by Xavier (shining) - Thursday, 17 May 2007, 10:16 GMT
So that's also a 15.4" screen I guess?

Anyway, it works fine here :
> lspci |grep Display ~
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)
> pacman -Q xf86-video-intel ~
xf86-video-intel 2.0.0-1
> xdpyinfo | grep resolution ~
resolution: 98x98 dots per inch
> grep DPI /var/log/Xorg.0.log ~
(==) intel(0): DPI set to (96, 96)

funny it doesn't report the same value, 96 in one place and 98 in another.
But at least, it's not completely broken here.
Comment by Alois Nespor (anespor) - Thursday, 07 June 2007, 08:25 GMT
same problem on x86_64 - Intel 945GM
Comment by Alois Nespor (anespor) - Thursday, 07 June 2007, 12:56 GMT
In Section "Monitor" : Option "DPI" "98x96" (for 1280x800), but same large fonts:
>xdpyinfo | grep resolution
resolution: 98x154 dots per inch

Why?
Comment by Maciej Sitarz (macieks2) - Saturday, 30 June 2007, 22:12 GMT
"Output of "xdpyinfo | grep resolution" showed "resolution: 112x968 dots per inch". With i810 driver, it shows correctly 98x96 dpi."

98x96 is not a correnct DPI, DPI should be square to show nice fonts.

Mayby your monitor give X11 wrong info about it's size?
Check it with:
$ xdpyinfo |grep -A1 dimensions

Mayby try to add option DisplaySize to your Monitor section ? (I'm not sure if the new driver supports it, the i810 didn't)
[code]
DisplaySize 338 270
[code]
#337.92mm (H) x 270.336mm (V)
Comment by Alois Nespor (anespor) - Saturday, 30 June 2007, 22:30 GMT
I testet size 330 x 210 (1280x800 from VESA VBE DDC) and no effect. Driver intel hat build-in DDC modul, i810 get information about DDC from xorg modul.
But if set "hard" DPI in KDE kcontrol, apps show size normally, except login . I can better test for mistakes the driver intel if show correct font size in KDE.
------------------
Driver intel show difference values in modelines agains i810.

P.S.Sorry for me horrible english.
Comment by Maciej Sitarz (macieks2) - Saturday, 30 June 2007, 22:33 GMT
Do dimensions showed by: xdpyinfo |grep -A1 dimensions
match your real display dimensions?
Comment by Alois Nespor (anespor) - Sunday, 01 July 2007, 07:26 GMT
with i810 driver :

[alois@amilo ~]$ xdpyinfo |grep -A1 dimensions
dimensions: 1280x800 pixels (332x212 millimeters)
resolution: 98x96 dots per inch
[alois@amilo ~]$
Comment by Alois Nespor (anespor) - Sunday, 01 July 2007, 07:29 GMT
with intel driver (package xf86-video-intel-2.0.0-3.pkg.tar.gz)

[alois@amilo ~]$ xdpyinfo |grep -A1 dimensions
dimensions: 1280x800 pixels (289x21 millimeters)
resolution: 112x968 dots per inch
[alois@amilo ~]$
Comment by Alois Nespor (anespor) - Sunday, 01 July 2007, 07:35 GMT
>Mayby your monitor give X11 wrong info about it's size?

with i810 give monitor correctly info, with intel driver not...

i810 give one modelines :
Modeline "1280x800" 71.25 1280 1328 1360 1440 800 802 808 823 -hsync -vsync

intel give more modelines:
Modeline "1280x800"x60.1 71.25 1280 1328 1360 1440 800 802 808 823 -hsync -vsync (49.5 kHz)
Modeline "1280x800"x60.0 83.46 1280 1344 1480 1680 800 801 804 828 -hsync +vsync (49.7 kHz)
Modeline "1280x768"x60.0 80.14 1280 1344 1480 1680 768 769 772 795 -hsync +vsync (47.7 kHz)
Modeline "1280x720"x60.0 74.48 1280 1336 1472 1664 720 721 724 746 -hsync +vsync (44.8 kHz)
Modeline "1024x768"x60.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz)
Modeline "800x600"x60.3 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz)
Modeline "640x480"x59.9 25.18 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz)
Comment by Alois Nespor (anespor) - Sunday, 01 July 2007, 07:38 GMT
X.org.0.log - driver intel and i810
Comment by Alois Nespor (anespor) - Sunday, 01 July 2007, 13:38 GMT
I find the problem - driver intel read not correctly info from DDC and set up wrong dimensions/resolution :
xdpyinfo |grep -A1 dimensions
dimensions: 1280x800 pixels (289x21 millimeters)
resolution: 112x968 dots per inch

FIX: to Section "Device" add line Option "DDC" "no"

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


i know, is small hack, but works good ==> fix driver intel about developers on http://www.intellinuxgraphics.org/

again, sorry for my english, is bad
Comment by Timm (gummibaerchen) - Sunday, 07 October 2007, 15:33 GMT
Even though I also had the experience, that fonts were bigger after switching to testing (scaled them all down already) everything seems to be fine with the Video-Card/Driver:

[~]$ lspci | grep Display
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 03)
[~]$ xdpyinfo | grep resolution
resolution: 98x98 dots per inch

Comment by Alois Nespor (anespor) - Thursday, 11 October 2007, 08:44 GMT
patch to ry

Comment #14 From Hong Liu 2007-10-09 00:14:23 PST from http://bugs.freedesktop.org/show_bug.cgi?id=10304

This patch prefers the user configured DisplaySize to the probed DDC data,
please add the actual physical size to your xorg.conf monitor section and have
a try.

This patch needs probably go upstream anyway (should go in 1.4.1 as well) as
there are often cases when we don't know the physical size of an output and
need to specify it.
---
Can you Alexander, patching this patch again xserver 1.4.0 ?

Is good reasons for rebuild xf86-video-intel and add .install to "You must add option DisplaySize to your Monitor section in xorg.conf : example Option "DisplaySize 338 270". I thing, thas is good.
---
Comment by Alois Nespor (anespor) - Thursday, 11 October 2007, 08:48 GMT
And we can soon after all works (xorg-server, patch and intel driver works close this unworthy bug.
Comment by Jan de Groot (JGC) - Thursday, 11 October 2007, 09:12 GMT
It seems this patch is a newer version of the one I applied to 1.2.0. I guess it was removed from the xorg-server 1.4 package because it no longer applies.
Comment by Alois Nespor (anespor) - Wednesday, 24 October 2007, 12:50 GMT
The patch from Intel developers not works, the X server crashed. Another solution....
Comment by Alois Nespor (anespor) - Thursday, 25 October 2007, 15:36 GMT
Well, i thing that we have solution : https://bugs.freedesktop.org/show_bug.cgi?id=10304

Xserver 1.4 + patch + set up xorg.conf (DisplaySize and Option
"Monitor-outputname" "monitorsection")
Comment by Alois Nespor (anespor) - Thursday, 25 October 2007, 15:51 GMT
The patch for xorg-server 1.4 and right set xorg.conf (DisplaySize and Option
"Monitor-outputname" "monitorsection")

Loading...