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

Newegg Daily Deals

Reply
 
Thread Tools
Old 04-03-10, 01:36 PM   #1
Vortex
Registered User
 
Vortex's Avatar
 
Join Date: Jan 2005
Posts: 20
Default tearing with vdpau on multi-monitor setup

Hi everyone,

when I connect an external display to my laptop computer and configure dual-head using TwinView, I get very visible image tearing artifacts when playing video on the external display.

The only way to avoid this, is using mplayer's "xv" video output module and select the appropriate monitor to sync to in nvidia-settings.

Unfortunately, there does not seem to be a similar "Sync to this device option:" for the vdpau video adapter (and neither for OpenGL, by the way).

Is there a way to control which display device the vdpau video output syncs to, so I can get tearing-free video on an external monitor?
Vortex is offline   Reply With Quote
Old 04-05-10, 11:49 AM   #2
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: tearing with vdpau on multi-monitor setup

Please see the README, e.g. here:

http://us.download.nvidia.com/XFree8...ausupport.html

and search for the description of "VDPAU_NVIDIA_SYNC_DISPLAY_DEVICE".
Stephen Warren is offline   Reply With Quote
Old 04-05-10, 03:30 PM   #3
gradinaruvasile
Registered User
 
gradinaruvasile's Avatar
 
Join Date: May 2008
Posts: 199
Default Re: tearing with vdpau on multi-monitor setup

Quote:
Originally Posted by Vortex View Post
Hi everyone,

when I connect an external display to my laptop computer and configure dual-head using TwinView, I get very visible image tearing artifacts when playing video on the external display.

The only way to avoid this, is using mplayer's "xv" video output module and select the appropriate monitor to sync to in nvidia-settings.

Unfortunately, there does not seem to be a similar "Sync to this device option:" for the vdpau video adapter (and neither for OpenGL, by the way).

Is there a way to control which display device the vdpau video output syncs to, so I can get tearing-free video on an external monitor?
I got vdpau tearing on 1 monitor on all 3 computers i use. So i disabled the composite extension in xorg.conf and all is well, no more tearing. Also, no Compiz or other composite-using programs will run this way.
gradinaruvasile is offline   Reply With Quote
Old 04-06-10, 07:59 AM   #4
swagger01
Registered User
 
Join Date: Sep 2008
Posts: 17
Default Re: tearing with vdpau on multi-monitor setup

Quote:
Originally Posted by Stephen Warren View Post
Please see the README, e.g. here:

http://us.download.nvidia.com/XFree8...ausupport.html

and search for the description of "VDPAU_NVIDIA_SYNC_DISPLAY_DEVICE".
AGAIN how are people SUPPOSED TO USE THIS? PLEASE DON'T inflict this obscure hacker talk on REGULAR DESKTOP USERS. WE PAY YOU (through the purchase of NVIDIA hardware) to do all that stuff FOR US !!!!!

To the OP forget about this advice and use Windows to do your video playback. NVIDIA couldn't give a rats ass about us people who use Twinview and playback videos.
swagger01 is offline   Reply With Quote
Old 04-06-10, 10:41 AM   #5
DeiF
Registered User
 
Join Date: Oct 2008
Posts: 114
Default Re: tearing with vdpau on multi-monitor setup

I have a 2 monitor setup, a CRT and a flat panel, and I have had always VDPAU_NVIDIA_SYNC_DISPLAY_DEVICE set to DFP-0 (set automatically in .bashrc), but didn't notice any effect (tearing is about 2 or 3 cm from the top of the display).

The intro of Doctor Who is specially good for spotting the tearing (it has a lot of movement). With XV it works fine. The codec is DivX which isn't supported in my card, so only "-vo vdpau" is actually in use.
DeiF is offline   Reply With Quote
Old 04-06-10, 12:24 PM   #6
davelaser
Registered User
 
Join Date: Oct 2008
Posts: 86
Default Re: tearing with vdpau on multi-monitor setup

Quote:
Originally Posted by swagger01 View Post
AGAIN how are people SUPPOSED TO USE THIS? PLEASE DON'T inflict this obscure hacker talk on REGULAR DESKTOP USERS. WE PAY YOU (through the purchase of NVIDIA hardware) to do all that stuff FOR US !!!!!

