You are not logged in.

#1 2025-03-17 13:07:23

Elppans
Member
Registered: 2024-01-13
Posts: 5

Gnome Shell + Wayland freezes

Hello, how are you?

Sorry for my English, I really tried to write correctly.

This week I was testing ArchLinux with **Gnome Shell + Wayland** and I noticed an annoying problem.

I noticed that the system is freezing when it is idle for a while.

I did several tests that didn't work, until I decided to test the system in an X11 session.

There was **no problem with Gnome Shell + X11**, so I switched back to the Wayland session for more tests.

I found that the following packages solve the problem:


xorg-xwayland xorg-xlsclients glfw-wayland


After installing these packages, there were no more freezes when idle. It worked as well as an X11 session.

The `libinput` and `wayland` packages were already installed.

Just to reinforce, I later installed the "`wayland-protocols`" package, but I don't know if this is really necessary, since the other 3 have already fixed the problem.

However, there is one more detail:

The system stopped crashing with these packages when it is left untouched for a while, but I noticed that when it goes into Standby (or tries to do so), the problem occurs.

If I set the variable "GDK_BACKEND=wayland", the system works normally, but it disables "copy-paste" between Host and VM.

If I set GDK_BACKEND=wayland,x11 or remove it, the problem occurs again.

How can I fix this problem?

Thank you very much in advance!

Offline

#2 2025-03-17 13:24:49

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,563
Website

Re: Gnome Shell + Wayland freezes

Mod note: Moving to Applications & Desktop Environments.


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#3 2025-03-18 03:30:39

woodsb02
Member
Registered: 2013-06-03
Posts: 10

Re: Gnome Shell + Wayland freezes

What version of GNOME are you running?

I am having the same issue now (gnome freezing every few minutes) - I am testing the new GNOME 48 from gnome-unstable and extra-testing. The kernel is still working, because music keeps playing, and I can ssh to the machine over the network.

Installing those 3 packages (xorg-xwayland xorg-xlsclients glfw-wayland) didn't fix it for me.

What does help unfreeze it, is opening my laptop lid - it immediately comes back to life, and then I can close it again.

Offline

#4 2025-03-18 04:42:23

Elppans
Member
Registered: 2024-01-13
Posts: 5

Re: Gnome Shell + Wayland freezes

I'm using Gnome Shell version 47.

Try this variable, "GDK_BACKEND=wayland" in the /etc/environment file to see if it works for you.

It works for me, but the downside is that it disables copy-paste between Host and VM.

Offline

#5 2025-03-19 00:51:52

woodsb02
Member
Registered: 2013-06-03
Posts: 10

Re: Gnome Shell + Wayland freezes

Offline

#6 2025-03-19 07:03:27

woodsb02
Member
Registered: 2013-06-03
Posts: 10

Re: Gnome Shell + Wayland freezes

The recent update to mutter 48.0-3 fixed this issue for me.
https://gitlab.archlinux.org/archlinux/ … 8ad31996d8

Offline

#7 2025-03-21 13:54:55

Elppans
Member
Registered: 2024-01-13
Posts: 5

Re: Gnome Shell + Wayland freezes

woodsb02 wrote:

The recent update to mutter 48.0-3 fixed this issue for me.
https://gitlab.archlinux.org/archlinux/ … 8ad31996d8

I'm using the stable version, so I'll wait for version 48 to arrive to test it. From what I've seen, it won't take long, so I'll be patient.
When I test it, I'll come back with the results.

Offline

#8 2025-03-25 01:08:30

Elppans
Member
Registered: 2024-01-13
Posts: 5

Re: Gnome Shell + Wayland freezes

Finally, the packages have been updated to Stable.
I tested it in VM, QEMU/KVM with the QXL video model and Gnome froze.
So I configured the model to Virtio and surprisingly, it didn't freeze, it continued normally.
In short: Systems with Wayland in QEMU/KVM, test it using Virtio.
So this topic is resolved. Thank you very much for everything and see you next time.

Offline

Board footer

Powered by FluxBB