You are not logged in.

#1 2009-01-18 02:34:25

speng
Member
Registered: 2009-01-17
Posts: 136

[SOLVED]VLC/Totem tearing | Nvidia driver issue

Trying VLC X11 output, everything works fine it's just that I notice the very obvious tearing! Is there any way I can enable syncing to V blank?
I've already done this in the nvidia-settings but it hasnt helped, the tearing line kind of moves up, never down.

Is there something I have setup wrong?

Monitor: LG M2294D 22"
Graphics card: Nvidia 8800GT w/ propietary drivers
Direct rendering: yes

xorg.conf:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder62)  Tue Jan  6 09:43:54 PST 2009


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
#    Load           "type1"
    Load           "freetype"
    Load           "glx"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       30.0 - 83.0
    VertRefresh     56.0 - 75.0
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TripleBuffer" "True"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "Composite" "Enable"
EndSection

Edit: ERROR: libXv setup error : libXv.so.1: wrong ELF class: ELFCLASS32
when running nvidia-settings.

Google earth output:

Error: API mismatch: the NVIDIA kernel module has version 180.22,
but this NVIDIA driver component has version 177.82.  Please make
sure that the kernel module and all NVIDIA driver components
have the same version.
NVIDIA: Direct rendering failed; attempting indirect rendering.

I have installed the drivers by doing pacman -S nvidia...

Last edited by speng (2009-01-19 18:17:27)

Offline

#2 2009-01-18 03:31:36

cerbie
Member
Registered: 2008-03-16
Posts: 124

Re: [SOLVED]VLC/Totem tearing | Nvidia driver issue

