Video tearing with KMS (no video overlay available)

Bug #514245 reported by salva
50
This bug affects 8 people
Affects Status Importance Assigned to Milestone
xserver-xorg-video-ati (Ubuntu)
Invalid
Undecided
Unassigned
Nominated for Maverick by Lollerke

Bug Description

[Problem]
Videos tear (show portions of two consecutive frames simultaneously) when KMS is used. In Karmic it did not do this because of video overlay, which is not yet available with KMS.

[Workarounds]
a) Turn off kernel modesetting by using the radeon.modeset=0 option on the kernel boot line.

or

b) Use xvattr to set XV_BICUBIC to 0. Note that some IGPs are not powerful enough to support bicubic filtering so turning it off may help.

[Original Report]
Reproducing video with totem or mplayer does not go smoothly, consecutive frames are mixed. It looks as if that double buffering was not being use or the buffer swapping was not synchronized with video vertical sync.

It happens both in full screen and in window mode.

I didn't have this problem with Ubuntu 9.10.

ProblemType: Bug
Architecture: amd64
Date: Fri Jan 29 12:17:36 2010
DistroRelease: Ubuntu 10.04
DkmsStatus:
 virtualbox-ose, 3.1.2, 2.6.32-12-generic, x86_64: installed
 virtualbox-ose, 3.1.2, 2.6.32-11-generic, x86_64: installed
 virtualbox-ose, 3.1.2, 2.6.32-10-generic, x86_64: installed
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha amd64 (20091209)
MachineType: Hewlett-Packard HP dx5150 SFF
Package: xserver-xorg-video-radeon 1:6.12.99+git20100126.e5933fd7-0ubuntu1
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-12-generic root=UUID=564eb7dd-0d11-4482-b882-f3794a37eb34 ro quiet splash
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-12.16-generic
RelatedPackageVersions:
 xserver-xorg 1:7.5+1ubuntu2
 libgl1-mesa-glx 7.7-0ubuntu8
 libdrm2 2.4.17-0ubuntu2
 xserver-xorg-video-intel 2:2.9.1-1ubuntu3
SourcePackage: xserver-xorg-video-ati
Uname: Linux 2.6.32-12-generic x86_64
dmi.bios.date: 02/24/2006
dmi.bios.vendor: Phoenix Technologies, LTD
dmi.bios.version: 1.13
dmi.board.name: 09AC
dmi.board.vendor: MSI
dmi.chassis.asset.tag: CZC62933NH
dmi.chassis.type: 3
dmi.chassis.vendor: Hewlett-Packard
dmi.modalias: dmi:bvnPhoenixTechnologies,LTD:bvr1.13:bd02/24/2006:svnHewlett-Packard:pnHPdx5150SFF:pvr:rvnMSI:rn09AC:rvr:cvnHewlett-Packard:ct3:cvr:
dmi.product.name: HP dx5150 SFF
dmi.sys.vendor: Hewlett-Packard
glxinfo: Error: [Errno 2] No such file or directory
system:
 distro: Ubuntu
 architecture: x86_64kernel: 2.6.32-12-generic

[lspci]
01:05.0 VGA compatible controller [0300]: ATI Technologies Inc RS480 [Radeon Xpress 200G Series] [1002:5954]
     Subsystem: Hewlett-Packard Company Device [103c:3009]

Revision history for this message
salva (sfandino) wrote :
Revision history for this message
salva (sfandino) wrote :

Playing video with mplayer or totem does not run smoothly. Consecutive frames appear mixed. It looks as if double buffering was not being used or the redraw/buffer swapping was not synchronized with the monitor vertical sync.

If happens with any video I have tried both at full screen and in window mode.

Video reproduction used to work fine with Ubuntu 9.10 on the same computer.

Bryce Harrington (bryce)
Changed in xserver-xorg-video-ati (Ubuntu):
status: New → Confirmed
Bryce Harrington (bryce)
tags: added: videoplayback
Revision history for this message
Bryce Harrington (bryce) wrote :

[This is an automatic notification.]

Thanks for reporting this bug to help making the -ati graphics driver
better. We hear from upstream that a number of bugs (possibly including
this one) have been fixed in the newer DRM code from the 2.6.33 kernel.
I don't know if your bug is one of the ones fixed in this release,
though, but we've prepared a PPA with this DRM update. Would you mind
installing this, rebooting, and testing if the original issue can be
reproduced with it or not?

The DRM PPA is here:

    https://edge.launchpad.net/~apw/+archive/red

Note there could be new bugs... please file these as new reports using
the command 'ubuntu-bug linux' (for kernel or DRM or KMS bugs) or
'ubuntu-bug xorg' if you suspect them to be X.org issues.

