Seems like my Nvidia graphics card isn't detected

Hi, I'm having problem with my Nvidia graphic card.
I'm using Zorin OS 17 Core.
The problem is that the graphic isn't listed on graphics in settings and nvidia-msi throw NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
Also Nvidia Xserver settings isn't showing my graphic card.

  • The drivers are installed from the software update section.
  • Secure boot is disabled.
  • lspci command shows nvidia graphic card.
sudo lshw -C video shows

 *-display                 
       description: 3D controller
       product: TU117M [GeForce GTX 1650 Mobile / Max-Q]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: /dev/fb0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress cap_list fb
       configuration: depth=32 latency=0 mode=1920x1080 visual=truecolor xres=1920 yres=1080
       resources: iomemory:fa0-f9f iomemory:fa0-f9f memory:d0000000-d0ffffff memory:fac0000000-facfffffff memory:fad0000000-fad1ffffff ioport:3000(size=128)
  *-display
       description: VGA compatible controller
       product: Cezanne
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:05:00.0
       logical name: /dev/fb0
       version: c6
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi msix vga_controller bus_master cap_list fb
       configuration: depth=32 driver=amdgpu latency=0 resolution=1920,1080
       resources: iomemory:fa0-f9f iomemory:fa0-f9f irq:44 memory:fae0000000-faefffffff memory:faf0000000-faf01fffff ioport:1000(size=256) memory:d1300000-d137ffff
  
lspci -k | grep -A 2 -i "nvidia"
01:00.0 3D controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / Max-Q] (rev a1)
	Subsystem: Lenovo TU117M [GeForce GTX 1650 Mobile / Max-Q]
	Kernel modules: nvidiafb, nouveau
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
	Subsystem: Lenovo RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller


using the sudo apt update && sudo apt install nvidia-driver-550 the output is nvidia-driver-550 is already the newest version (550.120-0ubuntu0.22.04.1). 0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.

using sudo apt update && sudo apt install nvidia-driver-545 the output is:

