Ubuntu 19.04 Driver Installed but not Used

Hi again.

I’ve had to reinstall my OS (KDE Neon) due to a hard drive failure. Once again, EVEN after selecting to install proprietary nvidia drivers during installation I cannot get my system to use my nvidia graphics.

I have attached links to terminal outputs for commands and the nvidia-bug-report.log.gz.

Hopefully you can help me get my nvidia graphics to work. Again.

nvidia-bug-report.log.gz
https://nextcloud.silentstorm.co.uk/index.php/s/GnT8dzyY39Bbb8j

Output of

nvidia-smi, sudo lshw -c video, glxinfo | grep render

https://nextcloud.silentstorm.co.uk/index.php/s/JxFqL7bqF8CZ4aW

Output of

prime-switch

https://nextcloud.silentstorm.co.uk/index.php/s/MnNQpdBfDGPxYDJ

Thanks again for your help.

Hi Good day, Can you help me solve my problem I had the same problem as others. attach is my log.
nvidia-bug-report.log.gz (1.09 MB)

Hey there,

I’m running into the same issue. I’ve tried a few things I found in the thread and caused the machine to hang requiring a restart. I was wondering if Nvidia tech folks can take a look and see what is going on on my machine?

output of nvidia.smi:

rick@AC0123327:~/Desktop$ nvidia-smi
Fri May 1 23:02:38 2020
±----------------------------------------------------------------------------+
| NVIDIA-SMI 440.64 Driver Version: 440.64 CUDA Version: 10.2 |
|-------------------------------±---------------------±---------------------+
| 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 GTX 950M Off | 00000000:07:00.0 Off | N/A |
| N/A 39C P0 N/A / N/A | 0MiB / 4046MiB | 0% Default |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
±----------------------------------------------------------------------------+

nvidia.-bug-report-.log.gz is attached.

Thanks in advance for your help!
nvidia-bug-report.log (806.7 KB)

Please try this:

  • make sure nvidia-prime is installed (sudo apt install nvidia-prime)
  • switch to nvidia (sudo prime-select nvidia)
  • remove stray blacklist files (sudo rm /lib/modprobe.d/blacklist-nvidia.conf /etc/modprobe.d/blacklist-nvidia.conf)
  • update the initrd (sudo update-initramfs -u)
  • reboot

Hey there generix,

I got the same problem with ubuntu 20.04. I installed nvidia drivers for 1660ti max q notebook drivers recommended drivers from software & updates ->additional drivers, my laptop got nvidia driver alongside with amd inbuilt gpu.

Screenshot from 2020-05-03 09-46-25

nvidia-settings does not open.

nvidia-smi results :
Screenshot from 2020-05-03 09-38-21

/usr/share/X11/xorg.conf.d:

nvidia-detector returns follows,
nvidia-driver-440

if i run sudo nvidia-xconfig, it generate a message as follows then when i reboot it freezes the login.

and glxinfo gives me following details.

Screenshot from 2020-05-03 09-44-57

I was trying to fixing this issue over a week. I am soooo tired by trying to fix this. hopefully you can help me.

Here is my bug report.
bug_report

Please help <3!

For an amd/nvidia combo, please see this:
https://forums.developer.nvidia.com/t/nvidia-xconfig-doesnt-do-what-i-want-it-to-nor-does-nvidia-settings/107883/7?u=generix
On 20.04, you’ll also have to disable the nvidia-persistenced service to be able to switch to amd only (sudo systemctl disable nvidia-persistenced).

Hello generix, I have been searching for a solution to use my nvidia graphics card as my opengl renderer instead of the intel card and I’ve tried the solutions given to previous replies but most of them didn’t work for me or made me end up being stuck at login screen until I revert the changes back. such as

I’m on ubuntu 19.10 and using i3wm if that helps.

