Bug 13481 - RandR12 fails on GF6600Go
Summary: RandR12 fails on GF6600Go
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/nouveau (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Nouveau Project
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-01 07:45 UTC by Anssi Hannula
Modified: 2008-01-13 02:20 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
X.org server log of failing RandR12 on 6600Go (107.00 KB, text/plain)
2007-12-01 07:46 UTC, Anssi Hannula
no flags Details
xrandr output before it crashes X server (484 bytes, text/plain)
2007-12-01 07:47 UTC, Anssi Hannula
no flags Details
X server log when out of frequency, with xrandr run at the end (112.85 KB, text/plain)
2007-12-14 13:53 UTC, Anssi Hannula
no flags Details
LVDS only, switch to another console, no restore, only distortions (111.40 KB, text/plain)
2007-12-14 15:32 UTC, Anssi Hannula
no flags Details
LVDS only when hotplugging DVI, xrandr --auto, LVDS goes to distortions, all-blue screen on DVI (113.66 KB, text/plain)
2007-12-14 15:46 UTC, Anssi Hannula
no flags Details
LVDS only, switch to another console, no restore, only distortions (updated) (117.03 KB, text/plain)
2007-12-14 16:18 UTC, Anssi Hannula
no flags Details
Garbage on LVDS when switching DVI mode (146.44 KB, text/plain)
2007-12-14 17:25 UTC, Anssi Hannula
no flags Details
Garbage on LVDS stays even after X restart (146.85 KB, text/plain)
2007-12-14 17:39 UTC, Anssi Hannula
no flags Details

Description Anssi Hannula 2007-12-01 07:45:33 UTC
I have a laptop with GF6600Go, 10de:0148, 1400x1050 internal display, and DVI and VGA connectors. Connected to the DVI connector is a 1680x1050 display.

When running X with RandR12 enabled, the laptop display shows distortions only, while nothing appears on the external display.

Also, the server crashes after I run "xrandr --query".

I'll attach the X.org log and xrandr output.
Comment 1 Anssi Hannula 2007-12-01 07:46:36 UTC
Created attachment 12896 [details]
X.org server log of failing RandR12 on 6600Go
Comment 2 Anssi Hannula 2007-12-01 07:47:29 UTC
Created attachment 12897 [details]
xrandr output before it crashes X server
Comment 3 Maarten Maathuis 2007-12-01 08:26:20 UTC
Two things:

1 - lvds support is disabled atm
2 - A mmio-trace of the nvidia driver using the lvds + dvi configuration would be helpful(actually, without it i have no clue what to do), since you have an odd configuration.

http://nouveau.freedesktop.org/wiki/MmioTraceHowto
Comment 4 Anssi Hannula 2007-12-09 08:58:02 UTC
Sorry for the delay. I just sent the dump to mmio dot dumps.
Comment 5 Maarten Maathuis 2007-12-09 23:50:19 UTC
A lot of bugs have been fixed in the meantime and your trace shows nothing out of the ordinary. Could you try again? LVDS is still disabled though.
Comment 6 Maarten Maathuis 2007-12-10 03:29:03 UTC
Don't bother, i found a bug that affects you as well.
Comment 7 Anssi Hannula 2007-12-14 13:53:20 UTC
Created attachment 13111 [details]
X server log when out of frequency, with xrandr run at the end

Tried again. The distortions on native display disappeared, but I still get no picture: now I get a "out of frequency" error in the external display.
Comment 8 Anssi Hannula 2007-12-14 15:32:40 UTC
Created attachment 13112 [details]
LVDS only, switch to another console, no restore, only distortions

I got it work, thanks to Maarten. I also enabled LVDS to test it, and it seems to work, with some problems.
Attached log of console restore problem. Note that console restore works fine when using DVI only.
Comment 9 Anssi Hannula 2007-12-14 15:46:02 UTC
Created attachment 13117 [details]
LVDS only when hotplugging DVI, xrandr --auto, LVDS goes to distortions, all-blue screen on DVI
Comment 10 Anssi Hannula 2007-12-14 16:18:51 UTC
Created attachment 13118 [details]
LVDS only, switch to another console, no restore, only distortions (updated)
Comment 11 Anssi Hannula 2007-12-14 17:25:33 UTC
Created attachment 13119 [details]
Garbage on LVDS when switching DVI mode

Any switch of DVI mode causes LVDS to go garbage until it is switched as well.

Attached log of the following scenario:
Initial state: LVDS+DVI, 1400x1050,1280x1024
1. xrandr DVI to 1680x1050 => LVDS goes garbage
2. LVDS to 1024x768 => no more garbage
3. LVDS back to 1400x1050

The earlier xrandr "crashing" problem was my own fault, I had no other X clients.
Comment 12 Anssi Hannula 2007-12-14 17:39:30 UTC
Created attachment 13120 [details]
Garbage on LVDS stays even after X restart

The garbage mentioned in the previous comment stays even past X restarts.

Attached is the following reproducable scenario:
1. LVDS is garbaged by switching DVI mode with xrandr.
2. X is restarted (log starts here), garbage stays
3. Trying to switch LVDS to 1024x768, but X server drops connection to xrandr.
3. Trying again, now LVDS switched to 1024x768, and output works fine again.
4. LVDS switched back to 1400x1050, still works.

Notes:
- Garbage is the same kind that happens on failing console restore.
- When switching the LVDS mode, both displays go black for a moment. However, when switching DVI mode, the LVDS does not go black, just goes to garbage immediately
Comment 13 Stuart Bennett 2007-12-18 08:49:26 UTC
Ok, here's some tests that might help the LVDS restore issue, please try these in order and reboot between each. You should not have anything connected on DVI. Report back if any of them work :)

1) try current git and see if it's magically fixed itself
2) only call nv_set_tmds_registers in nv_driver.c when nv_output2->type == OUTPUT_LVDS (i.e. not for OUTPUT_TMDS)
3) Leaving change from 2) in place, force crosswired in nv_driver.c (a few lines above nv_set_tmds_registers call) to 0
4) Leaving change from 2) in place, force crosswired to 1
Comment 14 Anssi Hannula 2007-12-24 16:09:30 UTC
1, 2, 4: Same as before, screen goes black and then fades to weirdness, no console.
3: Screen fades to weirdness immediately, no blackness, no console


As the LVDS problems in LVDS+DVI mode (LVDS goes to weirdness on DVI mode change) can be workarounded by setting the mode in LVDS again, could some variation of that be tested here as well, i.e. restoring the mode twice or something?
Comment 15 Anssi Hannula 2008-01-13 02:20:30 UTC
All the issues (console restore, DVI switch corrupting LVDS, LVDS not enabled by default) are fixed on current git :)


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.