After installing Nvidia drivers - Black Screen & Freezing

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
keadaada

After installing Nvidia drivers - Black Screen & Freezing

Post by keadaada »

Hello everybody!
Firstly I been trying to solve this problem with using other distro's such as Kubuntu, Xubuntu and now Linux Mint, it is clearly a hardware problem related to the GPU.

Setup: Two SSD:s and different operative systems, Windows 10 and Linux Mint.
Linux Mint is encrypted through dm-crypt, I did it through the installer.

Problem: After installing Nvidia drivers I am presented with a frozen screen when trying to enter the password and when trying to use nomodeset I have a black screen and cannot access CTRL+ALT+F1-F10.
If I do not install Nvidia drivers I have no problem at all and no freezes nor black screens.


I have been trying to install Nvidia proprietary drivers and following several guides without any help to solve this issue.
The 'Driver Manager' in Linux Mint recommends me to install Nvidia 361.42, which I have done and resulted in a freeze and when using nomodeset, nvidia.modeset=0, grub_gfxmode=1280x1024x24 I have a black screen and cannot get the CLI to work.



Truly I have no clue what to do and I am even wondering if Linux is for me, I been trying for hours to fix this and only getting angry with myself.





I tried all these below

https://community.linuxmint.com/tutorial/view/842
https://sites.google.com/site/easylinuxtipsproject/12
https://www.linuxmint.com/rel_sarah_mate.php
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
richyrich

Re: After installing Nvidia drivers - Black Screen & Freezing

Post by richyrich »

We will need to know your system info and graphics hardware before anyone can help troubleshoot . . :?
Please use the following terminal command, and copy/paste the complete output back here in a reply. :)

inxi -Fxz
keadaada

Re: After installing Nvidia drivers - Black Screen & Freezing

Post by keadaada »

richyrich wrote:We will need to know your system info and graphics hardware before anyone can help troubleshoot . . :?
Please use the following terminal command, and copy/paste the complete output back here in a reply. :)

inxi -Fxz



System: Host: a Kernel: 4.4.0-21-generic x86_64 (64 bit gcc: 5.3.1)
Desktop: Cinnamon 3.0.6 (Gtk 3.18.9-1ubuntu3)
Distro: Linux Mint 18 Sarah
Machine: Mobo: MSI model: Z170A PC MATE (MS-7971) v: 2.0
Bios: American Megatrends v: A.A0 date: 07/27/2016
CPU: Quad core Intel Core i7-6700K (-HT-MCP-) cache: 8192 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 32063
clock speeds: max: 4200 MHz 1: 2059 MHz 2: 3960 MHz 3: 1348 MHz
4: 800 MHz 5: 800 MHz 6: 3968 MHz 7: 800 MHz 8: 799 MHz
Graphics: Card: NVIDIA GM204 [GeForce GTX 970] bus-ID: 01:00.0
Display Server: X.Org 1.18.3 drivers: (unloaded: fbdev,vesa) FAILED: nouveau
Resolution: 1920x1080@60.00hz
GLX Renderer: Gallium 0.4 on llvmpipe (LLVM 3.8, 256 bits)
GLX Version: 3.0 Mesa 11.2.0 Direct Rendering: Yes
Audio: Card-1 NVIDIA GM204 High Definition Audio Controller
driver: snd_hda_intel bus-ID: 01:00.1
Card-2 Intel Sunrise Point-H HD Audio
driver: snd_hda_intel bus-ID: 00:1f.3
Sound: Advanced Linux Sound Architecture v: k4.4.0-21-generic
Network: Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
driver: r8169 v: 2.3LK-NAPI port: d000 bus-ID: 07:00.0
IF: enp7s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives: HDD Total Size: 781.6GB (3.0% used)
ID-1: /dev/sda model: Samsung_SSD_850 size: 250.1GB
ID-2: /dev/sdb model: Samsung_SSD_850 size: 500.1GB
ID-3: USB /dev/sdc model: DataTraveler_3.0 size: 31.5GB
Partition: ID-1: / size: 442G used: 5.1G (2%) fs: ext4 dev: /dev/dm-1
ID-2: /boot size: 473M used: 61M (14%) fs: ext2 dev: /dev/sdb2
ID-3: swap-1 size: 17.14GB used: 0.00GB (0%) fs: swap dev: /dev/dm-2
RAID: No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors: System Temperatures: cpu: 29.8C mobo: 27.8C
Fan Speeds (in rpm): cpu: N/A
Info: Processes: 238 Uptime: 4 min Memory: 827.2/16007.3MB
Init: systemd runlevel: 5 Gcc sys: 5.3.1
Client: Shell (bash 4.3.421) inxi: 2.2.35
Last edited by keadaada on Mon Oct 31, 2016 7:37 am, edited 1 time in total.
User avatar
Pjotr
Level 24
Level 24
Posts: 20059
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: After installing Nvidia drivers - Black Screen & Freezing

Post by Pjotr »

OK, try this:

1. Upgrade your kernel. Update Manager - panel: View - Linux kernels. Install the latest kernel from the 4.4 series.

2. Reboot.

3. Launch Driver Manager and install the nvidia-367 driver (which replaces the nvidia-361).

