All looks good. The only suspicious log entries are
Jun 23 19:37:10 localhost kernel: [drm:drm_set_master [drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000200] Failed to grab modeset ownership
Jun 23 19:37:10 localhost kernel: [drm:drm_set_master [drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000200] Failed to grab modeset ownership
Jun 23 19:37:10 localhost kernel: [drm:drm_set_master [drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000200] Failed to grab modeset ownership
but according to Ubuntu 21.10 - "Failed to grab modeset ownership" with 495.44 - Linux - NVIDIA Developer Forums this can be ignored. Can you post /var/log/Xorg.log.0 (I assume SDDM is still using it)? If you disable auto-login, do you get display manager greeter screen with password request? Also, you apparently have Optimus system. Where your monitor output is connected - to Intel or nVidia card?
I tried with both root and user, and both gave me exactly this output.
As for including the full command, I would have, if I didn’t have to write everything down manually from a photo I take everytime because I have to reboot between each post (I am typing from my Windows partition right now until I can get my Leap to work at more than 10 fps with the Nvidia driver).
I’ll be careful to from now on (as long as it stays reasonable, otherwise i’ll just take photos. I’m not writting down 30 lines or more!)
I tried to run it as both user and root, same output.
Anyway, I then followed your example command:
#XAUTHORITY=/run/sddm/{1fcbf44c-09b9-45cd-b820-8b88a61a39f8} DISPLAY=:0 xrandr
Screen 0: minimum 8 x 8, current 5200 x 1200, maximum 32767 x 32767
DVI-D-0 disconnected primary (normal left inverted right x axis y axis)
HDMI-0 connected 1360x768+1920+0 (normal left inverted right x axis y axis) 160mm x 90mm
1360x768 60.02*+
1920x1080 59.94 50.00 29.97 25.00 23.98 60.05 60.00 50.04
1280x720 60.00 59.94 50.00
1024x768 75.03 70.07 60.00
800x600 75.00 72.19 60.32
720x576 50.00
720x480 59.94
640x480 75.00 72.81 59.94
DP-0 connected 1920x1200+3280+0 (normal left inverted right x axis y axis) 518mm x 324mm
1920x1200 59.95*+ 74.93
1920x1080 60.00 59.94 50.00
1680x1050 59.95
1600x1200 60.00
1440x900 59.89
1280x1024 75.02 60.02
1280x960 60.00
1280x720 60.00 59.94 50.00
1152x864 75.00
1024x768 75.03 70.07 60.00
800x600 75.00 60.32 56.25
720x576 50.00
720x480 59.94
640x480 75.00 72.81 59.94 59.93
DP-1 disconnected (normal left inverted right x axis y axis)
DVI-D-1 connected 1920x1200+0+0 (normal left inverted right x axis y axis) 518mm x 324mm
1920x1200 59.95*+ 59.88
1920x1080 60.00
1600x1200 60.00
1280x1024 75.02 60.02
1152x864 75.00
1024x768 75.03 60.00
800x600 75.00 60.32
640x480 75.00 59.94
VGA-1-1 disconnected (normal left inverted right x axis y axis)
HDMI-1-1 disconnected (normal left inverted right x axis y axis)
DP-1-1 disconnected (normal left inverted right x axis y axis)
HDMI-1-2 disconnected (normal left inverted right x axis y axis)
HDMI-1-3 disconnected (normal left inverted right x axis y axis)
DP-1-2 disconnected (normal left inverted right x axis y axis)
DP-1-3 disconnected (normal left inverted right x axis y axis)
OK apparently this connector is marked as primary which may cause your desktop environment to output on it, but there is nothing connected.
HDMI-0 connected 1360x768+1920+0 (normal left inverted right x axis y axis) 160mm x 90mm
DP-0 connected 1920x1200+3280+0 (normal left inverted right x axis y axis) 518mm x 324mm
DVI-D-1 connected 1920x1200+0+0 (normal left inverted right x axis y axis) 518mm x 324mm
So you have three monitors. Do you have any output on any of them? Do you know how they are configured in your desktop environment? Which one is your main monitor where you expect to see your GUI?
What you may try now - according to Xorg.log the last connection DVI-D-1 is where boot messages go
I indeed have 3 (a tv (HDMI) and 2 monitors (DVI and DP)). My main monitor, as configured in the DE, is either the DP or DVI, but I don’t remember if I configured the DE to tell it which is the main monitor (but if I did, I selected the DVI one).
But in any case, I don’t have anything displayed on any of them (other than the mouse cursor or the tty).
xrandr --output DVI-D-1 --primary
I tried this command as both user and root, and out of curiosity I tried to switch the DVI-D-1 to DP-0 and HDMI-0 and all gave me the usual
Can't open display
In fact, and I don’t know if it matters, but I couldn’t use the autocompletion with tab (tabbing would immediately give me the “Can’t open display” message).
To the op, I think it is best to reinstall your nvidia driver, but before doing so
clear some of the nvidia folder first.
Things to look up to clear is the
/usr/share/nvidia/
/etc/X11/xorg.conf “if you have”
And just be sure that you have this:
blacklist nouveau
in /etc/modprobe.d/50-blacklist.conf
If you don’t have 50-blacklist.conf
Create the file and put “blacklist nouveau”
and do a
mkinitrd
after saving it.
The thing I don’t undertand here and needs clarification is when does the black screen occur, after the grub booted or after the login?
Are you sure you are set to boot in a graphical interface?
What kind of login prompt or what is the look of the login prompt it shows after grub booted?
when does the black screen occur, after the grub booted or after the login?
it was after grub. I set my user to log in automatically so I can not say whether it happens before or after the user logged in.
Are you sure you are set to boot in a graphical interface?
I had not changed any settings regarding this; unless installing the driver implicitly changed that setting then yes, it should have boot into a graphic interface.
What kind of login prompt or what is the look of the login prompt it shows after grub booted?
there was nothing at all after grub. I’d get past grub and literally get nothing except a black screen and cursor. no blinking underscore, no message of any kind.
Thank you for your help.
After spending 3 days without a computer, I regrettably went back to Kubuntu. Considering I didn’t encounter this bug with Kubuntu it’s probably Leap related ; unfortunately it’ll stay a mystery.
If a mod can change my thread to “solved” or whatever fit this situation, it’d be cool.