[SOLVED] Updating NVIDIA drivers on Mint 19.1 Cinnamon

Screen resolution, 3D Acceleration, nVidia, ATI
Forum rules
Before you post please read this
Post Reply
munkres_riemann
Level 1
Level 1
Posts: 5
Joined: Wed Jul 31, 2019 11:53 am

[SOLVED] Updating NVIDIA drivers on Mint 19.1 Cinnamon

Post by munkres_riemann » Wed Jul 31, 2019 12:23 pm

Hello.

Mint is not recognizing updates to the Nvidia graphics card drivers from either the command line or the driver manager. This all happened after I tried to update my video card drivers from nvidia-390 to nvidia-418 in order to use CUDA 10 for HOOMD-blue. I'm experiencing the following issues:
  • At login, I get a notification in the upper right hand corner informing me I'm in "rendering mode" since I lack video card acceleration drivers.
  • My driver manager shows that v418 is selected, but it says "No proprietary drivers are in use":
  • Output of 'inxi -G' shows no driver is identified:

    Code: Select all

    Graphics:
      Device-1: NVIDIA GP107GLM [Quadro P2000 Mobile] driver: N/A 
      Display: x11 server: X.Org 1.19.6 driver: fbdev,nouveau 
      unloaded: modesetting,vesa resolution: 1920x1080~77Hz 
      OpenGL: renderer: llvmpipe (LLVM 8.0 256 bits) v: 3.3 Mesa 19.0.2 
  • I can't close my laptop and leave it on standby; if I try to open it again, instead of showing the login screen I get a black screen; I have to force a shutdown and power up again.
What I've tried:
  • I've tried purging all preexisting Nvida drivers and libraries multiple times and reinstalling, but with no success.
  • After purging, I've tried reinstalling from the command line form both the graphics-drivers ppa and using

    Code: Select all

    sudo ubuntu-drivers autoinstall
    , and by selecting different drivers throught the driver manager.
  • I've tried a kernel update, from v4.18.0.25 to v5.1.16
  • I've tried altering the grub to blacklist the nouveau drivers and try to force Mint to use the Nvidia drivers.
I'm getting to my wit's end here. A friend and colleague recommended Mint, but now I'm thinking about removing it and going back to Ubuntu to avoid the hassle,
(this isn't the first time it's been a headache; getting a proper install was another adventure). However I've decided to try this forum as a last resort. I just want to get back to simulating and doing research.

Apologies if my responses aren't prompt. At an event this weekend.

EDIT: More Info
Output of

Code: Select all

dpkg -l | grep nvidia
gives,

Code: Select all

ii  libnvidia-cfg1-418:amd64                      418.67-0ubuntu1                             amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-418                          418.67-0ubuntu1                             all          Shared files used by the NVIDIA libraries
ii  libnvidia-compute-418:amd64                   418.67-0ubuntu1                             amd64        NVIDIA libcompute package
ii  libnvidia-decode-418:amd64                    418.67-0ubuntu1                             amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-418:amd64                    418.67-0ubuntu1                             amd64        NVENC Video Encoding runtime library
ii  libnvidia-fbc1-418:amd64                      418.67-0ubuntu1                             amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-418:amd64                        418.67-0ubuntu1                             amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-ifr1-418:amd64                      418.67-0ubuntu1                             amd64        NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  nvidia-compute-utils-418                      418.67-0ubuntu1                             amd64        NVIDIA compute utilities
ii  nvidia-dkms-418                               418.67-0ubuntu1                             amd64        NVIDIA DKMS package
ii  nvidia-driver-418                             418.67-0ubuntu1                             amd64        NVIDIA driver metapackage
ii  nvidia-kernel-common-418                      418.67-0ubuntu1                             amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-418                      418.67-0ubuntu1                             amd64        NVIDIA kernel source package
ii  nvidia-modprobe                               418.67-0ubuntu1                             amd64        Load the NVIDIA kernel driver and create device files
ii  nvidia-prime                                  0.8.8.2                                     all          Tools to enable NVIDIA's Prime
ii  nvidia-prime-applet                           1.0.7                                       all          An applet for NVIDIA Prime
ii  nvidia-settings                               418.67-0ubuntu1                             amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-418                              418.67-0ubuntu1                             amd64        NVIDIA driver support binaries
ii  xserver-xorg-video-nvidia-418                 418.67-0ubuntu1                             amd64        NVIDIA binary Xorg driver
So clearly I've installed the driver(s)...
Last edited by munkres_riemann on Wed Jul 31, 2019 5:58 pm, edited 1 time in total.

