Thread (1 message) 1 message, 1 author, 2006-08-02

Re: monochrome framebuffer driver on EDB9307

From: "Antonino A. Daplas" <adaplas@gmail.com>
Date: 2006-08-02 05:22:52

gaof fei wrote:
Dear List,

I'm with linux-2.6.8 on EDB9307(ep93xx).
At the moment, the framebuffer driver(ep93xxfb.c) doesn't support
monochrome mode.
However, I would like to support the mode.
What can I do with ep93xxfb.c or anything else?
In fbdev parlance, monochrome means black and white and the
number of bits per pixel does not matter.

(It's possible to have 1-bit but the visual is pseudocolor).

Basically, set fix->visual = FB_VISUAL_MONO01 (or MONO10).

Then set var->bits_per_pixel and var->{green|red|blue} to the appropriate
numbers.  Assuming 1-bit monochrome:

var->bits_per_pixel = var->green.length = var->red.length = var->blue.length = 1;
var->green.offset = var->red.offset = var->blue.offset = 0;

Tony

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help