I’m writing this thread so that other users having the same problem can find a solution(took me alot of searching to find one)
Problem: Display managers or Desktop environments fail to launch the user is presented with a black screen and when they try to run startx or sddm as root they are greeted with the following message: “nvidia-drm Failed to grab modeset ownership”
The solution is quite simple, i managed to get it working again by modifying the grub configuration, to do this execute the following tasks: You can replace VIM with whatever text editor you fancy)
sudo vim /etc/default/grub
In this file you want to find the following rule
You will want to add
To the beginning of the rule, after the ‘=’
When this is done save the file, and run the following command to update your grub boot configuration
sudo grub2-mkconfig -o /boot/grub/grub.cfg
After that reboot your computer, the problem should be fixed.
@JeroenMathon: thanks a lot for the info! I tried your fix since I have the same problem on latest TW with my GTX 960, but sadly it didn’t change anything. I still find these errors repeatedly in journalctl:
Nov 16 08:54:33 localhost kernel: [drm:drm_new_set_master [drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to grab modeset ownership
Nov 16 08:54:40 localhost kernel: [drm:__nv_drm_connector_detect_internal [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to detect display state
Nov 16 08:54:40 localhost kernel: [drm:nv_drm_connector_get_modes [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to get mode at modeIndex 1 of NvKmsKapiDisplay 0x00000200
Still searching for a fix.
(Btw. I think there’s one typo in your post, the grub2-mkconfig parameter should be /boot/grub2/grub.cfg.)
@conram: I think you are right, the changes are reflected in the Yast Bootloader section.
I don’t use prime, but I actually have another issue now with the new xorg-X11-server version, and locking the version would probably help, but unless Nvidia fixes the driver I don’t see my problems going away. I don’t want to deal with a partially version-locked system either, since I expect that to lead to potential instabilities, so I’ll use a different distro until I have a new PC.