4. Reboot.

Does that help?
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
keadaada

Re: After installing Nvidia drivers - Black Screen & Freezing

Post by keadaada »

Pjotr wrote:OK, try this:

1. Upgrade your kernel. Update Manager - panel: View - Linux kernels. Install the latest kernel from the 4.4 series.

2. Reboot.

3. Launch Driver Manager and install the nvidia-367 driver (which replaces the nvidia-361).

4. Reboot.

Does that help?


Did all the steps but on step 3 I can only see nvidia-361.

The latest Linux kernel is installed which is> 4.4.0-45
User avatar
Pjotr
Level 24
Level 24
Posts: 20059
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: After installing Nvidia drivers - Black Screen & Freezing

Post by Pjotr »

OK, then use the reliable graphics-drivers PPA for installing the nvidia-367:
https://sites.google.com/site/easylinux ... rivers-PPA
(item 1, left column)
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
keadaada

Re: After installing Nvidia drivers - Black Screen & Freezing

Post by keadaada »

Pjotr wrote:OK, then use the reliable graphics-drivers PPA for installing the nvidia-367:
https://sites.google.com/site/easylinux ... rivers-PPA
(item 1, left column)
I have followed this guide before and as a result I gotten the black screen.
I will lay down all my steps before I do it and wait for confirmation from you or a other user so, that I am following these steps correctly.


1. Check for drivers that I can install *367* is the version that is longer supported and stable.
2. sudo apt-get purge nvidia*
3. Enter password
4. sudo add-apt-repository ppa:graphics-drivers
5. sudo apt-get update
6. sudo apt-get install nvidia-367
7. Reboot


Is all these steps correct way I should proceed? What if I the same problems happens *black screen*?
Thanks so far guys!
User avatar
Pjotr
Level 24
Level 24
Posts: 20059
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: After installing Nvidia drivers - Black Screen & Freezing

Post by Pjotr »

That's strange, because Nvidia itself states that the nvidia-367 supports your GeForce GTX 970 graphics card:
http://www.nvidia.com/Download/driverRe ... 8586/en-us
(click on the tab "supported products")

