XFree 4.0 dual monitor on AGP G4
Quoted 10 lines
Kostas Gewrgiou wrote:
Unfortunately i don't think that it will work in this case,
the second r128 will never be able to pick the right device (/dev/fb1here) the BusID line is more or less ignored in the fbdev case so the second driver will open/dev/fb0which will result in a kernel crash.The only solutions for now (beyond fixing the code) is to use the unaccelerated fbdev driver for
/dev/fb1,
How should I set up the config to do that?
Quoted 4 lines
not using fbdev
in the r128 driver will also work but this will require a couple of changes in the r128 driver (info about what changes are needed were posted in this list a few months back)
So is there a patch? Or are u just referring to some discussion on the subject?
btw - I applied all the patches at entropy.crashing.org/~howath before compiling
thanks
- Taylor
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 4 lines · W. Taylor Holliday
Quoted 2 lines
The only solutions for now (beyond fixing the code) is to use the unaccelerated fbdev driver for
/dev/fb1,How should I set up the config to do that?
Section "Device"
Identifier "FBDev" Driver "fbdev" Option "fbdev" "/dev/fb1"
# This one may improve performance for some systems, try!
# Option "ShadowFB" "off"
# This option increases speed at the expense of RAM. Your choice
# Option "BackingStore"
EndSection
And use this device section for the second screen.
Michel
PS: I still think it should work with the r128 driver if it support the "fbdev" option...
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 3 lines · Michel Dδnzer
PS: I still think it should work with the r128 driver if it support the "fbdev" option...
Yes it would work, there is a problem with the approach taken by
fbdev/glint, the BusID info isn't used at all there for the choise of the device to be opened, without the fbdev option you always get /dev/fb0 which might not be what you want.
Here is a small patch (untested) that changes r128 to use the "fbdev" option instead of using BusID to get the fbdev device.
If the BusID and fbdev options don't match bad things will happen so be carefull there.
For people that don't have more than one r128 card the previous behaviour works better so don't use it...
Kostas
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 1 line · Kostas Gewrgiou
Here is a small patch (untested) that changes r128 to use the "fbdev"
It seems that i forgot my brain at home today, here is the patch for real
this time
Kostas
r128_driver.c-orij renamed from r128_driver.c +1 -2
@@ -1131,8 +1131,7 @@ /* check for linux framebuffer device */ if (!xf86LoadSubModule(pScrn, "fbdevhw")) return FALSE; xf86LoaderReqSymLists(fbdevHWSymbols, NULL); - if (!fbdevHWInit(pScrn,NULL,xf86FindOptionValue(info->pEnt->device->options,"fbdev"))) - return FALSE; + if (!fbdevHWInit(pScrn, info->PciInfo, NULL)) return FALSE; pScrn->SwitchMode = fbdevHWSwitchMode; pScrn->AdjustFrame = fbdevHWAdjustFrame; pScrn->EnterVT = R128EnterVTFBDev;
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 6 lines · Kostas Gewrgiou
Quoted 2 lines
PS: I still think it should work with the r128 driver if it support the "fbdev" option...
Yes it would work, there is a problem with the approach taken by
fbdev/glint, the BusID info isn't used at all there for the choise of the device to be opened,
Really? The code seems to do it IMHO.
Quoted 2 lines
without the fbdev option you always get
/dev/fb0which might not be what you want.
Almost certainly not (Ask Taylor ;)
Quoted 2 lines
Here is a small patch (untested) that changes r128 to use the "fbdev" option instead of using BusID to get the fbdev device.
The patch you included in the later mail is reversed, so you have to use the -R option to apply it.
Just a hint...
Michel
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/