To the OP forget about this advice and use Windows to do your video playback. NVIDIA couldn't give a rats ass about us people who use Twinview and playback videos.
Kind of a rude way of putting it but there is an excellent point made here, it would take a very small amount of time for the nvidia developers to put this functionality in nvidia-settings and it would save a lot of users a huge amount of hassle. I'd call myself moderately to very experienced with linux and I couldn't get dual monitor sync working either.

I am asking politely if this option could be made easier to use in future :-)

Sam
davelaser is offline   Reply With Quote
Old 04-06-10, 01:50 PM   #7
swagger01
Registered User
 
Join Date: Sep 2008
Posts: 17
Default Re: tearing with vdpau on multi-monitor setup

Quote:
Originally Posted by davelaser View Post
Kind of a rude way of putting it ....
When you have wasted 3 and a half hours of your life trying to fight NVIDIA's horribly buggy and un-userfreindly graphics drivers to try and do something basic (like being able to watch a video without stupid visual glitches) there is no time for politeness
swagger01 is offline   Reply With Quote
Old 04-06-10, 05:06 PM   #8
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: tearing with vdpau on multi-monitor setup

DeiF, are you sure your DFP is actually DFP-0 not e.g. DFP-1 etc.? Take a look at Xorg.0.log to confirm; I believe the numbering is based at least partially on physical connector, rather than the first active DFP always being DFP-0.

davelaser, I did briefly take a look at plumbing this setting through nvidia-settings, and it's certainly non-trivial. Second, it won't really solve the problem at all, since settings made by nvidia-settings don't persist across logout or reboot without manual effort that I imagine would be considered just as difficult as setting an environment variable. An xorg.conf option would be the best solution persistence-wise, but that is also manually-configured, so doesn't really help ease-of-use.
Stephen Warren is offline   Reply With Quote

Old 04-07-10, 04:08 AM   #9
managementboy
Registered User
 
Join Date: Apr 2008
Posts: 26
Default Re: tearing with vdpau on multi-monitor setup

Is this setting only for twin-view or should it also be used when running two screens?
managementboy is offline   Reply With Quote
Old 04-07-10, 10:17 AM   #10
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: tearing with vdpau on multi-monitor setup

When using two separate X screens, no configuration is required; VDPAU will always attempt to sync-to-vblank individually on each screen.
Stephen Warren is offline   Reply With Quote
Old 04-07-10, 11:24 AM   #11
davelaser
Registered User
 
Join Date: Oct 2008
Posts: 86
Default Re: tearing with vdpau on multi-monitor setup

Quote:
Originally Posted by Stephen Warren View Post
davelaser, I did briefly take a look at plumbing this setting through nvidia-settings, and it's certainly non-trivial. Second, it won't really solve the problem at all, since settings made by nvidia-settings don't persist across logout or reboot without manual effort that I imagine would be considered just as difficult as setting an environment variable. An xorg.conf option would be the best solution persistence-wise, but that is also manually-configured, so doesn't really help ease-of-use.
An option in xorg.conf would be much more familiar to most users than setting environment variables I think. This would be a good idea if it isn't too hard to implement :-)
davelaser is offline   Reply With Quote
Old 04-12-10, 06:52 AM   #12
Vortex
Registered User
 
Vortex's Avatar
 
Join Date: Jan 2005
Posts: 20
Default Re: tearing with vdpau on multi-monitor setup

Quote:
it would take a very small amount of time for the nvidia developers to put this functionality in nvidia-settings
I thought the nvidia-settings application was open source, so if the nvidia devs won't do it, there is always the possibility someone else will do it.

Quote:
An option in xorg.conf would be much more familiar to most users than setting environment variables I think.
Really? Well, I think setting environment variables is part of basic linux knowledge. If you have enough knowledge to manually edit configuration files you should also know how to set environment variables.

Apart from that, I wouldn't want to edit my xorg.conf and restart the X server every time I change this setting.

EDIT: Setting VDPAU_NVIDIA_SYNC_DISPLAY_DEVICE to the correct value (DFP-1 in my case) seems to work nicely. I have to tearing even with a compositing manager running. Thank you very much for pointing this out. Unfortunately the nvidia README is quite lengthy and it's not easy to find what you are looking for.

By the way, to find out the correct identifier for your display device simply open nvidia-settings and head to the "Display Configuration" tab. The identifiers are listed in the "Model:" drop-down box.


Instead of integrating the sync option into nvidia-settings or xorg.conf wouldn't it be a good idea to make an API function for that? The video player application could set the correct value either automatically or via a user-defined setting. I think this way would be most convenient for end-users.
Vortex 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 07:42 AM.


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