User avatar
roblm
Level 10
Level 10
Posts: 3371
Joined: Sun Feb 24, 2013 2:41 pm

Re: Updating NVIDIA drivers on Mint 19.1 Cinnamon

Post by roblm » Wed Jul 31, 2019 2:57 pm

You first installed nvidia-driver-390 through the Driver Manager. That driver should have been removed before installing drivers from the graphics-drivers PPA.

Use these commands and post the output:

Code: Select all

1. lspci -nnk | egrep -A3 -i "3D|VGA"
2. ls /lib/modprobe.d
3. mokutil --sb-state

munkres_riemann
Level 1
Level 1
Posts: 5
Joined: Wed Jul 31, 2019 11:53 am

Re: Updating NVIDIA drivers on Mint 19.1 Cinnamon

Post by munkres_riemann » Wed Jul 31, 2019 3:36 pm

To update, I've tried installing the 430 driver because I'm impatient and doing whatever I can to figure this out:

Code: Select all

dpkg -l | grep nvidia
ii  libnvidia-cfg1-430:amd64                      430.40-0ubuntu0~gpu18.04.1                  amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-430                          430.40-0ubuntu0~gpu18.04.1                  all          Shared files used by the NVIDIA libraries
ii  libnvidia-compute-430:amd64                   430.40-0ubuntu0~gpu18.04.1                  amd64        NVIDIA libcompute package
ii  libnvidia-decode-430:amd64                    430.40-0ubuntu0~gpu18.04.1                  amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-430:amd64                    430.40-0ubuntu0~gpu18.04.1                  amd64        NVENC Video Encoding runtime library
ii  libnvidia-fbc1-430:amd64                      430.40-0ubuntu0~gpu18.04.1                  amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-430:amd64                        430.40-0ubuntu0~gpu18.04.1                  amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-ifr1-430:amd64                      430.40-0ubuntu0~gpu18.04.1                  amd64        NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  nvidia-compute-utils-430                      430.40-0ubuntu0~gpu18.04.1                  amd64        NVIDIA compute utilities
ii  nvidia-dkms-430                               430.40-0ubuntu0~gpu18.04.1                  amd64        NVIDIA DKMS package
ii  nvidia-driver-430                             430.40-0ubuntu0~gpu18.04.1                  amd64        NVIDIA driver metapackage
ii  nvidia-kernel-common-430                      430.40-0ubuntu0~gpu18.04.1                  amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-430                      430.40-0ubuntu0~gpu18.04.1                  amd64        NVIDIA kernel source package
ii  nvidia-prime                                  0.8.8.2                                     all          Tools to enable NVIDIA's Prime
ii  nvidia-settings                               418.67-0ubuntu1                             amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-430                              430.40-0ubuntu0~gpu18.04.1                  amd64        NVIDIA driver support binaries
ii  xserver-xorg-video-nvidia-430                 430.40-0ubuntu0~gpu18.04.1                  amd64        NVIDIA binary Xorg driver
As for your suggestions:
  1. Code: Select all

    lspci -nnk | egrep -A3 -i "3D|VGA"

    Code: Select all

    01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP107GLM [Quadro P2000 Mobile] [10de:1cba] (rev a1)
    	Subsystem: Lenovo Device [17aa:2262]
    	Kernel modules: nvidiafb, nouveau
    01:00.1 Audio device [0403]: NVIDIA Corporation GP107GL High Definition Audio Controller [10de:0fb9] (rev a1)
    
  2. Code: Select all

    ls /lib/modprobe.d

    Code: Select all

    aliases.conf                                blacklist_linux_5.2.5-050205-generic.conf   nvidia-graphics-drivers.conf
    blacklist_linux_4.15.0-20-generic.conf      blacklist_linux-hwe_4.18.0-25-generic.conf  nvidia-kms.conf
    blacklist_linux_4.17.0-041700-generic.conf  blacklist-nvidia.conf                       systemd.conf
    blacklist_linux_5.1.16-050116-generic.conf  fbdev-blacklist.conf
    
  3. Code: Select all

    mokutil --sb-state

    Code: Select all

    SecureBoot disabled
    

