[vlc] Re: Linux framebuffer problems

Jean-Paul Saman jean-paul.saman at planet.nl
Wed May 19 21:00:34 CEST 2004


Jan Ekholm wrote:

>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)
>
Did you load the framebuffer modules? e.g; modprobe vga16fb? And can you 
run fbset -s ?

>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:
>
>  
>
did you try --fbdev=/dev/fb0 ???

>	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?
>  
>
-- 

Many greetings,
Jean-Paul Saman

Consultant
--------------------------------------------------------------
VLC iPAQ maintainer                    http://www.videolan.org
RedHat Certified Engineer         RHCE number: 807202745005548
--------------------------------------------------------------


-- 
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