Johan Lans wrote:
> Hi
>  I'm having a number of problems setting up freevo on my gentoo box, and 
> I would be happy with help on any one of them.
> 
> I have both uvesa and svgalib setup, and they work fine since mplayer 
> can use them to play videos. Due to problems with flickering subtitles 
> when using mplayer in framebuffer mode, I also setup X.
> 
> freevo version is 1.7.2
> pygame version is 1.7.1
> I'm using a geforce2 with svga-out.
> 
> First problem: Cannot start freevo as nonroot user. I'm getting 
> different errors depending on how I try to start freevo:
> 
>  From console:
> Using fbdev:
>   File "/usr/lib/python2.4/site-packages/freevo/osd.py", line 377, in 
> __init__
>     self.screen = pygame.display.set_mode((self.width, self.height))
> pygame.error: Unable to set terminal attributes
> 
> Using directfb:
>   File "/usr/lib/python2.4/site-packages/freevo/osd.py", line 364, in 
> __init__
>     pygame.display.init()
> pygame.error: DirectFBCreate: Initialization error!
> 
> Using svgalib:
>   File "/usr/lib/python2.4/site-packages/freevo/osd.py", line 377, in 
> __init__
>     self.screen = pygame.display.set_mode((self.width, self.height))
> pygame.error: Unable to set terminal attributes
> 
>  From X:
> Using x11:
>   File "/usr/lib/python2.4/site-packages/freevo/osd.py", line 364, in 
> __init__
>     pygame.display.init()
> pygame.error: No available video device
> 
> 
> Second problem: When running as root I can start freevo using all 
> framebuffer modes from console, but from X I can only start using svga 
> and directfb:
> 
>  From X:
> 
> Using fbdev:
>   File "/usr/lib/python2.4/site-packages/freevo/osd.py", line 364, in 
> __init__
>     pygame.display.init()
> pygame.error: No available video device
> 
> Using x11:
>   File "/usr/lib/python2.4/site-packages/freevo/osd.py", line 364, in 
> __init__
>     pygame.display.init()
> pygame.error: No available video device
> 
> I would be very thankful for any ideas on what could be causing these 
> errors. I have googled, but haven't found anything. Also, if somebody 
> knows how to get rid of flickering subtitles in mplayer, I would be 
> grateful.


What does fbset -i say and what is in your freevo.conf?

Just tried this on my gentoo system using uvesafb and it worked first
time. Even though the freevo.conf is not 100% correct as it has display=x11.

Normally, the console runs at 1280x1024-85 but when freevo is running it
has this:

fbset -i

mode "800x600-85"
    # D: 56.715 MHz, H: 53.606 kHz, V: 85.089 Hz
    geometry 800 600 800 600 32
    timings 17632 129 45 26 1 84 3
    vsync high
    rgba 8/16,8/8,8/0,8/24
endmode

Frame buffer device information:
    Name        : VESA VGA
    Address     : 0xd0000000
    Size        : 8060928
    Type        : PACKED PIXELS
    Visual      : TRUECOLOR
    XPanStep    : 0
    YPanStep    : 0
    YWrapStep   : 0
    LineLength  : 3200
    Accelerator : No

The V: 85.089 Hz should be high enough to stop flickering.

Root has access to all the devices, which non-root users do not unless
specifically given permission. The devices below should be accessible to
be read and written by non-root users.

lsof | egrep '(^python|^freevo)' | grep '/dev'
freevo    24255 root    0u CHR        4,1  230 /dev/tty1
freevo    24255 root    1u CHR        4,1  230 /dev/tty1
freevo    24255 root    2u CHR        4,1  230 /dev/tty1
python    24257 root  mem  CHR       29,0  575 /dev/fb/0
python    24257 root    0u CHR        4,1  230 /dev/tty1
python    24257 root    1u CHR        4,1  230 /dev/tty1
python    24257 root    2u CHR        4,1  230 /dev/tty1
python    24257 root    3r CHR       14,0 7799 /dev/sound/mixer
python    24257 root    9u CHR       29,0  575 /dev/fb/0
python    24257 root   10u CHR        4,7 2940 /dev/tty7
python    24257 root   11u CHR      13,63  958 /dev/input/mice

This is the same command running freevo on a system with a Matrox card
and directfb.

python    5116 root    0u CHR     5,1         4166 /dev/console
freevo    5733 root    0u CHR     4,1         5919 /dev/tty1
freevo    5733 root    1u CHR     4,1         5919 /dev/tty1
freevo    5733 root    2u CHR     4,1         5919 /dev/tty1
python    5735 root  mem  CHR   252,0         3600 /dev/fusion0
python    5735 root  mem  REG    0,14  32768 15604 /dev/shm/fusion.0.0
python    5735 root  mem  REG    0,14  53248 15605 /dev/shm/fusion.0.1
python    5735 root  mem  REG    0,14 409600 15606 /dev/shm/fusion.0.2
python    5735 root  mem  CHR    29,0         3649 /dev/fb0
python    5735 root    0u CHR     4,1         5919 /dev/tty1
python    5735 root    1u CHR     4,1         5919 /dev/tty1
python    5735 root    2u CHR     4,1         5919 /dev/tty1
python    5735 root    3u CHR    14,0         4083 /dev/mixer
python    5735 root    9u CHR   252,0         3600 /dev/fusion0
python    5735 root   10u REG    0,14  32768 15604 /dev/shm/fusion.0.0
python    5735 root   11u REG    0,14  53248 15605 /dev/shm/fusion.0.1
python    5735 root   12u REG    0,14 409600 15606 /dev/shm/fusion.0.2
python    5735 root   13u CHR    29,0         3649 /dev/fb0
python    5735 root   14r CHR     4,0         5914 /dev/tty0
python    5735 root   15u CHR     4,7         6282 /dev/tty7
python    5735 root   16u CHR   13,63         3771 /dev/input/mice

I would recommend that you concentrate on one problem at a time, first
get it working as root and the X server.

More than likely is that there is a problem with the framebuffer, it
looks like it canot be access by two processes at the same time. Try
installing dev-libs/linux-fusion, dev-libs/DirectFB and
dev-libs/DirectFB-extra to see it this works.

Duncan


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to