Problem while starting Xfbdev

cyrus lien cyruslien at gmail.com
Tue Aug 14 03:23:23 PDT 2007


On 8/14/07, Prashant J Zaveri <pjz1607 at gmail.com> wrote:
> We want to run Xfbdev on a ARM-Linux based embedded system. Our environment
> is:
>
> Board: ARM9 core, Freescale i.MX21 processor based board
> Kernel: 2.6.22 vanilla with a few board specific patches
> LCD: 240x320, 3.5" from Toppoly TD035STEB1
> LCD Interface: 16-bit color
>
> Linux is running fine with framebuffer and is using LCD as console.
>
> I have cross-compiled Xfbdev and its dependencies successfully. Following
> command was then executed to start Xfbdev:
>
>        Xfbdev -screen 240x320x16 -dpi 113 -rgba rgb
>
> Xfbdev seems to start and prints the following:
>
>        Warning: mode not found, using default
>
> At this point the LCD starts flickering and we see horizontal lines running
> from
> bottom to up on the LCD.
>
> i get following result when using fbset
>
> mode "240x320-131"
>           # D: 16.000 MHz, H: 42.440 KHz, V:130.989 Hz.
>           geometry 240 320 240 320 16
>           timings 62500 18 57 0 3 62 1
>           accel false
>           rgba 4/8, 4/4, 4/0, 0/0
>
> What is the problem here? Are there any important arguments that I
> am missing?
>
> Is there any debug mode for Xfbdev where in it prints or logs more
> messages while
> starting?
>
> Prashant
> _______________________________________________
> xorg mailing list
> xorg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xorg
>

The mode 240x320 was not supported by kdrive, you have to add this
mode by yourself.

in /xserver/hw/kdrive/src/kmode.c

It may look like this...

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "kdrive.h"

const KdMonitorTiming  kdMonitorTimings[] = {
   /*  H       V       Hz      KHz */
               /*  FP      BP      BLANK   POLARITY */

   {   240,    320,    20104,  6735,                          <---Add
                   17,     12,     32,     KdSyncNegative,    <---Add
                   1,      11,     14,     KdSyncNegative,    <---Add
   },

   /* IPAQ modeline:
    *
    * Modeline "320x240"      5.7222 320 337 340 352   240 241 244 254"
    */
   {   320,    240,    64,     16256,
                   17,     12,     32,     KdSyncNegative,
                   1,      11,     14,     KdSyncNegative,
   },

   /* Other VESA modes */
   {   640,    350,    85,     31500,                      /* VESA */
                   32,     96,     192,    KdSyncPositive, /* 26.413 */
                   32,     60,     95,     KdSyncNegative, /* 59.354 */
   },
                         .
                         .
                         .



More information about the xorg mailing list