glxinfo | grep render battery 96% | * ZSH
direct rendering: Yes
GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
GLX_MESA_query_renderer, GLX_MESA_swap_control, GLX_OML_swap_method,
GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
GLX_MESA_query_renderer, GLX_MESA_swap_control, GLX_OML_swap_method,
Extended renderer info (GLX_MESA_query_renderer):
OpenGL renderer string: Mesa DRI Intel® HD Graphics 620 (Kaby Lake GT2)
GL_ARB_compute_shader, GL_ARB_conditional_render_inverted,
GL_NV_conditional_render, GL_NV_depth_clamp,
GL_ARB_compute_shader, GL_ARB_conditional_render_inverted,
GL_NV_conditional_render, GL_NV_depth_clamp, GL_NV_fog_distance,
GL_EXT_read_format_bgra, GL_EXT_render_snorm, GL_EXT_robustness,
OpenGL renderer string: Mesa DRI Intel® HD Graphics 620 (Kaby Lake GT2)
GL_ARB_compute_shader, GL_ARB_conditional_render_inverted,
GL_NV_conditional_render, GL_NV_depth_clamp,
GL_ARB_compute_shader, GL_ARB_conditional_render_inverted,
GL_NV_conditional_render, GL_NV_depth_clamp, GL_NV_fog_distance,
GL_EXT_read_format_bgra, GL_EXT_render_snorm, GL_EXT_robustness,
GL_NV_conditional_render, GL_NV_draw_buffers, GL_NV_fbo_color_attachments,
GL_OES_element_index_uint, GL_OES_fbo_render_mipmap,

sudo lshw -c video battery 96% | * ZSH
*-display
description: VGA compatible controller
product: HD Graphics 620
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 02
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
bus info: pci@0000:00:02.0
version: 02
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:129 memory:a2000000-a2ffffff memory:b0000000-bfffffff ioport:6000(size=64) memory:c0000-dffff
*-display
description: 3D controller
product: GM108M [GeForce 940MX]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:03:00.0
version: a2
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=nvidia latency=0
resources: irq:132 memory:a3000000-a3ffffff memory:90000000-9fffffff memory:a0000000-a1ffffff ioport:3000(size=128)

nvidia-bug-report.log (1.7 MB)

Please create a new nvidia-bug-report.log with /usr/share/X11/xorg.conf.d/20-intel.conf removed.

Hello generix, Sorry for the late reply
as I already said, removing the 20-intel.conf file makes me unable to boot into ubuntu where the ubuntu loading screen just freezes, But I did that anyway and after removing the file, I couldn’t boot into ubuntu even with changing grub setting to “nosplash”, so I entered tty mode and made the nvidia-bug-report.log file in tty mode (with the .conf file removed) and then returned the 20-intel.conf file back to revert changes and be able to boot into ubuntu.

Here are the contents of my 20-intel.conf: (/usr/share/X11/xorg.conf.d/20-intel.conf)

Section “Device”
Identifier “0x42”
Driver “intel”
Option “Backlight” “intel_backlight”
BusID “PCI:0:2:0”
EndSection

Contents of 10-nvidia.conf: (/usr/share/X11/xorg.conf.d/10-nvidia.conf)

Section “OutputClass”
Identifier “nvidia”
MatchDriver “nvidia-drm”
Driver “nvidia”
Option “AllowEmptyInitialConfiguration”
ModulePath “/usr/lib/x86_64-linux-gnu/nvidia/xorg”
EndSection

Content of 11-nvidia-prime.conf (/usr/share/X11/xorg.conf.d/11-nvidia-prime.conf)

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

Grub (/etc/default/grub) Settings:

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

output of inxi -G

inxi -G
Graphics: Device-1: Intel HD Graphics 620 driver: i915 v: kernel
Device-2: NVIDIA GM108M [GeForce 940MX] driver: nvidia v: 440.82
Display: x11 server: X.Org 1.20.5 driver: none resolution: 1920x1080~60Hz
OpenGL: renderer: Mesa DRI Intel HD Graphics 620 (Kaby Lake GT2) v: 4.5 Mesa 19.2.8

Names of files in /usr/share/X11/xorg.conf.d/ directory:

10-nvidia.conf 10-quirks.conf 11-nvidia-prime.conf 20-intel.conf 40-libinput.conf 70-wacom.conf

I don’t know if all of this information would provide any help but here they are.

And Here is the .log file with 20-intel.conf file removed (From TTY mode).

nvidia-bug-report.log (1.1 MB)

The log looks rather odd, seems that journald isn’t working.
Please post the output of
ls -l /etc/X11 /etc/X11/xorg.conf.d

output of
ls -l /etc/X11 /etc/X11/xorg.conf.d

