I tried to configure Wayland for KDE. I’m not sure If I did everything properly but windows were grayish and very unstable. I did some other changes and system die.
Before everything, I used btrfs snapshots, so I have my system clean and ready to another try 
I would like to sum up this topic a little bit.
Wayland:
https://wiki.archlinux.org/index.php/Wayland#Requirements
Most Wayland compositors requite KMS
so 
https://wiki.archlinux.org/index.php/Kernel_mode_setting
KMS for Nvidia has to be enabled manually
so 
nvidia 364.16 adds support for DRM (Direct Rendering Manager) kernel mode setting. To enable this feature, add the nvidia-drm.modeset=1
kernel parameter.
so 
We should edit:
/etc/default/grub
and in line GRUB_CMDLINE_LINUX_DEFAULT=""
add nvidia-drm.modeset=1
so it should look like this:
GRUB_CMDLINE_LINUX_DEFAULT="nvidia-drm.modeset=1"
For basic functionality that should suffice but:
If you want to ensure it’s loaded at the earliest possible occasion, or are noticing startup issues you can add nvidia
, nvidia_modeset
, nvidia_uvm
and nvidia_drm
to the initramfs according to Mkinitcpio#MODULES
so 
We can edit /etc/mkinitcpio.conf
and in line:
MODULES=()
add modules so it will look like this:
MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)
And then with command
mkinitcpio -P
rebuild initramfs
One thing I’m not sure.
Are
GRUB_CMDLINE_LINUX_DEFAULT="nvidia-drm.modeset=1"
and
MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)
Can/should be set in the same time or is this one or another?
Is Grub way the Late KMS Start and Modules way Early KMS Start ?
And that should be all I think. Could you evaluate this and check if I made a any mistake?
p.s.0.
I didn’t see anything on Wiki but on kde community page
https://community.kde.org/Plasma/Wayland/Nvidia
there is information:>
ake sure to have the Nvidia egl library installed. For example on Ubuntu and Neon the relevant package is called libnvidia-egl-wayland1
In arch repos it’s probably egl-wayland
package but I’m not sure if this is only for KDE. If this package is must have (didn’t find info on wiki)
Will it work with Gnome - I don’t know.
p.s.1.
At the begening of KMS article on arch wiki there is:
At first, note that for any method you use, you should always disable:
- Any
vga=
options in your bootloader as these will conflict with the native resolution enabled by KMS.
- Any
video=
lines that enable a framebuffer that conflicts with the driver.
- Any other framebuffer drivers (such as uvesafb).
But I’m not sure where should I look for vga or video.
I checked /boot/grub/grub.cfg
and /etc/default/grub
Is that ok?
p.s.2.
https://wiki.archlinux.org/index.php/Kernel_mode_setting#Troubleshooting
This is only if something go wrong right?
p.s.3.
At the begening of
https://wiki.archlinux.org/index.php/Wayland#Requirements
There is a table:
Buffer API |
GPU driver support |
Wayland compositor support |
GBM |
All except NVIDIA |
All |
EGLStreams |
NVIDIA |
GNOME, KDE, Weston |
But after all knowledge I have from reading everything I mentioned above I don’t understand Buffer API. Don’t know If doing all this steps will enable EGLStreams
I don’t want to be forum parasite. I always try to go by the rule RTFM and I believe I did my homework. Maybe this post could be changed it to tutorial in the future 