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
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
|
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
Thursday, 25 October 2007, 19:29 GMT
Reason for closing: Fixed
Additional comments about closing: Patch accepted upstream
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.
>xdpyinfo | grep resolution
resolution: 98x154 dots per inch
Why?
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)
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.
match your real display dimensions?
[alois@amilo ~]$ xdpyinfo |grep -A1 dimensions
dimensions: 1280x800 pixels (332x212 millimeters)
resolution: 98x96 dots per inch
[alois@amilo ~]$
[alois@amilo ~]$ xdpyinfo |grep -A1 dimensions
dimensions: 1280x800 pixels (289x21 millimeters)
resolution: 112x968 dots per inch
[alois@amilo ~]$
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)
i810-Xorg.0.log (78.1 KiB)
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
[~]$ 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 #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.
---
Xserver 1.4 + patch + set up xorg.conf (DisplaySize and Option
"Monitor-outputname" "monitorsection")
"Monitor-outputname" "monitorsection")
xorg.conf (2.9 KiB)