Re: Bug#40175: xserver-fbdev: X loses it's color mapping when switching back from VC with DIRECTCOLOR
On Fri, 25 Jun 1999, Branden Robinson wrote:
> On Fri, Jun 25, 1999 at 12:26:19PM -0000, Russell Coker wrote:
> > Geert Uytterhoeven <Geert.Uytterhoeven@cs.kuleuven.ac.be> says:
> > >There's a bug in XF68_FBDev that doesn't load the color palette after a VC
> > >switch when using a DIRECTCOLOR visual. Next rpm/deb will have the fix.
> >
> > Could you please produce a new version with this fix.
>
> I would, if I knew what the fix was.
>
> Geert, could you direct me to this patch? I'd be happy to include it
> in the next version of the Debian XFree86 packages.
Attached.
However, I'm still wondering whether this is the correct fix. It may be caused
by the introduction of a bug in the VC colormap code in the kernel: the VC
switching code is supposed to save/restore the palette on VC switch.
Greetings,
Geert
--
Geert Uytterhoeven Geert.Uytterhoeven@cs.kuleuven.ac.be
Wavelets, Linux/{m68k~Amiga,PPC~CHRP} http://www.cs.kuleuven.ac.be/~geert/
Department of Computer Science -- Katholieke Universiteit Leuven -- Belgium
From Geert.Uytterhoeven@cs.kuleuven.ac.be Fri Jun 25 15:01:09 1999
Date: Tue, 22 Jun 1999 20:40:39 +0200 (CEST)
From: Geert Uytterhoeven <Geert.Uytterhoeven@cs.kuleuven.ac.be>
To: Debian GNU/Linux PPC <debian-powerpc@lists.debian.org>
Subject: [Patch]: Re: [workaround] console-switch screws colors (fwd)
Resent-Date: 22 Jun 1999 18:51:29 -0000
Resent-From: debian-powerpc@lists.debian.org
Resent-cc: recipient list not shown: ;
I don't know when this got lost...
---------- Forwarded message ----------
Date: Tue, 22 Jun 1999 12:45:30 -0500
From: anthony tong <atong@uiuc.edu>
To: Brad Midgley <brad@pht.com>
Cc: linuxppc-users@lists.linuxppc.org, linuxppc-dev@lists.linuxppc.org
Subject: [Patch]: Re: [workaround] console-switch screws colors
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. ]]
--
To UNSUBSCRIBE, email to debian-powerpc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: