# Re: monochrome framebuffer driver on EDB9307

- List: linux-fbdev
- 1 message, 1 author
- Page: https://ratatoskr.run/linux-fbdev/2006/08/13456506/t

## Re: monochrome framebuffer driver on EDB9307

- From: Antonino A. Daplas \<adaplas@gmail.com\>
- Date: 2006-08-02 12:30:31 
- Message: https://ratatoskr.run/linux-fbdev/2006/08/13456506.md

```text
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
> 
> Thank you for your reply.
> I set visual to FB_VISUAL_MONO01, and bits_per_pixel is 4.
> However, I don't know how to set the PIXELMODE register and the pallette.
> Any suggestion?

You have to ask someone who has docs for that chipset.

Tony

```