Removing nvidia-driver-550 (550.120-0ubuntu0.22.04.1) ...
Removing xserver-xorg-video-nvidia-550 (550.120-0ubuntu0.22.04.1) ...
Removing libnvidia-cfg1-550:amd64 (550.120-0ubuntu0.22.04.1) ...
Removing libnvidia-gl-550:amd64 (550.120-0ubuntu0.22.04.1) ...
Removing libnvidia-gl-550:i386 (550.120-0ubuntu0.22.04.1) ...
Removing libnvidia-common-550 (550.120-0ubuntu0.22.04.1) ...
Removing libnvidia-encode-550:i386 (550.120-0ubuntu0.22.04.1) ...
Removing libnvidia-decode-550:i386 (550.120-0ubuntu0.22.04.1) ...
Removing libnvidia-compute-550:i386 (550.120-0ubuntu0.22.04.1) ...
Removing nvidia-utils-550 (550.120-0ubuntu0.22.04.1) ...
Removing libnvidia-encode-550:amd64 (550.120-0ubuntu0.22.04.1) ...
Removing libnvidia-decode-550:amd64 (550.120-0ubuntu0.22.04.1) ...
Removing libnvidia-extra-550:amd64 (550.120-0ubuntu0.22.04.1) ...
Removing libnvidia-fbc1-550:amd64 (550.120-0ubuntu0.22.04.1) ...
Removing libnvidia-fbc1-550:i386 (550.120-0ubuntu0.22.04.1) ...
Removing linux-modules-nvidia-550-generic-hwe-22.04 (6.8.0-48.48~22.04.1+1) ...
Removing linux-modules-nvidia-550-6.8.0-48-generic (6.8.0-48.48~22.04.1+1) ...
linux-image-nvidia-6.8.0-48-generic: removing .ko files
Removing nvidia-compute-utils-550 (550.120-0ubuntu0.22.04.1) ...
Removing nvidia-kernel-common-550 (550.120-0ubuntu0.22.04.1) ...
update-initramfs: deferring update (trigger activated)
Removing nvidia-kernel-source-550 (550.120-0ubuntu0.22.04.1) ...
Removing libnvidia-compute-550:amd64 (550.120-0ubuntu0.22.04.1) ...
Selecting previously unselected package dctrl-tools.
(Reading database ... 284266 files and directories currently installed.)
Preparing to unpack .../00-dctrl-tools_2.24-3build2_amd64.deb ...
Unpacking dctrl-tools (2.24-3build2) ...
Selecting previously unselected package dkms.
Preparing to unpack .../01-dkms_2.8.7-2ubuntu2.2_all.deb ...
Unpacking dkms (2.8.7-2ubuntu2.2) ...
Selecting previously unselected package libnvidia-cfg1-545:amd64.
Preparing to unpack .../02-libnvidia-cfg1-545_545.29.06-0ubuntu0.22.04.2_amd64.d
eb ...
Unpacking libnvidia-cfg1-545:amd64 (545.29.06-0ubuntu0.22.04.2) ...
Selecting previously unselected package libnvidia-common-545.
Preparing to unpack .../03-libnvidia-common-545_545.29.06-0ubuntu0.22.04.2_all.d
eb ...
Unpacking libnvidia-common-545 (545.29.06-0ubuntu0.22.04.2) ...
Selecting previously unselected package libnvidia-compute-545:i386.
Preparing to unpack .../04-libnvidia-compute-545_545.29.06-0ubuntu0.22.04.2_i386
.deb ...
Unpacking libnvidia-compute-545:i386 (545.29.06-0ubuntu0.22.04.2) ...
Selecting previously unselected package libnvidia-compute-545:amd64.
Preparing to unpack .../05-libnvidia-compute-545_545.29.06-0ubuntu0.22.04.2_amd6
4.deb ...
Unpacking libnvidia-compute-545:amd64 (545.29.06-0ubuntu0.22.04.2) ...
Selecting previously unselected package libnvidia-decode-545:amd64.
Preparing to unpack .../06-libnvidia-decode-545_545.29.06-0ubuntu0.22.04.2_amd64
.deb ...
Unpacking libnvidia-decode-545:amd64 (545.29.06-0ubuntu0.22.04.2) ...
Selecting previously unselected package libnvidia-decode-545:i386.
Preparing to unpack .../07-libnvidia-decode-545_545.29.06-0ubuntu0.22.04.2_i386.
deb ...
Unpacking libnvidia-decode-545:i386 (545.29.06-0ubuntu0.22.04.2) ...
Selecting previously unselected package libnvidia-encode-545:i386.
Preparing to unpack .../08-libnvidia-encode-545_545.29.06-0ubuntu0.22.04.2_i386.
deb ...
Unpacking libnvidia-encode-545:i386 (545.29.06-0ubuntu0.22.04.2) ...
Selecting previously unselected package libnvidia-encode-545:amd64.
Preparing to unpack .../09-libnvidia-encode-545_545.29.06-0ubuntu0.22.04.2_amd64
.deb ...
Unpacking libnvidia-encode-545:amd64 (545.29.06-0ubuntu0.22.04.2) ...
Selecting previously unselected package libnvidia-extra-545:amd64.
Preparing to unpack .../10-libnvidia-extra-545_545.29.06-0ubuntu0.22.04.2_amd64.
deb ...
Unpacking libnvidia-extra-545:amd64 (545.29.06-0ubuntu0.22.04.2) ...
Selecting previously unselected package libnvidia-fbc1-545:amd64.
Preparing to unpack .../11-libnvidia-fbc1-545_545.29.06-0ubuntu0.22.04.2_amd64.d
eb ...
Unpacking libnvidia-fbc1-545:amd64 (545.29.06-0ubuntu0.22.04.2) ...
Selecting previously unselected package libnvidia-fbc1-545:i386.
Preparing to unpack .../12-libnvidia-fbc1-545_545.29.06-0ubuntu0.22.04.2_i386.de
b ...
Unpacking libnvidia-fbc1-545:i386 (545.29.06-0ubuntu0.22.04.2) ...
Selecting previously unselected package libnvidia-gl-545:i386.
Preparing to unpack .../13-libnvidia-gl-545_545.29.06-0ubuntu0.22.04.2_i386.deb 
...
dpkg-query: no packages found matching libnvidia-gl-535
Unpacking libnvidia-gl-545:i386 (545.29.06-0ubuntu0.22.04.2) ...
Selecting previously unselected package libnvidia-gl-545:amd64.
Preparing to unpack .../14-libnvidia-gl-545_545.29.06-0ubuntu0.22.04.2_amd64.deb
 ...
