[KWin]: Lack of proper wayland compositor support
Created by: CertifiedBlyndGuy
If I recall, I believe this is currently a fault of nvidia itself not testing it's drivers against wayland while relying on the older Xorg standard, but just to make sure.
Let's start with the initial issue first. You guys write the compositor configuration to X11 whenever nonfree drivers are selected during installation. This is wrong, and actually broke my touchpad until I noticed the the conflict between KCM and libinput originated from those leftover files in /etc/X11. So I ended up removing those, and then attempted to find the problem... Well, today I had to work through a project with OBS, and realized it wasn't working because of the nvidia drivers (it was actually because it doesn't support wayland, but let's focus on the issue). So I went to install the nonfree drivers like so:
sudo mhwd -a pci nonfree 0300
sudo systemctl enable bumblebeed (yes, I am using a 960M on a rolling release lol. I love this distro)
And during sudo mhwd -a pci nonfree 0300, I got this after a successful install:
/var/lib/mhwd/scripts/mhwd: line 9: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/mhwd: line 10: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/mhwd: line 11: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/mhwd: line 12: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/mhwd: line 13: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/include/0300: line 36: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/include/0300: line 37: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/include/0300: line 38: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/include/0300: line 43: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/include/0300: line 43: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/include/0300: line 48: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/include/0300: line 49: /etc/X11/mhwd.d/intel.conf: No such file or directory
sed: can't read /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/include/0300: line 60: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/include/0300: line 61: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/include/0300: line 62: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/include/0300: line 63: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/include/0300: line 64: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/include/0300: line 65: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/include/0300: line 71: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/include/0300: line 72: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/include/0300: line 73: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/include/0300: line 74: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/include/0300: line 75: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/include/0300: line 76: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/include/0300: line 82: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/include/0300: line 83: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/include/0300: line 84: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/include/0300: line 85: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/include/0300: line 86: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/include/0300: line 87: /etc/X11/mhwd.d/intel.conf: No such file or directory
/var/lib/mhwd/scripts/include/0300: line 88: /etc/X11/mhwd.d/intel.conf: No such file or directory
warning: could not find '/etc/X11/mhwd.d/intel.conf'!
So I imagine those files are pretty important for proper driver support, because when I go to launch nvidia settings, this is where things get really interesting:
ERROR: NVIDIA driver is not loaded
ERROR: Error querying enabled displays on GPU 0 (Missing Extension).
ERROR: Error querying connected displays on GPU 0 (Missing Extension).
ERROR: nvidia-settings could not find the registry key file. This file should have been installed along with this driver at /usr/share/nvidia/nvidia-application-profiles-key-documentation. The application profiles will continue to work,
but values cannot be prepopulated or validated, and will not be listed in the help text. Please see the README for possible values and descriptions.
I saw another nvidia issue, but I wanted to open a proper case for the time being since it isn't just a fault of nvidia drivers (again, my trackpad partially broke. I still can't figure out middle clicks for pasting which is annoying, but it works better than it did before since KCM finally works).
Anyway, I hope I somewhat helped. I'd like to help with the project in the future. It's just I don't know much outside of device trees and kernels.
Thank you for looking over this!