Hi all, a while ago I had started my Linux journey (in a more serious way, on my main PC) with EndeavourOS. I had a great time with it, but kept running into system breakages as a relative noob by installing unstable updates and throwing caution to the wind with the AUR.
I could also never get Wayland to work, in spite of my best efforts.
What I mean by this is - I’d switch to Wayland on the login screen, and after logging in, I’d be greeted with a black screen and eventual “no signal detected” from my monitors. No amount of key combinations to reboot, switch to a TTY, etc. would do anything. Only a hard reboot would get me back, and I could only get back into the system by switching back to X11.
I switched to Fedora (KDE version) for a while, and I had the same experience with Wayland not working. It was more stable for a while…until randomly during use every screen would go black and the system would be nonresponsive and require a hard reboot - again this is in X11. So much for “Fedora is stable.”
Decided to give OpenSUSE a go, and it seemed promising! Wasn’t a fan of YaST, but Wayland seemed to work. And then on reboot I suddenly got whisked into icewm and KDE just entirely failed to load. Didn’t feel like troubleshooting it beyond that - after 24 hours I gave up on that distro.
So I decided maybe it was time to go back to EndeavourOS - I know it’d received some updates since my last use of it, and I am marginally (just barely) a bit wiser about not installing updates impulsively.
I did a fresh install, and chose systemd-boot instead of grub.
Everything seemed nice - on X11 at least. Refreshed my memory on initial steps and package installers, enabled Bluetooth, added Flatpak, installed Baum just in case (will try to force myself to use terminal over GUI for packages, but wanted a tool for searching at least), etc.
Installed the proprietary Nvidia drivers as well, was very obsessively-careful that I did this right. The “new” nvidia-inst -t command seemed to make this much easier.
Finally, time to try Wayland, right? I installed it, and then logged out and switched to it from the login screen - worked great. Got stuff setup, was excited.
On reboot? Back to the original problem. Black screen after login. I have tried so much troubleshooting. I have asked ChatGPT for help, perused this forum, Reddit, the ArchWiki, and random sites online.
I can verify the following. On entering sudo cat /sys/module/nvidia_drm/parameters/modeset in Konsole, I get Y in response.
I’ve edited /etc/environment and it is currently configured as follows:
#
# This file is parsed by pam_env module
#
# Syntax: simple "KEY=VAL" pairs on separate lines
#
QT_QPA_PLATFORMTHEME="wayland;xcb"
GBM_BACKEND=nvidia-drm
__GLX_VENDOR_LIBRARY_NAME=nvidia
ENABLE_VKBASALT=1
LIBVA_DRIVER_NAME=nvidia
WLR_NO_HARDWARE_CURSORS=1
#QT_STYLE_OVERRIDE=kvantum
BROWSER=firefox
EDITOR=nano
I saw mentions of editing grub, but those configuration files are obviously not on my system since I am using systemd. So after some digging I think I found the correct location - /etc/kernel/cmdline - it reads as follows:
nvme_load=YES nowatchdog rw rootflags=subvol=/@ root=UUID=c7a23b03-2871-497d-8f14-05e51b72801c nvidia-drm.modeset=1
I kept seeing mentions of building “intramfs” and the “usual” commands I saw online indicated no presence of such folder/files on my system. Seems my system might be using “dracut” - such a folder does exist in my /etc/ directory, so I followed some conversations and did what some folks there had done, and created a “custom.conf” under /etc/dracut.conf.d. It reads:
kernel_cmdline="nvidia_drm.modeset=1"
add_drivers+=” nvidia nvidia-drm nvidia-modeset nvidia-uvm ”
I then ran dracut -f to rebuild, as I’d seen explained. I also saw that sudo reinstall-kernels was possibly needed - did that too.
Nothing has worked. I get the same issue every single time I choose Wayland from the login screen. Here is the result of running pacman -Q | grep -e wayland (saw this online for some troubleshooting):
egl-wayland 2:1.1.13-1
kwayland-integration 5.27.10-1
kwayland5 5.115.0-1
plasma-wayland-session 5.27.10-2
qt5-wayland 5.15.12+kde+r61-1
wayland 1.22.0-1
wayland-utils 1.2.0-1
xorg-xwayland 23.2.4-2
For reference, my hardware is as follows:
AMD Ryzen 7 7700X
Nvidia GeForce RTX 4090
64GB DDR5 RAM
1TB PCIe 5.0 M.2 SSD (For Linux; Separate One for Windows Dual-Boot)
I also have three monitors - one primary 4K, two side 1080p monitors. The 4K one is 120Hz capable, the two side ones are 75Hz capable.
Would super-appreciate any assistance for this. It has been plaguing me since early 2022. I’ve been excited to try out KDE Plasma 6 and Wayland and finally maybe even enjoy HDR on Linux! But I have been stymied.
I’ve seen others end threads with no resolution to this, or people’s unhelpful guidance be “run X11” and “use AMD” - hoping to get to a real solution here and hopefully this can be a guide for others too!
I’m rather frustrated but hoping I’ve just overlooked something silly, and maybe optimistic, haha.
Thank you in advance if you read my text wall and have the patience to help me out!