Ubuntu 19.04 Driver Installed but not Used

Hello,
I have an Ubuntu 19.04 laptop with a nvidia graphics card. I installed the nvidia driver (418, via Software & Updates → additional drivers) but for some reason it isn’t being used(llvmpipe is used instead).

Here’s some output from the terminal. I’d be happy to provide additional information.

$ 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 8.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_OES_element_index_uint, GL_OES_fbo_render_mipmap,
~$ nvidia-smi 
Mon Aug 19 14:02:01 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 GTX 1060    Off  | 00000000:01:00.0  On |                  N/A |
| N/A   49C    P5     6W /  N/A |    203MiB /  6069MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1798      G   /usr/bin/gnome-shell                         193MiB |
+-----------------------------------------------------------------------------+
~$ sudo lshw -c video
  *-display                 
       description: VGA compatible controller
       product: GP106M [GeForce GTX 1060 Mobile]
       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 rom
       configuration: driver=nvidia latency=0
       resources: irq:132 memory:de000000-deffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:e000(size=128) memory:c0000-dffff

Thanks!
nvidia-bug-report.log.gz (1.03 MB)

Please run nvidia-bug-report.sh as root and attach the resulting .gz file to your post. Hovering the mouse over an existing post of yours will reveal a paperclip icon.
[url]https://devtalk.nvidia.com/default/topic/1043347/announcements/attaching-files-to-forum-topics-posts/[/url]

Thanks for the quick reply!
I added the .log.gz file to the post.

