glxgears better when root ?

Discussion in 'Linux' started by james_mtl, Nov 22, 2008.

  1. james_mtl

    james_mtl

    Joined:
    Sep 25, 2008
    Messages:
    21
    Likes Received:
    0
    I have AAO; one under Hardy and one under Intrepid. The one running Hardy has as no video issue and is running glxgears around 450 fps.

    The one I have running intrepid is running glxgears around 280 fps BUT the gears display is all choppy like showing big flash of rectangles over the picture ??? But here is the thing; if I run sudo glxgears I then get around 350 fps and super clean looking gears ( no flashing ).

    I also made these changes in rc.local as sugested in other threads :

    echo "disable=7" >/proc/mtrr
    echo "disable=6" >/proc/mtrr
    echo "disable=5" >/proc/mtrr
    echo "disable=4" >/proc/mtrr
    echo "base=0x40000000 size=0x10000000 type=write-combining" > /proc/mtrr

    with these change I get better frame rate, around 440 fps but with bad looking video output. Again if I run sudo glxgears; I get super clean video output and around 540 fps.


    I'm having rectangles flashes in some site like www.tac.tv
    But same site just perfect in Hardy.

    Any idea why running sudo glxgears give nice output ??

    Any help is appreciated !

    Thanks.
     
    james_mtl, Nov 22, 2008
    #1
  2. james_mtl

    businessteam

    Joined:
    Nov 19, 2008
    Messages:
    5
    Likes Received:
    0
    james_mtl,

    I am running my AAO (110L) under Intrepid, using the same rc.local changes:

    Code:
    echo "disable=7" >/proc/mtrr
    echo "disable=6" >/proc/mtrr
    echo "disable=5" >/proc/mtrr
    echo "disable=4" >/proc/mtrr
    echo "base=0x40000000 size=0x10000000 type=write-combining" > /proc/mtrr
    
    When I am running glxgears I get around 540 FPS, and it is the same if I run glxgears with sudo. I do not get any video problems, quite clean video with or without sudo.
     
    businessteam, Nov 22, 2008
    #2
  3. james_mtl

    james_mtl

    Joined:
    Sep 25, 2008
    Messages:
    21
    Likes Received:
    0
    Thanks businessteam for taking time to reply to me.

    Since now I know it's something to do with my install I spend the morning investigating.

    I found the problem !!

    there is a difference in the enviroment variables when I'm root and when I'm a normal user. The one affecting the video is

    LIBGL_ALWAYS_INDIRECT=1

    I get this variable as a user and not as root.

    To test my theory I ran under my normal user : env -u LIBGL_ALWAYS_INDIRECT glxgears

    and it work super clean with 540 fps !!

    For some reason setting the value with export to anything always give the same result ( 0, 1, True, False, ON, OFF etc )
    Variable need to be removed in order for my video to work fine.

    So now I need to find where this variable is set and remove it for good !
    If any body knows more about that please point me in the right direction !

    Thanks.
     
    james_mtl, Nov 22, 2008
    #3
  4. james_mtl

    Baza

    Joined:
    Jun 21, 2008
    Messages:
    58
    Likes Received:
    0
    I get this as well..strange

    i also get it (although its only an extra 2 FPS) on a dell inspiron running 8.10...
     
    Baza, Nov 22, 2008
    #4
  5. james_mtl

    Hans

    Joined:
    Oct 17, 2008
    Messages:
    18
    Likes Received:
    0
    Quote:
    "I have AAO; one under Hardy and one under Intrepid. The one running Hardy has as no video issue and is running glxgears around 450 fps."

    You should be able to get at least 900 fps under Hardy. Use the EXPORT INTEL_BATCH=1 trick to do this. This is well documented in other places.

    Some users have reported frame rates in excess of 1300 on Hardy.

    Unfortunately, this environment variable does not work in Ibex. 3D is fundamentally broken in Ibex, and won't be fixed (to the best of my knowledge) until 9.04 (depending on what the upstream x.org devs do).

    Hans
     
    Hans, Nov 24, 2008
    #5
  6. james_mtl

    MrNiceguy

    Joined:
    Sep 9, 2008
    Messages:
    37
    Likes Received:
    0
    Location:
    Hesston, KS
    Anyone know a fix for this? I have the same symptoms - same flashing rectangles, same higher framerate when running with sudo or by setting the environment variable shown above. I ran a search for any config file containing the LIBGL_ALWAYS_INDIRECT variable, and didn't find it in ~ or /etc, but it's listed when I do env (though not under sudo env) Anyone know where this is being set?
     
    MrNiceguy, Nov 26, 2008
    #6
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.