GeForce GTX 1050 Ti driver installed on Ubuntu 19.10 but not used

Hi,

I have a laptop with a Nvidia GeForce GTX 1050 Ti with Ubuntu 19.10. The problem I have is I can’t seem to make work the nvidia graphic card though the driver is installed and seems to be running. My graphic card is not used, everything is rendered with the Intel card…

I’ve tried everything on this forum but it doesn’t seem to help.

I have attached the bug report logs.

Thank you !

glxinfo | grep render
direct rendering: Yes
    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(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_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, 

nvidia-smi
+-----------------------------------------------------------------------------+
| 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 105...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   45C    P8    N/A /  N/A |     29MiB /  4042MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1753      G   /usr/lib/xorg/Xorg                            14MiB |
|    0      2664      G   /usr/lib/xorg/Xorg                            14MiB |
+-----------------------------------------------------------------------------+

sudo lshw -c video
  *-display                 
       description: 3D controller
       produit: GP107M [GeForce GTX 1050 Ti Mobile]
       fabricant: NVIDIA Corporation
       identifiant matériel: 0
       information bus: pci@0000:01:00.0
       version: a1
       bits: 64 bits
       horloge: 33MHz
       fonctionnalités: pm msi pciexpress bus_master cap_list rom
       configuration : driver=nvidia latency=0
       ressources : irq:140 mémoire:ec000000-ecffffff mémoire:c0000000-cfffffff mémoire:d0000000-d1ffffff portE/S:3000(taille=128) mémoire:ed000000-ed07ffff
  *-display
       description: VGA compatible controller
       produit: UHD Graphics 630 (Mobile)
       fabricant: Intel Corporation
       identifiant matériel: 2
       information bus: pci@0000:00:02.0
       version: 00
       bits: 64 bits
       horloge: 33MHz
       fonctionnalités: pciexpress msi pm vga_controller bus_master cap_list rom
       configuration : driver=i915 latency=0
       ressources : irq:131 mémoire:eb000000-ebffffff mémoire:80000000-8fffffff portE/S:4000(taille=64) mémoire:c0000-dffff

prime-select query
nvidia

nvidia-bug-report.log (1.6 MB)

Your notebook is configured for graphics offloading:
/etc/X11/xorg.conf.d/10-prime-offload.conf
## FILE GENERATED BY XPS-TWEAKS INSTALL SCRIPT ##
Please see: https://download.nvidia.com/XFree86/Linux-x86_64/440.64/README/primerenderoffload.html
If you want to have the nvidia gpu to always run and have external connectors available, please remove that file.

Hi,

Thank you very much! Indeed it was because of that file.

nvidia-smi     
+-----------------------------------------------------------------------------+
| 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 105...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   55C    P3    N/A /  N/A |    585MiB /  4042MiB |      2%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1826      G   /usr/lib/xorg/Xorg                            28MiB |
|    0      2858      G   /usr/lib/xorg/Xorg                           185MiB |
|    0      3253      G   /usr/bin/gnome-shell                         166MiB |
|    0      3631      G   ...AAAAAAAAAAAAAAgAAAAAAAAA --shared-files   155MiB |
|    0      3968      G   gnome-control-center                           1MiB |
+--------------------------------------------------