Looks like GDM is starting a Wayland session. To work around it, run
grep modeset /etc/modprobe.d/* /lib/modprobe.d/*
to find the file containing

options nvidia-drm modeset=1

change the 1 to 0 and run
sudo update-initramfs -u
then reboot.

1 Like

This Worked! Thank you so much!
Can you just please explain to me what the problem was and what was the fix?

That parameter is enabling linux drm kms with the nvidia driver leading to GDM often starting a Wayland session. Any X application will then run inside XWayland which is currently only able to offer software GL with the nvidia driver.
Turning the option off will force GDM to start a normal X session.

OK. Thank you very much!

Hi,

I am also having problems with my nvidia graphics driver installation similar to OP.
It seems that while my nvidia drivers are installed my laptop (dual graphics Intel HD3000 and GeForce GT750M) uses only the Intel graphics.

I have tried various suggested solutions:

  1. Purged my drivers; reboot; enable nvidia ppa; install nvidia using ubuntu-drivers autoinstall (installs nvidia-415)
  2. Purged my drivers; reboot; disable nvidia ppa; install nvidia using ubuntu-drivers autoinstall (installs nvidia-390)
  3. options nvidia-drm modeset=1
  4. options nvidia-drm modeset=0
  5. remove /lib/modprode.d/blacklist-nvidia.conf

The nvidia drivers install (apparently) correctly yet my laptop still only uses Intel graphics. I don’t know what to do now.

I’ve attached console outputs of various commands and the output of ‘nvidia-bug-report.sh’ in the hope that you could/would help me fix this issue.

Thanks in advance.

Console Output:

$ glxinfo | grep render

direct rendering: Yes
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
    GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer, GLX_MESA_query_renderer, 
Extended renderer info (GLX_MESA_query_renderer):
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile 
    GL_ARB_compute_shader, GL_ARB_conditional_render_inverted, 
    GL_MESA_texture_signed_rgba, 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_render_snorm, GL_EXT_robustness, GL_EXT_sRGB_write_control, 
    GL_OES_fbo_render_mipmap, GL_OES_geometry_point_size,

=============================================================================================

$ System Information

Operating System: KDE neon 5.16
KDE Plasma Version: 5.16.4
KDE Frameworks Version: 5.61.0
Qt Version: 5.12.3
Kernel Version: 4.15.0-58-generic
OS Type: 64-bit
Processors: 4 × Intel® Core™ i7-4510U CPU @ 2.00GHz
Memory: 15.6 GiB of RAM

=============================================================================================

$ sudo lshw -c video

  *-display
       description: VGA compatible controller
       product: Haswell-ULT Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 0b
       width: 64 bits
       clock: 33MHz
       capabilities: msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:44 memory:e3000000-e33fffff memory:c0000000-cfffffff ioport:5000(size=64) memory:c0000-dffff
  *-display
       description: 3D controller
       product: GK107M [GeForce GT 750M]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:04:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: driver=nvidia latency=0
       resources: irq:49 memory:e2000000-e2ffffff memory:d0000000-dfffffff memory:e0000000-e1ffffff ioport:3000(size=128)

=============================================================================================

$ nvidia-smi

Thu Aug 22 08:49:43 2019       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 415.27       Driver Version: 415.27       CUDA Version: 10.0     |
|-------------------------------+----------------------+----------------------+
| 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 750M     Off  | 00000000:04:00.0 N/A |                  N/A |
| N/A   53C    P8    N/A /  N/A |      2MiB /  2002MiB |     N/A      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0                    Not Supported                                       |
+-----------------------------------------------------------------------------+

=============================================================================================

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

norton.miller, please remove /usr/share/X11/xorg.conf.d/20-intel.conf
It contains a fixed intel config.

Hi generix.

Thank you!

My laptop now uses nvidia graphics.

$ glxinfo | grep render               

direct rendering: Yes
OpenGL renderer string: GeForce GT 750M/PCIe/SSE2
    GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth, 
    GL_KHR_robustness, GL_KTX_buffer_region, GL_NVX_conditional_render, 
    GL_NV_compute_program5, GL_NV_conditional_render, 
    GL_NV_parameter_buffer_object2, GL_NV_path_rendering, 
    GL_ARB_compute_variable_group_size, GL_ARB_conditional_render_inverted, 
    GL_KHR_robustness, GL_KTX_buffer_region, GL_NVX_conditional_render, 
    GL_NV_compute_program5, GL_NV_conditional_render, 
    GL_NV_parameter_buffer_object2, GL_NV_path_rendering, 
    GL_EXT_multisample_compatibility, GL_EXT_multisampled_render_to_texture, 
    GL_EXT_multisampled_render_to_texture2, GL_EXT_occlusion_query_boolean, 
    GL_EXT_render_snorm, GL_EXT_robustness, GL_EXT_sRGB, 
    GL_NV_conditional_render, GL_NV_copy_buffer, GL_NV_copy_image, 
    GL_NV_packed_float_linear, GL_NV_path_rendering, 
    GL_OES_fbo_render_mipmap, GL_OES_geometry_point_size, 
    GL_OVR_multiview_multisampled_render_to_texture

This is amazing. Thank you very much for your help - greatly appreciated.

regards,

norton

Hi, I believe I have a similar problem to OP, but the steps that helped them solve their problem haven’t worked for me. I’ve tried the same solutions as norton too. Here is a copy of my bug report, any help/advice would be greatly appreciated.

https://github.com/jamesETsmith/Bug-Reports/blob/master/nvidia-bug-report.log.gz

(base) james:~$ 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 8.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_OES_element_index_uint, GL_OES_fbo_render_mipmap,
(base) james:~$ sudo lshw -c video
  *-display                 
       description: 3D controller
       product: GP107M [GeForce GTX 1050 Ti Mobile]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:145 memory:ec000000-ecffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:3000(size=128) memory:ed000000-ed07ffff
  *-display UNCLAIMED
       description: VGA compatible controller
       product: Intel Corporation
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list
       configuration: latency=0
       resources: memory:eb000000-ebffffff memory:80000000-8fffffff ioport:4000(size=64) memory:c0000-dffff
(base) james:~$ nvidia-smi
Thu Aug 22 16:22:24 2019       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 430.40       Driver Version: 430.40       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 GTX 105...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   43C    P8    N/A /  N/A |      0MiB /  4042MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

jasm3285, you have an Optimus notebook and the ‘nomodeset’ kernel parameter set. Please remove that as it kills the intel igpu which is necessary to drive the display.

That did the trick, thanks for your help!

Hi generix, I have a slimilar problem on my ubuntu 18.04, please help.Thank you. please see the topic:

Hi, I installed the native drivers on kubuntu 19.04 but it seems that the graphics card is not recognized. I’ve tried everything but can’t solve the problem. Below is information on the system and the bug report. Thanks in advance.

$ glxinfo | grep render
direct rendering: Yes
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
    GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer, GLX_MESA_query_renderer, 
Extended renderer info (GLX_MESA_query_renderer):
OpenGL renderer string: Mesa DRI Intel(R) UHD Graphics 630 (Coffeelake 3x8 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_MESA_window_pos, GL_NV_blend_square, GL_NV_conditional_render, 
    GL_EXT_render_snorm, GL_EXT_robustness, GL_EXT_sRGB_write_control, 
    GL_OES_element_index_uint, GL_OES_fbo_render_mipmap, 
air0ne@AirPrecision5530:~$
$ sudo lshw -c video
[sudo] password for air0ne: 
  *-display                 
       description: 3D controller
       product: GP107GLM [Quadro P2000 Mobile]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:16 memory:ec000000-ecffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:3000(size=128) memory:ed000000-ed07ffff
  *-display
       description: VGA compatible controller
       product: Intel Corporation
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:126 memory:eb000000-ebffffff memory:80000000-8fffffff ioport:4000(size=64) memory:c0000-dffff
air0ne@AirPrecision5530:~$
$ sudo nvidia-smi
No devices were found

nvidia-bug-report.log.gz (596 KB)

martinellidavide72, you’re running into:

Oct  9 13:04:05 AirPrecision5530 kernel: [    7.993505] NVRM: RmInitAdapter failed! (0x31:0xffff:842)
Oct  9 13:04:05 AirPrecision5530 kernel: [    7.993527] NVRM: rm_init_adapter failed for device bearing minor number 0
Oct  9 13:04:21 AirPrecision5530 kernel: [   23.902450] NVRM: RmInitAdapter failed! (0x31:0xffff:842)

Might be defective hardware, please check if it works in when installing Windows and RMA if possible.
Edit: also check for a bios update first.

Hello there, I have the same issue, would you please help me how to deal with this problem.

i-lidong@iZbp1e9ylfutha9dz6cmxpZ:~/temp$ 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 8.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_OES_element_index_uint, GL_OES_fbo_render_mipmap,
i-lidong@iZbp1e9ylfutha9dz6cmxpZ:~/temp$ nvidia-smi
Thu Oct 17 16:07:14 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.67       Driver Version: 418.67       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  Tesla P4            On   | 00000000:00:07.0 Off |                    0 |
| N/A   27C    P8     6W /  75W |      0MiB /  7611MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

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

nvidia-bug-report.log (2.08 MB)

lidong19980608, you’re using a passed-through Tesla in a VM, that won’t work that way since the Tesla doesn’t have outputs. You might be able to use virtualgl to make use of the Tesla for graphics workloads.
Edit: another possibility would be to set up another Xserver on the Tesla and then use x11vnc to make it available over vnc.

Thanks for your reply, I will try virutal GL later, hope it will work, I just want my unity standalone application run in Linux server with nvidia GPU.
Anyway, would you mind tell me a little more about why Tesla won’t work that way and why it doesn’t have outputs?
And what’s the meaning of a “passed-through” Tesla?
I will be really appreciate for that.

The logs you provided are from inside a VM, so I have no idea about the physical setup of the host system. You might as well be running ontop of a vGPU setup. So I can’t really answer your questions.