deepakdeshp
Level 15
Level 15
Posts: 5645
Joined: Sun Aug 09, 2015 10:00 am

Re: Updating NVIDIA drivers on Mint 19.1 Cinnamon

Post by deepakdeshp » Wed Jul 31, 2019 3:41 pm

If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
Regards,
Deepak

I am using Mint 19.2 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB

munkres_riemann
Level 1
Level 1
Posts: 5
Joined: Wed Jul 31, 2019 11:53 am

Re: Updating NVIDIA drivers on Mint 19.1 Cinnamon

Post by munkres_riemann » Wed Jul 31, 2019 3:54 pm

roblm wrote:
Wed Jul 31, 2019 2:57 pm
You first installed nvidia-driver-390 through the Driver Manager. That driver should have been removed before installing drivers from the graphics-drivers PPA.

Use these commands and post the output:

Code: Select all

1. lspci -nnk | egrep -A3 -i "3D|VGA"
2. ls /lib/modprobe.d
3. mokutil --sb-state
Hi, sorry. I've responded above but didn't quote you, so I don't know if it notifies you. See the outputs above.

munkres_riemann
Level 1
Level 1
Posts: 5
Joined: Wed Jul 31, 2019 11:53 am

Re: Updating NVIDIA drivers on Mint 19.1 Cinnamon

Post by munkres_riemann » Wed Jul 31, 2019 4:00 pm

munkres_riemann wrote:
Wed Jul 31, 2019 3:36 pm
To update, I've tried installing the 430 driver because I'm impatient and doing whatever I can to figure this out:

Code: Select all

dpkg -l | grep nvidia
ii  libnvidia-cfg1-430:amd64                      430.40-0ubuntu0~gpu18.04.1                  amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-430                          430.40-0ubuntu0~gpu18.04.1                  all          Shared files used by the NVIDIA libraries
ii  libnvidia-compute-430:amd64                   430.40-0ubuntu0~gpu18.04.1                  amd64        NVIDIA libcompute package
ii  libnvidia-decode-430:amd64                    430.40-0ubuntu0~gpu18.04.1                  amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-430:amd64                    430.40-0ubuntu0~gpu18.04.1                  amd64        NVENC Video Encoding runtime library
ii  libnvidia-fbc1-430:amd64                      430.40-0ubuntu0~gpu18.04.1                  amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-430:amd64                        430.40-0ubuntu0~gpu18.04.1                  amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-ifr1-430:amd64                      430.40-0ubuntu0~gpu18.04.1                  amd64        NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  nvidia-compute-utils-430                      430.40-0ubuntu0~gpu18.04.1                  amd64        NVIDIA compute utilities
ii  nvidia-dkms-430                               430.40-0ubuntu0~gpu18.04.1                  amd64        NVIDIA DKMS package
ii  nvidia-driver-430                             430.40-0ubuntu0~gpu18.04.1                  amd64        NVIDIA driver metapackage
ii  nvidia-kernel-common-430                      430.40-0ubuntu0~gpu18.04.1                  amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-430                      430.40-0ubuntu0~gpu18.04.1                  amd64        NVIDIA kernel source package
ii  nvidia-prime                                  0.8.8.2                                     all          Tools to enable NVIDIA's Prime
ii  nvidia-settings                               418.67-0ubuntu1                             amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-430                              430.40-0ubuntu0~gpu18.04.1                  amd64        NVIDIA driver support binaries
ii  xserver-xorg-video-nvidia-430                 430.40-0ubuntu0~gpu18.04.1                  amd64        NVIDIA binary Xorg driver
As for your suggestions:
  1. Code: Select all

    lspci -nnk | egrep -A3 -i "3D|VGA"

    Code: Select all

    01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP107GLM [Quadro P2000 Mobile] [10de:1cba] (rev a1)
    	Subsystem: Lenovo Device [17aa:2262]
    	Kernel modules: nvidiafb, nouveau
    01:00.1 Audio device [0403]: NVIDIA Corporation GP107GL High Definition Audio Controller [10de:0fb9] (rev a1)
    
  2. Code: Select all

    ls /lib/modprobe.d

    Code: Select all

    aliases.conf                                blacklist_linux_5.2.5-050205-generic.conf   nvidia-graphics-drivers.conf
    blacklist_linux_4.15.0-20-generic.conf      blacklist_linux-hwe_4.18.0-25-generic.conf  nvidia-kms.conf
    blacklist_linux_4.17.0-041700-generic.conf  blacklist-nvidia.conf                       systemd.conf
    blacklist_linux_5.1.16-050116-generic.conf  fbdev-blacklist.conf
    
  3. Code: Select all

    mokutil --sb-state

    Code: Select all

    SecureBoot disabled
    
