Ubtune 18.04 Nvidia card not working

Hi, my computer has two GPUs:

sudo ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001B80sv0000103Csd000082E5bc03sc00i00
vendor : NVIDIA Corporation
model : GP104 [GeForce GTX 1080]
driver : nvidia-driver-450 - third-party free recommended
driver : nvidia-driver-415 - third-party free
driver : nvidia-driver-418-server - distro non-free
driver : nvidia-driver-390 - distro non-free
driver : nvidia-driver-440-server - distro non-free
driver : nvidia-driver-435 - distro non-free
driver : nvidia-driver-440 - distro non-free
driver : nvidia-driver-410 - third-party free
driver : xserver-xorg-video-nouveau - distro free builtin

== /sys/devices/pci0000:00/0000:00:1c.4/0000:03:00.0 ==
modalias : pci:v00008086d000024FBsv00008086sd00002110bc02sc80i00
vendor : Intel Corporation
manual_install: True
driver : backport-iwlwifi-dkms - distro free

However, after I install drivers through sudo ubuntu-drivers autoinstall, the nvidia card is not working:

ERROR: NVIDIA driver is not loaded

ERROR: Unable to load info from any available system

(nvidia-settings:4157): GLib-GObject-CRITICAL **: 21:37:09.411: g_object_unref: assertion ‘G_IS_OBJECT (object)’ failed
** Message: 21:37:09.414: PRIME: No offloading required. Abort
** Message: 21:37:09.414: PRIME: is it supported? no

I attach the nvidia bug report here:
nvidia-bug-report.log.gz (97.7 KB)

Your kind help will be much appreciated!!@!@

Hi @cyppsp

You only have 1 GPU - NVIDIA Corporation GP104 [GeForce GTX 1080]
and nouveau driver is loaded. Please blacklist the nouveau driver -

$ sudo bash -c "echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
$ sudo bash -c "echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf"

edit your xorg.conf (you might need to generate it using $ sudo nvidia-xconfig )

Section “Device”
Identifier “Device0”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BusID “1@0:0:0”

Section “Monitor”
Identifier “Monitor0”
VendorName “Unknown”
ModelName “Unknown”
Option “DPMS”

Section “Screen”
Identifier “Screen0”
Device “Device0”
Monitor “Monitor0”
DefaultDepth 24
SubSection “Display”
Depth 24

please do shutdown and boot again (or restart)
you might also wanna new long live Nvidia Driver 450.66 - Linux, Solaris, and FreeBSD driver 450.66 [long-lived branch release]