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/