Skip to contentSkip to conversation

New: Randr12 on nv34m causes colour corruption on laptop panel.

Bug 17138 [email protected] 1 participant 8 messages Aug 14, 2008 – Aug 15, 2008 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

http://bugs.freedesktop.org/show_bug.cgi?id=17138

Summary: Randr12 on nv34m causes colour corruption on laptop
panel.
Product: xorg
Version: git
Platform: x86 (IA32)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]

Created an attachment (id=18284)
--> (http://bugs.freedesktop.org/attachment.cgi?id=18284)
vbtracetool vBIOS dump

Starting X with git nouveau and Randr12 disabled works perfectly. Enabling Randr12 gives a somewhat corrupted screen which is predominantly red.

My system is a Dell Inspiron 5150 with a 1600x1200 screen and an nv34m.

The corruption is only on the internal panel. Any external screen on the VGA output seems to be fine.

Bug #14403 seemed to be the closest to my experience and so I messed around with nv_bios.c.

In the function parse_lvds_manufacturer_table_init the section labeled:

/* adjust some things if straps are invalid (implies the panel has EDID) */

resets the lvdsmanufacturerindex from 3 to 0.

Putting in a line to set this back to 3 (or indeed 1 or 2) makes everything seem to work fine.

I did a BIOS dump with vbtracetool. Does this help?

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#2 lore raw

[Bug 17138] Randr12 on nv34m causes colour corruption on laptop panel.

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=17138

--- Comment #1 from Stuart Bennett <sb476-KWPb1pKIrIJaa/[email protected]> 2008-08-14 11:32:41 PST --- Xorg.0.log while using randr12 as well please

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#3 lore raw

[Bug 17138] Randr12 on nv34m causes colour corruption on laptop panel.

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=17138

--- Comment #2 from Murray Campbell <[email protected]> 2008-08-14 12:02:38 PST --- Created an attachment (id=18285)
--> (http://bugs.freedesktop.org/attachment.cgi?id=18285)
Xorg.0.log without patch

This is the Xorg.0.log with Randr12 enabled and the original nv_bios.c

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#4 lore raw

[Bug 17138] Randr12 on nv34m causes colour corruption on laptop panel.

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=17138

Murray Campbell <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #18285|application/octet-stream    |text/plain
          mime type|                            |
Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#5 lore raw

[Bug 17138] Randr12 on nv34m causes colour corruption on laptop panel.

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=17138

--- Comment #3 from Murray Campbell <[email protected]> 2008-08-14 12:06:08 PST --- Created an attachment (id=18286)
--> (http://bugs.freedesktop.org/attachment.cgi?id=18286)
Xorg.0.log with patch

This is the Xorg.0.log with Randr12 enabled and nv_bios.c modified by applying the patch:

nv_bios.c.altered 2008-08-14 19:56:02.000000000 +0100 renamed from nv_bios.c 2008-08-14 19:56:33.000000000 +0100 +2 -0
@@ -3154,6 +3154,8 @@
                         * lvdsmanufacturerindex in this case; we don't */
                }
 
+               lvdsmanufacturerindex=3;
+
                headerlen = 2;
                recordlen = bios->data[bios->fp.lvdsmanufacturerpointer + 1];
 
Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#6 lore raw

[Bug 17138] Randr12 on nv34m causes colour corruption on laptop panel.

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=17138

--- Comment #4 from Stuart Bennett <sb476-KWPb1pKIrIJaa/[email protected]> 2008-08-15 11:34:14 PST --- Created an attachment (id=18301)
--> (http://bugs.freedesktop.org/attachment.cgi?id=18301)
(hopefully correct) fix

Try this. There's a lot of code motion, so I might have got something wrong still.

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#7 lore raw

[Bug 17138] Randr12 on nv34m causes colour corruption on laptop panel.

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=17138

--- Comment #5 from Murray Campbell <[email protected]> 2008-08-15 14:26:02 PST --- (In reply to comment #4)

Quoted 2 lines

Try this. There's a lot of code motion, so I might have got something wrong still.

Well, it seems to work here. I'll let you know if anything unusual transpires.

There is a white thin-ish vertical line about half the screen high that flickers once as X starts. This never happened before but, of course, it's not a problem.

Thanks for looking into this so quickly.

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#8 lore raw

[Bug 17138] Randr12 on nv34m causes colour corruption on laptop panel.

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=17138

Stuart Bennett <sb476-KWPb1pKIrIJaa/[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #6 from Stuart Bennett <sb476-KWPb1pKIrIJaa/[email protected]> 2008-08-15 16:33:19 PST --- Committed to master

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.