Messages in this thread | | | Subject | Re: Frame buffer device thinkings... | Date | Thu, 17 Sep 1998 10:43:14 +0200 | From | Olaf Titz <> |
| |
> > get black-on-red instead of the desired red-on-white.) My problem is > > that the palette is reset to the default on every console switch. I'd > > like to have it persist across switches, but I don't know how > > impossible that would be. Comments? > ioctl FBIOPUTCMAP on /dev/fb0 (if you use a frame buffer device > console). More info in <linux/fb.h>.
That's exactly what I'm using, straight from the manual if there was one ;-) It does work, but the next console switch resets the colors to the default. I don't know if the cause is in the generic framebuffer or matroxfb. I've previously attempted to do the swap in the kernel at startup, i.e. at the end of fbcon_setup(), but that didn't work at all (that was 2.1.109 with vesafb then, and 2.1.121 with matroxfb now). It flashed the screen white and then immediately turned it black again. Apparently there is some (hardwired?) reset in the console switcher.
olaf
#text/plain [Program to swap black and white on frame buffer] /home/olaf/mysrc/fbcmapinvert.c
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |