2002-11-11 12:59:35

by Paul Richards

[permalink] [raw]
Subject: [PATCH] 2.4.19 rivafb updates

This patch provides the ability to work with LCDs, bug fixes to cleanup code, Mac support, and support for more nvidia cards. The Mac code was added from a patch Ani Joshi sent me.

The core of the riva framebuffer driver lies in riva_hw.c, a file from the xfree86 source tree. The original riva_hw.c in 2.4.19 is dated 2/2000, I have updated this file from xfree86's cvs and made the necessary changes to the other source and header files and so the flatpanel code will work properly. Since the riva_hw.c with flatpanel support from xfree86's cvs has not reached an official stable release, this would obviously make this patch experimental. However, the feedback from the xfree86 cvs driver has been good and I've carefully "ported" all the necessary changes over.

Its been tested with DirectFB demo programs called df_stress and df_window on a Pentium3/GeForce2MX with a regular CRT monitor and with a LCD flatpanel that works off a DVI connection. Unless your on a Mac or a notebook with a chipset that works specifically with LCDs like the GeForce2Go, you will most likely have to pass flatpanel=1 to the module when its loading because there is no x86 code yet that looks for DVI flatpanels. There looks to be some code for twinview but I have not had any success with this on my box with xfree86 cvs driver or this new riva framebuffer module. LCDs that use analog connections and hookup to the standard VGA card connections should not need to pass flatpanel=1, this is for digital connections only.

Below is a link to the patch. I have not pasted it because I'm not sure if it will be accepted in the 2.4 branch. I'm also worried that a few of the entries I added in include/linux/pci_ids.h might be to long for some versions of gcc.
i.e. #define PCI_DEVICE_ID_NVIDIA_GEFORCE4_420_GO_M32 0x0176
/* largest define I added, 40 characters long */

http://rain.prohosting.com/scftpd/rivafb-richards1.diff.gz

Paul F. Richards



__________________________________________________________
Outgrown your current e-mail service? Get 25MB Storage, POP3 Access,
Advanced Spam protection with LYCOS MAIL PLUS.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus


2002-12-03 14:58:54

by Rob Shortt

[permalink] [raw]
Subject: Re: [PATCH] 2.4.19 rivafb updates


> This patch provides the ability to work with LCDs, bug fixes to cleanup
> code, Mac support, and support for more nvidia cards. The Mac code was
> added from a patch Ani Joshi sent me.

> http://rain.prohosting.com/scftpd/rivafb-richards1.diff.gz


Hi Paul,

First of all, thanks for this patch! I came accross it while searching
the archives last night. I am using a GeForce4 MX440 and have applied
your patch, now rivafb successfully detects my card.

I am trying to use rivefb with my TV as the (only) display. I have
tried an 800x600 mode @ 60 Hz which from what I read is optimal for
TV's, also this is the mode I use when using X to display on my TV.
With rivafb in this mode (similar results for other modes) my display is
totally garbled with rectangles of colours going everywhere.

My question is does something need to change with regard to rivafb to
play nice with a television as the display or do I just need to keep
searching for a better modeline? I will be testing the patched rivafb
this evening with a regular monitor to make sure that works as well.

Once again, thanks! If anyone else on this list has any input that also
would be appreciated.

-Rob Shortt


2002-12-22 01:00:50

by Paul Richards

[permalink] [raw]
Subject: Re: [PATCH] 2.4.19 rivafb updates

On Tue, 03 Dec 2002 11:06:07
Rob Shortt wrote:
>Hi Paul,
>
>First of all, thanks for this patch! I came accross it while searching
>the archives last night. I am using a GeForce4 MX440 and have applied
>your patch, now rivafb successfully detects my card.
>
>I am trying to use rivefb with my TV as the (only) display. I have
>tried an 800x600 mode @ 60 Hz which from what I read is optimal for
>TV's, also this is the mode I use when using X to display on my TV.
>With rivafb in this mode (similar results for other modes) my display is
>totally garbled with rectangles of colours going everywhere.
>
>My question is does something need to change with regard to rivafb to
>play nice with a television as the display or do I just need to keep
>searching for a better modeline? I will be testing the patched rivafb
>this evening with a regular monitor to make sure that works as well.
>
>Once again, thanks! If anyone else on this list has any input that also
>would be appreciated.
>
>-Rob Shortt
>

Sorry for the wait (real life stuff), but unfortunately there is no tv-out support in this patch.

Regards,

Paul F. Richards


_____________________________________________________________
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus