ERROR: NVIDIA driver is not loaded - xubuntu 19.04

Hello,

I have already installed and reinstalled several versions many times and it is always the same result. Never works!

  • I added the ppa and installed it using:
apt install nvidia-driver-418 nvidia-settings
  • prime-select nvidia works, but after I rebooted, keeps not loading the nvidia driver.

  • secure boot is disabled.

# nvidia-settings 

ERROR: NVIDIA driver is not loaded

ERROR: Unable to load info from any available system
# nvidia-smi 
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
# lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
02:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GT 730M] (rev ff)
# dpkg -l | grep nvidia
ii  libnvidia-cfg1-418:amd64                                    418.56-0ubuntu1                                             amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-418                                        418.56-0ubuntu1                                             all          Shared files used by the NVIDIA libraries
ii  libnvidia-compute-418:amd64                                 418.56-0ubuntu1                                             amd64        NVIDIA libcompute package
ii  libnvidia-compute-418:i386                                  418.56-0ubuntu1                                             i386         NVIDIA libcompute package
ii  libnvidia-decode-418:amd64                                  418.56-0ubuntu1                                             amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-decode-418:i386                                   418.56-0ubuntu1                                             i386         NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-418:amd64                                  418.56-0ubuntu1                                             amd64        NVENC Video Encoding runtime library
ii  libnvidia-encode-418:i386                                   418.56-0ubuntu1                                             i386         NVENC Video Encoding runtime library
ii  libnvidia-fbc1-418:amd64                                    418.56-0ubuntu1                                             amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-fbc1-418:i386                                     418.56-0ubuntu1                                             i386         NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-418:amd64                                      418.56-0ubuntu1                                             amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-gl-418:i386                                       418.56-0ubuntu1                                             i386         NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-ifr1-418:amd64                                    418.56-0ubuntu1                                             amd64        NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  libnvidia-ifr1-418:i386                                     418.56-0ubuntu1                                             i386         NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  nvidia-compute-utils-418                                    418.56-0ubuntu1                                             amd64        NVIDIA compute utilities
ii  nvidia-dkms-418                                             418.56-0ubuntu1                                             amd64        NVIDIA DKMS package
ii  nvidia-driver-418                                           418.56-0ubuntu1                                             amd64        NVIDIA driver metapackage
ii  nvidia-kernel-common-418                                    418.56-0ubuntu1                                             amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-418                                    418.56-0ubuntu1                                             amd64        NVIDIA kernel source package
ii  nvidia-prime                                                0.8.10                                                      all          Tools to enable NVIDIA's Prime
ii  nvidia-settings                                             418.56-0ubuntu1                                             amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-418                                            418.56-0ubuntu1                                             amd64        NVIDIA driver support binaries
ii  xserver-xorg-video-nvidia-418                               418.56-0ubuntu1                                             amd64        NVIDIA binary Xorg driver
# lsmod |grep -i intel
snd_hda_intel          40960  5
snd_hda_codec         131072  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core           86016  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
intel_rapl             24576  0
snd_pcm               102400  5 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
intel_powerclamp       20480  0
kvm_intel             241664  0
btintel                24576  1 btusb
kvm                   626688  2 kvmgt,kvm_intel
bluetooth             557056  42 btrtl,btintel,btbcm,bnep,ath3k,btusb,rfcomm
ghash_clmulni_intel    16384  0
aesni_intel           372736  8
aes_x86_64             20480  1 aesni_intel
crypto_simd            16384  1 aesni_intel
cryptd                 24576  3 crypto_simd,ghash_clmulni_intel,aesni_intel
glue_helper            16384  1 aesni_intel
intel_cstate           20480  0
intel_rapl_perf        16384  0
snd                    81920  20 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm,snd_rawmidi
# lsmod |grep -i nvidia
nothing...
# cat /lib/modprobe.d/nvidia-graphics-drivers.conf 
blacklist nouveau
blacklist lbm-nouveau
alias nouveau off
alias lbm-nouveau off

Any new ideas?
nvidia-bug-report.log.gz (2.58 MB)

The logs looks like they were taken while prime-select was set to intel. Please run
sudo prime-select nvidia
and create a new nvidia-bug-report.log.

Hello @generix,

I was able to solve my longstanding problem!! :D

I never realize that UEFI mode and secure boot could influence in the problem.

I followed the steps below:

https://forums.linuxmint.com/viewtopic.php?t=282918#p1561602

Now, nvidia-smi show:

# nvidia-smi 
Sun Apr 28 14:04:07 2019       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.56       Driver Version: 418.56       CUDA Version: 10.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GT 730M     Off  | 00000000:02:00.0 N/A |                  N/A |
| N/A   55C    P8    N/A /  N/A |      8MiB /  1999MiB |     N/A      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0                    Not Supported                                       |
+-----------------------------------------------------------------------------+
# prime-select nvidia
Info: the nvidia profile is already set

nvidia-settings show all properties:

I executed nvidia-xconfig and it created a new xorg.conf with new configuration.

The new problem:

After I rebooted the system, it stuck with the cursor on the top right side of the screen.

xorg.conf (nvidia):

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
EndSection

Section "Files"
EndSection

Section "Module"
    Load  "glx"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option      "Protocol" "auto"
    Option      "Device" "/dev/input/mice"
    Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
EndSection

Section "Monitor"
    Identifier   "Monitor1"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "NoLogo" "True"
    Option         "RenderAccel" "True"
    Option         "AllowGLXWithComposite" "True"
    Option         "AddARGBGLXVisuals" "True"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "Composite" "Enable"
EndSection

xorg.conf (origianl)

Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	Screen      1  "Screen1" RightOf "Screen0"
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	ModulePath   "/usr/lib/xorg/modules"
	FontPath     "/usr/share/fonts/X11/misc"
	FontPath     "/usr/share/fonts/X11/cyrillic"
	FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
	FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
	FontPath     "/usr/share/fonts/X11/Type1"
	FontPath     "/usr/share/fonts/X11/100dpi"
	FontPath     "/usr/share/fonts/X11/75dpi"
	FontPath     "built-ins"
EndSection

Section "Module"
	Load  "glx"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Monitor"
	Identifier   "Monitor1"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "Accel"              	# [<bool>]
        #Option     "AccelMethod"        	# <str>
        #Option     "Backlight"          	# <str>
        #Option     "CustomEDID"         	# <str>
        #Option     "DRI"                	# <str>
        #Option     "Present"            	# [<bool>]
        #Option     "ColorKey"           	# <i>
        #Option     "VideoKey"           	# <i>
        #Option     "Tiling"             	# [<bool>]
        #Option     "LinearFramebuffer"  	# [<bool>]
        #Option     "HWRotation"         	# [<bool>]
        #Option     "VSync"              	# [<bool>]
        #Option     "PageFlip"           	# [<bool>]
        #Option     "SwapbuffersWait"    	# [<bool>]
        #Option     "TripleBuffer"       	# [<bool>]
        #Option     "XvPreferOverlay"    	# [<bool>]
        #Option     "HotPlug"            	# [<bool>]
        #Option     "ReprobeOutputs"     	# [<bool>]
        #Option     "XvMC"               	# [<bool>]
        #Option     "ZaphodHeads"        	# <str>
        #Option     "VirtualHeads"       	# <i>
        #Option     "TearFree"           	# [<bool>]
        #Option     "PerCrtcPixmaps"     	# [<bool>]
        #Option     "FallbackDebug"      	# [<bool>]
        #Option     "DebugFlushBatches"  	# [<bool>]
        #Option     "DebugFlushCaches"   	# [<bool>]
        #Option     "DebugWait"          	# [<bool>]
        #Option     "BufferCache"        	# [<bool>]
	Identifier  "Card0"
	Driver      "intel"
	BusID       "PCI:0:2:0"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "SWcursor"           	# [<bool>]
        #Option     "HWcursor"           	# [<bool>]
        #Option     "NoAccel"            	# [<bool>]
        #Option     "ShadowFB"           	# [<bool>]
        #Option     "VideoKey"           	# <i>
        #Option     "WrappedFB"          	# [<bool>]
        #Option     "GLXVBlank"          	# [<bool>]
        #Option     "ZaphodHeads"        	# <str>
        #Option     "PageFlip"           	# [<bool>]
        #Option     "SwapLimit"          	# <i>
        #Option     "AsyncUTSDFS"        	# [<bool>]
        #Option     "AccelMethod"        	# <str>
        #Option     "DRI"                	# <i>
	Identifier  "Card1"
	Driver      "nvidia"
	BusID       "PCI:2:0:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection

Section "Screen"
	Identifier "Screen1"
	Device     "Card1"
	Monitor    "Monitor1"
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection

The only change that I made in Driver option was nouveau to nvidia:

Identifier  "Card1"
Driver      "nvidia"
BusID       "PCI:2:0:0"

To enable only nvidia, what is the required setting in xorg.conf?

You have an Optimus notebook so Ubuntu’s gpumanager is taking care of xorg config. Simply delete your xorg.conf.

Last night I did this and got it to work. I do not know if it is related, but I commented the intel file inside /usr/share/X11, because it seemed that being enabled, it would still be the main video card.

Thanks for all the help!!!