Bug 10121

Summary: i855 LVDS failure
Product: xorg Reporter: Tobias Knieper <tobias.knieper>
Component: Driver/intelAssignee: Eric Anholt <eric>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: deejay1
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 10102    
Attachments:
Description Flags
my xorg.conf
none
Xorg.0.log with enabled DDC
none
Xorg.0.log with disabled DDC
none
Xorg.0.log with enabled DDC and applied clockfix patch
none
diff between the xorg logfiles (with and without clockfix patch)
none
xf86-video-intel-VBIOS - as requested on irc
none
log with i8xx-clocks.diff
none
output from intel_reg_dumper
none
output from intel_reg_dumper while on vt
none
Xorg.0.log with enabled DDC and applied clockfix-magic patch
none
diff between xorg logfiles (with i8xx-clocks patch and i8xx-clocks-magic patch)
none
Xorg.0.log with enabled DDC and applied clockfix-magic patch (xserver 1.2.99.901 (1.3.0 RC 1))
none
log from i855GM, i855-clocks-magic.diff applied to 14ee9... none

Description Tobias Knieper 2007-02-28 04:01:07 UTC
Hello,
i'm using the latest git xf86-video-intel driver containing the memory allocation rework made by Eric Anholt.

I experience the following problem:
After launching X the screen keeps blank (except a non blinking cursor in the top left screen edge). I trief both DDC and non DDC to retrieve the EDID data. I'll attach my xorg.conf and both logfiles.

If you need further information please let me know.

Regards,
Tobias Knieper
Comment 1 Tobias Knieper 2007-02-28 04:02:30 UTC
Created attachment 8898 [details]
my xorg.conf
Comment 2 Tobias Knieper 2007-02-28 04:03:36 UTC
Created attachment 8899 [details]
Xorg.0.log with enabled DDC
Comment 3 Tobias Knieper 2007-02-28 04:03:58 UTC
Created attachment 8900 [details]
Xorg.0.log with disabled DDC
Comment 4 Daniel Stone 2007-02-28 05:34:07 UTC
i had the exact same problem with my 855gm, but http://people.freedesktop.org/~anholt/i8xx-clocks.diff fixed it for me; give that a try.
Comment 5 Tobias Knieper 2007-02-28 08:37:21 UTC
Thanks for your advice but I had no luck. I'll attach the new xorg log and a diff between the different logs. (one with the clockfix, one without)
Comment 6 Tobias Knieper 2007-02-28 08:38:14 UTC
Created attachment 8906 [details]
Xorg.0.log with enabled DDC and applied clockfix patch
Comment 7 Tobias Knieper 2007-02-28 08:40:41 UTC
Created attachment 8907 [details]
diff between the xorg logfiles (with and without clockfix patch)
Comment 8 Eric Anholt 2007-02-28 09:18:46 UTC
Is that from a fresh boot?
Comment 9 Daniel Stone 2007-02-28 09:25:43 UTC
okay, thanks for trying!

(did you do this after a fresh boot? if not, could you please try that?)
Comment 10 Tobias Knieper 2007-02-28 09:45:24 UTC
I tried it again with a fresh boot and experienced no difference. The logfiles are identical. (I can also show up on IRC if needed)
Comment 11 Eric Anholt 2007-02-28 13:19:11 UTC
Yeah, if you could hop on #xorg-devel of freenode.net, that would be great.
Comment 12 Tobias Knieper 2007-02-28 13:57:24 UTC
Created attachment 8911 [details]
xf86-video-intel-VBIOS - as requested on irc
Comment 13 Daniel Stone 2007-02-28 14:01:10 UTC
Created attachment 8912 [details]
log with i8xx-clocks.diff

this one works for me with i8xx-clocks.diff: x40, 1024x768, 855gm.
Comment 14 Eric Anholt 2007-02-28 16:35:54 UTC
OK, I finished that program I'd talked about writing today.  So, if you can install libpciaccess, then update and rebuild the modesetting branch, you should get a program in xf86-video-intel/src/reg_dumper/intel_reg_dumper.  Run that as root from the console and when the working Xorg is running, and attach those logs, and hopefully that'll help me figure out what's going on here.
Comment 15 Tobias Knieper 2007-03-01 10:14:45 UTC
Created attachment 8924 [details]
output from intel_reg_dumper

After adding #include <stdint.h> into reg_dumper.h compiling worked fine. (Daniel Stone gave me the hint.)

I also commented out the following lines in main.c:
//    if (dev->vendor_id != 0x8086)
//      errx(1, "Graphics card is non-intel");

Regards,
Tobias
Comment 16 Tobias Knieper 2007-03-01 11:22:16 UTC
Created attachment 8925 [details]
output from intel_reg_dumper while on vt
Comment 17 Eric Anholt 2007-03-07 15:55:02 UTC
Proposed patch for i855 LVDS issues at http://people.freedesktop.org/~anholt/i8xx-clocks-magic.diff -- please test with the latest driver from master with that diff applied.
Comment 18 Daniel Stone 2007-03-07 16:59:11 UTC
(still works for me: hasn't broken the committed driver.)
Comment 19 Tobias Knieper 2007-03-08 12:49:23 UTC
Created attachment 9043 [details]
Xorg.0.log with enabled DDC and applied clockfix-magic patch

Still the same symptons. (except that I can switch back to VT after a fresh boot)
Comment 20 Tobias Knieper 2007-03-08 12:51:08 UTC
Created attachment 9044 [details]
diff between xorg logfiles (with i8xx-clocks patch and i8xx-clocks-magic patch)
Comment 21 Tobias Knieper 2007-03-08 15:45:30 UTC
Created attachment 9051 [details]
Xorg.0.log with enabled DDC and applied clockfix-magic patch (xserver 1.2.99.901 (1.3.0 RC 1))

I installed the latest experimental xserver packages available from my distro. The screen is now completly black and switching to vt does not work. The log is from a fresh boot.
Comment 22 Daniel Stone 2007-03-13 10:02:06 UTC
Created attachment 9123 [details]
log from i855GM, i855-clocks-magic.diff applied to 14ee9...

this one still works for me, but here's the log.
Comment 23 Eric Anholt 2007-03-13 16:19:22 UTC
OK, master is updated with the clocks-magic patch plus some additional changes that could help with mysterious issues.
Comment 24 Tobias Knieper 2007-03-14 00:10:41 UTC
Ok, I'll give it a try within the next days.
Comment 25 Tobias Knieper 2007-03-16 15:54:30 UTC
Compiling the driver by myself resulted in a crash of the server. So I tried the latest experimental builds from my distro containing xserver 1.2.99.902 and xf86-video-intel 12.92.92 (which seems to be 1.9.92) and everything except the DPI settig works like a charm. Really great!

Currently 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 much 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.

Again thanks so far.
Comment 26 Tobias Knieper 2007-03-16 16:03:04 UTC
The wrong font size might be concerned to https://bugs.freedesktop.org/show_bug.cgi?id=10304 - so I believe my original report seems to be fixed.
Comment 27 Eric Anholt 2007-03-20 00:08:18 UTC
Original issue is fixed, so closing.  Follow up in a separate bug for display size issues.
Comment 28 Tobias Knieper 2007-03-26 08:41:52 UTC
I want to give RC3 a try. If then the issue is still there I'll file a new bug.

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.