[radeon] gnome-shell Wayland sessions fail to start on legacy Radeon systems (Failed to lock front buffer on /dev/dri/cardN: drmModeAddFB2WithModifiers failed: Invalid argument)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mutter |
Fix Released
|
Unknown
|
|||
mutter (Ubuntu) |
Fix Released
|
High
|
Daniel van Vugt |
Bug Description
Wayland started crashing for me on upgrade to Jammy, which I'm aware is currently in alpha.
gdm was crashing, and changing to lightdm addressed this issue. If I select 'Ubuntu on Xorg' - I can login without problems.
If I select Wayland instead, I just get a black screen, and I have to kill gnome-session from a virtual console.
WORKAROUND:
Add this to /etc/environment: MUTTER_
---
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: gnome-shell 42~beta-1ubuntu3
ProcVersionSign
Uname: Linux 5.15.0-23-generic x86_64
ApportVersion: 2.20.11-0ubuntu79
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Mon Mar 28 15:23:51 2022
DisplayManager: lightdm
InstallationDate: Installed on 2022-03-19 (9 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20220318)
RelatedPackageV
SourcePackage: gnome-shell
UpgradeStatus: No upgrade log present (probably fresh install)
summary: |
- [amdgpu][radeon] gnome-shell: Failed to lock front buffer on - /dev/dri/card1: drmModeAddFB2WithModifiers failed: Invalid argument + [amdgpu][radeon] gnome-shell Wayland sessions fail to start (Failed to + lock front buffer on /dev/dri/card1: drmModeAddFB2WithModifiers failed: + Invalid argument) |
tags: | added: rls-jj-incoming |
summary: |
- [radeon] gnome-shell Wayland sessions fail to start (Failed to lock - front buffer on /dev/dri/card1: drmModeAddFB2WithModifiers failed: - Invalid argument) + [radeon] gnome-shell Wayland sessions fail to start on legacy Radeon + systems (Failed to lock front buffer on /dev/dri/cardN: + drmModeAddFB2WithModifiers failed: Invalid argument) |
Changed in mutter (Ubuntu): | |
status: | Fix Committed → Fix Released |
Changed in mutter: | |
status: | Unknown → Fix Released |
Sounds like the main issue is in the radeon driver as logged by mutter through the gnome-shell process:
[ 41.402230] perseverance gnome-shell[1980]: Running GNOME Shell (using mutter 42.beta) as a Wayland display server thModifiers failed: Invalid argument thModifiers failed: Invalid argument thModifiers failed: Invalid argument thModifiers failed: Invalid argument thModifiers failed: Invalid argument thModifiers failed: Invalid argument thModifiers failed: Invalid argument
[ 41.541617] perseverance gnome-shell[1980]: Device '/dev/dri/card0' prefers shadow buffer
[ 41.706004] perseverance gnome-shell[1980]: Added device '/dev/dri/card0' (radeon) using non-atomic mode setting.
[ 41.712482] perseverance gnome-shell[1980]: Device '/dev/dri/card1' prefers shadow buffer
[ 41.794534] perseverance gnome-shell[1980]: Added device '/dev/dri/card1' (radeon) using non-atomic mode setting.
[ 41.862439] perseverance gnome-shell[1980]: Created gbm renderer for '/dev/dri/card0'
[ 41.874842] perseverance gnome-shell[1980]: Created gbm renderer for '/dev/dri/card1'
[ 41.875169] perseverance gnome-shell[1980]: Boot VGA GPU /dev/dri/card1 selected as primary
...
[ 76.556487] perseverance gnome-shell[1980]: Failed to lock front buffer on /dev/dri/card1: drmModeAddFB2Wi
[ 76.572662] perseverance gnome-shell[1980]: Failed to lock front buffer on /dev/dri/card1: drmModeAddFB2Wi
[ 76.585261] perseverance gnome-shell[1980]: Failed to lock front buffer on /dev/dri/card1: drmModeAddFB2Wi
[ 76.620348] perseverance gnome-shell[1980]: Failed to lock front buffer on /dev/dri/card1: drmModeAddFB2Wi
[ 76.635119] perseverance gnome-shell[1980]: Failed to lock front buffer on /dev/dri/card1: drmModeAddFB2Wi
[ 76.652753] perseverance gnome-shell[1980]: Failed to lock front buffer on /dev/dri/card1: drmModeAddFB2Wi
[ 77.141353] perseverance gnome-shell[1980]: Failed to lock front buffer on /dev/dri/card1: drmModeAddFB2Wi