nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Ubuntu, VLC, VSync and video tearing... (http://www.nvnews.net/vbulletin/showthread.php?t=162644)

stelekpl 05-19-11 01:44 AM

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.

XjCook 05-19-11 02:57 PM

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.

stelekpl 05-21-11 03:49 PM

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 05-21-11 04:25 PM

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?

XjCook 05-23-11 03:01 AM

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


All times are GMT -5. The time now is 04:14 AM.

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