i am running a simple program that are provided with DirectFB source code
but i got some errors as follow. can anybody help me.
i used fedora core 5 and 6. and DirectFB version 1.0.0-rc4.
graphics card that installed intel on board graphics card(i810) and
cirrus logic card.
[EMAIL PROTECTED] ~]# /home/aashish/mplayer/test
Example of DirectFB:-
=======================| DirectFB 1.0.0-rc4 |=======================
(c) 2001-2006 United Cultures of Earth - go for outer space!
(c) 2000-2004 Convergence (integrated media) GmbH
----------------------------------------------------------------
(*) DirectFB/Core: Single Application Core. (2007-03-01 08:25)
(*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 31255)...
(*) Direct/Thread: Running 'PS/2 Input' (INPUT, 31257)...
(*) DirectFB/Input: IMPS/2 Mouse 1.0 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 31258)...
(*) DirectFB/Input: AT Translated Set 2 keyboard (1) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 31259)...
(*) DirectFB/Input: PS/2 Logitech Mouse (2) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 31260)...
(*) DirectFB/Input: PC Speaker (3) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Keyboard Input' (INPUT, 31261)...
(*) DirectFB/Input: Keyboard 0.9 (directfb.org)
(*) DirectFB/Genefx: MMX detected and enabled
(*) DirectFB/Graphics: MMX Software Rasterizer 0.6 (directfb.org)
(!) DirectFB/FBDev: No supported modes found in /etc/fb.modes and current
mode not supported!
(!) DirectFB/FBDev: Current mode's pixelformat: rgba 6/0, 6/0, 6/0, 0/0
(4bit)
(!) DirectFB/Core/layers: Failed to initialize layer 0!
--> Initialization error!
(!) DirectFB/Core: Could not initialize 'layers' core!
--> Initialization error!
src/test.c <35>:
(#) DirectFBError [DirectFBCreate (&dfb)]: Initialization error!
fbset -i give following solution
[EMAIL PROTECTED] ~]# fbset -i
mode "640x480-60"
# D: 25.176 MHz, H: 31.469 kHz, V: 59.942 Hz
geometry 640 480 640 480 4
timings 39721 48 16 33 10 96 2
rgba 6/0,6/0,6/0,0/0
endmode
Frame buffer device information:
Name : VGA16 VGA
Address : 0xa0000
Size : 65536
Type : VGA 16 colors in 4 planes
Visual : PSEUDOCOLOR
XPanStep : 8
YPanStep : 1
YWrapStep : 0
LineLength : 80
Accelerator : No
configuration of grub as follow
[EMAIL PROTECTED] ~]# cat /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.18-1.2798.fc6)
root (hd0,0)
vga=0x317
video=i810fb:vram=8,xres:1024,yres=768,bpp:24,hsync1:30,hsync2:49,vsync1:40,vsync2:70,accel,mtrr
kernel /vmlinuz-2.6.18-1.2798.fc6 ro root=/dev/VolGroup00/LogVol00
rhgb quiet
initrd /initrd-2.6.18-1.2798.fc6.img
to set vga16fb graphics driver i used following command:-
[EMAIL PROTECTED] ~]# modprobe vga16fb
result of lsmod command:-
[EMAIL PROTECTED] ~]# lsmod
Module Size Used by
vga16fb 16337 1
i810fb 38909 0
vgastate 12097 2 vga16fb,i810fb
intelfb 36461 0
autofs4 25413 2
hidp 24129 2
rfcomm 46041 0
l2cap 31681 10 hidp,rfcomm
bluetooth 58917 5 hidp,rfcomm,l2cap
sunrpc 158333 1
dm_multipath 22601 0
video 21061 0
sbs 20225 0
i2c_ec 9281 1 sbs
button 10961 0
battery 14405 0
asus_acpi 20697 0
ac 9541 0
ipv6 267489 20
parport_pc 31205 1
lp 17033 0
parport 40841 2 parport_pc,lp
floppy 61284 0
snd_intel8x0 36445 0
snd_ac97_codec 95073 1 snd_intel8x0
snd_ac97_bus 6593 1 snd_ac97_codec
snd_seq_dummy 8133 0
snd_seq_oss 37185 0
snd_seq_midi_event 11841 1 snd_seq_oss
snd_seq 57137 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device 12621 3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss 46561 0
snd_mixer_oss 20545 1 snd_pcm_oss
snd_pcm 80325 3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer 27077 2 snd_seq,snd_pcm
snd 57029 9
snd_intel8x0,snd_ac97_codec,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore 14113 1 snd
snd_page_alloc 14281 2 snd_intel8x0,snd_pcm
8139too 31169 0
e100 40393 0
i2c_i810 9797 0
i2c_i801 11853 0
i2c_algo_bit 12873 2 i810fb,i2c_i810
via_rhine 29901 0
i2c_core 25537 4 i810fb,i2c_ec,i2c_i801,i2c_algo_bit
mii 9665 3 8139too,e100,via_rhine
serio_raw 11205 0
pcspkr 7361 0
dm_snapshot 21357 0
dm_zero 6337 0
dm_mirror 32913 0
dm_mod 61273 13 dm_multipath,dm_snapshot,dm_zero,dm_mirror
ext3 135369 2
jbd 63209 1 ext3
ehci_hcd 35533 0
ohci_hcd 25181 0
uhci_hcd 27725 0
result of lspci:-
[EMAIL PROTECTED] ~]# lspci
00:00.0 Host bridge: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE
DRAM Controller/Host-Hub Interface (rev 01)
00:02.0 VGA compatible controller: Intel Corporation
82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM
(ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM
(ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM
(ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M)
USB2 EHCI Controller (rev 01)00:1e.0 PCI bridge: Intel Corporation
82801 PCI Bridge (rev 81)
00:1f.0 ISA bridge: Intel Corporation 82801DB/DBL (ICH4/ICH4-L) LPC
Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801DB (ICH4) IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M)
SMBus Controller (rev 01)
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM
(ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 01)
02:08.0 Ethernet controller: Intel Corporation 82801DB PRO/100 VE
(LOM) Ethernet Controller (rev 81)
02:09.0 Ethernet controller: D-Link System Inc RTL8139 Ethernet (rev 10)
02:0a.0 VGA compatible controller: Cirrus Logic GD 5446
02:0c.0 Ethernet controller: VIA Technologies, Inc. VT86C100A [Rhine] (rev 06)
modes that set in /etc/fb.modes is:-
[EMAIL PROTECTED] ~]# cat /etc/fb.modes
#
# DirectFB video modes, should be placed into "/etc"
#
mode "640x480 75Hz 16bit"
# D: 31.50 MHz, H: 37.500 kHz, V: 75.00 Hz
geometry 640 480 640 480 16
timings 31747 120 16 16 1 64 3
endmode
mode "720x576 50Hz 16bit"
geometry 720 576 720 576 16
timings 31208 144 40 32 10 128 3
endmode
mode "768x576 75Hz 16bit"
# D: 49.188 MHz, H: 46.580 kHz, V: 75.008 Hz
geometry 768 576 768 576 16
timings 20330 128 32 32 8 128 5
endmode
mode "800x600 75Hz 16bit"
# D: 49.50 MHz, H: 46.875 kHz, V: 75.00 Hz
geometry 800 600 800 600 16
timings 20203 160 16 21 1 80 3
hsync high
vsync high
endmode
mode "1024x768 72Hz 16bit"
# D: 75.00 MHz, H: 58.230 kHz, V: 72.245 Hz
geometry 1024 768 1024 768 16
timings 13334 104 24 29 3 136 6
endmode
mode "1280x1024-75"
# D: 134.880 MHz, H: 79.905 kHz, V: 74.958 Hz
geometry 1280 1024 1280 3264 16
timings 7414 232 64 38 1 112 3
hsync high
vsync high
endmode
mode "1280x1024 60Hz 16bit"
# D: 108.00 MHz, H: 63.981 kHz, V: 60.02 Hz
geometry 1280 1024 1280 1024 16
timings 9260 248 48 38 1 112 3
hsync high
vsync high
endmode
mode "1600x1200 60Hz 16bit"
# D: 156.00 MHz, H: 76.200 kHz, V: 60.00 Hz
geometry 1600 1200 1600 1200 16
timings 6411 256 32 52 10 160 8
endmode
mode "640x400 93Hz 16bit"
geometry 640 400 640 400 16
timings 28272 48 32 17 22 128 12
endmode
mode "400x300 100Hz 16bit"
geometry 400 300 400 300 16
timings 31747 40 16 16 1 40 3
double true
endmode
mode "320x240 85Hz 16bit"
geometry 320 240 320 240 16
timings 51383 32 32 20 4 48 1
double true
endmode
mode "320x200 85Hz 16bit"
geometry 320 200 320 200 16
timings 60440 32 32 20 4 48 1
double true
endmode
[EMAIL PROTECTED] ~]# ls /dev/fb*
/dev/fb /dev/fb0 /dev/fb1
result of fbset -fb /dev/fb1:-
[EMAIL PROTECTED] ~]# fbset -fb /dev/fb1
mode "640x480-60"
# D: 25.000 MHz, H: 31.250 kHz, V: 59.637 Hz
geometry 640 480 640 480 8
timings 40000 48 16 32 8 96 4
hsync high
vsync high
rgba 8/0,8/0,8/0,0/0
endmode
configuration of X11 server:-
[EMAIL PROTECTED] ~]# cat /etc/X11//xorg.conf
# Xorg configuration created by system-config-display
Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section "Device"
Identifier "Videocard0"
Driver "cirrus"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
--
Aashish Bhanawat
CHOIS (Connecting mind.......)
B'glore
--
JOY
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users