You are not logged in.

#1 2021-12-31 03:56:27

K4LCIFER
Member
Registered: 2021-10-04
Posts: 70

How do I enable Wayland?

I've had lots of trouble for quite some time now trying to get Wayland to work on my desktop. I really want to get wayland working so that I can mitigate the annoying quirks that come along with xorg, so I would greatly appreciate any help that I can get.

OS and DE: Arch Linux with Gnome
GPU and Driver: nvidia GTX 1080 with nvidia proprietary driver 495.46-6
Physical output: Dual Monitor setup with 1440p main monitor @ 144Hz and 1080p secondary monitor at 60Hz

Last edited by K4LCIFER (2021-12-31 04:00:07)

Offline

#2 2021-12-31 04:04:30

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: How do I enable Wayland?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2021-12-31 04:13:54

K4LCIFER
Member
Registered: 2021-10-04
Posts: 70

Re: How do I enable Wayland?

I'm not 100% sure exactly what you're wanting me to look at from the wiki page, but I tried what it said for gnome in the wayland sessions section by running

gnome-session --wayland

, but failed and outputted

mutter-Message: 20:11:02.962: Running GNOME Shell (using mutter 41.2) as a Wayland display server
Failed to setup: Could not take control: GDBus.Error:System.Error.EBUSY: Device or resource busy%

Last edited by K4LCIFER (2021-12-31 04:14:35)

Offline

#4 2021-12-31 04:38:21

yochananmarqos
Member
Registered: 2020-02-05
Posts: 214

Re: How do I enable Wayland?

Try creating a new user and see if it allows you to login to a Wayland session.

Offline

#5 2021-12-31 05:46:09

K4LCIFER
Member
Registered: 2021-10-04
Posts: 70

Re: How do I enable Wayland?

yochananmarqos wrote:

Try creating a new user and see if it allows you to login to a Wayland session.

Nope still no gear on the log in screen. I may just have to reinstall everything and go from there. There might be some strange config thats messing something up somewhere.

Offline

#6 2021-12-31 06:11:09

once
Member
From: Taiwan
Registered: 2006-09-12
Posts: 270

Re: How do I enable Wayland?

start from GDM.

Offline

#7 2021-12-31 06:12:21

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: How do I enable Wayland?

So you are logging in to your graphical session via GDM? That would explain why the manual start failed with the resource busy error.

Read your journal to see why GDM won't povide a wayland session.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2021-12-31 06:42:20

K4LCIFER
Member
Registered: 2021-10-04
Posts: 70

Re: How do I enable Wayland?

jasonwryan wrote:

So you are logging in to your graphical session via GDM? That would explain why the manual start failed with the resource busy error.

Read your journal to see why GDM won't povide a wayland session.

grepping the output of journalctl for wayland yields a lot of occurences of

systemd[1008]: org.gnome.Shell@wayland.service: Skipped due to 'exec-condition'.

Offline

#9 2021-12-31 06:43:04

K4LCIFER
Member
Registered: 2021-10-04
Posts: 70

Re: How do I enable Wayland?

once wrote:

start from GDM.

what do you mean?

Offline

#10 2021-12-31 07:25:28

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: How do I enable Wayland?

K4LCIFER wrote:

grepping the output of journalctl for wayland yields a lot of occurences of

systemd[1008]: org.gnome.Shell@wayland.service: Skipped due to 'exec-condition'.

https://bbs.archlinux.org/viewtopic.php?id=57855


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2021-12-31 08:18:03

nkolew
Member
From: Europe/Sofia
Registered: 2021-10-28
Posts: 2

Re: How do I enable Wayland?

Wayland is disabled on nvidia by a gdm udev rule.
You have to:
rm /etc/udev/rules.d/61-gdm.rules
and then
ln -s /dev/null /etc/udev/rules.d/61-gdm.rules

Offline

#12 2021-12-31 23:24:00

K4LCIFER
Member
Registered: 2021-10-04
Posts: 70

Re: How do I enable Wayland?

jasonwryan wrote:
K4LCIFER wrote:

grepping the output of journalctl for wayland yields a lot of occurences of

systemd[1008]: org.gnome.Shell@wayland.service: Skipped due to 'exec-condition'.

https://bbs.archlinux.org/viewtopic.php?id=57855

That's all fine and good, but I have no idea what you specifically want me to give you. There's a lot of system logs.

Offline

#13 2021-12-31 23:25:20

K4LCIFER
Member
Registered: 2021-10-04
Posts: 70

Re: How do I enable Wayland?

nkolew wrote:

Wayland is disabled on nvidia by a gdm udev rule.
You have to:
rm /etc/udev/rules.d/61-gdm.rules
and then
ln -s /dev/null /etc/udev/rules.d/61-gdm.rules

That file is already empty for me. I't not linked to /dev/null, but it is empty.

Offline

#14 2022-01-01 11:48:23

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,842
Website

Re: How do I enable Wayland?

K4LCIFER wrote:

There's a lot of system logs.

That's why "$DEITY" invented pastebin sites wink

See also https://wiki.archlinux.org/title/List_o … ted_client but try to upload the logs from as brief a boot as possible.

K4LCIFER wrote:

That file is already empty for me

You shouldn't have any file at /etc/udev/rules.d/61-gdm.rules. The gdm package supplies the rule under /usr/lib/udev/rules.d/ (as do all other packages that ship udev rules)

What happens if you create a symlink to /dev/null from a file of the same name under /etc/udev/rules.d/?


Jin, Jîyan, Azadî

Offline

#15 2022-01-01 15:27:56

NewJoarpa
Member
Registered: 2019-07-27
Posts: 4

Re: How do I enable Wayland?

So, I actually just solved this problem, you have to remove nvidia-egl-wayland or gdm will crash on wayland and start x11.
Make sure you are using nvidia drivers >= 495.

Here's more info:
egl-wayland GitHub Issue
Official nvidia forum

Offline

#16 2022-01-02 20:04:33

NewJoarpa
Member
Registered: 2019-07-27
Posts: 4

Re: How do I enable Wayland?

I found another better solution, downgrade egl-wayland to 1.1.7

It's better than using gbm which has a lot of performance issues using XWayland.

Last edited by NewJoarpa (2022-01-15 18:51:06)

Offline

Board footer

Powered by FluxBB