The origin of this patch is unknown, but it is believed to be from lkml.
------
Michael Cohen
OhDarn.net
--- linux.orig/drivers/video/riva/fbdev.c Wed Nov 14 14:52:20 2001
+++ linux/drivers/video/riva/fbdev.c Tue Nov 27 17:37:02 2001
@@ -1703,11 +1703,31 @@
{
unsigned char tmp, vesa;
struct rivafb_info *rinfo = (struct rivafb_info *)info;
+ struct fb_cmap cmap;
+ u16 black[16];
DPRINTK("ENTER\n");
assert(rinfo != NULL);
+ /*
+ * FIXME: X seems to have some issues with this particular hardware
+ * method of blanking.. so we use a software fallback for now, pending
+ * a real fix. (Someone with documentation might want to fix this
+ * properly).
+ */
+ if (blank) {
+ memset(black, 0, 16 * sizeof(u16));
+ cmap.red = black;
+ cmap.green = black;
+ cmap.blue = black;
+ cmap.transp = NULL;
+ cmap.start = 0;
+ cmap.len = sizeof(black) / sizeof(u16);
+ fb_set_cmap(&cmap, 1, riva_setcolreg, info);
+ }
+
+#if 0
tmp = SEQin(rinfo, 0x01) & ~0x20; /* screen on/off */
vesa = CRTCin(rinfo, 0x1a) & ~0xc0; /* sync on/off */
@@ -1730,6 +1750,7 @@
SEQout(rinfo, 0x01, tmp);
CRTCout(rinfo, 0x1a, vesa);
+#endif
DPRINTK("EXIT\n");
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/