Here is my /etc/directfbrc:
wm=sawman
pixelformat=ARGB
desktop-buffer-mode=backsystem
And /etc/fb.modes
mode "720x480-60i"
# D: 13.514 MHz, H: 15.750 kHz, V: 60.000 Hz
geometry 720 480 720 480 32
timings 74000 58 16 34 5 64 6
laced true
endmode
mode "720x480-60i"
# D: 13.514 MHz, H: 15.750 kHz, V: 60.000 Hz
geometry 720 480 720 480 16
timings 74000 58 16 34 5 64 6
laced true
endmode
After I initialize my framebuffer driver, I run fbset and get the following
lines:
mode "720x480-60"
# D: 13.500 MHz, H: 15.734 kHz, V: 59.940 Hz
geometry 720 480 720 480 32
timings 74074 55 19 26 13 64 6
hsync high
vsync high
laced true
rgba 8/16,8/8,8/0,8/24
endmode
And I run the dfb tools -- dfblayer and I get the following lines:
FBDEV Primary Layer
Width 720
Height 480
Format ARGB
Buffermode BACKSYSTEM
But I can't show any image on the screen. And somebody know why?
P.S. The reason why I force my buffermode to be BACKSYSTEM is that directfb
will detect my framebuffer to be BACKVIDEO mode.
And the BACKVIDEO mode will double my vyres in system/fbdev/fbdev.c
Then the foolowing codes will return "invalid argument"
error message and set pixelformat to default value(ex. RGB16)
if (shared->fix.smem_len < (var.yres_virtual * var.xres_virtual *
var.bits_per_pixel >> 3) || (var.yres_virtual < vyres)) {
//....
return DFB_INVARG;
}
--
Chien Kuo-Feng
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev