Screen tearing for video playback is observed after screen is rotated 180 degree in Ubuntu 20.04, Gnome Vanilla, X11

Bug #1928507 reported by Qinling Wang
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xorg-server (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Screen tearing for video playback is observed after screen is rotated 180 degree in Ubuntu 20.04, Gnome Vanilla, X11. We haven't seen the issue in Wayland.
Here are the steps to reproduce the issue.
1) Install Ubuntu 20.04.
2) Play video on ubuntu 20.04.
3) Turn on 'auto rotation" in setting to rotate the screen; Or use 'xrandr -o 2' to rotate the screen.
4) Screen tearing is observed for 100% reproducible after rotation.
5) It is happening on all of video contents with dynamic scene changing.
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu27.17
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: ubuntu 1327 F.... pulseaudio
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 20.04
InstallationDate: Installed on 2021-05-14 (0 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
MachineType: Intel Corporation Tiger Lake Client Platform
Package: linux (not installed)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.8.0-53-generic root=UUID=a44b834c-d346-4f9c-aa08-ed4716d2ec2c ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 5.8.0-53.60~20.04.1-generic 5.8.18
RelatedPackageVersions:
 linux-restricted-modules-5.8.0-53-generic N/A
 linux-backports-modules-5.8.0-53-generic N/A
 linux-firmware 1.187.12
Tags: focal
Uname: Linux 5.8.0-53-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 03/17/2021
dmi.bios.vendor: Intel Corporation
dmi.bios.version: TGLSFWI1.R00.4092.E68.2103171123
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: TigerLake U DDR4 SODIMM RVP
dmi.board.vendor: Intel Corporation
dmi.board.version: 1
dmi.chassis.asset.tag: Chassis Asset Tag
dmi.chassis.type: 9
dmi.chassis.vendor: Intel Corporation
dmi.chassis.version: 0.1
dmi.ec.firmware.release: 1.35
dmi.modalias: dmi:bvnIntelCorporation:bvrTGLSFWI1.R00.4092.E68.2103171123:bd03/17/2021:efr1.35:svnIntelCorporation:pnTigerLakeClientPlatform:pvr0.1:rvnIntelCorporation:rnTigerLakeUDDR4SODIMMRVP:rvr1:cvnIntelCorporation:ct9:cvr0.1:
dmi.product.family: Tiger Lake Client System
dmi.product.name: Tiger Lake Client Platform
dmi.product.sku: 0001100100010000
dmi.product.version: 0.1
dmi.sys.vendor: Intel Corporation

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1928507

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: focal
Revision history for this message
Qinling Wang (helainewang) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Qinling Wang (helainewang) wrote : CRDA.txt

apport information

Revision history for this message
Qinling Wang (helainewang) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Qinling Wang (helainewang) wrote : IwConfig.txt

apport information

Revision history for this message
Qinling Wang (helainewang) wrote : Lspci.txt

apport information

Revision history for this message
Qinling Wang (helainewang) wrote : Lspci-vt.txt

apport information

Revision history for this message
Qinling Wang (helainewang) wrote : Lsusb.txt

apport information

Revision history for this message
Qinling Wang (helainewang) wrote : Lsusb-t.txt

apport information

Revision history for this message
Qinling Wang (helainewang) wrote : Lsusb-v.txt

apport information

Revision history for this message
Qinling Wang (helainewang) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Qinling Wang (helainewang) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Qinling Wang (helainewang) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Qinling Wang (helainewang) wrote : ProcModules.txt

apport information

Revision history for this message
Qinling Wang (helainewang) wrote : PulseList.txt

apport information

Revision history for this message
Qinling Wang (helainewang) wrote : RfKill.txt

apport information

Revision history for this message
Qinling Wang (helainewang) wrote : UdevDb.txt

apport information

Revision history for this message
Qinling Wang (helainewang) wrote : WifiSyslog.txt

apport information

Revision history for this message
Qinling Wang (helainewang) wrote : acpidump.txt

apport information

Swarna Gajula (sgajula)
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

how do you play the video? any acceleration being used, like VA?

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

I'm not able to reproduce this on TGL-UP3 which seems to be the same hardware as you have.

I'm using vlc and bick_buck_bunny_720p_h264.mov with iHD_drv_video.so providing VA-API acceleration

Revision history for this message
Qinling Wang (helainewang) wrote :

As the attached video, you can see the screen tearing issue easily.

Revision history for this message
Qinling Wang (helainewang) wrote :

We are using mpv to playback video, screen tearing is observed for 100% reproducible.
/usr/bin/mpv --hwdec=vaapi --vo=vaapi ~/*.mp4 (reproduced for both fs or partial screen)

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Stéphane Verdy (sverdy) wrote :

Can you reproduce this without the --vo=vaapi flag (maybe with --vo=gpu instead)?
See https://mpv.io/manual/master/#video-output-drivers-vaapi

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Ok I was able to reproduce it. The tearing happens, because (quote) "rotation is handled by doing a blit in the server which isn't synchronised to anything."

The 'modesetting' driver should gain support for 'TearFree', but that's unlikely to happen anymore because everyone has mostly moved to Wayland already.

affects: linux (Ubuntu) → xorg-server (Ubuntu)
Changed in xorg-server (Ubuntu):
status: Confirmed → Won't Fix
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

the other option would be to try 'xserver-xorg-video-intel' driver which apparently does support TearFree, but it doesn't support TGL properly, and it hasn't had an upstream release since late 2014

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 1846398, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

tags: added: tearing
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.