Can you still boot into a graphical desktop, by means of Recovery mode (it's under "Advanced options" in the Grub bootloader menu)?
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
keadaada

Re: After installing Nvidia drivers - Black Screen & Freezing

Post by keadaada »

Pjotr wrote:That's strange, because Nvidia itself states that the nvidia-367 supports your GeForce GTX 970 graphics card:
http://www.nvidia.com/Download/driverRe ... 8586/en-us
(click on the tab "supported products")

Can you still boot into a graphical desktop, by means of Recovery mode (it's under "Advanced options" in the Grub bootloader menu)?
You misunderstood, this happened before and I followed the guide then. I am on a fresh install now :)
I described the steps to ensure that everything I did was correct because I am going to do them soon, I suppose the steps I described are correct and nothing I should differently?


Yeah like you stated it is supported:

'GeForce 900 Series:

GeForce GTX TITAN X, GeForce GTX 980 Ti, GeForce GTX 980, GeForce GTX 970, GeForce GTX 960, GeForce GTX 950'
User avatar
Pjotr
Level 24
Level 24
Posts: 20059
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: After installing Nvidia drivers - Black Screen & Freezing

Post by Pjotr »

Well, you might also try the nvidia-370, which is also in the graphics-drivers PPA and which (according to Nvidia) also supports your graphics card: http://www.nvidia.com/Download/driverRe ... 7408/en-us
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
keadaada

Re: After installing Nvidia drivers - Black Screen & Freezing

Post by keadaada »

keadaada wrote:
Pjotr wrote:That's strange, because Nvidia itself states that the nvidia-367 supports your GeForce GTX 970 graphics card:
http://www.nvidia.com/Download/driverRe ... 8586/en-us
(click on the tab "supported products")

Can you still boot into a graphical desktop, by means of Recovery mode (it's under "Advanced options" in the Grub bootloader menu)?
You misunderstood, this happened before and I followed the guide then. I am on a fresh install now :)
I described the steps to ensure that everything I did was correct because I am going to do them soon, I suppose the steps I described are correct and nothing I should differently?


Yeah like you stated it is supported:

'GeForce 900 Series:

GeForce GTX TITAN X, GeForce GTX 980 Ti, GeForce GTX 980, GeForce GTX 970, GeForce GTX 960, GeForce GTX 950'
So I should change step 6 to this?

6. sudo apt-get install nvidia-370


Correct?



EDIT:

WIll try and follow the steps in a few hours and report back, I am going afk soon.
keadaada

Re: After installing Nvidia drivers - Black Screen & Freezing

Post by keadaada »

Pjotr wrote:Well, you might also try the nvidia-370, which is also in the graphics-drivers PPA and which (according to Nvidia) also supports your graphics card: http://www.nvidia.com/Download/driverRe ... 7408/en-us
After the installation and the reboot, choose the normal Linux Mint and when I need to enter the password keyboard is froozen and the screen.
Once I restart and try using nomodeset..and later F10 the screen goes black and I cannot do anything. CTRL+ALT+F1-F10 does not work either.


Now I am inside recovery mode...what should I do?
User avatar
Pjotr
Level 24
Level 24
Posts: 20059
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: After installing Nvidia drivers - Black Screen & Freezing

Post by Pjotr »

Try to boot "normally"; it's one of the options in the recovery menu. It's not quite a normal boot, because certain failsafe settings are being used.
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
keadaada

Re: After installing Nvidia drivers - Black Screen & Freezing

Post by keadaada »

Pjotr wrote:Try to boot "normally"; it's one of the options in the recovery menu. It's not quite a normal boot, because certain failsafe settings are being used.
Advanced Options then "normal" generic Linux...willtry it and edit soon.
User avatar
trytip
Level 14
Level 14
Posts: 5366
Joined: Tue Jul 05, 2016 1:20 pm

Re: After installing Nvidia drivers - Black Screen & Freezing

Post by trytip »

backup your etc/x11/xorg.conf then delete it and reboot (you can just rename it xorgOLD.conf) but i usually compress it so i have it as a backup

what is your

Code: Select all

dkms status
Image
User avatar
Pjotr
Level 24
Level 24
Posts: 20059
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: After installing Nvidia drivers - Black Screen & Freezing

Post by Pjotr »

keadaada wrote:
Pjotr wrote:Try to boot "normally"; it's one of the options in the recovery menu. It's not quite a normal boot, because certain failsafe settings are being used.
Advanced Options then "normal" generic Linux...willtry it and edit soon.
Wrong. Boot into recovery mode, and then select it *from the recovery menu*.
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
keadaada

Re: After installing Nvidia drivers - Black Screen & Freezing

Post by keadaada »

Pjotr wrote:
keadaada wrote:
Pjotr wrote:Try to boot "normally"; it's one of the options in the recovery menu. It's not quite a normal boot, because certain failsafe settings are being used.
Advanced Options then "normal" generic Linux...willtry it and edit soon.
Wrong. Boot into recovery mode, and then select it *from the recovery menu*.

So I tried this following:

-> Boot PC -> GRUB -> Linux Mint GRUB *not going, Advanced Options* -> PC freezes upon the PC requests my password for decryption.
-> Boot PC -> GRUB -> Advanced Options -> Choosing Linux Generic -> Black screen
-> Boot PC -> GRUB -> Advanced Options -> Choosing Linux Generic (upstart) -> Black screen
-> Boot PC -> GRUB -> Advanced Options -> Choosing Linux Generic Recovery Mode-> Works fine

All options are tried under GRUB, just recovery mode works...



trytip wrote:backup your etc/x11/xorg.conf then delete it and reboot (you can just rename it xorgOLD.conf) but i usually compress it so i have it as a backup

what is your

Code: Select all

dkms status



My dkms status, I am logged inside recovery mode:


ndiswrapper, 1.59, 4.4.0-21-generic, x86_64: installed
ndiswrapper, 1.59, 4.4.0-45-generic, x86_64: installed
nvidia-370, 370.28, 4.4.0-45-generic, x86_64: installed
virtualbox-guest, 5.0.18, 4.4.0-21-generic, x86_64: installed (original_module exists)
virtualbox-guest, 5.0.18, 4.4.0-45-generic, x86_64: installed (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!)


I am gonna delete it and take a backup, will edit!


EDIT:


Hmm.... the folder etc/x11/ exists but the file xorg.conf does NOT!
So full pathway: etc/x11/xorg.conf, does not exist *the file*



asdf@a /etc/X11 $ ls
app-defaults rgb.txt Xreset Xsession xsm
default-display-manager xinit Xreset.d Xsession.d
fonts xkb Xresources Xsession.options
asdf@a /etc/X11 $
User avatar
trytip
Level 14
Level 14
Posts: 5366
Joined: Tue Jul 05, 2016 1:20 pm

Re: After installing Nvidia drivers - Black Screen & Freezing

Post by trytip »

this will create a new etc/x11/xorg.conf reboot afterwards

Code: Select all

sudo nvidia-xconfig
if you don't use virtualbox go in synaptic and search virtualbox and completely UNinstall them. it will speedup your boot time
Image
keadaada

Re: After installing Nvidia drivers - Black Screen & Freezing

Post by keadaada »

trytip wrote:this will create a new etc/x11/xorg.conf reboot afterwards

Code: Select all

sudo nvidia-xconfig
if you don't use virtualbox go in synaptic and search virtualbox and completely UNinstall them. it will speedup your boot time

All working fine with xorg.conf but still having the same problem.
IAdventurer01

Re: After installing Nvidia drivers - Black Screen & Freezing

Post by IAdventurer01 »

I'm having the same problem. I thought it worth mentioning that it's clearly a video issue. After installing the video drivers, and after the frozen password entry screen when you arrive on the black screen where nothing appears responsive, appears to just not be sending anything to the screens, but it's not actually frozen! As a workaround for this black screen, you should be able to just type your decryption key and press enter and (assuming you typed it correctly) you will arrive at your desktop!

It's rather a pain and I'm looking for a fix, but it gets the job done for now.
Locked

Return to “Graphics Cards & Monitors”