Changed in xserver-xorg-video-ati (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
salva (sfandino) wrote :

I have tried with the new kernel from your PPA and the latest xserver packages and the issue remains.

Revision history for this message
salva (sfandino) wrote :
Revision history for this message
Vikram Dhillon (dhillon-v10) wrote : Re: [Ubuntu-x-swat] [Bug 514245] Re: bad double buffering or vertical sync

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/05/2010 05:58 PM, salva wrote:
>
> ** Attachment added: "xserver log"
> http://launchpadlibrarian.net/40284209/Xorg.0.log
>

Since salva has tried the ppa and no good results, changing this to
confirmed. Thanks.

 status confirmed.

- --
Regards,
Vikram Dhillon

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkuR8TIACgkQcoBavQdRHcxxmwCgj2K9gyOCzNZKhTLYwZ1vMbZi
laEAnA5KUwkazoxhGi8rn5545BJStgEu
=m5Hy
-----END PGP SIGNATURE-----

Revision history for this message
Vikram Dhillon (dhillon-v10) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/05/2010 05:58 PM, salva wrote:
>
> ** Attachment added: "xserver log"
> http://launchpadlibrarian.net/40284209/Xorg.0.log
>

Since salva has tried the ppa with no good results, marking this one
confirmed. Thanks.

 status confirmed

- --
Regards,
Vikram Dhillon

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkuR+DIACgkQcoBavQdRHcySggCglGB59T5me1zv7VVOYwk31fGI
nesAnRTyEnMqh3tEKtJt0/4h44hLMsJd
=LP7T
-----END PGP SIGNATURE-----

Changed in xserver-xorg-video-ati (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Benjamin Drung (bdrung) wrote : Re: bad double buffering or vertical sync

Can you test xserver-xorg-video-ati 1:6.12.191-1ubuntu1 from my PPA [1]?

[1] https://launchpad.net/~bdrung/+archive/ppa

Revision history for this message
salva (sfandino) wrote :

Installing that package did not solve the problem either.

(I have tested it with the currently most recent kernel available for Lucid, 2.6.32-16-generic, and with the one supplied by Bryce Harrington).

Revision history for this message
Bryce Harrington (bryce) wrote :

salva - I've forwarded this bug upstream to https://bugs.freedesktop.org/show_bug.cgi?id=27192 - please subscribe yourself to this bug, in case they need further information or wish you to test something. Thanks ahead of time!

Changed in xserver-xorg-video-ati (Ubuntu):
status: Confirmed → Triaged
Changed in xserver-xorg-driver-ati:
status: Unknown → Confirmed
Bryce Harrington (bryce)
summary: - bad double buffering or vertical sync
+ Video tearing with KMS (no video overlay available)
description: updated
Bryce Harrington (bryce)
Changed in xserver-xorg-video-ati (Ubuntu):
importance: Undecided → Wishlist
Bryce Harrington (bryce)
description: updated
Bryce Harrington (bryce)
tags: added: tearing
Revision history for this message
Lollerke (pumba88) wrote :

I cannot set XV_BICUBIC to 0, because its always switches back to 2. How can I set it properly?

Revision history for this message
Lollerke (pumba88) wrote :

Problem solved with: sudo xvattr -a XV_BICUBIC -v 0 -p 64

Revision history for this message
Lollerke (pumba88) wrote :

Setting XV_BICUBIC to 0 doesn't solve tearing for me.

Revision history for this message
Lollerke (pumba88) wrote :

Enabling compiz and ticking sync to vblank in compizconfig-settings-manager works.

Revision history for this message
Lollerke (pumba88) wrote :

I think this bug should be tracked in maverick because it will likely use 2.6.35 and a git snapshot of xserver-xorg-video-ati after may 7th where kms dri2 sync and swap will be available and tearing will gone. http://lists.x.org/archives/xorg-driver-ati/2010-May/015597.html

Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

would this also be the reason for tearing in Flash as well? (BBC iplayer 720p HD streams - not too bad but noticable).

Dave

Revision history for this message
Benjamin Drung (bdrung) wrote :

Yes, Flash will probably tear too. I am using the free (open source) ati driver since Ubuntu 9.10 because of this bug.

Revision history for this message
Lollerke (pumba88) wrote :

Fixed in Maverick.

Changed in xserver-xorg-video-ati (Ubuntu):
status: Triaged → Invalid
Changed in xserver-xorg-driver-ati:
importance: Unknown → Undecided
status: Confirmed → New
status: New → Invalid
Revision history for this message
Fausto Piovesan (faustop) wrote :

This bug should be re-opened as it is NOT fixed in Maverick. I'm running Maverick on a system with a RS482 [Radeon Xpress 200M] and I still see tearing on the top left corner of my screen when playing full-screen videos.

Note: compiz is turned off as it is not supported on my hardware.

Changed in xserver-xorg-driver-ati:
importance: Undecided → Unknown
status: Invalid → Unknown
importance: Unknown → Undecided
status: Unknown → New
penalvch (penalvch)
no longer affects: xserver-xorg-video-ati (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xserver-xorg-video-ati (Ubuntu):
status: New → Confirmed
Revision history for this message
penalvch (penalvch) wrote :
affects: xserver-xorg-driver-ati → xserver-xorg-video-ati (Ubuntu)
Changed in xserver-xorg-video-ati (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.