Skip to contentSkip to conversation

New: At first start of X, secondary display doesn' t come up properly.

Bug 19620 [email protected] 1 participant 19 messages Jan 16, 2009 – Jan 21, 2009 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

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

Summary: At first start of X, secondary display doesn't come up
properly.
Product: xorg
Version: git
Platform: x86-64 (AMD64)
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=22036)
--> (http://bugs.freedesktop.org/attachment.cgi?id=22036)
Config

Problem :

first start of X : primary screen work fine, secondary screen stay blue (mandriva make root X window blue instead of grey by default). The screen seems to be properly configured (1024x768@85) and I can drag something on this screen (but obviously I don't see it anymore) If I try this in clone mode, the second screen is blue, the first display properly.

Second start of X or after a switch to VT and come back, the second screen is perfectly fine, and I can use it

Configuration :

xserver : 1.4.0.90 from mandriva 2008.1

Card (NV4B, 10de:02e1) on AGP bus :
01:00.0 VGA compatible controller: nVidia Corporation G73 [GeForce 7600 GS] (rev a2)

Primary screen on DVI (with DVI to VGA adaptor) : IIYAMA A705MT (Vision master pro 411)

Secondary screen on VGA : IIYAMA S704HT (Vision master 404), this screen alone had worked fine with nouveau on VGA since 18 months.

xrandr -q :
Screen 0: minimum 320 x 200, current 2048 x 768, maximum 3000 x 1024 DVI-I-0 connected 1024x768+1024+0 (normal left inverted right x axis y axis) 320mm x 240mm
1024x768_85.00 84.9*+

   1352x1014      59.9  
   1280x1024      75.0  
   1152x864       75.0  
   1024x768_100.00  100.0  
   1024x768       75.1     70.1     60.0  
   832x665        97.7  
   832x624        74.6  
   800x600_85.00   84.9  
   800x600        72.2     75.0     60.3     56.2  
   640x480_85.00   84.6  
   640x480        75.0     72.8     66.7     69.6     60.0     59.9  
   512x384       120.0  
   400x300       120.6  
   320x240       120.1  
VGA-0 connected 1024x768+0+0 (normal left inverted right x axis y axis) 320mm x
240mm
   1024x768_85.00   84.9*+
   1280x1024      75.0  
   1152x864       75.0  
   1024x768       74.9     75.1     70.1     60.0  
   832x624        74.6     74.8  
   800x600_85.00   84.9  
   800x600        72.2     75.0     60.3     56.2  
   640x480_85.00   84.6  
   640x480        75.0     72.8     66.7     69.6     60.0     59.9  
   512x384       120.0  
   400x300       120.6  
   320x240       120.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.

A message that is not in the archive (sent off-list or not yet received): bug-19620-8800-V0hAGp6uBxMKqLRl/[email protected]/

#2 lore raw

[Bug 19620] At first start of X, secondary display doesn't come up properly .

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

--- Comment #1 from Mjules <[email protected]> 2009-01-16 13:38:01 PST --- Created an attachment (id=22038)
--> (http://bugs.freedesktop.org/attachment.cgi?id=22038)
Xorg log at first start when second display doesn't come up properly

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 19620] At first start of X, secondary display doesn't come up properly .

In reply to a message not in the archive

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

--- Comment #2 from Mjules <[email protected]> 2009-01-16 13:38:53 PST --- Created an attachment (id=22039)
--> (http://bugs.freedesktop.org/attachment.cgi?id=22039)
Xorg log at second start when everything is ok

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 19620] At first start of X, secondary display doesn't come up properly .

In reply to a message not in the archive

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

--- Comment #3 from Mjules <[email protected]> 2009-01-16 13:40:24 PST --- Created an attachment (id=22040)
--> (http://bugs.freedesktop.org/attachment.cgi?id=22040)
Xorg log with a VT switch, before, problem, after, fine

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 19620] At first start of X, secondary display doesn't come up properly .

In reply to a message not in the archive

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

--- Comment #4 from Mjules <[email protected]> 2009-01-17 07:24:12 PST --- I've made a small movie (~1 min ; 8MB) in order to better explain the problem :
http://mjules.free.fr/nouveau/bug.avi

storyline :
fresh boot in runlevel 3 (before the beginning of the movie)
2" : startx
30" : KDE is loaded, the screen on DVI (with adaptor) show KDE, the screen on VGA show nothing but a blue color
37" : I made a switch to VT
45" : I come back from VT to X, the two screen display KDE in clone mode as expected initially.

thx

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 19620] At first start of X, secondary display doesn't come up properly .

In reply to a message not in the archive

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

--- Comment #5 from Stuart Bennett <sb476-KWPb1pKIrIJaa/[email protected]> 2009-01-19 09:59:05 PST --- Thanks, for the video, that explains it really well.

1) it would seem you are using an FB for the console. Certainly this can cause problems if it's nvidiafb. Even if it's vesafb it may be worth trying a boot with "vga=0" added to the end of your kernel parameters to force a text-mode only boot.

2) assuming this doesn't fix it, please make register dumps while in X, both before (broken) and after (working) the switch to and from VT.

Use my version of radeontool to make these. It can be acquired by:

git clone git://anongit.freedesktop.org/~stuart/radeontool
cd radeontool; make

then dumps made by

./radeontool regs > logfile

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 19620] At first start of X, secondary display doesn't come up properly .

In reply to a message not in the archive

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

--- Comment #6 from Mjules <[email protected]> 2009-01-19 10:21:33 PST --- Hi,

