NVidia GTX1660 Ti Max-Q (driver 440.44) on Ubuntu 19.10: unable to select graphic card (using integrated one)

Hello!

I installed the lastest Nvidia driver using PPA. The driver looks perfectly installed. The problem is the system is not using it. It is using the AMD integrated graphics card (AMD® Ryzen 7 3750h with radeon vega mobile).

$ inxi -Gx
Graphics: Device-1: NVIDIA TU116M [GeForce GTX 1660 Ti Mobile] vendor: ASUSTeK driver: nvidia
v: 440.44 bus ID: 01:00.0
Device-2: AMD Picasso vendor: ASUSTeK driver: amdgpu v: kernel bus ID: 05:00.0
Display: x11 server: X.Org 1.20.5 driver: amdgpu,ati
unloaded: fbdev,modesetting,nouveau,nvidia,vesa tty: N/A
OpenGL: renderer: AMD RAVEN (DRM 3.33.0 5.3.0-24-generic LLVM 9.0.0)
v: 4.5 Mesa 19.2.1 direct render: Yes

$ glxinfo | egrep “OpenGL vendor|OpenGL renderer”
OpenGL vendor string: X.Org
OpenGL renderer string: AMD RAVEN (DRM 3.33.0, 5.3.0-24-generic, LLVM 9.0.0)

[i]$ sudo nvidia-smi
Tue Dec 24 01:51:11 2019
±----------------------------------------------------------------------------+
| NVIDIA-SMI 440.44 Driver Version: 440.44 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 166… Off | 00000000:01:00.0 Off | N/A |
| N/A 51C P0 14W / N/A | 0MiB / 5944MiB | 0% Default |
±------------------------------±---------------------±---------------------+

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

It looks to be selected but the system does not use it:
$ sudo prime-select query
nvidia

[i]$ sudo lshw -C display
*-display
descripción: VGA compatible controller
producto: TU116M [GeForce GTX 1660 Ti Mobile]
fabricante: NVIDIA Corporation
id físico: 0
información del bus: pci@0000:01:00.0
versión: a1
anchura: 64 bits
reloj: 33MHz
capacidades: pm msi pciexpress vga_controller bus_master cap_list rom
configuración: driver=nvidia latency=0
recursos: irq:73 memoria:f6000000-f6ffffff memoria:c0000000-cfffffff memoria:d0000000-d1ffffff ioport:f000(size=128) memoria:f7000000-f707ffff
*-display
descripción: VGA compatible controller
producto: Picasso
fabricante: Advanced Micro Devices, Inc. [AMD/ATI]
id físico: 0
información del bus: pci@0000:05:00.0
versión: c1
anchura: 64 bits
reloj: 33MHz
capacidades: pm pciexpress msi msix vga_controller bus_master cap_list
configuración: driver=amdgpu latency=0
recursos: irq:72 memoria:e0000000-efffffff memoria:f0000000-f01fffff ioport:c000(size=256) memoria:f7600000-f767ffff

[/i]

I can not access to nvidia-settings:
[i]$ sudo nvidia-settings

ERROR: Unable to load info from any available system

(nvidia-settings:9370): GLib-GObject-CRITICAL **: 01:55:15.799: g_object_unref: assertion ‘G_IS_OBJECT (object)’ failed
** Message: 01:55:15.804: PRIME: No offloading required. Abort
** Message: 01:55:15.804: PRIME: is it supported? no
[/i]

Any advice? Thank you very much on advance!
PS: creating the topic I have seen an option to attach the nvidia-bug-report, maybe you need more information
nvidia-bug-report.log.gz (349 KB)

Just a little more information:

$ dmesg|grep nvidia
[ 0.429930] nvidia-gpu 0000:01:00.3: enabling device (0000 -> 0002)
[ 1.577924] nvidia: loading out-of-tree module taints kernel.
[ 1.577931] nvidia: module license ‘NVIDIA’ taints kernel.
[ 1.626905] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[ 1.636119] nvidia-nvlink: Nvlink Core is being initialized, major device number 236
[ 1.636552] nvidia 0000:01:00.0: enabling device (0000 -> 0003)
[ 1.636656] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[ 1.688843] audit: type=1400 audit(1577154230.838:3): apparmor=“STATUS” operation=“profile_load” profile=“unconfined” name=“nvidia_modprobe” pid=617 comm=“apparmor_parser”
[ 1.689201] audit: type=1400 audit(1577154230.838:4): apparmor=“STATUS” operation=“profile_load” profile=“unconfined” name=“nvidia_modprobe//kmod” pid=617 comm=“apparmor_parser”
[ 1.804534] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 440.44 Sun Dec 8 03:29:48 UTC 2019
[ 1.936386] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[ 1.936388] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 1
[ 2.086768] nvidia-uvm: Loaded the UVM driver, major device number 234.
[ 118.288044] nvidia-gpu 0000:01:00.3: i2c timeout error f0000100

Please see this:
https://devtalk.nvidia.com/default/topic/1067083/linux/nvidia-xconfig-doesnt-do-what-i-want-it-to-nor-does-nvidia-settings/post/5404726/#5404726

Thank you very much!
This solves the problem. My system is using Nvidia Card now! And I can configure it using “nvidia-settings”.