7300GT (slow 7600GT) here, same issues (dunno about nvidia-settings, but I'll check it out in an hour or so). It's the 180 drivers. 177 and 178 don't do it (that helps us a lot now, right?). My experience here is 180.06, and 180.08. reverting to the 178 drivers that were compatible with the new xorg fixed it, at the time.

1. I've found videos where it's all CPU have little/no problems (realmedia, windows media, etc.). Straight MPEG are the worst.
2. In smplayer, I can disable vsync. With vsync disabled there, but enabled in the nvidia app, things were fine.
3. The new VLC interface seems to lack many video options the old ones had, such as vsync.
4. I have not found common performance/feature/quality options for the nvidia drivers to change anything.

I also had stuttering problems (haven't had time to reliably test one way or the other on my current install), and disabling double buffering helped (but did not eliminate) that.

Other than Google Earth (I'll try and see what I get, in a bit), are there any other apps that give verbose output about these things? Mplayer would complain, but not in a terribly useful way, and VLC thought everything was fine (run from a terminal window, so I could watch that stuff).

Edit: same results as my previous install. However, Google Earth won't install (64-bit and all that). Here's another instance:

Last edited by cerbie (2009-01-18 08:26:20)


"If the data structure can't be explained on a beer coaster, it's too complex." - Felix von Leitner

Offline

#3 2009-01-18 05:15:03

speng
Member
Registered: 2009-01-17
Posts: 136

Re: [SOLVED]VLC/Totem tearing | Nvidia driver issue

pidgin: error while loading shared libraries: libXss.so.1: wrong ELF class: ELFCLASS32

What have I done? :X

Is there any way of wiping X/Nvidia and just doing it all over again?

Offline

#4 2009-01-18 07:20:02

cerbie
Member
Registered: 2008-03-16
Posts: 124

Re: [SOLVED]VLC/Totem tearing | Nvidia driver issue

Is your libxss 1.1.3-1? I'd just try reinstalling Xorg.

Last edited by cerbie (2009-01-18 09:17:26)


"If the data structure can't be explained on a beer coaster, it's too complex." - Felix von Leitner

Offline

#5 2009-01-18 08:34:55

cerbie
Member
Registered: 2008-03-16
Posts: 124

Re: [SOLVED]VLC/Totem tearing | Nvidia driver issue

http://forums.nvidia.com/index.php?showtopic=86968

I did not find disabling composite to have any effect, so far.

I Googled up modelines for my monitor, and added them to my xorg.conf. I now have no obvious tearing (I can't say absolutely none, but that rising line style like you described is now gone). I thought about this, seeing as how I got 1680x1050@51Hz for a max selection in the GUI resolution switchers, when it should be 60. Note that at this point, all options in the device section are commented out, and composite is on.

Now to try enabling features again in xorg.conf...

Tested with VLC using "default" video output, and smplayer using xv (X11 is very slow, OpenGL has stuttering and corruption issues). Note these are simple perceptual tests, so some error is possible.

Composite: OK
RenderAccel: OK
BackingStore: tearing "upwards" quite badly
DamageEvents: OK
AddARGBGLXVisuals: OK
OnDemandVBlankInterrupts: OK
TripleBuffer: OK

Compiz appears to have no effect (as per link).


Here's my xorg.conf, video tearing free:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder63)  Wed Oct  1 15:09:35 PDT 2008


Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
#    RgbPath         "/usr/share/X11/rgb"
    ModulePath      "/usr/lib/xorg/modules"
    FontPath        "/usr/share/fonts/misc"
    FontPath        "/usr/share/fonts/100dpi:unscaled"
    FontPath        "/usr/share/fonts/75dpi:unscaled"
    FontPath        "/usr/share/fonts/TTF"
    FontPath        "/usr/share/fonts/Type1"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "glx"
#    Load           "record"
    Load           "xtrap"
    Load           "freetype"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "InputDevice"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "ZAxisMapping" "4 5 6 7"
EndSection

#Section "Monitor"
#    Identifier     "Monitor0"
#    VendorName     "Monitor Vendor"
#    ModelName      "Monitor Model"
#    Option         "DPMS"
#EndSection

Section "Monitor"
    Identifier     "monitor1"
    VendorName     "Unknown"
    ModelName      "HP w2207"
    HorizSync       24.0 - 82.0
    VertRefresh     48.0 - 76.0
    ModeLine       "1680x1050" 146.2 1680 1784 1960 2240 1050 1053 1059 1089 +hsync -vsync
    ModeLine       "768x576" 50.0 768 832 846 1000 576 590 595 630
    ModeLine       "768x576" 63.1 768 800 960 1024 576 578 590 616
    ModeLine       "1680x1050_120" 313.2 1680 1816 2000 2320 1050 1051 1054 1125 -hsync +vsync
    ModeLine       "1680x1050_100" 256.2 1680 1808 1992 2304 1050 1051 1054 1112 -hsync +vsync
    ModeLine       "1680x1050_85" 214.5 1680 1800 1984 2288 1050 1051 1054 1103 -hsync +vsync
    ModeLine       "1680x1050_75" 188.1 1680 1800 1984 2288 1050 1051 1054 1096 -hsync +vsync
    ModeLine       "1680x1050_60" 147.1 1680 1784 1968 2256 1050 1051 1054 1087 -hsync +vsync
    ModeLine       "1680x1050_50" 120.2 1680 1776 1952 2224 1050 1051 1054 1081 -hsync +vsync
    ModeLine       "1600x1000_120" 284.0 1600 1728 1904 2208 1000 1001 1004 1072 -hsync +vsync
    ModeLine       "1600x1000_100" 232.1 1600 1720 1896 2192 1000 1001 1004 1059 -hsync +vsync
    ModeLine       "1600x1000_85" 194.2 1600 1712 1888 2176 1000 1001 1004 1050 -hsync +vsync
    ModeLine       "1600x1000_75" 169.1 1600 1704 1880 2160 1000 1001 1004 1044 -hsync +vsync
    ModeLine       "1600x1000_60" 133.1 1600 1704 1872 2144 1000 1001 1004 1035 -hsync +vsync
    ModeLine       "1600x1000_50" 108.7 1600 1688 1856 2112 1000 1001 1004 1029 -hsync +vsync
    ModeLine       "1440x900_120" 229.8 1440 1552 1712 1984 900 901 904 965 -hsync +vsync
    ModeLine       "1440x900_100" 187.6 1440 1544 1704 1968 900 901 904 953 -hsync +vsync
    ModeLine       "1440x900_85" 156.8 1440 1536 1696 1952 900 901 904 945 -hsync +vsync
    ModeLine       "1440x900_75" 136.5 1440 1536 1688 1936 900 901 904 940 -hsync +vsync
    ModeLine       "1440x900_60" 106.5 1440 1520 1672 1904 900 901 904 932 -hsync +vsync
    ModeLine       "1440x900_50" 87.4 1440 1512 1664 1888 900 901 904 926 -hsync +vsync
    ModeLine       "1280x800_120" 181.2 1280 1376 1520 1760 800 801 804 858 -hsync +vsync
    ModeLine       "1280x800_100" 147.9 1280 1376 1512 1744 800 801 804 848 -hsync +vsync
    ModeLine       "1280x800_85" 123.4 1280 1368 1504 1728 800 801 804 840 -hsync +vsync
    ModeLine       "1280x800_75" 107.2 1280 1360 1496 1712 800 801 804 835 -hsync +vsync
    ModeLine       "1280x800_60" 83.5 1280 1344 1480 1680 800 801 804 828 -hsync +vsync
    ModeLine       "1280x800_50" 68.6 1280 1336 1472 1664 800 801 804 824 -hsync +vsync
    ModeLine       "1680x1050_120" 313.2 1680 1816 2000 2320 1050 1051 1054 1125 -hsync +vsync
    ModeLine       "1680x1050_100" 256.2 1680 1808 1992 2304 1050 1051 1054 1112 -hsync +vsync
    ModeLine       "1680x1050_85" 214.5 1680 1800 1984 2288 1050 1051 1054 1103 -hsync +vsync
    ModeLine       "1680x1050_75" 188.1 1680 1800 1984 2288 1050 1051 1054 1096 -hsync +vsync
    ModeLine       "1680x1050_60" 147.1 1680 1784 1968 2256 1050 1051 1054 1087 -hsync +vsync
    ModeLine       "1680x1050_50" 120.2 1680 1776 1952 2224 1050 1051 1054 1081 -hsync +vsync
    ModeLine       "1600x1000_120" 284.0 1600 1728 1904 2208 1000 1001 1004 1072 -hsync +vsync
    ModeLine       "1600x1000_100" 232.1 1600 1720 1896 2192 1000 1001 1004 1059 -hsync +vsync
    ModeLine       "1600x1000_85" 194.2 1600 1712 1888 2176 1000 1001 1004 1050 -hsync +vsync
    ModeLine       "1600x1000_75" 169.1 1600 1704 1880 2160 1000 1001 1004 1044 -hsync +vsync
    ModeLine       "1600x1000_60" 133.1 1600 1704 1872 2144 1000 1001 1004 1035 -hsync +vsync
    ModeLine       "1600x1000_50" 108.7 1600 1688 1856 2112 1000 1001 1004 1029 -hsync +vsync
    ModeLine       "1440x900_120" 229.8 1440 1552 1712 1984 900 901 904 965 -hsync +vsync
    ModeLine       "1440x900_100" 187.6 1440 1544 1704 1968 900 901 904 953 -hsync +vsync
    ModeLine       "1440x900_85" 156.8 1440 1536 1696 1952 900 901 904 945 -hsync +vsync
    ModeLine       "1440x900_75" 136.5 1440 1536 1688 1936 900 901 904 940 -hsync +vsync
    ModeLine       "1440x900_60" 106.5 1440 1520 1672 1904 900 901 904 932 -hsync +vsync
    ModeLine       "1440x900_50" 87.4 1440 1512 1664 1888 900 901 904 926 -hsync +vsync
    ModeLine       "1280x800_120" 181.2 1280 1376 1520 1760 800 801 804 858 -hsync +vsync
    ModeLine       "1280x800_100" 147.9 1280 1376 1512 1744 800 801 804 848 -hsync +vsync
    ModeLine       "1280x800_85" 123.4 1280 1368 1504 1728 800 801 804 840 -hsync +vsync
    ModeLine       "1280x800_75" 107.2 1280 1360 1496 1712 800 801 804 835 -hsync +vsync
    ModeLine       "1280x800_60" 83.5 1280 1344 1480 1680 800 801 804 828 -hsync +vsync
    ModeLine       "1280x800_50" 68.6 1280 1336 1472 1664 800 801 804 824 -hsync +vsync
    Option         "DPMS"
EndSection


Section "Device"

        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "ShadowFB"               # [<bool>]
        #Option     "DefaultRefresh"         # [<bool>]
        #Option     "ModeSetClearScreen"     # [<bool>]
    # level 0x1 = highest
    # level 0x2 = med
    # level 0x3 = lowest
    Option         "RenderAccel" "True"
    Option         "TripleBuffer" "True"
#    Option         "BackingStore" "True"
    Option         "DamageEvents" "True"
    Option         "RegistryDwords" "PowerMizerLevelAC=0x2"
    Option         "AddARGBGLXVisuals" "True"
    Option         "OnDemandVBlankInterrupts" "True"
    Identifier     "Card0"
    Driver         "nvidia"
    VendorName     "nVidia Corporation"
    BoardName      "G70 [GeForce 7300 GT]"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Card0"
    Monitor        "Monitor0"
    SubSection     "Display"
        Viewport    0 0
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       4
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       8
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       15
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       16
    EndSubSection
    SubSection     "Display"
        Viewport    0 0
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "Composite" "Enable"
EndSection

It doesn't make the most sense to me, honestly (especially the vsync bit with smplayer), but see if finding hsyc/vsync and/or a bunch of modelines for your monitor helps at all. Or, maybe somebody who knows what's going on will find this smile.

Last edited by cerbie (2009-01-18 09:59:59)


"If the data structure can't be explained on a beer coaster, it's too complex." - Felix von Leitner

Offline

#6 2009-01-18 18:59:31

neowolf
Member
From: North Carolina
Registered: 2008-01-27
Posts: 105

Re: [SOLVED]VLC/Totem tearing | Nvidia driver issue

I never had any luck getting nvidia's drivers to not tear at all. :\

Offline

#7 2009-01-19 18:16:54

speng
Member
Registered: 2009-01-17
Posts: 136

Re: [SOLVED]VLC/Totem tearing | Nvidia driver issue

Solution!

I did a complete reinstall of Arch Linux, installed X.org then nvidia from pacman, enabled sync to vblank and voila, it worked.
I'm not 100% sure what the problem was, but this time instead of specifying a mode line, I have no mode lines!

Yup that's right, I let nvidia do it automatically each time I start gdm and it works great.

Offline

#8 2009-01-22 11:12:37

lgolebio
Member
From: Poland / Wroclaw
Registered: 2008-07-28
Posts: 101

Re: [SOLVED]VLC/Totem tearing | Nvidia driver issue

I'm having the same problem with tearing in vlc, and Totem, and I really like to solve this without reinstalling arch. Mplayer works fine, but sometimes I use vlc, so any help will be appreciated.

Offline

#9 2009-01-23 00:46:51

speng
Member
Registered: 2009-01-17
Posts: 136

Re: [SOLVED]VLC/Totem tearing | Nvidia driver issue

Check your Nvidia settings, do you see a section dedicated to XVideo?

If you do, tell me your settings.

Offline

#10 2009-01-23 10:54:43

lgolebio
Member
From: Poland / Wroclaw
Registered: 2008-07-28
Posts: 101

Re: [SOLVED]VLC/Totem tearing | Nvidia driver issue

Ok, I think I solved the problem but only in 50%. All you have to do is to type in terminal:

gstreamer-properties

And change Video tab to look like this (I'm from Poland so the window is translated into polish language, but you should be able to figure it out smile )

71364463nr8.th.png

After that TOTEM does not tear at all, but VLC still does, I think it's because it ignores X11 output or something.

Last edited by lgolebio (2009-01-23 10:57:37)

Offline

#11 2009-01-23 15:42:27

speng
Member
Registered: 2009-01-17
Posts: 136

Re: [SOLVED]VLC/Totem tearing | Nvidia driver issue

Ah VLC. It should output XVideo by default, if it doesn't try enabling XVideo rendering instead of whatever you're using in VLC atm.

X11 tears like hell but there's no reason to use it. smile

Offline

Board footer

Powered by FluxBB