You are not logged in.

#1 2023-08-15 23:14:23

paozaf
Member
Registered: 2012-11-29
Posts: 78

[SOLVED] Gnome on X11 rather then Wayland

Hi all,
I have a Thinkpad P14S Intel with intel + Nvidia card.
I installed gnome and prime-run.

I figured out gnome is running on X11 (as reported in the variable XDG_SESSION_TYPE) and not on wayland.

How can I run it on wayland?

Thanks a lot.

Paolo

Last edited by paozaf (2023-08-16 15:39:58)

Offline

#2 2023-08-16 08:17:32

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,322

Online

#3 2023-08-16 14:35:44

paozaf
Member
Registered: 2012-11-29
Posts: 78

Re: [SOLVED] Gnome on X11 rather then Wayland

Thanks for replying @seth.

I defined the variable MUTTER_ALLOW_HYBRID_GPUS and set the kernel parameter nvidia_drm.modeset=1

Still on X11...any idea?
Can I provide additional info?

PS: I installed nvidia, not nvidia-dkms

Thanks

Offline

#4 2023-08-16 14:40:21

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,322

Re: [SOLVED] Gnome on X11 rather then Wayland

Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Online

#5 2023-08-16 14:49:56

paozaf
Member
Registered: 2012-11-29
Posts: 78

Re: [SOLVED] Gnome on X11 rather then Wayland

This?

http://0x0.st/HLAc.txt

Offline

#6 2023-08-16 14:57:59

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,322

Re: [SOLVED] Gnome on X11 rather then Wayland

GDM unconditionally starts on X11, do you maybe https://wiki.archlinux.org/title/GDM#Use_Xorg_backend ?

Online

#7 2023-08-16 14:59:46

paozaf
Member
Registered: 2012-11-29
Posts: 78

Re: [SOLVED] Gnome on X11 rather then Wayland

I didn't set X11 as backed.
But I would like to use Wayland

Offline

#8 2023-08-16 15:09:52

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,322

Re: [SOLVED] Gnome on X11 rather then Wayland

I understand that, it's just irritating that GDM doesn't even consider using wayland.
The first time wayland is actually considered is when you're trying to start the user session

Aug 16 13:06:36 SWISSARMYKNIFE systemd[2253]: Starting GNOME Shell on Wayland...
Aug 16 13:06:36 SWISSARMYKNIFE systemd[2253]: org.gnome.Shell@wayland.service: Skipped due to 'exec-condition'.
Aug 16 13:06:36 SWISSARMYKNIFE systemd[2253]: Condition check resulted in GNOME Shell on Wayland being skipped.

Where do you set "MUTTER_ALLOW_HYBRID_GPUS=1"?

stat /etc/udev/rules.d/61-gdm.rules

You did follow https://wiki.archlinux.org/title/NVIDIA … er_suspend ?

sudo lsinitcpio /boot/initramfs-linux.img | grep nvidia
find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

Online

#9 2023-08-16 15:21:41

paozaf
Member
Registered: 2012-11-29
Posts: 78

Re: [SOLVED] Gnome on X11 rather then Wayland

I set MUTTER_ALLOW_HYBRID_GPUS in my user's bashrc file.

The gdm rule file is not there:

stat: cannot statx '/etc/udev/rules.d/61-gdm.rules': No such file or directory

I didn't follow that part because I thought suspension was a second order problem.

Thanks

Offline

#10 2023-08-16 15:25:39

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,322

Re: [SOLVED] Gnome on X11 rather then Wayland

I set MUTTER_ALLOW_HYBRID_GPUS in my user's bashrc file.

Try /etc/profile.d/gnome-sucks.sh …
You also were supposed to symlink that to /dev/null

And no, gnome (for whatever reason, don't ask, I've given up on those…) requires that to be present in order to allow you to use wayland despite having an nvidia GPU.

Change your mindset to "gnome devs are really mean and want me to jump through a lot of hoops to do what I want", then follow *everything* in the links I posted.

Online

#11 2023-08-16 15:29:19

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: [SOLVED] Gnome on X11 rather then Wayland

Your user's bashrc is too late and generally not going to be considered by a display manager invoked login. The "easiest" global spot to put that is /etc/environment or stuff like: https://wiki.archlinux.org/title/Enviro … nd_session

For GDM to consider showing wayland you need to follow the suspension guideline OR create the rule file/symlink to /dev/null so that GDM does not use any rules to try and identify whether it should give you wayland and just give it to you.

Edit: FFFFfff5

Last edited by V1del (2023-08-16 15:30:15)

Offline

#12 2023-08-16 15:39:39

paozaf
Member
Registered: 2012-11-29
Posts: 78

Re: [SOLVED] Gnome on X11 rather then Wayland

I followed your sugestion and it works!

echo $XDG_SESSION_TYPE
wayland

Thanks a lot @seth and sorry for the noise!

Paolo

Offline

Board footer

Powered by FluxBB