NVIDIA drivers not working

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

NVIDIA drivers not working

Post by Quplet »

Hello,
I am relatively new to linux so bear with me.
I am running a GTX 1060 3GB in my desktop running Linux Mint 19 and have been constantly trying to install NVIDIA graphics drivers. Through the drive manager, it says that the "nvidia-driver-390" is selected, however, when I run Minecraft to test this, it says nouveau is being used.
Image
I have tried to install the official Linux NVIDIA drivers from the website and that required nouveau to be disabled. After many failed attempts to disable the pesky driver, I eventually gave up. I tried blacklisting it then updating the initrd, didn't work. I've uninstalled the driver(apparently) and that didn't work. No matter what I do the driver still is on and operational. I've used Google and this site's forums numerous times trying to find a solution to no avail. If anyone can help, it would be greatly appreciated.
Thank you.
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.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: NVIDIA drivers not working

Post by roblm »

Open the Terminal, use these commands, and post the output:

Code: Select all

1. inxi -SMCGx
2. lspci -nnk |egrep -A3 -i "3D|VGA"	
3. ls /etc/modprobe.d
4. ls /etc/X11 
Quplet

Re: NVIDIA drivers not working

Post by Quplet »

roblm wrote: Thu Jul 12, 2018 8:23 pm Open the Terminal, use these commands, and post the output:

Code: Select all

1. inxi -SMCGx
2. lspci -nnk |egrep -A3 -i "3D|VGA"	
3. ls /etc/modprobe.d
4. ls /etc/X11 

Code: Select all

quplet@Quplet-PC:~$ inxi -SMCGx
System:    Host: Quplet-PC Kernel: 4.15.0-24-generic x86_64
           bits: 64 gcc: 7.3.0
           Desktop: Cinnamon 3.8.7 (Gtk 3.22.30-1ubuntu1)
           Distro: Linux Mint 19 Tara
Machine:   Device: desktop Mobo: HP model: 82F1 v: 1.01 serial: N/A
           UEFI: AMI v: F.10 date: 03/30/2017
CPU:       Quad core Intel Core i5-7400 (-MCP-) 
           arch: Skylake rev.9 cache: 6144 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 24000
           clock speeds: max: 3500 MHz 1: 1500 MHz 2: 1500 MHz 3: 1500 MHz
           4: 1500 MHz
Graphics:  Card: NVIDIA GP106 [GeForce GTX 1060 3GB] bus-ID: 01:00.0
           Display Server: x11 (X.Org 1.19.6 )
           drivers: modesetting (unloaded: fbdev,vesa)
           Resolution: 1920x1080@144.00hz
           OpenGL: renderer: NV136 version: 4.3 Mesa 18.0.5 Direct Render: Yes 

Code: Select all

quplet@Quplet-PC:~$ lspci -nnk |egrep -A3 -i "3D|VGA"
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP106 [GeForce GTX 1060 3GB] [10de:1c02] (rev a1)
	Subsystem: Hewlett-Packard Company GP106 [GeForce GTX 1060 3GB] [103c:82fc]
	Kernel driver in use: nouveau
	Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia 

Code: Select all

quplet@Quplet-PC:~$ ls /etc/modprobe.d
alsa-base.conf                  blacklist-modem.conf
amd64-microcode-blacklist.conf  blacklist-oss.conf
blacklist-ath_pci.conf          blacklist-rare-network.conf
blacklist.conf                  dkms.conf
blacklist-firewire.conf         intel-microcode-blacklist.conf
blacklist-framebuffer.conf      iwlwifi.conf 

Code: Select all

quplet@Quplet-PC:~$ ls /etc/X11 
app-defaults             xorg.conf                          Xsession
default-display-manager  xorg.conf.backup                   Xsession.d
fonts                    xorg.conf.nvidia-xconfig-original  Xsession.options
rgb.txt                  Xreset                             xsm
xinit                    Xreset.d                           XvMCConfig
xkb                      Xresources                         Xwrapper.config 
Sorry it took so long for me to respond. I expected it to email me if someone replied.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: NVIDIA drivers not working

Post by roblm »

You have attempted to install the Nvidia driver in Driver Manager at least once and several times with a driver downloaded from Nvidia’s website. Have you reinstalled Mint after doing all that?

The inxi output says the modesetting driver is loaded but the lspci output says nouveau. Use these commands to get more info:

Code: Select all

ls /lib/modules/`uname -r`/kernel/drivers/char/drm/
head -n 200 /var/log/Xorg.0.log
xed /etc/X11/xorg.conf 
Mattyboy

Re: NVIDIA drivers not working

Post by Mattyboy »

Hello...

First off you should never download graphics drivers from a website ( unless there's a really good reason to and you know what you're doing ).

Use the driver manager from menu/administration.

So, start with opening the terminal and running

Code: Select all

sudo apt-get remove --purge nvidia-*
next re-boot your machine.

Then

Code: Select all

dpkg -l | grep -i nvidia
hopefully you'll have no results.

Now go to the driver manager and check for and install the recommended driver and reboot again.

Check that drivers are loaded with

Code: Select all

inxi -G
you're looking for

