Announcement

Collapse
No announcement yet.

TEARING - dreaming of tearfree on lvds with Intel gma950

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #11
    Hooray!

    Thanks for the updates, I managed to get things to work properly.

    And in the end even with Compiz-fusion!

    Note: for compiz-fusion, the 'video playback'-plugin _must be disabled_ or the tearing will be back.

    The hint of the good old "blue on the side whilst moving the video player window" was what got me trying out until I got that... and from there it was easy.
    I turned off/disabled all things I had added and vice versa.

    Actually, I'm not so sure what the difference is in my current config compared to what I had in the very beginning...
    Perhaps it's because I started out with KDE4, and then CF on KDE3 with the video plugin...

    Anyway, I'm happy with my linux system again, thanks a lot for all replies / feedback / support!

    Comment


    • #12
      How did you get it working? I'm using a 945GME with the latest drivers and Xorg from git with DRI2, GEM, and UXA, but I still get tearing. I've tried Compiz, XRender compositing, and no compositing with xv, gl, and gl2 outputs for mplayer. Do I need to patch something?

      Comment


      • #13
        At the moment, you need to use the hardware overlay instead of textured video. You can configure this in the video player, or set a default in the xorg.conf file.

        From the intel man page:

        Code:
        Option "XvPreferOverlay" "boolean"
        
                      Make hardware overlay be the  first  XV  adaptor.   The  overlay
                      behaves  incorrectly  in  the  presence of compositing, but some
                      prefer it due  to  it  syncing  to  vblank  in  the  absence  of
                      compositing.   While  most XV-using applications have options to
                      select which XV adaptor to use, this option can be used to place
                      the  overlay first for applications which don?t have options for
                      selecting adaptors.  Default: Textured  video  adaptor  is  pre‐
                      ferred.
        My previous comments in this thread about patches was because I assumed it was about the G45 (which lacks hardware overlay). Sorry about that.

        Still, for those who are interested in getting textured video without tearing I created a tracker bug with a short summary:

        Comment


        • #14
          Thanks! Works great now. Looking forward to the textured xv sync fixes though.

          Comment


          • #15
            By the way, if you have DRI2 working, you can try enabling sync to vblank in compiz and use textured video.

            That's supposedly the correct way to handle this, but I'm not sure if it's working yet?

            Comment


            • #16
              I did try the sync vblank in compiz, but it did not seem to help.

              Also, is there a way to get Adobe's flash plugin tear-free as well? I've added the hardware overlay option to my xorg.conf (which works for mplayer), but it doesn't seem like flash uses it.

              Comment


              • #17
                Sorry to be late in replying....

                I just went over my xorg.conf, and can only say that I have no option for xvideo, somehow things just work now, and that's with composite on and compiz.
                naturally, with xv there's no proper handling (the xv window stays on top, it's not on the cube etc...) but absolutely usable.


                Here's my xorg.conf in case anyone cares:
                Code:
                # File generated by XFdrake (rev 247269)
                
                # **********************************************************************
                # Refer to the xorg.conf man page for details about the format of
                # this file.
                # **********************************************************************
                
                Section "ServerFlags"
                    #DontZap # disable <Ctrl><Alt><BS> (server abort)
                    AllowMouseOpenFail # allows the server to start up even if the mouse does not work
                    #DontZoom # disable <Ctrl><Alt><KP_+>/<KP_-> (resolution switching)
                #    Option "AIGLX" "off"
                EndSection
                
                #Section "Extensions"
                #       Option "Composite" "off"
                #EndSection
                
                Section "Module"
                    Load "dbe" # Double-Buffering Extension
                    Load "v4l" # Video for Linux
                    Load "extmod"
                    Load "type1"
                    Load "freetype"
                    Load "glx" # 3D layer
                    Load "dri" # direct rendering
                EndSection
                
                Section "InputDevice"
                    Identifier "Keyboard1"
                    Driver "kbd"
                    Option "XkbModel" "pc105"
                    Option "XkbLayout" "us(alt-intl)"
                    Option "XkbOptions" "compose:rwin"
                EndSection
                
                Section "InputDevice"
                    Identifier "Mouse1"
                    Driver "mouse"
                    Option "Protocol" "ExplorerPS/2"
                    Option "Device" "/dev/mouse"
                EndSection
                
                Section "Monitor"
                    Identifier "monitor1"
                    VendorName "Generic"
                    ModelName "Flat Panel 1280x800"
                    HorizSync 31.5-90
                    VertRefresh 48-76
                
                    #Modeline "1280x800_75"   75.00  1280 1301 1333 1408  800 804 808 816 -hsync -vsync
                    #added RT:
                
                    # Monitor preferred modeline (65.3 Hz vsync, 53.3 kHz hsync, ratio 16/10)
                    ModeLine "1280x800_1" 75 1280 1301 1333 1408 800 804 808 816 +hsync +vsync
                    #Modeline "1280x800_65.00"  91.61  1280 1352 1488 1696  800 801 804 831  -HSync +Vsync
                    ModeLine "1280x800_2" 75 1280 1301 1333 1408 800 804 808 816 -hsync +vsync
                    Modeline "1280x800_65.00"  91.61  1280 1352 1488 1696  800 801 804 831  -HSync +Vsync
                    Modeline "1280x800_71.93"  102.70  1280 1360 1496 1712  800 801 804 834  -HSync +Vsync
                    # TV fullscreen mode or DVD fullscreen output.
                    # 768x576 @ 79 Hz, 50 kHz hsync
                    ModeLine "768x576"     50.00  768  832  846 1000   576  590  595  630
                
                    # 768x576 @ 100 Hz, 61.6 kHz hsync
                    ModeLine "768x576"     63.07  768  800  960 1024   576  578  590  616
                
                    # modeline generated by gtf(1) [handled by XFdrake]
                    ModeLine "1280x800_120"  181.21  1280 1376 1520 1760  800 801 804 858  -HSync +Vsync
                
                    # modeline generated by gtf(1) [handled by XFdrake]
                    ModeLine "1280x800_100"  147.89  1280 1376 1512 1744  800 801 804 848  -HSync +Vsync
                
                    # modeline generated by gtf(1) [handled by XFdrake]
                    ModeLine "1280x800_85"  123.38  1280 1368 1504 1728  800 801 804 840  -HSync +Vsync
                
                    # modeline generated by gtf(1) [handled by XFdrake]
                    #ModeLine "1280x800_75"  107.21  1280 1360 1496 1712  800 801 804 835  -HSync +Vsync
                
                    # modeline generated by gtf(1) [handled by XFdrake]
                    #ModeLine "1280x800_60"  83.46  1280 1344 1480 1680  800 801 804 828  -HSync +Vsync
                    ModeLine "1280x800_60"  83.46  1280 1344 1480 1680  800 801 804 828  +HSync +Vsync
                    # modeline generated by gtf(1) [handled by XFdrake]
                    ModeLine "1280x800_50"  68.56  1280 1336 1472 1664  800 801 804 824  -HSync +Vsync
                    Option       "PreferredMode" "1280x800_1"
                EndSection
                
                #Section "Monitor"
                #       Identifier "VGA"
                #       Option "Ignore" "true"
                #EndSection
                
                Section "Device"
                    Identifier "device1"
                    VendorName "Intel Corporation"
                    BoardName "Intel 810 and later"
                    Driver "intel"
                    Option "DPMS"
                    #next option for 2d mem allocation
                    #Option "CacheLines" "16384"
                    #next option for xvmc - needs xvmc config file with abs path to libintelxvmc.so file
                    #Option "XvMC" "true"
                    Option "DDC" "on"
                    #Option "ForceEnablePipeA" "off"
                    #Option "LVDSFixedMode" "false"
                    #Option "AccelMethod" "EXA"
                    Option "AccelMethod" "XAA"
                    #Option "monitor-LVDS" "monitor1"
                    #Option "monitor-VGA" "VGA"
                    Option "XaaNoOffscreenPixmaps" "true"
                    #Option "XVideo" "on"
                EndSection
                
                Section "Screen"
                    Identifier "screen1"
                    Device "device1"
                    Monitor "monitor1"
                    DefaultColorDepth 24
                
                    Subsection "Display"
                        Depth 8
                        Modes "1280x800"
                    EndSubsection
                
                    Subsection "Display"
                        Depth 15
                        Modes "1280x800"
                    EndSubsection
                
                    Subsection "Display"
                        Depth 16
                        Modes "1280x800"
                    EndSubsection
                
                    Subsection "Display"
                        Depth 24
                        Modes "1280x800" "1280x800_75" "1280x800_65.00" "1280x800_60" "1280x800_50" #"1280x800"
                    EndSubsection
                EndSection
                
                Section "ServerLayout"
                    Identifier "layout1"
                    InputDevice "Keyboard1" "CoreKeyboard"
                    InputDevice "Mouse1" "CorePointer"
                    Screen "screen1"
                EndSection
                
                Section "DRI"
                    Mode 0666
                EndSection

                Comment


                • #18
                  Has anyone figured out how to get rid of tearing with DRI2? I'm running Compiz on top of X Server 1.6 RC2 with UXA and GEM.

                  Comment


                  • #19
                    I don't think DRI2 helps with tearing... just with flicker when a 3D app and Compiz are fighting over the screen.
                    Test signature

                    Comment


                    • #20
                      There has to be SOME WAY to do this. Microsoft's been doing it since 2006 and Apple since 2001.

                      Comment

                      Working...
                      X