All Forums
 Embedded Linux
 Linux FAQ
 How can I set the framebuffer to 16 bits per pixel
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

KnowledgeBase

296 Posts

Posted - 18 Jun 2002 :  09:51:14  Show Profile  Email Poster
This post is out of date. Please see the information posted at topic 736 for details about changing the display resolution.

The XScale frame buffer driver is at drivers/video/pxafb.c.



How can I set the framebuffer to 16 bits per pixel?

To change from 8 bits to 16 bits per pixel you must modify the framebuffer driver source code and rebuild the kernel. The framebuffer driver is in the file linux/drivers/video/sa1100fb.c. In 2.4.9 and above, you change the line for your system where the structure member bpp is set. For example, for a Bitsy board you would find the lines:

    #ifdef CONFIG_SA1100_ADSBITSY
    static struct sa1100fb_mach_info adsbitsy_info __initdata = {
    pixclock: 53500, bpp: 8,
    xres: 640, yres: 480,

change the 3rd line to:
    pixclock: 53500, bpp: 16,


Note that 16 bits per pixel requires a different cable to connect to the LCD panel. You may contact ADS for information on this cable.

------------------
ADS Knowledge Base


Edited by akidder 18-Nov-2003: Note that information is obsolete and point to current information.
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.03 seconds. Snitz Forums 2000