Code: Select all

version: 4.6.0 NVIDIA 390.48
If it continues to fail to load you'll probably need to blacklist nouveau . Provide the results again of roblm's commands.
Quplet

Re: NVIDIA drivers not working

Post by Quplet »

roblm wrote: Sun Jul 15, 2018 5:22 pm You have attempted to install the Nvidia driver in Driver Manager at least once and several times with a driver downloaded from Nvidia’s website. Have you reinstalled Mint after doing all that?

The inxi output says the modesetting driver is loaded but the lspci output says nouveau. Use these commands to get more info:

Code: Select all

ls /lib/modules/`uname -r`/kernel/drivers/char/drm/
head -n 200 /var/log/Xorg.0.log
xed /etc/X11/xorg.conf 
No, I have not tried reinstalling Mint.

Code: Select all

quplet@Quplet-PC:~$ ls /lib/modules/`uname -r`/kernel/drivers/char/drm/
nvidia-drm.ko  nvidia.ko  nvidia-modeset.ko  nvidia-uvm.ko 

Code: Select all

quplet@Quplet-PC:~$ head -n 200 /var/log/Xorg.0.log
[    23.461] 
X.Org X Server 1.19.6
Release Date: 2017-12-20
[    23.461] X Protocol Version 11, Revision 0
[    23.461] Build Operating System: Linux 4.4.0-119-generic x86_64 Ubuntu
[    23.461] Current Operating System: Linux Quplet-PC 4.15.0-24-generic #26-Ubuntu SMP Wed Jun 13 08:44:47 UTC 2018 x86_64
[    23.461] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-24-generic root=UUID=7a2eb6de-bf43-44d3-9fff-267c3ff626a4 ro quiet splash vt.handoff=1
[    23.461] Build Date: 13 April 2018  08:07:36PM
[    23.461] xorg-server 2:1.19.6-1ubuntu4 (For technical support please see http://www.ubuntu.com/support) 
[    23.461] Current version of pixman: 0.34.0
[    23.461] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    23.461] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    23.461] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Jul 15 16:19:18 2018
[    23.461] (==) Using config file: "/etc/X11/xorg.conf"
[    23.461] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    23.492] (==) ServerLayout "Layout0"
[    23.492] (**) |-->Screen "Screen0" (0)
[    23.492] (**) |   |-->Monitor "Monitor0"
[    23.493] (**) |   |-->Device "Device0"
[    23.493] (**) |-->Input Device "Keyboard0"
[    23.493] (**) |-->Input Device "Mouse0"
[    23.493] (==) Automatically adding devices
[    23.493] (==) Automatically enabling devices
[    23.493] (==) Automatically adding GPU devices
[    23.493] (==) Automatically binding GPU devices
[    23.493] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    23.493] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[    23.493] 	Entry deleted from font path.
[    23.493] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[    23.493] 	Entry deleted from font path.
[    23.493] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[    23.493] 	Entry deleted from font path.
[    23.493] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[    23.493] 	Entry deleted from font path.
[    23.493] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[    23.493] 	Entry deleted from font path.
[    23.493] (==) FontPath set to:
	/usr/share/fonts/X11/misc,
	/usr/share/fonts/X11/Type1,
	built-ins
[    23.493] (==) ModulePath set to "/usr/lib/xorg/modules"
[    23.493] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[    23.493] (WW) Disabling Keyboard0
[    23.493] (WW) Disabling Mouse0
[    23.493] (II) Loader magic: 0x5576fb098020
[    23.493] (II) Module ABI versions:
[    23.493] 	X.Org ANSI C Emulation: 0.4
[    23.493] 	X.Org Video Driver: 23.0
[    23.493] 	X.Org XInput driver : 24.1
[    23.493] 	X.Org Server Extension : 10.0
[    23.493] (++) using VT number 7

