[vlc] Linux framebuffer problems

Jan Ekholm chakie at infa.abo.fi
Mon May 17 12:26:10 CEST 2004


Hi,

Has anyone managed to get vlc running with the Linux framebuffer? I always
get this error:

fb video output error: cannot get terminal mode (Invalid argument)

Nothing shows up and vlc then tries other output devices unless told to
not do it with --vout fb,none. Has anyone got it working? The only thing I
found on the net was this thread:

	http://www.via.ecp.fr/via/ml/vlc/200307/msg00094.html

The user has the same problem as me, but no there was no solution.
Looking at the code in modules/video_output/fb.c it seems that /dev/tty0
is hardcoded for some reason, but maybe it should be that way:

static int Create( vlc_object_t *p_this )
    ...
    /* Set tty and fb devices */
    p_vout->p_sys->i_tty = 0;       /* 0 == /dev/tty0 == current console */

    GfxMode( p_vout->p_sys->i_tty );
    ...

    /* Set-up tty according to new signal handler */
    if( -1 == ioctl( p_vout->p_sys->i_tty, VT_GETMODE, &p_vout->p_sys->vt_mode ) )
    {
        msg_Err( p_vout, "cannot get terminal mode (%s)", strerror(errno) );
        ...
    }
    ...
}


In GfxMode the error handling is disabled by comments, so apparently the
code never has worked and the errors are silently ignored? The ioctl()
call fails and this is where it breaks down.

I use the trunk version of vlc on Linux with kernel 2.6.3. Apparently the
code is for 2.4.x, although the error doesn't seem to be that much related
to the raw framebuffer as it is related to terminal handling.

Any comments?

Kind regards,
    Jan Ekholm

--
Voodoo is a very interesting religion for the whole family, even those
    members of it who are dead.
                          -- Terry Pratchett & Neil Gaiman, Good Omens

-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc mailing list