[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#163807: xserver-xfree86: FBDev Green Screen and Invalid Color Depth



On Don, 2002-10-10 at 01:02, Matt Filizzi wrote:
> Attached are two XFree86 logs, one at 24 bit colordepth (when it tells 
> me of an invalid color depth) and the other at 16 (when everything is 
> green)

[...]

> (II) FBDEV(0): using default device
> (II) Running in FRAMEBUFFER Mode
> (EE) FBDEV(0): Driver can't support depth 24

The attached patch should help with this one. As a workaround, set the
bits per pixel explicitly, either with DefaultFbBpp in the screen
section or with the -fbbpp command line switch.


As I said, I suspect the problem with depth 16 is due to the framebuffer
device; have you tried depth 15?


-- 
Earthling Michel Dänzer (MrCooper)/ Debian GNU/Linux (powerpc) developer
XFree86 and DRI project member   /  CS student, Free Software enthusiast
Index: programs/Xserver/hw/xfree86/drivers/fbdev/fbdev.c
===================================================================
RCS file: /cvs/xc/programs/Xserver/hw/xfree86/drivers/fbdev/fbdev.c,v
retrieving revision 1.38
diff -p -u -r1.38 fbdev.c
--- fbdev.c	2001/10/28 03:33:29	1.38
+++ fbdev.c	2002/10/10 00:54:49
@@ -411,7 +408,8 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flag
 	if (!fbdevHWInit(pScrn,NULL,xf86FindOptionValue(fPtr->pEnt->device->options,"fbdev")))
 		return FALSE;
 	default_depth = fbdevHWGetDepth(pScrn,&fbbpp);
-	if (!xf86SetDepthBpp(pScrn, default_depth, default_depth, fbbpp,0))
+	if (!xf86SetDepthBpp(pScrn, default_depth, default_depth, fbbpp,
+			     (Support24bppFb | Support32bppFb) ))
 		return FALSE;
 	xf86PrintDepthBpp(pScrn);
 

Reply to: