You are not logged in.
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
Online
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
Please post your complete system journal for the boot:
sudo journalctl -b | curl -F 'file=@-' 0x0.stOnline
This?
http://0x0.st/HLAc.txtOffline
GDM unconditionally starts on X11, do you maybe https://wiki.archlinux.org/title/GDM#Use_Xorg_backend ?
Online
I didn't set X11 as backed.
But I would like to use Wayland
Offline
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.rulesYou 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 -fOnline
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 directoryI didn't follow that part because I thought suspension was a second order problem.
Thanks
Offline
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
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
I followed your sugestion and it works!
echo $XDG_SESSION_TYPE
waylandThanks a lot @seth and sorry for the noise!
Paolo
Offline