dpkg-query: no packages found matching libnvidia-gl-535
Unpacking libnvidia-gl-545:amd64 (545.29.06-0ubuntu0.22.04.2) ...
Selecting previously unselected package nvidia-compute-utils-545.
Preparing to unpack .../15-nvidia-compute-utils-545_545.29.06-0ubuntu0.22.04.2_a
md64.deb ...
Unpacking nvidia-compute-utils-545 (545.29.06-0ubuntu0.22.04.2) ...
Selecting previously unselected package nvidia-kernel-source-545.
Preparing to unpack .../16-nvidia-kernel-source-545_545.29.06-0ubuntu0.22.04.2_a
md64.deb ...
Unpacking nvidia-kernel-source-545 (545.29.06-0ubuntu0.22.04.2) ...
Selecting previously unselected package nvidia-firmware-545-545.29.06.
Preparing to unpack .../17-nvidia-firmware-545-545.29.06_545.29.06-0ubuntu0.22.0
4.2_amd64.deb ...
Unpacking nvidia-firmware-545-545.29.06 (545.29.06-0ubuntu0.22.04.2) ...
Selecting previously unselected package nvidia-kernel-common-545.
Preparing to unpack .../18-nvidia-kernel-common-545_545.29.06-0ubuntu0.22.04.2_a
md64.deb ...
Unpacking nvidia-kernel-common-545 (545.29.06-0ubuntu0.22.04.2) ...
Selecting previously unselected package nvidia-dkms-545.
Preparing to unpack .../19-nvidia-dkms-545_545.29.06-0ubuntu0.22.04.2_amd64.deb 
...
Unpacking nvidia-dkms-545 (545.29.06-0ubuntu0.22.04.2) ...
Selecting previously unselected package nvidia-utils-545.
Preparing to unpack .../20-nvidia-utils-545_545.29.06-0ubuntu0.22.04.2_amd64.deb
 ...
Unpacking nvidia-utils-545 (545.29.06-0ubuntu0.22.04.2) ...
Selecting previously unselected package xserver-xorg-video-nvidia-545.
Preparing to unpack .../21-xserver-xorg-video-nvidia-545_545.29.06-0ubuntu0.22.0
4.2_amd64.deb ...
Unpacking xserver-xorg-video-nvidia-545 (545.29.06-0ubuntu0.22.04.2) ...
Selecting previously unselected package nvidia-driver-545.
Preparing to unpack .../22-nvidia-driver-545_545.29.06-0ubuntu0.22.04.2_amd64.de
b ...
Unpacking nvidia-driver-545 (545.29.06-0ubuntu0.22.04.2) ...
Setting up nvidia-firmware-545-545.29.06 (545.29.06-0ubuntu0.22.04.2) ...
Setting up libnvidia-compute-545:amd64 (545.29.06-0ubuntu0.22.04.2) ...
Setting up libnvidia-compute-545:i386 (545.29.06-0ubuntu0.22.04.2) ...
Setting up libnvidia-decode-545:amd64 (545.29.06-0ubuntu0.22.04.2) ...
Setting up libnvidia-decode-545:i386 (545.29.06-0ubuntu0.22.04.2) ...
Setting up libnvidia-extra-545:amd64 (545.29.06-0ubuntu0.22.04.2) ...
Setting up nvidia-kernel-source-545 (545.29.06-0ubuntu0.22.04.2) ...
Setting up nvidia-utils-545 (545.29.06-0ubuntu0.22.04.2) ...
Setting up libnvidia-common-545 (545.29.06-0ubuntu0.22.04.2) ...
Setting up libnvidia-gl-545:amd64 (545.29.06-0ubuntu0.22.04.2) ...
Setting up libnvidia-gl-545:i386 (545.29.06-0ubuntu0.22.04.2) ...
Setting up libnvidia-fbc1-545:amd64 (545.29.06-0ubuntu0.22.04.2) ...
Setting up libnvidia-fbc1-545:i386 (545.29.06-0ubuntu0.22.04.2) ...
Setting up nvidia-compute-utils-545 (545.29.06-0ubuntu0.22.04.2) ...
Warning: The home dir /nonexistent you specified can't be accessed: No such file
 or directory
Adding system user `nvidia-persistenced' (UID 129) ...
Adding new group `nvidia-persistenced' (GID 138) ...
Adding new user `nvidia-persistenced' (UID 129) with group `nvidia-persistenced'
 ...