So I looked at

Code: Select all

cat /lib/modprobe.d/blacklist-nvidia.conf
:

Code: Select all

# Do not modify
# This file was generated by nvidia-prime
blacklist nvidia
blacklist nvidia-drm
blacklist nvidia-modeset
alias nvidia off
alias nvidia-drm off
alias nvidia-modeset off
Could it be that "blacklist nvidia" is blocking communication between the kernel and the nvidia driver??

User avatar
roblm
Level 10
Level 10
Posts: 3371
Joined: Sun Feb 24, 2013 2:41 pm

Re: Updating NVIDIA drivers on Mint 19.1 Cinnamon

Post by roblm » Wed Jul 31, 2019 4:11 pm

munkres_riemann wrote:
Wed Jul 31, 2019 4:00 pm

So I looked at

Code: Select all

cat /lib/modprobe.d/blacklist-nvidia.conf
:

Code: Select all

# Do not modify
# This file was generated by nvidia-prime
blacklist nvidia
blacklist nvidia-drm
blacklist nvidia-modeset
alias nvidia off
alias nvidia-drm off
alias nvidia-modeset off
Could it be that "blacklist nvidia" is blocking communication between the kernel and the nvidia driver??

Yes. Remove that file: sudo rm /lib/modprobe.d/blacklist-nvidia.conf

Then update the initial ramdisk and reboot: sudo update-initramfs -u; reboot

munkres_riemann
Level 1
Level 1
Posts: 5
Joined: Wed Jul 31, 2019 11:53 am

Re: Updating NVIDIA drivers on Mint 19.1 Cinnamon

Post by munkres_riemann » Wed Jul 31, 2019 5:54 pm

roblm wrote:
Wed Jul 31, 2019 4:11 pm


Yes. Remove that file: sudo rm /lib/modprobe.d/blacklist-nvidia.conf

Then update the initial ramdisk and reboot: sudo update-initramfs -u; reboot
Aweome! That fixed it. No rendering mode; standby is working; output of inxi:

Code: Select all

Graphics:
  Device-1: NVIDIA GP107GLM [Quadro P2000 Mobile] driver: nvidia v: 430.40 
  Display: x11 server: X.Org 1.19.6 driver: nvidia 
  unloaded: fbdev,modesetting,nouveau,vesa resolution: 1920x1080~60Hz 
  OpenGL: renderer: Quadro P2000/PCIe/SSE2 v: 4.6.0 NVIDIA 430.40 

User avatar
roblm
Level 10
Level 10
Posts: 3371
Joined: Sun Feb 24, 2013 2:41 pm

Re: [SOLVED] Updating NVIDIA drivers on Mint 19.1 Cinnamon

Post by roblm » Wed Jul 31, 2019 6:41 pm

That file should only be created on laptops with Optimus technology (Integrated Intel + Nvidia card).

Would you post the contents of the nvidia-kms.conf file: cat /lib/modprobe.d/nvidia-kms.conf

Post Reply

Return to “Graphics Cards & Monitors”