thx for your answer

disabling vesafb doesn't fix the problem but it becomes different :
now the secondary screen doesn't come up at all at first start. It is powered but stays black as if it doesn't receive a signal.

As previously switch to VT and come back fix the display.

Dumps attached

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 19620] At first start of X, secondary display doesn't come up properly .

In reply to a message not in the archive

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

--- Comment #7 from Mjules <[email protected]> 2009-01-19 10:22:29 PST --- Created an attachment (id=22099)
--> (http://bugs.freedesktop.org/attachment.cgi?id=22099)
Dump of register before switch to VT (with problem)

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.
#9 lore raw

[Bug 19620] At first start of X, secondary display doesn't come up properly .

In reply to a message not in the archive

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

--- Comment #8 from Mjules <[email protected]> 2009-01-19 10:23:10 PST --- Created an attachment (id=22100)
--> (http://bugs.freedesktop.org/attachment.cgi?id=22100)
Dump of reg after the switch (everything works fine)

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.
#10 lore raw

[Bug 19620] At first start of X, secondary display doesn't come up properly .

In reply to a message not in the archive

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

--- Comment #9 from Stuart Bennett <sb476-KWPb1pKIrIJaa/[email protected]> 2009-01-19 11:01:47 PST --- Try running these register writes, all together in a script and see if it fixes
anything (in the same mode you made the dumps - I assume vesafb enabled?)

./radeontool regset C1:00 0xa7
./radeontool regset C1:01 0x7f
./radeontool regset C1:02 0x7f
./radeontool regset C1:03 0x8b
./radeontool regset C1:04 0x88
./radeontool regset C1:05 0x95
./radeontool regset C1:06 0x27
./radeontool regset C1:07 0xf5

If that doesn't produce anything, it might be interesting to see the reg dumps for the vesafb disabled case.

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.
#11 lore raw

[Bug 19620] At first start of X, secondary display doesn't come up properly .

In reply to a message not in the archive

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

--- Comment #10 from Mjules <[email protected]> 2009-01-19 11:19:14 PST --- Dumps were made with vga=0 (but vesafb has been compiled inside the kernel by
my distro)

Writing the registers seems to solve the problem :) the screen display fine after that.

thx

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.
#12 lore raw

[Bug 19620] At first start of X, secondary display doesn't come up properly .

In reply to a message not in the archive

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

--- Comment #11 from Stuart Bennett <sb476-KWPb1pKIrIJaa/[email protected]> 2009-01-19 11:39:34 PST --- Created an attachment (id=22101)
--> (http://bugs.freedesktop.org/attachment.cgi?id=22101)
debug patch

Hm, weird :) Please apply this patch and attach an Xorg log showing: starting (broken)->switch to vt->switch to X (working)

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.
#13 lore raw

[Bug 19620] At first start of X, secondary display doesn't come up properly .

In reply to a message not in the archive

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

--- Comment #12 from Mjules <[email protected]> 2009-01-19 12:24:13 PST --- Created an attachment (id=22102)
--> (http://bugs.freedesktop.org/attachment.cgi?id=22102)
Xorg Log with debug patch applied and VT switch

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.
#14 lore raw

[Bug 19620] At first start of X, secondary display doesn't come up properly .

In reply to a message not in the archive

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

--- Comment #13 from Mjules <[email protected]> 2009-01-19 12:25:05 PST --- Log attached

Could the weirdness you see come from grub ? my distro is using a "graphic" grub.

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.
#15 lore raw

[Bug 19620] At first start of X, secondary display doesn't come up properly .

In reply to a message not in the archive

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

--- Comment #14 from Stuart Bennett <sb476-KWPb1pKIrIJaa/[email protected]> 2009-01-19 13:12:56 PST --- Created an attachment (id=22104)
--> (http://bugs.freedesktop.org/attachment.cgi?id=22104)
test patch

please test if this fixes things

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.
#16 lore raw

[Bug 19620] At first start of X, secondary display doesn't come up properly .

In reply to a message not in the archive

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

--- Comment #15 from Mjules <[email protected]> 2009-01-19 13:43:18 PST --- It works with your test patch applied :)

thx

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.
#17 lore raw

[Bug 19620] At first start of X, secondary display doesn't come up properly .

In reply to a message not in the archive

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

--- Comment #16 from Stuart Bennett <sb476-KWPb1pKIrIJaa/[email protected]> 2009-01-19 15:47:40 PST --- Created an attachment (id=22108)
--> (http://bugs.freedesktop.org/attachment.cgi?id=22108)
(hopefully) final patch

Ok, this is what I intend to push, provided it works :) Can you verify it still fixes it for you (and doesn't break anything else)?

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.
#18 lore raw

[Bug 19620] At first start of X, secondary display doesn't come up properly .

In reply to a message not in the archive

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

--- Comment #17 from Mjules <[email protected]> 2009-01-20 13:00:04 PST --- Your last patch fixes the bug :), it doesn't seems to cause other problems :)

thanks a lot.

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.
#19 lore raw

[Bug 19620] At first start of X, secondary display doesn't come up properly .

In reply to a message not in the archive

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

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

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

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #18 from Stuart Bennett <sb476-KWPb1pKIrIJaa/[email protected]> 2009-01-20 17:46:02 PST --- Pushed.

http://cgit.freedesktop.org/nouveau/xf86-video-nouveau/commit/?id=3e971f63b6b6859acc19a52a4003bb6041cc5374

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.