Re: framebuffer trouble with AGP MGA G450 and PCI MGA 2064W videocards.

From: Helge Hafting
Date: Sat Jun 05 2004 - 17:36:58 EST


On Sat, Jun 05, 2004 at 11:12:51PM +0400, Mikhail Kshevetskiy wrote:
> i have two matrox videocard. The primary is dualhead AGP MGA G450 and the
> secondary is PCI MGA 2064W. I have a 2.6 kernel compiled with options
>
> CONFIG_FB_MATROX=y
> CONFIG_FB_MATROX_MILLENIUM=y
> CONFIG_FB_MATROX_G450=y
> CONFIG_FB_MATROX_G100=y
> CONFIG_FB_MATROX_MULTIHEAD=y
>
> CONFIG_VGA_CONSOLE=y
> CONFIG_DUMMY_CONSOLE=y
> CONFIG_FRAMEBUFFER_CONSOLE=y
> CONFIG_PCI_CONSOLE=y
>
> In BIOS I select AGP card as primary, but framebuffer initialise PCI card
> first. So fb0 point to PCI card, fb1 and fb2 point to AGP card. As a
> result framebuffer console working on another monitor. How can I link fb0
> and fb1 with AGP card and fb2 with PCI card ?
>
> Please CC me, as i am not subscribed to the list
>
Several solutions:

1. Don't do it.
Is it really a problem? How about using fb1 when you want to use
the AGP card?


2. Use modules, and load the AGP module first. It will then
grap fb0. Then load the pci module, which becomes fb1



3. Use the flexibility that /dev offers. fb0 don't have to
be the first framebuffer, in other words:

cd /dev
mv fb0 temp
mv fb1 fb0
mv temp fb1

>From now on, the name "fb0" actually refer to the second framebuffer.
any program that wants "fb0" get the AGP card, even if it is
initialized last.

4. Or use udev to achieve the same as in (3).

Helge Hafting
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/