From: "Antonino A. Daplas" <adaplas@hotpop.com>
To: linux-fbdev-devel@lists.sourceforge.net,
Andrew Walrond <andrew@walrond.org>
Subject: Re: Rivafb won't work with DVI connector
Date: Tue, 23 Nov 2004 09:50:20 +0800 [thread overview]
Message-ID: <200411230950.24311.adaplas@hotpop.com> (raw)
In-Reply-To: <200411222347.17562.andrew@walrond.org>
[-- Attachment #1: Type: text/plain, Size: 2575 bytes --]
On Tuesday 23 November 2004 07:47, Andrew Walrond wrote:
> On Monday 22 Nov 2004 22:13, Antonino A. Daplas wrote:
> > Try this patch (reverse the previous one first)
> >
> > - update code against the latest CVS version of Xorg
> > - added VESA blanking support
> > - added backlight support for powermacs
> > - added hardware cursor support using option 'hwcur'.
> > - clean-up of i2c code
> >
> > Let me know, again, of the results. Thanks.
>
> Ok; getting closer. In all cases booting with DVI connection:
>
> Booting with no module params gives an almost working 80x30 console, but
> shifted/wrapped half a screen to the right as with the previous version.
>
> nvidiafb: nVidia device/chipset 10DE0250
> nvidiafb: nVidia Corporation NV25 [GeForce4 Ti 4600]
> nvidiafb: CRTC0 not found
> nvidiafb: CRTC1 not found
> nvidiafb: CRTC 1 is currently programmed for DFP
> nvidiafb: Using DFP on CRTC 1
> Panel size is 1024 x 768
> nvidiafb: MTRR set to ON
> Console: switching to colour frame buffer device 80x30
> nvidiafb: PCI nVidia NV25 framebuffer (128MB @ 0xE0000000)
>
> Note the erroneous panel detection; this is a 1600x1200 tft lcd. The panel
> is detected as 1024x768 in every following case.
The panel size is programmed by the BIOS, not sure what what we can do
about that. So even if your display supports 1600x1200, you're still limited
to 1024x768.
Perhaps, if we can combine the vesafb code so the BIOS forces it to
1600x1200, then have nvidiafb detect and use the vesa mode, we can
get a resolution higher than 1024x768. I'll play around with this, and I'll
give you a test patch later.
>
> Now, with params. If I omit the @60 refresh rate, all I get is a screen of
> dots; I can make out that there is are a couple of penguin smeared across
> the top, but thats about all. So all the following have @60 which produces
> a better display.
>
> video=nvidia:1024x768-16@60
It seems that EDID block is not detected whether digital or analog. I think
I missed a Kconfig changeset. Should be fixed with the included patch.
Select y to FB_NVIDIA_I2C.
> - Panel is misdetected as 1024x768. Refresh rates are also likely
> misdetected since I only get gibberish unless I add @60 (although monitor
> doesn't report "out of range")
>
> - Displays <= 1024x768 have this shifted/wrapped to the right problem.
Most probably the 1024x768@60 entry in the mode database is wreaking
havoc to the timings. Let's use the VESA standard 1024x768-60 timing.
Try the attached patch. It's an incremental patch so apply it on top of
nvidiafb2.diff
Tony
[-- Attachment #2: nvidiafb2-inc.diff --]
[-- Type: text/x-diff, Size: 1929 bytes --]
diff -Nru a/drivers/video/Kconfig b/drivers/video/Kconfig
--- a/drivers/video/Kconfig 2004-11-21 11:48:41 +08:00
+++ b/drivers/video/Kconfig 2004-11-23 08:17:32 +08:00
@@ -444,11 +444,32 @@
<http://www.erd.epson.com/vdc/html/products.htm>.
config FB_NVIDIA
- tristate "nVidia Support"
- depends on FB && PCI
- select FB_MODE_HELPERS
+ tristate "nVidia Framebuffer Support"
+ depends on FB && PCI
+ select I2C_ALGOBIT if FB_NVIDIA_I2C
+ select I2C if FB_NVIDIA_I2C
+ select FB_MODE_HELPERS
+ help
+ This driver supports graphics boards with the nVidia chips, TNT
+ and newer. For very old chipsets, such as the RIVA128, then use
+ the the rivafb.
+ Say Y if you have such a graphics board.
+
+ To compile this driver as a module, choose M here: the
+ module will be called nvidiafb.
+ none yet
+
+config FB_NVIDIA_I2C
+ bool "Enable DDC Support"
+ depends on FB_NVIDIA
help
- none yet
+ This enables I2C support for nVidia Chipsets. This is used
+ only for getting EDID information from the attached display
+ allowing for robust video mode handling and switching.
+
+ Because fbdev-2.6 requires that drivers must be able to
+ independently validate video mode parameters, you should say Y
+ here.
config FB_RIVA
tristate "nVidia Riva support"
diff -Nru a/drivers/video/modedb.c b/drivers/video/modedb.c
--- a/drivers/video/modedb.c 2004-11-17 18:15:20 +08:00
+++ b/drivers/video/modedb.c 2004-11-23 09:42:18 +08:00
@@ -86,8 +86,8 @@
FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED
}, {
/* 1024x768 @ 60 Hz, 48.4 kHz hsync */
- NULL, 60, 1024, 768, 15384, 168, 8, 29, 3, 144, 6,
- 0, FB_VMODE_NONINTERLACED
+ NULL, 60, 1024, 768, 15384, 160, 24, 29, 3, 136, 6,
+ 0, FB_VMODE_NONINTERLACED, FB_MODE_IS_VESA
}, {
/* 640x480 @ 100 Hz, 53.01 kHz hsync */
NULL, 100, 640, 480, 21834, 96, 32, 36, 8, 96, 6,
next prev parent reply other threads:[~2004-11-23 1:51 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-19 11:37 Rivafb won't work with DVI connector Andrew Walrond
2004-11-19 22:08 ` Antonino A. Daplas
2004-11-20 15:52 ` Andrew Walrond
2004-11-22 0:11 ` Antonino A. Daplas
2004-11-22 9:23 ` Andrew Walrond
2004-11-22 9:43 ` Andrew Walrond
2004-11-22 22:13 ` Antonino A. Daplas
2004-11-22 23:47 ` Andrew Walrond
2004-11-22 23:54 ` Andrew Walrond
2004-11-23 1:50 ` Antonino A. Daplas [this message]
2004-11-23 12:32 ` Andrew Walrond
2004-11-23 14:28 ` Antonino A. Daplas
2004-11-23 15:09 ` Andrew Walrond
2004-11-23 15:18 ` Antonino A. Daplas
2004-11-23 16:08 ` Andrew Walrond
2004-11-23 17:07 ` Antonino A. Daplas
2004-11-23 18:01 ` Andrew Walrond
2004-11-23 18:26 ` Antonino A. Daplas
2004-11-23 19:00 ` Andrew Walrond
2004-11-23 19:07 ` Andrew Walrond
2004-11-23 19:23 ` Andrew Walrond
2004-11-23 19:59 ` Geert Uytterhoeven
2004-11-23 20:53 ` Andrew Walrond
2004-11-23 22:44 ` Antonino A. Daplas
2004-11-23 23:59 ` Andrew Walrond
2004-11-24 22:38 ` Andrew Walrond
2004-11-23 20:21 ` Chad Daelhousen
2004-11-24 23:01 ` Andrew Walrond
-- strict thread matches above, loose matches on Subject: below --
2004-11-25 0:07 Antonino A. Daplas
2004-11-25 15:27 ` Andrew Walrond
2004-11-25 21:16 ` Antonino A. Daplas
2004-11-26 14:09 ` Antonino A. Daplas
2004-11-27 12:40 ` Andrew Walrond
2004-11-27 18:29 ` Michel Dänzer
2004-11-27 22:35 ` Andrew Walrond
2004-11-27 22:43 ` Antonino A. Daplas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200411230950.24311.adaplas@hotpop.com \
--to=adaplas@hotpop.com \
--cc=andrew@walrond.org \
--cc=linux-fbdev-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).