[    23.493] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[    23.494] (II) xfree86: Adding drm device (/dev/dri/card0)
[    23.495] (--) PCI:*(0:1:0:0) 10de:1c02:103c:82fc rev 161, Mem @ 0xde000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[    23.495] (II) LoadModule: "glx"
[    23.495] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    23.760] (II) Module glx: vendor="X.Org Foundation"
[    23.760] 	compiled for 1.19.6, module version = 1.0.0
[    23.760] 	ABI class: X.Org Server Extension, version 10.0
[    23.760] (II) LoadModule: "nvidia"
[    23.760] (WW) Warning, couldn't open module nvidia
[    23.760] (II) UnloadModule: "nvidia"
[    23.760] (II) Unloading nvidia
[    23.760] (EE) Failed to load module "nvidia" (module does not exist, 0)
[    23.760] (==) Matched nouveau as autoconfigured driver 0
[    23.760] (==) Matched nouveau as autoconfigured driver 1
[    23.760] (==) Matched modesetting as autoconfigured driver 2
[    23.760] (==) Matched fbdev as autoconfigured driver 3
[    23.760] (==) Matched vesa as autoconfigured driver 4
[    23.760] (==) Assigned the driver to the xf86ConfigLayout
[    23.760] (II) LoadModule: "nouveau"
[    23.760] (WW) Warning, couldn't open module nouveau
[    23.760] (II) UnloadModule: "nouveau"
[    23.760] (II) Unloading nouveau
[    23.760] (EE) Failed to load module "nouveau" (module does not exist, 0)
[    23.760] (II) LoadModule: "modesetting"
[    23.760] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    23.760] (II) Module modesetting: vendor="X.Org Foundation"
[    23.760] 	compiled for 1.19.6, module version = 1.19.6
[    23.760] 	Module class: X.Org Video Driver
[    23.760] 	ABI class: X.Org Video Driver, version 23.0
[    23.760] (II) LoadModule: "fbdev"
[    23.760] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[    23.760] (II) Module fbdev: vendor="X.Org Foundation"
[    23.760] 	compiled for 1.19.3, module version = 0.4.4
[    23.760] 	Module class: X.Org Video Driver
[    23.760] 	ABI class: X.Org Video Driver, version 23.0
[    23.760] (II) LoadModule: "vesa"
[    23.760] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[    23.760] (II) Module vesa: vendor="X.Org Foundation"
[    23.760] 	compiled for 1.19.3, module version = 2.3.4
[    23.760] 	Module class: X.Org Video Driver
[    23.760] 	ABI class: X.Org Video Driver, version 23.0
[    23.760] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    23.760] (II) FBDEV: driver for framebuffer: fbdev
[    23.760] (II) VESA: driver for VESA chipsets: vesa
[    23.763] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[    23.763] (II) modeset(0): using drv /dev/dri/card0
[    23.763] (WW) Falling back to old probe method for fbdev
[    23.763] (II) Loading sub module "fbdevhw"
[    23.763] (II) LoadModule: "fbdevhw"
[    23.763] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[    23.763] (II) Module fbdevhw: vendor="X.Org Foundation"
[    23.763] 	compiled for 1.19.6, module version = 0.0.2
[    23.763] 	ABI class: X.Org Video Driver, version 23.0
[    23.763] (WW) Falling back to old probe method for vesa
[    23.763] (**) modeset(0): Depth 24, (--) framebuffer bpp 32
[    23.763] (==) modeset(0): RGB weight 888
[    23.763] (==) modeset(0): Default visual is TrueColor
[    23.763] (II) Loading sub module "glamoregl"
[    23.763] (II) LoadModule: "glamoregl"
[    23.763] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[    23.922] (II) Module glamoregl: vendor="X.Org Foundation"
[    23.922] 	compiled for 1.19.6, module version = 1.0.0
[    23.922] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    23.922] (II) glamor: OpenGL accelerated X.org driver based.
[    24.700] (II) glamor: EGL version 1.4 (DRI2):
[    24.703] (II) modeset(0): glamor initialized
[    24.704] (II) modeset(0): Output DVI-D-1 using monitor section Monitor0
[    24.768] (II) modeset(0): Output DP-1 has no monitor section
[    24.782] (II) modeset(0): Output DP-2 has no monitor section
[    24.783] (II) modeset(0): Output HDMI-1 has no monitor section
[    24.844] (II) modeset(0): Output DP-3 has no monitor section
[    24.845] (II) modeset(0): EDID for output DVI-D-1
[    24.908] (II) modeset(0): EDID for output DP-1
[    24.922] (II) modeset(0): EDID for output DP-2
[    24.922] (II) modeset(0): Manufacturer: NIX  Model: 2415  Serial#: 0
[    24.922] (II) modeset(0): Year: 2016  Week: 13
[    24.922] (II) modeset(0): EDID Version: 1.4
[    24.922] (II) modeset(0): Digital Display Input
[    24.922] (II) modeset(0): 8 bits per channel
[    24.922] (II) modeset(0): Digital interface is DisplayPort
[    24.922] (II) modeset(0): Max Image Size [cm]: horiz.: 52  vert.: 32
[    24.922] (II) modeset(0): Gamma: 2.20
[    24.922] (II) modeset(0): DPMS capabilities: Off
[    24.922] (II) modeset(0): Supported color encodings: RGB 4:4:4 YCrCb 4:2:2
[    24.922] (II) modeset(0): First detailed timing is preferred mode
[    24.922] (II) modeset(0): Preferred mode is native pixel format and refresh rate
[    24.922] (II) modeset(0): Display is continuous-frequency
[    24.922] (II) modeset(0): redX: 0.643 redY: 0.336   greenX: 0.313 greenY: 0.620
[    24.922] (II) modeset(0): blueX: 0.151 blueY: 0.053   whiteX: 0.313 whiteY: 0.329
[    24.922] (II) modeset(0): Supported established timings:
[    24.922] (II) modeset(0): 640x480@60Hz
[    24.922] (II) modeset(0): 800x600@60Hz
[    24.922] (II) modeset(0): 1024x768@60Hz
[    24.922] (II) modeset(0): 1024x768@75Hz
[    24.922] (II) modeset(0): 1280x1024@75Hz
[    24.922] (II) modeset(0): Manufacturer's mask: 0
[    24.922] (II) modeset(0): Supported standard timings:
[    24.922] (II) modeset(0): #0: hsize: 1920  vsize 1080  refresh: 60  vid: 49361
[    24.922] (II) modeset(0): #1: hsize: 1920  vsize 1080  refresh: 120  vid: 64721
[    24.922] (II) modeset(0): #2: hsize: 1280  vsize 720  refresh: 60  vid: 49281
[    24.922] (II) modeset(0): #3: hsize: 1600  vsize 900  refresh: 60  vid: 49321
[    24.922] (II) modeset(0): #4: hsize: 1600  vsize 900  refresh: 120  vid: 64681
[    24.922] (II) modeset(0): Supported detailed timing:
[    24.922] (II) modeset(0): clock: 356.4 MHz   Image Size:  477 x 268 mm
[    24.922] (II) modeset(0): h_active: 1920  h_sync: 2008  h_sync_end 2052 h_blank_end 2200 h_border: 0
[    24.922] (II) modeset(0): v_active: 1080  v_sync: 1084  v_sync_end 1089 v_blanking: 1125 v_border: 0
[    24.922] (II) modeset(0): Monitor name: NX-VUE24
[    24.922] (II) modeset(0): Ranges: V min: 30 V max: 144 Hz, H min: 162 H max: 162 kHz, PixClock max 365 MHz
[    24.922] (II) modeset(0): Serial No: NIX2415
[    24.922] (II) modeset(0): Supported detailed timing:
[    24.922] (II) modeset(0): clock: 333.2 MHz   Image Size:  310 x 170 mm
[    24.922] (II) modeset(0): h_active: 1920  h_sync: 1928  h_sync_end 1960 h_blank_end 2000 h_border: 0
[    24.922] (II) modeset(0): v_active: 1080  v_sync: 1143  v_sync_end 1151 v_blanking: 1157 v_border: 0
[    24.922] (II) modeset(0): Number of EDID sections to follow: 1
[    24.922] (II) modeset(0): EDID (in hex):
[    24.922] (II) modeset(0): 	00ffffffffffff003938152400000000
[    24.922] (II) modeset(0): 	0d1a0104a53420783387e5a456509e26
[    24.922] (II) modeset(0): 	0d5054210b00d1c0d1fc81c0a9c0a9fc
[    24.922] (II) modeset(0): 	010101010101378b801871382d40582c
[    24.922] (II) modeset(0): 	4500dd0c1100001e000000fc004e582d
[    24.922] (II) modeset(0): 	56554532340a20202020000000fd001e
[    24.922] (II) modeset(0): 	90a2a2240100202020202020000000ff
[    24.922] (II) modeset(0): 	004e4958323431350a20202020200149
[    24.922] (II) modeset(0): 	020313c1230907078301000000000000
[    24.922] (II) modeset(0): 	0000002a82805070384d400820f80c36
[    24.922] (II) modeset(0): 	aa1000001a0000000000000000000000
[    24.922] (II) modeset(0): 	00000000000000000000000000000000
[    24.922] (II) modeset(0): 	00000000000000000000000000000000
[    24.922] (II) modeset(0): 	00000000000000000000000000000000
[    24.922] (II) modeset(0): 	00000000000000000000000000000000
[    24.922] (II) modeset(0): 	00000000000000000000000000000082
[    24.922] (II) modeset(0): Not using mode "1920x1080" (bad mode clock/interlace/doublescan)
[    24.922] (II) modeset(0): Printing probed modes for output DP-2
[    24.922] (II) modeset(0): Modeline "1920x1080"x144.0  356.39  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (162.0 kHz eP)
[    24.922] (II) modeset(0): Modeline "1920x1080"x144.0  333.22  1920 1928 1960 2000  1080 1143 1151 1157 +hsync -vsync (166.6 kHz e)
[    24.922] (II) modeset(0): Modeline "1920x1080"x60.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 -hsync -vsync (67.5 kHz e)
[    24.922] (II) modeset(0): Modeline "1600x900"x120.0  254.32  1600 1728 1896 2192  900 903 908 967 -hsync +vsync (116.0 kHz)
[    24.922] (II) modeset(0): Modeline "1600x900"x60.0  108.00  1600 1624 1704 1800  900 901 904 1000 +hsync +vsync (60.0 kHz e)
[    24.922] (II) modeset(0): Modeline "1280x1024"x75.0  135.00  1280 1296 1440 1688  1024 1025 1028 1066 +hsync +vsync (80.0 kHz e)
[    24.922] (II) modeset(0): Modeline "1280x720"x60.0   74.25  1280 1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz e)
[    24.922] (II) modeset(0): Modeline "1280x720"x59.9   74.18  1280 1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz e)
[    24.922] (II) modeset(0): Modeline "1024x768"x75.0   78.75  1024 1040 1136 1312  768 769 772 800 +hsync +vsync (60.0 kHz e)
[    24.922] (II) modeset(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[    24.922] (II) modeset(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e) 

Code: Select all

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 390.48  (buildmeister@swio-display-x86-rhel47-07)  Thu Mar 22 01:07:32 PDT 2018


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

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

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection 
Mattyboy wrote: Sun Jul 15, 2018 5:27 pm Hello...

First off you should never download graphics drivers from a website ( unless there's a really good reason to and you know what you're doing ).

Use the driver manager from menu/administration.

So, start with opening the terminal and running

Code: Select all

sudo apt-get remove --purge nvidia-*
next re-boot your machine.

Then

Code: Select all

dpkg -l | grep -i nvidia
hopefully you'll have no results.

Now go to the driver manager and check for and install the recommended driver and reboot again.

Check that drivers are loaded with

Code: Select all

inxi -G
you're looking for

Code: Select all

version: 4.6.0 NVIDIA 390.48
If it continues to fail to load you'll probably need to blacklist nouveau . Provide the results again of roblm's commands.
I'm pretty sure I've tried this way before, but I'll try again.
Quplet

Re: NVIDIA drivers not working

Post by Quplet »

Mattyboy wrote: Sun Jul 15, 2018 5:27 pm Hello...

First off you should never download graphics drivers from a website ( unless there's a really good reason to and you know what you're doing ).

Use the driver manager from menu/administration.

So, start with opening the terminal and running

Code: Select all

sudo apt-get remove --purge nvidia-*
next re-boot your machine.

Then

Code: Select all

dpkg -l | grep -i nvidia
hopefully you'll have no results.

Now go to the driver manager and check for and install the recommended driver and reboot again.

Check that drivers are loaded with

Code: Select all

inxi -G
you're looking for

Code: Select all

version: 4.6.0 NVIDIA 390.48
If it continues to fail to load you'll probably need to blacklist nouveau . Provide the results again of roblm's commands.
This didn't work. Nouveau is still being used.
The results of inxi -G is:

Code: Select all

quplet@Quplet-PC:~$ inxi -G
Graphics:  Card: NVIDIA GP106 [GeForce GTX 1060 3GB]
           Display Server: x11 (X.Org 1.19.6 )
           drivers: modesetting (unloaded: fbdev,vesa)
           Resolution: 1920x1080@144.00hz
           OpenGL: renderer: NV136 version: 4.3 Mesa 18.0.5 
Re-executed commands:

Code: Select all

quplet@Quplet-PC:~$ inxi -SMCGx
System:    Host: Quplet-PC Kernel: 4.15.0-24-generic x86_64
           bits: 64 gcc: 7.3.0
           Desktop: Cinnamon 3.8.7 (Gtk 3.22.30-1ubuntu1)
           Distro: Linux Mint 19 Tara
Machine:   Device: desktop Mobo: HP model: 82F1 v: 1.01 serial: N/A
           UEFI: AMI v: F.10 date: 03/30/2017
CPU:       Quad core Intel Core i5-7400 (-MCP-) 
           arch: Skylake rev.9 cache: 6144 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 24000
           clock speeds: max: 3500 MHz 1: 1406 MHz 2: 1485 MHz 3: 1451 MHz
           4: 1413 MHz
Graphics:  Card: NVIDIA GP106 [GeForce GTX 1060 3GB] bus-ID: 01:00.0
           Display Server: x11 (X.Org 1.19.6 )
           drivers: modesetting (unloaded: fbdev,vesa)
           Resolution: 1920x1080@144.00hz
           OpenGL: renderer: NV136 version: 4.3 Mesa 18.0.5 Direct Render: Yes 

Code: Select all

quplet@Quplet-PC:~$ lspci -nnk |egrep -A3 -i "3D|VGA"
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP106 [GeForce GTX 1060 3GB] [10de:1c02] (rev a1)
	Subsystem: Hewlett-Packard Company GP106 [GeForce GTX 1060 3GB] [103c:82fc]
	Kernel driver in use: nouveau
	Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia

Code: Select all

quplet@Quplet-PC:~$ ls /etc/modprobe.d
alsa-base.conf                  blacklist-oss.conf
amd64-microcode-blacklist.conf  blacklist-rare-network.conf
blacklist-ath_pci.conf          dkms.conf
blacklist.conf                  intel-microcode-blacklist.conf
blacklist-firewire.conf         iwlwifi.conf
blacklist-framebuffer.conf      nvidia-graphics-drivers.conf
blacklist-modem.conf 

Code: Select all

quplet@Quplet-PC:~$ ls /etc/X11 
app-defaults             xorg.conf                          Xsession
default-display-manager  xorg.conf.backup                   Xsession.d
fonts                    xorg.conf.nvidia-xconfig-original  Xsession.options
rgb.txt                  Xreset                             xsm
xinit                    Xreset.d                           XvMCConfig
xkb                      Xresources                         Xwrapper.config 

Code: Select all

quplet@Quplet-PC:~$ ls /lib/modules/`uname -r`/kernel/drivers/char/drm/
nvidia-drm.ko  nvidia.ko  nvidia-modeset.ko  nvidia-uvm.ko 

Code: Select all

quplet@Quplet-PC:~$ head -n 200 /var/log/Xorg.0.log
[    24.265] 
X.Org X Server 1.19.6
Release Date: 2017-12-20
[    24.265] X Protocol Version 11, Revision 0
[    24.265] Build Operating System: Linux 4.4.0-119-generic x86_64 Ubuntu
[    24.265] Current Operating System: Linux Quplet-PC 4.15.0-24-generic #26-Ubuntu SMP Wed Jun 13 08:44:47 UTC 2018 x86_64
[    24.265] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-24-generic root=UUID=7a2eb6de-bf43-44d3-9fff-267c3ff626a4 ro quiet splash vt.handoff=1
[    24.265] Build Date: 13 April 2018  08:07:36PM
[    24.265] xorg-server 2:1.19.6-1ubuntu4 (For technical support please see http://www.ubuntu.com/support) 
[    24.265] Current version of pixman: 0.34.0
[    24.265] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    24.265] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    24.265] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Jul 15 18:05:23 2018
[    24.265] (==) Using config file: "/etc/X11/xorg.conf"
[    24.265] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    24.266] (==) ServerLayout "Layout0"
[    24.266] (**) |-->Screen "Screen0" (0)
[    24.266] (**) |   |-->Monitor "Monitor0"
[    24.266] (**) |   |-->Device "Device0"
[    24.266] (**) |-->Input Device "Keyboard0"
[    24.266] (**) |-->Input Device "Mouse0"
[    24.266] (==) Automatically adding devices
[    24.266] (==) Automatically enabling devices
[    24.266] (==) Automatically adding GPU devices
[    24.266] (==) Automatically binding GPU devices
[    24.266] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    24.266] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[    24.266] 	Entry deleted from font path.
[    24.266] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[    24.266] 	Entry deleted from font path.
[    24.266] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[    24.266] 	Entry deleted from font path.
[    24.266] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[    24.266] 	Entry deleted from font path.
[    24.266] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[    24.266] 	Entry deleted from font path.
[    24.266] (==) FontPath set to:
	/usr/share/fonts/X11/misc,
	/usr/share/fonts/X11/Type1,
	built-ins
