nvidia-smi no devices were found, Ubuntu 18.04

Ubuntu 18.04.02 LTS
GeForce GTX 970M
Laptop: Clevo P170SM-A
Kernel: 4.18.0-21-generic
Driver: 430.26

Previously, I have purged the system of all nvidia installation by using:

sudo dpkg --get-selections|grep nvidia|grep -v deinstall|grep -v common|awk '{print $1}'|xargs sudo apt-get -y remove

and installed the recommended driver from:

$ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd000013D8sv00001558sd00007481bc03sc00i00
vendor   : NVIDIA Corporation
model    : GM204M [GeForce GTX 970M]
driver   : nvidia-driver-410 - third-party free
driver   : nvidia-driver-390 - distro non-free
driver   : nvidia-driver-396 - third-party free
driver   : nvidia-driver-415 - third-party free
driver   : nvidia-driver-418 - third-party free
driver   : nvidia-driver-430 - third-party free recommended
driver   : xserver-xorg-video-nouveau - distro free builtin

with this command:

sudo apt install nvidia-driver-430

However, after reboot, this is the result

$ sudo prime-select query
nvidia
$ sudo nvidia-smi
No devices were found

and

$ dmesg | grep NVRM
[    4.502051] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  430.26  Tue Jun  4 17:40:52 CDT 2019
[    5.175040] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x25:0x40:1133)
[    5.175064] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[    5.225650] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x25:0x40:1133)
[    5.225672] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[    6.615192] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x25:0x40:1133)
[    6.615224] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   18.146484] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x25:0x40:1133)
[   18.146503] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[   19.759877] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x25:0x40:1133)
[   19.759909] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[  242.182018] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x25:0x40:1133)
[  242.182092] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[  484.875999] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x25:0x40:1133)
[  484.876041] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[  488.562485] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x25:0x40:1133)
[  488.562525] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[  678.197785] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x25:0x40:1133)
[  678.197820] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[  678.325758] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x25:0x40:1133)
[  678.325777] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[  682.485025] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x25:0x40:1133)
[  682.485047] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[  682.616051] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x25:0x40:1133)
[  682.616070] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[  682.769437] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x25:0x40:1133)
[  682.769457] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[ 1624.305084] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x25:0x40:1133)
[ 1624.305104] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[ 1643.029016] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x25:0x40:1133)
[ 1643.029043] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[ 1718.332883] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x25:0x40:1133)
[ 1718.332957] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[ 1728.076814] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x25:0x40:1133)
[ 1728.076848] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[ 1738.567524] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x25:0x40:1133)
[ 1738.567542] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[ 1739.997727] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x25:0x40:1133)
[ 1739.997750] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0

Attached is the result of the nvidia bug reporting script, please let me know if any other information is needed, I have been at this for a week trying different versions of drivers but to no avail, so any help would be appreciated!

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

Also, nvidia-settings starts but shows the following:

$ nvidia-settings

ERROR: Unable to load info from any available system


(nvidia-settings:7193): GLib-GObject-CRITICAL **: 13:26:23.536: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
** Message: 13:26:23.541: PRIME: Requires offloading
** Message: 13:26:23.541: PRIME: is it supported? yes

Screenshot from 2019-06-15 13-27-32.png

Did you solve it