<SOLVED>Black screen after nvidia install.

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
danield
Level 2
Level 2
Posts: 72
Joined: Sun Sep 30, 2018 4:23 pm

Re: Black screen after nvidia install.

Post by danield »

Nope, never got to that. If I click recovery mode it takes me to the desktop eventually, after the screen flashes white.
Thank you
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Black screen after nvidia install.

Post by roblm »

If you can get to the desktop, then use those commands in the Terminal.
danield
Level 2
Level 2
Posts: 72
Joined: Sun Sep 30, 2018 4:23 pm

Re: Black screen after nvidia install.

Post by danield »

User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Black screen after nvidia install.

Post by roblm »

The file /usr/share/X11/xorg.conf.d/11-nvidia-prime.conf is missing. Use this command to create it:
sudo touch /usr/share/X11/xorg.conf.d/11-nvidia-prime.conf

Open the file for editing: xed admin:///usr/share/X11/xorg.conf.d/11-nvidia-prime.conf

Add these lines:

Code: Select all

Section "OutputClass" 
    Identifier "Nvidia Prime"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "AllowEmptyInitialConfiguration"
    Option "IgnoreDisplayDevices" "CRT"
    Option "PrimaryGPU" "Yes"
    ModulePath "/x86_64-linux-gnu/nvidia/xorg"
EndSection
Open the grub file: xed admin:///etc/default/grub

Remove nomodeset from this line:

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset dis_ucode_ldr"
Update grub and reboot: sudo update-grub
danield
Level 2
Level 2
Posts: 72
Joined: Sun Sep 30, 2018 4:23 pm

Re: Black screen after nvidia install.

Post by danield »

That seems to have got me in.
Thank you.
Although it does seem to flash white for some reason before showing the screen.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Black screen after nvidia install.

Post by roblm »

danield wrote: Although it does seem to flash white for some reason before showing the screen.
Do you need to use this parameter: dis_ucode_ldr


The question is why the 11-nvidia-prime.conf was missing. It’s supposed to be created automatically after the Nvidia driver is installed.

Would you test switching to the other GPU modes to see if everything works after switching.
First use the nvidia-prime applet to switch to Intel mode. After rebooting, post the output of:
glxinfo | grep renderer

Then switch to the On-Demand mode. After rebooting, use these commands and post the output:

Code: Select all

glxinfo | grep renderer
nvidia-optimus-offload-glx glxinfo | grep renderer
Finally switch to Performance mode and post the output of: glxinfo | grep renderer
danield
Level 2
Level 2
Posts: 72
Joined: Sun Sep 30, 2018 4:23 pm

Re: Black screen after nvidia install.

Post by danield »

Slight update again.
I tried removing dis_ucode_ldr but now it does the same as before.
I put it back in but it's made no difference.
Also, I've tried generating a new file but it don't give a URL.
danield
Level 2
Level 2
Posts: 72
Joined: Sun Sep 30, 2018 4:23 pm

Re: Black screen after nvidia install.

Post by danield »

It doesn't give me an option to switch to Intel mode when I'm in the recovery desktop either
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Black screen after nvidia install.

Post by roblm »

You can use the command: sudo prime-select intel
danield
Level 2
Level 2
Posts: 72
Joined: Sun Sep 30, 2018 4:23 pm

Re: Black screen after nvidia install.

Post by danield »

I've just tried signing to the Intel graphics, restarted and then I was unable to get any interface in recovery mode. I've noticed that I'm able to view the list of options in the interface mode before the Nvidia driver is installed
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Black screen after nvidia install.

Post by roblm »

What is happening on your system when you select Recovery mode is confusing to me. It’s not what you normally see.
Open the File Manager and go to /usr/share/X11/xorg.conf.d/ and check if the 11-nvidia-prime.conf file is still present.
If it is, then open it and check that the lines are the same as when the file was created.
danield
Level 2
Level 2
Posts: 72
Joined: Sun Sep 30, 2018 4:23 pm

Re: Black screen after nvidia install.

Post by danield »

Yes, the file is still present and the lines are the same as before.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Black screen after nvidia install.

Post by roblm »

Some of the info in some of your replies is confusing to me.

After you tried switching to Intel mode, were you able to boot to the desktop without any problem?

What is the output of these commands:

Code: Select all

prime-select query	
ls /usr/share/X11/xorg.conf.d/	 	
systemctl status gpu-manager.service
danield
Level 2
Level 2
Posts: 72
Joined: Sun Sep 30, 2018 4:23 pm

Re: Black screen after nvidia install.

Post by danield »

No, when I switched to the intel mode I could not view anything. I had to reinstall. I recreated 11-nvidia-prime.conf and did the grub alteration and update but I am only able to get in by going into safe mode now and that is not without hassle
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Black screen after nvidia install.

Post by roblm »

What is the output of the 3 commands in my previous post.

EDITED: Also, add this command: cat /proc/cmdline
danield
Level 2
Level 2
Posts: 72
Joined: Sun Sep 30, 2018 4:23 pm

Re: Black screen after nvidia install.

Post by danield »

I am not able to get any screen after switching to intel graphics.
What should I do now, recovery mode just gives a permanent black screen
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Black screen after nvidia install.

Post by roblm »

Switch to Nvidia Performance mode: sudo prime-select nvidia
danield
Level 2
Level 2
Posts: 72
Joined: Sun Sep 30, 2018 4:23 pm

Re: Black screen after nvidia install.

Post by danield »

I can't get to a terminal.
It's literally a black screen.
Should I reinstall
User avatar
Pepi
Level 6
Level 6
Posts: 1305
Joined: Wed Nov 18, 2009 7:47 pm

Re: Black screen after nvidia install.

Post by Pepi »

danield wrote: Sun Feb 28, 2021 9:57 am I can't get to a terminal.
It's literally a black screen.
Should I reinstall
I've never been able to get my Nvidia to work with their driver(s). The Linux generic works flawlessly for me. Did you do a Timeshift before the driver install? I'm glad I did before my adventure with the Black Screen :twisted: I rebooted into recovery and did a Timeshift rollback and got my system back.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Black screen after nvidia install.

Post by roblm »

danield wrote: Should I reinstall
Yes, unless you have a Timeshift snapshot from an early time right after the installation. If not, download this version, which has the 5.8 kernel:
https://linuxmint.com/edition.php?id=287

The upsetting thing about this situation is that in your post on Thu Feb 25, 2021 2:58 pm, it appears that progess was made and you were finally able to get to the desktop in Nvidia Performance mode, but you ran into a problem with the next step I suggested. Instead of troubleshooting the problem further, you did a re-installation.
Locked

Return to “Graphics Cards & Monitors”