/etc/X11:
total 100
drwxr-xr-x 2 root root 4096 Feb 26 22:11 app-defaults
drwxr-xr-x 2 root root 4096 Oct 17 2019 cursors
-rw-r–r-- 1 root root 15 Oct 17 2019 default-display-manager
drwxr-xr-x 4 root root 4096 Oct 17 2019 fonts
-rw-r–r-- 1 root root 17394 Jan 20 2017 rgb.txt
drwxr-xr-x 2 root root 4096 Feb 26 22:11 xdm
drwxr-xr-x 2 root root 4096 Oct 17 2019 xinit
drwxr-xr-x 2 root root 4096 Aug 20 2019 xkb
-rw-r–r-- 1 root root 1236 May 9 01:51 xorg.conf
-rw-r–r-- 1 root root 1236 May 9 01:51 xorg.conf.backup
drwxr-xr-x 2 root root 4096 May 8 04:13 xorg.conf.d
-rw-r–r-- 1 root root 122 Mar 4 01:41 xorg.conf.nvidia-xconfig-original
-rwxr-xr-x 1 root root 709 Jan 20 2017 Xreset
drwxr-xr-x 2 root root 4096 Oct 17 2019 Xreset.d
drwxr-xr-x 2 root root 4096 Oct 17 2019 Xresources
-rwxr-xr-x 1 root root 3730 Dec 14 2018 Xsession
drwxr-xr-x 2 root root 4096 Mar 7 18:29 Xsession.d
-rw-r–r-- 1 root root 265 Jan 20 2017 Xsession.options
drwxr-xr-x 2 root root 4096 Oct 17 2019 xsm
-rw-r–r-- 1 root root 13 Aug 24 2019 XvMCConfig
-rw-r–r-- 1 root root 630 Oct 17 2019 Xwrapper.config

/etc/X11/xorg.conf.d:
total 4
-rw-r–r-- 1 root root 119 May 8 04:12 20-intel.conf

Please remove (don’t rename)
/etc/X11/xorg.conf
/etc/X11/xorg.conf.backup
/etc/X11/xorg.conf.nvidia-xconfig-original
then remove the intel config and try again.

So I removed the files specified then I removed /usr/share/X11/xorg.conf.d/20-intel.conf and ran into the same problem of being stuck at login screen

so again entered TTY mode and generated the log file in there and moved the intel config file back to be able to boot into the system.

ps. If you’re wondering the change in the username, it’s because of nvidia’s policy of having a limit of 3 replies per topic for new accounts, so I made a new account to continue.

nvidia-bug-report.log (1.5 MB)

Ok, the problem is, you somewhere put a config file that disables the intel gpu:

Applying OutputClass "my intel driver settings" to /dev/dri/card0
loading driver: (null)

Please find and delete that file.
Check the directory /usr/share/X11/xorg.conf.d

I had that in here
/etc/X11/xorg.conf.d/20-intel.conf

Section “OutputClass”
Identifier “my intel driver settings”
MatchDriver “i915”
Option “DRI” “3”
EndSection

Removed it and removed the one in /usr/share/x11/xorg.conf.d/ , Rebooted
and IT WORKED!!!

THANK YOU TONS !!!

nvidia-bug-report.log (519.7 KB)

Hey I have the same problem over and over again, all the time I reinstall ubuntu, but now i want to fix this problem. Can someone help me?

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.

sudo lshw -c video

  *-display UNCLAIMED       
       description: VGA compatible controller
       product: NVIDIA Corporation
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list
       configuration: latency=0
       resources: memory:54000000-54ffffff memory:40000000-4fffffff memory:52000000-53ffffff ioport:3000(size=128) memory:c0000-dffff

glxinfo | grep render

  direct rendering: Yes
        GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
        GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, GLX_MESA_query_renderer, 
    Extended renderer info (GLX_MESA_query_renderer):
    OpenGL renderer string: llvmpipe (LLVM 9.0, 256 bits)
        GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth, 
        GL_MESA_ycbcr_texture, GL_NV_conditional_render, GL_NV_depth_clamp, 
        GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth, 
        GL_NV_conditional_render, GL_NV_depth_clamp, GL_NV_fog_distance, 
        GL_MESA_shader_integer_functions, GL_NV_conditional_render, 
        GL_OES_element_index_uint, GL_OES_fbo_render_mipmap,

The kernel was compiled with gcc 7.5.0 yet you swtched the system compiler to gcc 9.3.0 so the driver doesn’t compile. Please switch back to the standard system compiler 7.5.0.

Hmm, but it worked before, like yesterday (I installed the compilers like 3/4 weeks before), how can i switch back to the standard compiler 7.5.0?

Use update-alternatives

update-alternatives --query gcc
update-alternatives --set gcc "/usr/bin/gcc-7.5"
update-alternatives --set g++ "/usr/bin/g++-7.5"
femust@femust-Z390-AORUS-PRO-WIFI:~$ g++ --version
g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

femust@femust-Z390-AORUS-PRO-WIFI:~$ gcc --version
gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I used the commends, but still the same problem