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

Newegg Daily Deals

Reply
 
Thread Tools
Old 02-17-10, 12:06 AM   #1
swagger01
Registered User
 
Join Date: Sep 2008
Posts: 17
Default Video tearing on second monitor using TwinView

Hi,

Video tearing is occurring on my second monitor when I am using TwinView, which is very distracting.

Driver Version: 195.30
Distribution: Ubuntu 9.10

Please fix this NVIDIA as fast as possible since its very distracting for me.
swagger01 is offline   Reply With Quote
Old 02-17-10, 02:42 AM   #2
drhirsch
Registered User
 
Join Date: Jul 2005
Posts: 61
Default Re: Video tearing on second monitor using TwinView

I doubt that this is technically possible. The GL can only sync to one monitor.
drhirsch is offline   Reply With Quote
Old 02-17-10, 03:00 AM   #3
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default Re: Video tearing on second monitor using TwinView

Try the VDPAU_NVIDIA_SYNC_DISPLAY_DEVICE environment variable, documented in the README.
AaronP is offline   Reply With Quote
Old 02-17-10, 08:14 AM   #4
rtcm
Registered User
 
Join Date: Oct 2007
Posts: 51
Default Re: Video tearing on second monitor using TwinView

Quote:
Originally Posted by AaronP View Post
Try the VDPAU_NVIDIA_SYNC_DISPLAY_DEVICE environment variable, documented in the README.
I wonder, couldn't you implement this so that the video display surface would automatically sync to the monitor where it is contained? If it is contained on more than one monitor then ditch it and don't sync at all.

I think that would be easy enough to implement and it would Just Work without the user having to know about environment variables (which can only be set before the media player app starts...).

Regarding VDPAU, why doesn't it just use the XVideoSyncToDisplay driver setting in the first place? Ofcourse, VDPAU isn't XV thus that setting should probably be renamed but...
rtcm is offline   Reply With Quote
Old 02-17-10, 09:14 AM   #5
swagger01
Registered User
 
Join Date: Sep 2008
Posts: 17
Default Re: Video tearing on second monitor using TwinView

Quote:
Originally Posted by AaronP View Post
Try the VDPAU_NVIDIA_SYNC_DISPLAY_DEVICE environment variable, documented in the README.
I am not a hacker, can you please explain what you mean by "try the environment variable"

I have also noticed that I am getting tearing when I playback video on my main monitor. I have set the XVideo Settings to "Sync to Vblank" and selected my main monitor to sync and also selected "Xv output" in Mplayer and still get tearing.
swagger01 is offline   Reply With Quote
Old 02-17-10, 10:11 AM   #6
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: Video tearing on second monitor using TwinView

If you use the overlay-based presentation queue, you will not have tearing on any display, and no need to configure anything. See the VDPAU section in the README for details on when the overlay- vs. blit-based presentation queue is used.

If you use the blit-based presentation queue, you may need to set an environment variable before you run your video player application, to tell VDPAU which display device to sync to:

export VDPAU_NVIDIA_SYNC_DISPLAY_DEVICE=DFP-0

(replace "DFP-0" with the correct display name).

If you start your video player from a shell/command-line/terminal, simply execute that command first. If you start your video player from a script, you'll need that command in the script before starting your video player. If you start your video player using a GUI menu etc., things are more complicated; perhaps you can set that environment variable in your "x session" file.
Stephen Warren is offline   Reply With Quote
Old 02-17-10, 10:11 AM   #7
rtcm
Registered User
 
Join Date: Oct 2007
Posts: 51
Default Re: Video tearing on second monitor using TwinView

Quote:
Originally Posted by swagger01 View Post
I am not a hacker, can you please explain what you mean by "try the environment variable"
Try
Code:
 VDPAU_NVIDIA_SYNC_DISPLAY_DEVICE=CRT-1 mplayer media_file
changing CRT-1 to whatever is the connector where you want to sync.

Quote:
I have also noticed that I am getting tearing when I playback video on my main monitor. I have set the XVideo Settings to "Sync to Vblank" and selected my main monitor to sync and also selected "Xv output" in Mplayer and still get tearing.
You must set the connector where you want XV to sync on nvidia-settings and the make sure your mplayer is using the XV output like
Code:
 mplayer -vo xv media_file
rtcm is offline   Reply With Quote
Old 02-17-10, 05:42 PM   #8
mocharhw
Registered User
 
Join Date: May 2008
Posts: 113
Default Re: Video tearing on second monitor using TwinView

Does it matter if you put double quotes around the device in the env statement, like ="CRT-1" instead of =CRT-1? I've seen this both ways in various documents and forum posts.
mocharhw is offline   Reply With Quote

Old 02-17-10, 07:28 PM   #9
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default Re: Video tearing on second monitor using TwinView

No. The quotes just prevent the shell from evaluating things like * and ~ as special characters but for something simple like DFP-1, it doesn't matter.
AaronP is offline   Reply With Quote
Old 02-18-10, 01:10 PM   #10
swagger01
Registered User
 
Join Date: Sep 2008
Posts: 17
Default Re: Video tearing on second monitor using TwinView

Let me reiterate that I am NOT a hacker but Ive tried my best to do all the solutions here and they STILL do not work !!

Every video player I have tried STILL the same thing, lots of tearing !!

I have set Xv to be my output in Smplayer, I have set my main monitor "DFP-0" to sync in "X Server Xvideo settings" I have also checked "Sync to Vblank" ... everything does NOT work !!

Please provide a meaningful solution, I have even reverted back to the stable 190.53 drivers and it still exhibits the same problem.
swagger01 is offline   Reply With Quote
Old 02-18-10, 02:55 PM   #11
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default Re: Video tearing on second monitor using TwinView

Are you running a composite manager such as Compiz?
AaronP is offline   Reply With Quote
Old 02-18-10, 10:03 PM   #12
swagger01
Registered User
 
Join Date: Sep 2008
Posts: 17
Default Re: Video tearing on second monitor using TwinView

Yes I am running Compiz, there is a large majority of Linux users who use Compiz.

I never got any tearing when I ran a single monitor, this only happened when I activated TwinView.
swagger01 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 09:48 AM.


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