Bug 10431 - wrong font sizes with intel driver
Summary: wrong font sizes with intel driver
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: 7.0.99.903 (7.1RC3)
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Eric Anholt
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-27 11:26 UTC by Tobias Knieper
Modified: 2007-08-12 10:46 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
my xorg.conf (3.93 KB, text/plain)
2007-03-27 11:27 UTC, Tobias Knieper
no flags Details
Xorg.0.log (66.62 KB, text/plain)
2007-03-27 11:28 UTC, Tobias Knieper
no flags Details
xrandr -q output (601 bytes, text/plain)
2007-03-27 11:29 UTC, Tobias Knieper
no flags Details
font sizes after a fresh boot (331.29 KB, image/png)
2007-03-27 11:31 UTC, Tobias Knieper
no flags Details
font sizes after dpi adjustment (334.31 KB, image/png)
2007-03-27 11:32 UTC, Tobias Knieper
no flags Details
recent Xorg.0.log (65.41 KB, text/plain)
2007-05-14 12:23 UTC, Tobias Knieper
no flags Details

Description Tobias Knieper 2007-03-27 11:26:37 UTC
Hello,
I just installed my distro packages for xserver rc3 and intel driver rc3.

The DPI settings seems to be wrong. The Xorg.0.log says "(==)
intel(0): DPI set to (75, 75)", but I believe it is not. My fonts are larger. If I execute "xrandr --verbose --dpi 75/LVDS" I get "screen 0: 1024x768
346x260 mm  75.00dpi", after that new opened windows have the correct font
sizes (the same as I had with the old driver). One more thing: If 346x260 is
the screen size in millimeters this is wrong. It is ~305x229.

I'll attach screenshots, my xorg.conf and the output of xrandr -q.
Comment 1 Tobias Knieper 2007-03-27 11:27:41 UTC
Created attachment 9316 [details]
my xorg.conf
Comment 2 Tobias Knieper 2007-03-27 11:28:20 UTC
Created attachment 9317 [details]
Xorg.0.log
Comment 3 Tobias Knieper 2007-03-27 11:29:56 UTC
Created attachment 9318 [details]
xrandr -q output

notice, that I currently don't have a monitor connected to vga.
Comment 4 Tobias Knieper 2007-03-27 11:31:02 UTC
Created attachment 9319 [details]
font sizes after a fresh boot
Comment 5 Tobias Knieper 2007-03-27 11:32:37 UTC
Created attachment 9320 [details]
font sizes after dpi adjustment

after executing:

xrandr --verbose --dpi 75/LVDS
killall kicker
killall kwin
kicker&
kwin&
Comment 6 Johannes Engel 2007-05-14 09:22:47 UTC

*** This bug has been marked as a duplicate of bug 10756 ***
Comment 7 Eric Anholt 2007-05-14 11:37:21 UTC
Unmark as a dupe of (I believe) an unrelated bug.
Comment 8 Tobias Knieper 2007-05-14 12:23:29 UTC
Created attachment 9967 [details]
recent Xorg.0.log

recent Xorg.0.log from xserver 1.3.0 and intel driver 2.0.0 (debian packages).

again notice the (==) intel(0): DPI set to (75, 75) line. (which is different from the line mentioned in the other bug report)

xdpyinfo says:
 dimensions:    1024x768 pixels (346x260 millimeters)
 resolution:    75x75 dots per inch

regards,
tobias
Comment 9 Tobias Knieper 2007-07-04 12:08:47 UTC
I gave intel driver 2.1.0 (debian packages) a try and the problem still persists. Can I give any additional information or help to get this fixed?
Comment 10 Tobias Knieper 2007-07-04 21:26:15 UTC
Again some xdpyinfo information:

$ diff xdpyinfo_output_before_fix xdpyinfo_output_after_fix
59,60c59,60
<   dimensions:    1024x768 pixels (270x203 millimeters)
<   resolution:    96x96 dots per inch
---
>   dimensions:    1024x768 pixels (346x260 millimeters)
>   resolution:    75x75 dots per inch
Comment 11 Jesse Barnes 2007-08-09 10:53:49 UTC
So it sounds like there are at least a couple of problems here:
  - VGA connection isn't detected properly (it falsely reports a connection)
  - EDID data from your display is wrong (346mmx260mm vs. 305mmx229mm)

Either of those could cause a bad DPI calculation.  Can you try setting up the driver to ignore your VGA output?  Something like this in your config file:

Section "Device"
  ...
  Driver "intel"
  ...
  Option "monitor-VGA" "VGA monitor"
  ...
EndSection

Section "Monitor"
  Identifier "VGA monitor"
  Option "Ignore" "true"
EndSection

That should take care of the VGA detection problem.

As for the EDID data, it appears your actual DPI is closer to 85 than 75, so that could be a problem.  I think you can override the DPI in your xorg.conf so you don't have to do it with xrandr after every login.
Comment 12 Eric Anholt 2007-08-09 14:24:31 UTC
The VGA connection detection issues should be resolved with the current driver.  As far as physical size detection, your hardware offers us no information to detect it, so you'll have to statically configure it using DisplayWidth option in xorg.conf.
Comment 13 Tobias Knieper 2007-08-12 10:46:13 UTC
Thanks for your two replies. Indeed the VGA connection detection issues are resolved so far.

Concerning the font size problem:
I tried setting the DisplaySize option in the Monitor section without success. And I didn't find any documentation about DPI or DisplayWidth options. How do I have to use them to give them a try?

Thanks again,
Tobias


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.