[Patch]: Re: [workaround] console-switch screws colors
anthony tong
atong at uiuc.edu
Wed Jun 23 03:45:30 EST 1999
Brad Midgley (Tue, Jun 22, 1999 at 11:11:51AM -0600):
> i've noticed (at least) with a couple of machines that use ati graphics
> that switching away from and back to X screws up the colors (using xfb).
> fortunately, i left it that way long enough for the screensaver to kick in
> and realize it was fixed by the screensaver!
>
> so if you switch back to x and the colors are screwed, invoke the
> screensaver:
>
> xset s activate
>
> hopefully this is one of those things that will be fixed soon anyway.
This may help. I don't know if Tom built new rpms yet.
--- fbdev.c Thu Jun 17 01:41:44 1999
+++ /home/atong/fbdev.c Thu Jun 17 01:43:50 1999
@@ -1261,6 +1261,11 @@
}
if (!xf86Resetting) {
+#ifdef DIRECTCOLORHACK
+ if (fb_fix.visual == FB_VISUAL_DIRECTCOLOR)
+ fbdevSetLinearColormap(&fb_var);
+ else
+#endif
/* Update the colormap */
fbdevRestoreColors(pScreen);
}
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
More information about the Linuxppc-dev
mailing list