[    24.266] (==) ModulePath set to "/usr/lib/xorg/modules"
[    24.266] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[    24.266] (WW) Disabling Keyboard0
[    24.266] (WW) Disabling Mouse0
[    24.266] (II) Loader magic: 0x5598d0b2c020
[    24.266] (II) Module ABI versions:
[    24.266] 	X.Org ANSI C Emulation: 0.4
[    24.266] 	X.Org Video Driver: 23.0
[    24.266] 	X.Org XInput driver : 24.1
[    24.266] 	X.Org Server Extension : 10.0
[    24.267] (++) using VT number 7

[    24.267] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[    24.268] (II) xfree86: Adding drm device (/dev/dri/card0)
[    24.271] (--) PCI:*(0:1:0:0) 10de:1c02:103c:82fc rev 161, Mem @ 0xde000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[    24.271] (II) LoadModule: "glx"
[    24.271] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    24.320] (II) Module glx: vendor="X.Org Foundation"
[    24.320] 	compiled for 1.19.6, module version = 1.0.0
[    24.320] 	ABI class: X.Org Server Extension, version 10.0
[    24.320] (II) LoadModule: "nvidia"
[    24.321] (WW) Warning, couldn't open module nvidia
[    24.321] (II) UnloadModule: "nvidia"
[    24.321] (II) Unloading nvidia
[    24.321] (EE) Failed to load module "nvidia" (module does not exist, 0)
[    24.321] (==) Matched nouveau as autoconfigured driver 0
[    24.321] (==) Matched nouveau as autoconfigured driver 1
[    24.321] (==) Matched modesetting as autoconfigured driver 2
[    24.321] (==) Matched fbdev as autoconfigured driver 3
[    24.321] (==) Matched vesa as autoconfigured driver 4
[    24.321] (==) Assigned the driver to the xf86ConfigLayout
[    24.321] (II) LoadModule: "nouveau"
[    24.321] (WW) Warning, couldn't open module nouveau
[    24.321] (II) UnloadModule: "nouveau"
[    24.321] (II) Unloading nouveau
[    24.321] (EE) Failed to load module "nouveau" (module does not exist, 0)
[    24.321] (II) LoadModule: "modesetting"
[    24.321] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    24.321] (II) Module modesetting: vendor="X.Org Foundation"
[    24.321] 	compiled for 1.19.6, module version = 1.19.6
[    24.321] 	Module class: X.Org Video Driver
[    24.321] 	ABI class: X.Org Video Driver, version 23.0
[    24.321] (II) LoadModule: "fbdev"
[    24.321] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[    24.321] (II) Module fbdev: vendor="X.Org Foundation"
[    24.321] 	compiled for 1.19.3, module version = 0.4.4
[    24.322] 	Module class: X.Org Video Driver
[    24.322] 	ABI class: X.Org Video Driver, version 23.0
[    24.322] (II) LoadModule: "vesa"
[    24.322] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[    24.322] (II) Module vesa: vendor="X.Org Foundation"
[    24.322] 	compiled for 1.19.3, module version = 2.3.4
[    24.322] 	Module class: X.Org Video Driver
[    24.322] 	ABI class: X.Org Video Driver, version 23.0
[    24.322] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    24.322] (II) FBDEV: driver for framebuffer: fbdev
[    24.322] (II) VESA: driver for VESA chipsets: vesa
[    24.325] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[    24.326] (II) modeset(0): using drv /dev/dri/card0
[    24.326] (WW) Falling back to old probe method for fbdev
[    24.326] (II) Loading sub module "fbdevhw"
[    24.326] (II) LoadModule: "fbdevhw"
[    24.326] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[    24.326] (II) Module fbdevhw: vendor="X.Org Foundation"
[    24.326] 	compiled for 1.19.6, module version = 0.0.2
[    24.326] 	ABI class: X.Org Video Driver, version 23.0
[    24.326] (WW) Falling back to old probe method for vesa
[    24.326] (**) modeset(0): Depth 24, (--) framebuffer bpp 32
[    24.326] (==) modeset(0): RGB weight 888
[    24.326] (==) modeset(0): Default visual is TrueColor
[    24.326] (II) Loading sub module "glamoregl"
[    24.326] (II) LoadModule: "glamoregl"
[    24.326] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[    24.361] (II) Module glamoregl: vendor="X.Org Foundation"
[    24.361] 	compiled for 1.19.6, module version = 1.0.0
[    24.361] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    24.361] (II) glamor: OpenGL accelerated X.org driver based.
[    24.941] (II) glamor: EGL version 1.4 (DRI2):
[    24.945] (II) modeset(0): glamor initialized
[    24.947] (II) modeset(0): Output DVI-D-1 using monitor section Monitor0
[    25.008] (II) modeset(0): Output DP-1 has no monitor section
[    25.022] (II) modeset(0): Output DP-2 has no monitor section
[    25.023] (II) modeset(0): Output HDMI-1 has no monitor section
[    25.084] (II) modeset(0): Output DP-3 has no monitor section
[    25.085] (II) modeset(0): EDID for output DVI-D-1
[    25.148] (II) modeset(0): EDID for output DP-1
[    25.162] (II) modeset(0): EDID for output DP-2
[    25.162] (II) modeset(0): Manufacturer: NIX  Model: 2415  Serial#: 0
[    25.162] (II) modeset(0): Year: 2016  Week: 13
[    25.162] (II) modeset(0): EDID Version: 1.4
[    25.162] (II) modeset(0): Digital Display Input
[    25.162] (II) modeset(0): 8 bits per channel
[    25.162] (II) modeset(0): Digital interface is DisplayPort
[    25.162] (II) modeset(0): Max Image Size [cm]: horiz.: 52  vert.: 32
[    25.162] (II) modeset(0): Gamma: 2.20
[    25.162] (II) modeset(0): DPMS capabilities: Off
[    25.162] (II) modeset(0): Supported color encodings: RGB 4:4:4 YCrCb 4:2:2
[    25.162] (II) modeset(0): First detailed timing is preferred mode
[    25.162] (II) modeset(0): Preferred mode is native pixel format and refresh rate
[    25.162] (II) modeset(0): Display is continuous-frequency
[    25.162] (II) modeset(0): redX: 0.643 redY: 0.336   greenX: 0.313 greenY: 0.620
[    25.162] (II) modeset(0): blueX: 0.151 blueY: 0.053   whiteX: 0.313 whiteY: 0.329
[    25.162] (II) modeset(0): Supported established timings:
[    25.162] (II) modeset(0): 640x480@60Hz
[    25.162] (II) modeset(0): 800x600@60Hz
[    25.162] (II) modeset(0): 1024x768@60Hz
[    25.162] (II) modeset(0): 1024x768@75Hz
[    25.162] (II) modeset(0): 1280x1024@75Hz
[    25.162] (II) modeset(0): Manufacturer's mask: 0
[    25.162] (II) modeset(0): Supported standard timings:
[    25.162] (II) modeset(0): #0: hsize: 1920  vsize 1080  refresh: 60  vid: 49361
[    25.162] (II) modeset(0): #1: hsize: 1920  vsize 1080  refresh: 120  vid: 64721
[    25.162] (II) modeset(0): #2: hsize: 1280  vsize 720  refresh: 60  vid: 49281
[    25.162] (II) modeset(0): #3: hsize: 1600  vsize 900  refresh: 60  vid: 49321
[    25.162] (II) modeset(0): #4: hsize: 1600  vsize 900  refresh: 120  vid: 64681
[    25.162] (II) modeset(0): Supported detailed timing:
[    25.162] (II) modeset(0): clock: 356.4 MHz   Image Size:  477 x 268 mm
[    25.162] (II) modeset(0): h_active: 1920  h_sync: 2008  h_sync_end 2052 h_blank_end 2200 h_border: 0
[    25.162] (II) modeset(0): v_active: 1080  v_sync: 1084  v_sync_end 1089 v_blanking: 1125 v_border: 0
[    25.162] (II) modeset(0): Monitor name: NX-VUE24
[    25.162] (II) modeset(0): Ranges: V min: 30 V max: 144 Hz, H min: 162 H max: 162 kHz, PixClock max 365 MHz
[    25.162] (II) modeset(0): Serial No: NIX2415
[    25.162] (II) modeset(0): Supported detailed timing:
[    25.162] (II) modeset(0): clock: 333.2 MHz   Image Size:  310 x 170 mm
[    25.162] (II) modeset(0): h_active: 1920  h_sync: 1928  h_sync_end 1960 h_blank_end 2000 h_border: 0
[    25.162] (II) modeset(0): v_active: 1080  v_sync: 1143  v_sync_end 1151 v_blanking: 1157 v_border: 0
[    25.162] (II) modeset(0): Number of EDID sections to follow: 1
[    25.162] (II) modeset(0): EDID (in hex):
[    25.162] (II) modeset(0): 	00ffffffffffff003938152400000000
[    25.162] (II) modeset(0): 	0d1a0104a53420783387e5a456509e26
[    25.162] (II) modeset(0): 	0d5054210b00d1c0d1fc81c0a9c0a9fc
[    25.162] (II) modeset(0): 	010101010101378b801871382d40582c
[    25.162] (II) modeset(0): 	4500dd0c1100001e000000fc004e582d
[    25.162] (II) modeset(0): 	56554532340a20202020000000fd001e
[    25.162] (II) modeset(0): 	90a2a2240100202020202020000000ff
[    25.162] (II) modeset(0): 	004e4958323431350a20202020200149
[    25.162] (II) modeset(0): 	020313c1230907078301000000000000
[    25.162] (II) modeset(0): 	0000002a82805070384d400820f80c36
[    25.162] (II) modeset(0): 	aa1000001a0000000000000000000000
[    25.162] (II) modeset(0): 	00000000000000000000000000000000
[    25.162] (II) modeset(0): 	00000000000000000000000000000000
[    25.162] (II) modeset(0): 	00000000000000000000000000000000
[    25.162] (II) modeset(0): 	00000000000000000000000000000000
[    25.162] (II) modeset(0): 	00000000000000000000000000000082
[    25.162] (II) modeset(0): Not using mode "1920x1080" (bad mode clock/interlace/doublescan)
[    25.162] (II) modeset(0): Printing probed modes for output DP-2
[    25.162] (II) modeset(0): Modeline "1920x1080"x144.0  356.39  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (162.0 kHz eP)
[    25.162] (II) modeset(0): Modeline "1920x1080"x144.0  333.22  1920 1928 1960 2000  1080 1143 1151 1157 +hsync -vsync (166.6 kHz e)
[    25.162] (II) modeset(0): Modeline "1920x1080"x60.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 -hsync -vsync (67.5 kHz e)
[    25.162] (II) modeset(0): Modeline "1600x900"x120.0  254.32  1600 1728 1896 2192  900 903 908 967 -hsync +vsync (116.0 kHz)
[    25.162] (II) modeset(0): Modeline "1600x900"x60.0  108.00  1600 1624 1704 1800  900 901 904 1000 +hsync +vsync (60.0 kHz e)
[    25.162] (II) modeset(0): Modeline "1280x1024"x75.0  135.00  1280 1296 1440 1688  1024 1025 1028 1066 +hsync +vsync (80.0 kHz e)
[    25.162] (II) modeset(0): Modeline "1280x720"x60.0   74.25  1280 1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz e)
[    25.162] (II) modeset(0): Modeline "1280x720"x59.9   74.18  1280 1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz e)
[    25.162] (II) modeset(0): Modeline "1024x768"x75.0   78.75  1024 1040 1136 1312  768 769 772 800 +hsync +vsync (60.0 kHz e)
[    25.162] (II) modeset(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[    25.162] (II) modeset(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e) 

Code: Select all

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 390.48  (buildmeister@swio-display-x86-rhel47-07)  Thu Mar 22 01:07:32 PDT 2018


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

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

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection 
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: NVIDIA drivers not working

Post by roblm »

Is there a Secure Boot setting enabled in the BIOS? It should be disabled.

The modesetting driver is loading, which is strange because usually if the Nvidia driver doesn't load, then the fbdev driver is loaded, after blacklisting nouveau. Did you use this command to remove the nouveau driver package?
sudo apt remove xserver-xorg-video-nouveau
Quplet

Re: NVIDIA drivers not working

Post by Quplet »

roblm wrote: Sun Jul 15, 2018 7:04 pm Is there a Secure Boot setting enabled in the BIOS? It should be disabled.

The modesetting driver is loading, which is strange because usually if the Nvidia driver doesn't load, then the fbdev driver is loaded, after blacklisting nouveau. Did you use this command to remove the nouveau driver package?
sudo apt remove xserver-xorg-video-nouveau
Yes, secure boot was enabled, so I disabled it just now. Would that fix it? Yes, I had removed the driver package.
Quplet

Re: NVIDIA drivers not working

Post by Quplet »

roblm wrote: Sun Jul 15, 2018 7:04 pm Is there a Secure Boot setting enabled in the BIOS? It should be disabled.

The modesetting driver is loading, which is strange because usually if the Nvidia driver doesn't load, then the fbdev driver is loaded, after blacklisting nouveau. Did you use this command to remove the nouveau driver package?
sudo apt remove xserver-xorg-video-nouveau
It did fix it! Nvidia driver is being used now! Thank you, I hadn't seen the need to disable secure boot before.
Locked

Return to “Graphics Cards & Monitors”