Not creating home directory `/nonexistent'.
Setting up libnvidia-cfg1-545:amd64 (545.29.06-0ubuntu0.22.04.2) ...
Setting up libnvidia-encode-545:amd64 (545.29.06-0ubuntu0.22.04.2) ...
Setting up libnvidia-encode-545:i386 (545.29.06-0ubuntu0.22.04.2) ...
Setting up nvidia-kernel-common-545 (545.29.06-0ubuntu0.22.04.2) ...
Installing new version of config file /etc/modprobe.d/nvidia-graphics-drivers-km
s.conf ...
update-initramfs: deferring update (trigger activated)
Setting up dctrl-tools (2.24-3build2) ...
Setting up xserver-xorg-video-nvidia-545 (545.29.06-0ubuntu0.22.04.2) ...
Setting up dkms (2.8.7-2ubuntu2.2) ...
Setting up nvidia-dkms-545 (545.29.06-0ubuntu0.22.04.2) ...
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
Loading new nvidia-545.29.06 DKMS files...
Building for 6.8.0-48-generic
Building for architecture x86_64
Building initial module for 6.8.0-48-generic
Error! Bad return status for module build on kernel: 6.8.0-48-generic (x86_64)
Consult /var/lib/dkms/nvidia/545.29.06/build/make.log for more information.
dpkg: error processing package nvidia-dkms-545 (--configure):
 installed nvidia-dkms-545 package post-installation script subprocess returned 
error exit status 10
dpkg: dependency problems prevent configuration of nvidia-driver-545:
 nvidia-driver-545 depends on nvidia-dkms-545 (<= 545.29.06-1); however:
  Package nvidia-dkms-545 is not configured yet.
 nvidia-driver-545 depends on nvidia-dkms-545 (>= 545.29.06); however:
  Package nvidia-dkms-545 is not configured yet.

dpkg: error processing package nvidia-driver-545 (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.35-0ubuntu3.8) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for initramfs-tools (0.140ubuntu13.4) ...
update-initramfs: Generating /boot/initrd.img-6.8.0-48-generic
W: Possible missing firmware /lib/firmware/amdgpu/ip_discovery.bin for module am
dgpu
W: Possible missing firmware /lib/firmware/amdgpu/vega10_cap.bin for module amdg
pu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_cap.bin for mod
ule amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi12_cap.bin for module amdg
pu
W: Possible missing firmware /lib/firmware/amdgpu/aldebaran_cap.bin for module a
mdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_0_toc.bin for module a
mdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_mes1.bin for mo
dule amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_mes.bin for mod
ule amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi10_mes.bin for module amdg
pu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_mes.bin for module a
mdgpu
W: Possible missing firmware /lib/firmware/amdgpu/smu_14_0_2.bin for module amdg
pu
W: Possible missing firmware /lib/firmware/amdgpu/dcn_3_5_1_dmcub.bin for module
 amdgpu
I: The initramfs will attempt to resume from /dev/nvme0n1p8
I: (UUID=ca899256-f753-4a47-9d4b-1e9723f99817)
I: Set the RESUME variable to override this.
Errors were encountered while processing:
 nvidia-dkms-545
 nvidia-driver-545
E: Sub-process /usr/bin/dpkg returned an error code (1)

Did you try switching to 535 or 470 driver ?

Welcome to the Form!

Does Your System run with Xorg or Wayland? To check that go to Settings>About and look there for the Line ''Window Manager''. If there stands Wayland go to the Login Screen and click on Your Profile Picture so that the Password Field appears. It has to be appeared! When it is appeared, You should see in the bottom right Corner a Gear Icon. click on it and choose the Option ''Zorin Desktop on Xorg'' and then log in.

Anotehr Thing waht you could make: Because of Your About-Picture there is nor Nvidia shown. So, open the Terminal and type there:

sudo prime-select nvidia

This should set up You Nvidia Graphics as primary Graphics Output. If there should be a Problem with that, you can change it back to the AMD Graphics with:

sudo prime-select amd

I mean I have been using wayland until now, but I have tried changing the window manager to Xorg and also ran sudo prime-select nvidia nothing happened even after restarting :frowning:

Nope, lemme try switching to 535 and 470 too.

Try

sudo apt dist-upgrade

sudo apt install nvidia-driver-550

sudo reboot

If that does do nothing remove the nvidia drivers and try the steps above again.

sudo apt remove --purge ^nvidia-.*

sudo apt-get autoremove

1 Like

Then I would suggest the Following: stay on Xorg and uninstall the Nvidia Drivers and then install them again - but over the Terminal. To do that open the Terminal and type:

sudo apt purge nvidia-* libnvidia*

After that make:

sudo apt autoremove

BUT! Please look what will be removed to avoid deleting important Stuff. Should tehrer be Stuff with ''Zorin'' in the Name be careful.

And then install the Nvidia Driver again with

sudo apt install nvidia-driver-550

If You want to try another Driver instead replace the 550 with 545 or 535

1 Like

Thanks this worked!

1 Like

Thanks mate!

1 Like