Hi,
I have a Matrox G450 and use mplayer plus directfb (with "-vo dfbmga") to play movies 
on the TV attached to the second head of the G450.
I run mplayer from the console (linux is at runlevel 3, X11 is not started).
matroxfb is compiled in the kernel (2.4.22)

It works *very well* (having found the ideal set of options to give mplayer) if I 
start mplayer from the command line, interactively. If I put the same identical line 
in a script (so that I don't retype all options every time) and run the script 
("./script", interactively, not in background), directfb says it cannot init the 
keyboard and aborts.

Can someone please point out what is wrong?
Thanks in advance,
        Roberto
        (ugoccioni at to dot infn dot it)

================================================

The script contains:
  #!/bin/sh
  mplayer -vo directfb -cache 16384 -double -autosync 30 "$@"
  stty sane

Interaction:
prompt> ./script clip01.mpeg

MPlayer 1.0pre2-3.2 (C) 2000-2003 MPlayer Team

CPU: Advanced Micro Devices Athlon Thunderbird 706.8 MHz (Family: 6, Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/roberto/.mplayer/config
Reading /home/roberto/.mplayer/codecs.conf: Can't open 
'/home/roberto/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open 
'/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf
font: can't open file: /home/roberto/.mplayer/font/font.desc
Failed to open /dev/rtc: Permission denied (mplayer should be setuid root or /dev/rtc 
should be readable by the user.)
Font /usr/local/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using usleep() timing
Can't open input config file /home/roberto/.mplayer/input.conf: No such file or 
directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or 
directory
Falling back on default (hardcoded) input config

Playing clip01.mpeg
MPEG-PS file format detected.
VIDEO:  MPEG1  192x152  (aspect 1)  24.000 fps   92.0 kbps (11.5 kbyte/s)
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 32000 Hz, 2 ch, 16 bit (0x10), ratio: 4000->128000 (32.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
DirectFB: Preinit entered
(*) parsing config file '/home/roberto/.directfbrc'.

       ---------------------- DirectFB v0.9.19 ---------------------
             (c) 2000-2002  convergence integrated media GmbH  
             (c) 2002       convergence GmbH                   
        -----------------------------------------------------------

(*) Single Application Core. (with MMX support) (2003-11-30 08:07)
(*) DirectFB/misc/memcpy: using MMXEXT optimized memcpy()
(!) DirectFB/Keyboard: KD_GRAPHICS failed!
    --> Operation not permitted
(!) DirectFB/Core: Could not initialize 'system' core!
    --> General initialization failure!
(!) DirectFB/Core: Error during initialization (General initialization failure!)
vo_directfb2.c <321>:
        (#) DirectFBError [DirectFBCreate (&dfb)]: General initialization failure!


(I get the same error if using dfbmga)
My directfb config file contains only two lines:

  matrox-crtc2
  matrox-tv-standard=pal


-- 
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-users" as subject.

Reply via email to