Hi all,
I am trying to get directfb going on my matrox card, but had no success yet.
What happens is that dfbterm, dfbinfo and mplayer exit immediately after
start, but I get no obvious hint from the output (log attached).
Strange thing: dfbsummon works, but says:
(!) Fusion/Lock: invalid skirmish
(!) DirectFB/core/vt: Unable to disallocate VT!
--> Device or resource busy
after terminating.
I am running kernel 2.6.10-rc3 with following patches from CVS:
- fusion-full-linux-2.6.9.patch
- matroxfb-g400-clock-2.6.6.patch.bz2
- matroxfb-full-memory-linux-2.6.6.patch.bz2
To make the kernel compile I changed two lines in
drivers/char/fusion/entries.c (found in an email from Rob Shortt):
entry->last_lock.tv_sec = xtime.tv_sec;
entry->last_lock.tv_usec = xtime.tv_nsec / 1000;
DirectFB is from CVS also.
Relevant part of lsmod output:
i2c_dev 9792 0
matroxfb_crtc2 10176 0
i2c_matroxfb 5120 0
matroxfb_base 31460 3 matroxfb_crtc2,i2c_matroxfb
matroxfb_DAC1064 12800 2 matroxfb_crtc2,matroxfb_base
matroxfb_accel 4736 1 matroxfb_base
cfbcopyarea 3776 2 matroxfb_crtc2,matroxfb_accel
cfbimgblt 2880 2 matroxfb_crtc2,matroxfb_accel
cfbfillrect 3520 2 matroxfb_crtc2,matroxfb_accel
matroxfb_Ti3026 6464 1 matroxfb_base
matroxfb_g450 7168 1 matroxfb_base
g450_pll 6336 2 matroxfb_DAC1064,matroxfb_g450
matroxfb_misc 12388 8
matroxfb_crtc2,i2c_matroxfb,matroxfb_base,matroxfb_DAC1064,matroxfb_accel,matroxfb_Ti3026,matroxfb_g450,g450_pll
i2c_viapro 7500 0
fusion 32580 0
i2c_algo_bit 9864 1 i2c_matroxfb
i2c_core 22672 4 i2c_dev,i2c_viapro,tuner,i2c_algo_bit
The output of dfbinfo and dfbterm is attached. I can provide output with debug
enabled if wanted.
Thanks a lot for any hints,
Sven
(*) DirectFB/Config: Parsing config file '/etc/directfbrc'.
---------------------- DirectFB v0.9.21 ---------------------
(c) 2000-2002 convergence integrated media GmbH
(c) 2002-2004 convergence GmbH
-----------------------------------------------------------
(*) DirectFB/Core: Multi Application Core. (2004-12-12 22:04) [ DEBUG ]
(*) Direct/Memcpy: Using MMXEXT optimized memcpy()
(*) Direct/Thread: Running 'Fusion Dispatch' (MESSAGING, 7361)...
(*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 7376)...
(*) Direct/Thread: Running 'PS/2 Input' (INPUT, 7379)...
(*) DirectFB/Input: IMPS/2 Mouse 1.0 (Convergence GmbH)
(*) Direct/Thread: Running 'LiRC Input' (INPUT, 7380)...
(*) DirectFB/Input: LIRC Device 0.2 (convergence integrated media GmbH)
(*) Direct/Thread: Running 'Keyboard Input' (INPUT, 7381)...
(*) DirectFB/Input: Keyboard 0.9 (convergence integrated media GmbH)
(*) DirectFB/Genefx: MMX detected and enabled
(*) DirectFB/Graphics: Matrox G400 0.7 (convergence integrated media GmbH)
(!!!) *** UNIMPLEMENTED [crtc2SetEncoderConfig] *** [matrox_screen_crtc2.c:202]
(!!!) *** UNIMPLEMENTED [crtc2SetOutputConfig] *** [matrox_screen_crtc2.c:229]
(*) DirectFB/Core/WM: Default 0.2 (Convergence GmbH)
Screen (00) FBDev Primary Screen (primary screen)
Caps: VSYNC POWER_MANAGEMENT
Layer (00) FBDev Primary Layer (primary layer)
Type: GRAPHICS
Caps: SURFACE BRIGHTNESS CONTRAST SATURATION
Layer (01) Matrox Backend Scaler
Type: GRAPHICS VIDEO STILL_PICTURE
Caps: SURFACE SCREEN_LOCATION DEINTERLACING DST_COLORKEY BRIGHTNESS CONTRAST
Screen (01) Matrox CRTC2 Screen
Caps: VSYNC ENCODERS OUTPUTS
Encoder (0)
Type: TV
Caps: TV_STANDARDS
TV Standards: PAL NTSC
Output (0)
Caps: CONNECTORS SIGNAL_SEL CONNECTOR_SEL
Connectors: SCART YC CVBS
Signals: YC CVBS RGB
Layer (02) Matrox CRTC2 Layer
Type: GRAPHICS VIDEO STILL_PICTURE
Caps: SURFACE FLICKER_FILTERING BRIGHTNESS CONTRAST HUE SATURATION FIELD_PARITY
Layer (03) Matrox CRTC2 Sub-Picture
Type: GRAPHICS VIDEO STILL_PICTURE
Caps: SURFACE OPACITY ALPHACHANNEL
Input (01) IMPS/2 Mouse (primary mouse)
Type: MOUSE
Caps: AXES BUTTONS
Input (03) LIRC Device (primary remote control)
Type: REMOTE
Caps: KEYS
Input (00) Keyboard (primary keyboard)
Type: KEYBOARD
Caps: KEYS
(*) DirectFB/Config: Parsing config file '/etc/directfbrc'.
---------------------- DirectFB v0.9.21 ---------------------
(c) 2000-2002 convergence integrated media GmbH
(c) 2002-2004 convergence GmbH
-----------------------------------------------------------
(*) DirectFB/Core: Multi Application Core. (2004-12-12 22:04) [ DEBUG ]
(*) Direct/Memcpy: Using MMXEXT optimized memcpy()
(*) Direct/Thread: Running 'Fusion Dispatch' (MESSAGING, 7400)...
(*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 7415)...
(*) Direct/Thread: Running 'PS/2 Input' (INPUT, 7418)...
(*) DirectFB/Input: IMPS/2 Mouse 1.0 (Convergence GmbH)
(*) Direct/Thread: Running 'LiRC Input' (INPUT, 7419)...
(*) DirectFB/Input: LIRC Device 0.2 (convergence integrated media GmbH)
(*) Direct/Thread: Running 'Keyboard Input' (INPUT, 7420)...
(*) DirectFB/Input: Keyboard 0.9 (convergence integrated media GmbH)
(*) DirectFB/Genefx: MMX detected and enabled
(*) DirectFB/Graphics: Matrox G400 0.7 (convergence integrated media GmbH)
(!!!) *** UNIMPLEMENTED [crtc2SetEncoderConfig] *** [matrox_screen_crtc2.c:202]
(!!!) *** UNIMPLEMENTED [crtc2SetOutputConfig] *** [matrox_screen_crtc2.c:229]
(*) DirectFB/Core/WM: Default 0.2 (Convergence GmbH)
<<< LiTE Font >>> cache_get_entry: loading `/usr/local/share/fonts/truetype/whiterabbit.ttf' (16)...
(*) Direct/Interface: Loaded 'FT2' implementation of 'IDirectFBFont'.
<<< LiTE Font >>> cache_get_entry: * new cache entry added for '/usr/local/share/fonts/truetype/whiterabbit.ttf' with size 16
(*) Direct/Interface: Loaded 'PNG' implementation of 'IDirectFBImageProvider'.
<<< LiTE Font >>> cache_release_entry: - destroying cache entry '/usr/local/share/fonts/truetype/whiterabbit.ttf' (16)
(!!!) *** WARNING [Application exited without deinitialization of DirectFB!] *** [core.c:630 in dfb_core_deinit_check()]
(!) Direct/Thread: Killing 'Fusion Dispatch' (7400)!