* nvidiafb, monitor A & B and CRTC 0 & 1
@ 2007-03-25 13:01 Petr Vandrovec
2007-03-31 11:51 ` Antonino A. Daplas
0 siblings, 1 reply; 3+ messages in thread
From: Petr Vandrovec @ 2007-03-25 13:01 UTC (permalink / raw)
To: adaplas; +Cc: linux-fbdev-devel
[-- Attachment #1: Type: text/plain, Size: 3636 bytes --]
Hello,
how much are you sure that monitor A i2c should use ddc_base 0x3E,
and monitor B base 0x36 ? Yesterday I connected TV (using HDMI cable)
to my box, and ... it came up in 720x480 resolution, and fbset allowed
me to go only up to 1920x540. Which was quite surprising as when
nvidiafb gets loaded second output stays in whatever mode it was before
(720x400, text), displaying garbage, and only primary output does something.
After I added some debugging printks I've found that code became a bit
confused because it believed that primary monitor is 1920x540, but later
it found in CRTC0's registers that panel size is 1920x1200 (Windows also
agree that 1920x1200 is primary monitor, and 1920x1080i secondary one).
When I applied attached patch then my monitor became as happy as it was
before I connected HDMI cable to secondary output.
Thanks,
Petr
[just in case]
Signed-off-by: Petr Vandrovec <vandrove@vc.cvut.cz>
Before patch:
ACPI: PCI Interrupt Link [APC8] enabled at IRQ 16
ACPI: PCI Interrupt 0000:02:00.0[A] -> Link [APC8] -> GSI 16 (level,
low) -> IRQ 16
nvidiafb: Device ID: 10de0295
nvidiafb: CRTC0 analog not found
nvidiafb: CRTC1 analog not found
edid: 1920 x 540, 13468
nvidiafb: EDID found from BUS1
edid: 1920 x 1200, 6493
nvidiafb: EDID found from BUS2
nvidiafb: CRTC 0 is currently programmed for DFP
nvidiafb: Using DFP on CRTC 0
nvidiafb: Panel size is 1920 x 1200
nvidiafb: Panel is TMDS
nvidiafb: MTRR set to ON
nvidiafb: Flat panel dithering disabled
Console: switching to colour frame buffer device 90x30
nvidiafb: PCI nVidia NV29 framebuffer (64MB @ 0xE0000000)
After patch:
ACPI: PCI Interrupt Link [APC8] enabled at IRQ 16
ACPI: PCI Interrupt 0000:02:00.0[A] -> Link [APC8] -> GSI 16 (level,
low) -> IRQ 16
nvidiafb: Device ID: 10de0295
nvidiafb: CRTC0 analog not found
nvidiafb: CRTC1 analog not found
edid: 1920 x 1200, 6493
nvidiafb: EDID found from BUS1
edid: 1920 x 540, 13468
nvidiafb: EDID found from BUS2
nvidiafb: CRTC 0 is currently programmed for DFP
nvidiafb: Using DFP on CRTC 0
nvidiafb: Panel size is 1920 x 1200
nvidiafb: Panel is TMDS
nvidiafb: MTRR set to ON
nvidiafb: Flat panel dithering disabled
Console: switching to colour frame buffer device 240x75
nvidiafb: PCI nVidia NV29 framebuffer (64MB @ 0xE0000000)
Monitor:
# EDID version 1 revision 3
Section "Monitor"
# Block type: 2:0 3:fc
Identifier "FPD2485W"
VendorName "GWY"
ModelName "FPD2485W"
# Block type: 2:0 3:fc
# Block type: 2:0 3:fd
HorizSync 30-83
VertRefresh 56-76
# Max dot clock (video bandwidth) 160 MHz
# Block type: 2:0 3:ff
# DPMS capabilities: Active off:yes Suspend:no Standby:no
Mode "1920x1200" # vfreq 59.950Hz, hfreq 74.038kHz
DotClock 154.000000
HTimings 1920 1968 2000 2080
VTimings 1200 1203 1209 1235
Flags "-HSync" "+VSync"
EndMode
# Block type: 2:0 3:fc
# Block type: 2:0 3:fd
# Block type: 2:0 3:ff
EndSection
TV:
# EDID version 1 revision 3
Section "Monitor"
# Block type: 2:0 3:fc
Identifier "LT-40FN97"
VendorName "JVC"
ModelName "LT-40FN97"
# Block type: 2:0 3:fc
# Block type: 2:0 3:fd
HorizSync 15-46
VertRefresh 59-61
# Max dot clock (video bandwidth) 80 MHz
# DPMS capabilities: Active off:yes Suspend:no Standby:no
Mode "1920x540" # vfreq 60.053Hz, hfreq 33.750kHz
DotClock 74.250000
HTimings 1920 2008 2052 2200
VTimings 540 542 547 562
Flags "Interlace" "+HSync" "+VSync"
EndMode
Mode "720x480" # vfreq 59.940Hz, hfreq 31.469kHz
DotClock 27.000000
HTimings 720 736 798 858
VTimings 480 489 495 525
Flags "-HSync" "-VSync"
EndMode
# Block type: 2:0 3:fc
# Block type: 2:0 3:fd
EndSection
[-- Attachment #2: nvidia-swap-mona-monb.diff --]
[-- Type: text/x-patch, Size: 654 bytes --]
diff -uN -r linux-2.6.21-rc4-f33b.dist/drivers/video/nvidia/nv_i2c.c linux-2.6.21-rc4-f33b/drivers/video/nvidia/nv_i2c.c
--- linux-2.6.21-rc4-f33b.dist/drivers/video/nvidia/nv_i2c.c 2007-03-24 03:46:16.000000000 -0700
+++ linux-2.6.21-rc4-f33b/drivers/video/nvidia/nv_i2c.c 2007-03-25 04:52:09.000000000 -0700
@@ -133,10 +133,10 @@
par->chan[1].par = par;
par->chan[2].par = par;
- par->chan[0].ddc_base = 0x3e;
+ par->chan[0].ddc_base = 0x36;
nvidia_setup_i2c_bus(&par->chan[0], "nvidia #0");
- par->chan[1].ddc_base = 0x36;
+ par->chan[1].ddc_base = 0x3e;
nvidia_setup_i2c_bus(&par->chan[1], "nvidia #1");
par->chan[2].ddc_base = 0x50;
[-- Attachment #3: Type: text/plain, Size: 345 bytes --]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
[-- Attachment #4: Type: text/plain, Size: 182 bytes --]
_______________________________________________
Linux-fbdev-devel mailing list
Linux-fbdev-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: nvidiafb, monitor A & B and CRTC 0 & 1
2007-03-25 13:01 nvidiafb, monitor A & B and CRTC 0 & 1 Petr Vandrovec
@ 2007-03-31 11:51 ` Antonino A. Daplas
2007-04-01 0:48 ` Petr Vandrovec
0 siblings, 1 reply; 3+ messages in thread
From: Antonino A. Daplas @ 2007-03-31 11:51 UTC (permalink / raw)
To: Petr Vandrovec; +Cc: linux-fbdev-devel
On Sun, 2007-03-25 at 06:01 -0700, Petr Vandrovec wrote:
> Hello,
> how much are you sure that monitor A i2c should use ddc_base 0x3E,
> and monitor B base 0x36 ?
This was chosen arbitrarily, hoping that the code will sort out which is
which. If reversing the ports worked for you, I will not disagree with
the patch.
Thanks.
Tony
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: nvidiafb, monitor A & B and CRTC 0 & 1
2007-03-31 11:51 ` Antonino A. Daplas
@ 2007-04-01 0:48 ` Petr Vandrovec
0 siblings, 0 replies; 3+ messages in thread
From: Petr Vandrovec @ 2007-04-01 0:48 UTC (permalink / raw)
To: Antonino A. Daplas; +Cc: linux-fbdev-devel
Antonino A. Daplas wrote:
> On Sun, 2007-03-25 at 06:01 -0700, Petr Vandrovec wrote:
>> Hello,
>> how much are you sure that monitor A i2c should use ddc_base 0x3E,
>> and monitor B base 0x36 ?
>
> This was chosen arbitrarily, hoping that the code will sort out which is
> which. If reversing the ports worked for you, I will not disagree with
> the patch.
Yes. Without patch two analogs work fine (well, in that case nvidiafb
does not care about maximum resolution), as well as analog+digital or
digital+analog. Only configuration which does not work correctly are
two digital monitors. With patch all four configurations work correctly
on my hardware. I do not have access to any other dual-dvi nvidia card,
so I cannot tell whether BFGTech screwed up or whether there is some
other problem. Windows detect which display is first and which second
correctly...
Petr
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-04-01 0:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-25 13:01 nvidiafb, monitor A & B and CRTC 0 & 1 Petr Vandrovec
2007-03-31 11:51 ` Antonino A. Daplas
2007-04-01 0:48 ` Petr Vandrovec
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).