Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 05-19-11, 01:44 AM   #1
stelekpl
Registered User
 
Join Date: Dec 2007
Posts: 8
Default Ubuntu, VLC, VSync and video tearing...

Hi,
I just installed the latest Ubuntu which updated my driver to version 270.41.06. At the same time I bought a new TV and connected it to my PC via HDMI. The problem I get is that I do not have VSync on my secondary monitor (TV). The primary one displays videos perfectly but the secondary one has a lot of tearing. This is really annoying since I'm using mostly my TV to watch videos. Is there any way to fix this?

I enabled VSync everywhere I could in nvidia-settings (four places). I'm using VLC with default output. I do not use Compiz and my monitors are configured as separate screens (no TwinView and please do not tell me to enable it again, since it completely breaks all message windows in Gnome - they pop up on secondary monitor).

Any help will be appreciated

T.S.
stelekpl is offline   Reply With Quote
Old 05-19-11, 02:57 PM   #2
XjCook
Registered User
 
Join Date: Oct 2010
Posts: 28
Default Re: Ubuntu, VLC, VSync and video tearing...

I can confirm similar issue: I have dualhead TwinView setup and VSync is working only on default notebook display. Probably problem is with different refresh rates (DFP0: 59,94Hz; DFP1: 59,88Hz).

I found this code for change VSYNC output (VDPAU/OpenGL):
Code:
export VDPAU_NVIDIA_SYNC_DISPLAY_DEVICE="DFP-1"
export __VDPAU_NVIDIA_SYNC_DISPLAY_DEVICE="DFP-1"
export GL_SYNC_TO_VBLANK=1
export __GL_SYNC_TO_VBLANK=1
export GL_SYNC_DISPLAY_DEVICE="DFP-1"
export __GL_SYNC_DISPLAY_DEVICE="DFP-1"
It's working perfectly, although the best solution is to have all monitors without tearing but for me this is sufficient.
XjCook is offline   Reply With Quote
Old 05-21-11, 03:49 PM   #3
stelekpl
Registered User
 
Join Date: Dec 2007
Posts: 8
Default Re: Ubuntu, VLC, VSync and video tearing...

How did you check the refresh rate? For me nvidia-settings shows 60.00Hz for both monitors but I'm not sure whether this number is rounded or not. Is there any other way to check it?
stelekpl is offline   Reply With Quote
Old 05-21-11, 04:25 PM   #4
stelekpl
Registered User
 
Join Date: Dec 2007
Posts: 8
Default Re: Ubuntu, VLC, VSync and video tearing...

And unfortunately this does not really work for me. I created the following script which I use to start videos on my TV:
Code:
#!/bin/sh
export VDPAU_NVIDIA_SYNC_DISPLAY_DEVICE="DFP-1"
export __VDPAU_NVIDIA_SYNC_DISPLAY_DEVICE="DFP-1"
export GL_SYNC_TO_VBLANK=1
export __GL_SYNC_TO_VBLANK=1
export GL_SYNC_DISPLAY_DEVICE="DFP-1"
export __GL_SYNC_DISPLAY_DEVICE="DFP-1"
DISPLAY=":0.1" vlc --fullscreen --aout alsa --vout opengl "$1"
and I still get the tearing. Am I doing something wrong? Perhaps I'm supposed to set the variables before the X server starts?
stelekpl is offline   Reply With Quote
Old 05-23-11, 03:01 AM   #5
XjCook
Registered User
 
Join Date: Oct 2010
Posts: 28
Default Re: Ubuntu, VLC, VSync and video tearing...

I've checked refresh rates in nvidia-settings app. And I found that settings without __ are useless.

I have these variables in xinitrc
Code:
export __VDPAU_NVIDIA_SYNC_DISPLAY_DEVICE="DFP-1"
export __GL_SYNC_TO_VBLANK=1
export __GL_SYNC_DISPLAY_DEVICE="DFP-1"
But for example
Code:
__VDPAU_NVIDIA_SYNC_DISPLAY_DEVICE="DFP-0" vlc sintel-2048-surround.mp4
is not working for me.

Try modify your xinitrc (GDM use /etc/gdm/Xsession, KDM /usr/share/config/kdm/Xsession, SLIM $HOME/.xinitrc, without login manager startx use $HOME/.xinitrc).
XjCook is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 05:33 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.