Duncan Webb skrev:
> 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
>
>   
Hi
Thanks for the long answer! I really wouldn't be surprised if there was
something wrong with the framebuffer setup. I really don't know anything
about the fb, so I've been kinda fumbling in the dark. I followed
http://dev.gentoo.org/~spock/projects/uvesafb/ when setting it up, but I
really don't know much about whats the setup does or how to check that
it works properly.

Anyways, here's what I've done now:

I've emerged lsof, fbset, linux-fusion DirectFB and DirectFB-extra.
fbset -i gives:

mode "640x480-60"
    # D: 23.845 MHz, H: 29.844 kHz, V: 60.048 Hz
    geometry 640 480 640 3000 16
    timings 41937 80 16 13 1 63 3
    vsync high
    rgba 5/11,6/5,5/0,0/0
endmode

Frame buffer device information:
    Name        : VESA VGA
    Address     : 0xc8000000
    Size        : 3840000
    Type        : PACKED PIXELS
    Visual      : TRUECOLOR
    XPanStep    : 0
    YPanStep    : 1
    YWrapStep   : 1
    LineLength  : 1280
    Accelerator : No

The reason I'm running at [EMAIL PROTECTED] is that I'm using the TV as screen.
I tried chmod 666 of all the files listed in lsof | egrep
'(^python|^freevo)' | grep '/dev'

The last step has given me one change. If I log in as root and start
freevo with directfb and list all of them devices and chmod 666 them,
then I can log in as nonroot and start freevo from console with
directfb. However, when I try to shut down freevo or play a movie, the
whole system hangs with a black screen and I have to restart the whole
thing.

Well, ok. I can live without framebuffer support. So i thought, let's
start up the system without it, and let's see if freevo starts with x11.
But that didn't work either. The same error message as before, both as
root and non-root.

This is making me very confused...

oh, my freevo.conf, the one that works in X and root is:

ellen ~ # cat /etc/freevo/freevo.conf
chanlist = us-cable
display = directfb
fbxine = /usr/bin/fbxine
geometry = 640x480
jpegtran = /usr/bin/jpegtran
lsdvd = /usr/bin/lsdvd
mplayer = /usr/bin/mplayer
renice = /usr/bin/renice
setterm = /usr/bin/setterm
tv = pal
version = 2.1


/Johan


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