Heavy screen tearing in Wayland sessions on Raspberry Pi 4-B

Bug #1896167 reported by Daniel van Vugt
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
flash-kernel (Ubuntu)
Fix Released
Medium
Unassigned
linux-raspi (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Heavy screen tearing in Wayland sessions on Raspberry Pi 4-B when using the FMKS driver, meaning you have:

  dtoverlay=vc4-fkms-v3d

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 1896167

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
affects: linux (Ubuntu) → linux-raspi (Ubuntu)
Changed in linux-raspi (Ubuntu):
status: Incomplete → New
tags: added: raspi raspi-gfx raspi4
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I've read a suggestion this is fixed in later kernels like 5.9. Need to test.

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

It's kernel 5.10 apparently.

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in linux-raspi (Ubuntu):
status: New → Confirmed
Changed in mutter (Ubuntu):
status: New → Confirmed
Revision history for this message
Juliane (juliane11) wrote :

I can confirm this bug.

I'm using:
- Raspberry Pi 4B 8GB
- Ubuntu 20.10 Desktop

Choosing "Ubuntu on Wayland" as Desktop at the login-screen, I can login.
- Opening "files" works (I get a normal window)
- But, opening Firefox/Gimp/etc brings up broken windows (see attachment)

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

Juliane,

That's not tearing, it's corruption. See bug 1896171 instead.

summary: - Heavy screen tearing in Wayland sessions on Raspberry Pi 4-B
+ Heavy screen tearing in Wayland sessions on Raspberry Pi 4-B (using the
+ FKMS driver)
description: updated
Changed in linux-raspi (Ubuntu):
importance: Undecided → Medium
Changed in mutter (Ubuntu):
importance: Undecided → Medium
Changed in linux-raspi (Ubuntu):
status: Confirmed → Triaged
Changed in mutter (Ubuntu):
status: Confirmed → Triaged
tags: added: hirsute
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: Heavy screen tearing in Wayland sessions on Raspberry Pi 4-B (using the FKMS driver)

The tearing still happens in hirsute, but only when you can convince the system to render at 60Hz. Most of the time it's stuttering (30Hz) and not tearing.

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

Seems to depend on clock frequency, just like I see with Intel graphics. If you spin the CPU at 100% like:

  while true; do true; done

then the clock frequencies increase and desktop frame rates become very smooth. But that's also when the tearing starts.

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

Seems to be fixed now using full KMS. Full KMS required both:

  * Kernel >= 5.10.7
  * Bug 1918110 to be fixed, which it now is.

affects: mutter (Ubuntu) → flash-kernel (Ubuntu)
Changed in flash-kernel (Ubuntu):
status: Triaged → Fix Released
Changed in linux-raspi (Ubuntu):
status: Triaged → Fix Released
summary: - Heavy screen tearing in Wayland sessions on Raspberry Pi 4-B (using the
- FKMS driver)
+ Heavy screen tearing in Wayland sessions on Raspberry Pi 4-B
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Also I am now using:

  dtoverlay=vc4-kms-v3d

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.