I can't get the NVIDIA drivers to work Zorin OS 18 Core

Graphics: Intel® Graphics (RPL-S)
Graphics 1: NVIDIA GeForce RTX™ 4070 Laptop GPU
Firmware Version: E17T2IE2.108
OS Name: Zorin OS 18 Core
OS Build: (null)
OS Type: 64-bit
Windowing System: X11
Kernel Version: Linux 6.14.0-33-generic

I followed the Activate NVIDIA Graphics Card article. At installation i checked the "Install third-party software for graphics and Wi-Fi hardware and additional media formats" box. At first the "X.Org X server -- Nouveau display driver from xserver-xorg-video-nouveau (open source)" was in use. I did the updates and first tried to download the "NVIDIA driver metapackage from nvidia-driver-580 (proprietary)" but i was prompted with an error. Then i tried installing the "NVIDIA driver metapackage from nvidia-driver-570 (proprietary)" and it worked but i still couldn't see my graphics card in the about page. Then i tried 580 again and it worked but still nothing in the about page. Then i installed "NVIDIA driver metapackage from nvidia-driver-535 (proprietary)" but again nothing in the about page. When i started steam (.deb installation) my graphics card appeared on the hardware survey. Then the pc froze and i had to restart. After restarting i tried to launch PEAK and it froze again after the vulkan shaders finished compiling and i heard some in-game sounds. As a matter of fact just now i tried to launch steam and it froze again. I suppose the 535 drivers don't play well with my system.
The article prompted me to "Switch to Zorin Desktop on Xorg" but i couldn't find that option in the login screen. When i click the gear icon there are 2 options, "Zorin Desktop" and "Zorin Desktop on Wayland". It was originally on "Zorin Desktop" but i tried starting up with Wayland too and i still can't see my graphics card on the about page.
I checked my UEFI settings too and secure boot is disabled. If i remember correctly fast boot was enabled but i suppose that is irrelevant.
How can i get the drivers to work?

When windowing system X11 is displayed, then you are already on XOrg. That's good.
Do you have a Dualboot with Windows? Please disable fast startup in Windows and fast boot in your BIOS.

I used to have a Linux Mint Windows 10 dualboot but during the installation of Zorin i did a clean wipe. I'm assuming there are no remnants in my ssd. The only boot option in the boot menu is ubuntu.
I disabled fast boot in the UEFI menu and i checked secure boot again. My secure boot options are in the security tab. When i go into the secure boot settings it looks like this:
System Mode - Deployed (Uninteractable)
Secure Boot Support - Disabled
Secure Boot - Not Active (Uninteractable)
Secure Boot Mode - Standard

The graphics card still doesn't show up in the about tab.

What is shown when you enter

mokutil --sb state

in terminal? SecureBoot enabled or SecureBoot disabled?

SecureBoot disabled

1 Like

You could try to install the Driver over the Terminal? Maybe that workd better.

First uninstall current Driver with:

sudo apt purge nvidia* libnvidia*

Then make:

sudo apt autoremove

to delete File Rests. Then install the Driver with:

sudo apt install nvidia-driver-[Version-Number] nvidia-dkms-[Version-Number]

Replace [Version-Number] with the Number of the Driver, You want use. Here an Example:

sudo apt install nvidia-driver-580 nvidia-dkms-580
3 Likes

I did that and now 580 shows up in the drivers menu.
The graphics card still doesn't show up in the about menu but i just tried launching PEAK and it works perfectly.
I'm assuming that graphics not showing up in the about menu is just a harmless bug. Are there any extra NVIDIA stuff i need to download like the NVIDIA app in windows?

Also i would like to add just now as i was testing, using the 580 drivers my pc just freezes for a split second whenever i try to do pretty much anything. When i click save on a webpage, when i open steam etc.
It's like the full fledged freezes i got with the 535 driver. There was no such problem with the xorg open source driver. I'll restart and report back.

What is your terminal output of

nvidia-smi

You mentioned switching to Wayland. Have you switched back to Zorin Desktop on Xorg?

I switched to wayland only temporarily it has been Zorin Desktop ever since.

After my last reply i switched to the xorg nouveau open source driver and it worked without any problem. Then i switched back to nvidia 580 and every now and then the pc makes a hiccup. Freezes for a split second when i try to open the files app, when i click save page as on the web (Any site really), open another app. And just now as i saw your reply i got a crash of sorts and was forced to log out and back in. I couldn't memorize the message but i suppose it happened because of the nvidia driver. I used the OS with the open source driver for about a day and didn't encounter any similar issues.

Right now i have 2 remaining problems:

  • Graphics card not showing up on the about menu
  • Occasional freezes with the nvidia driver

This is minor. All this is, is how Nvidia relays information. You can obtain all necessary information from nvidia-settings or nvidia-smi.

Freezing -

What is most interesting to me is that it mostly seems to happen on Gnome Desktop.

If i remember correctly, then was here in the Past some who used the open Drivers for Nvidia and wrote that there running well. Maybe You could try them, too?

The Installation Command for them would be:

sudo apt install nvidia-driver-580-open nvidia-dkms-580-open

I will first try this solution. Where do i put these lines?

  • Adding intel_idle.max_cstate=1 to GRUB_CMDLINE_LINUX_DEFAULT
  • Masked the systemd-backlight@backlight:nvidia_0.service

I heard that open drivers don't work great with games. I'll try this if Aravisian's link doesn't work though.

If needed, first install nautilus-admin

sudo apt install nautilus-admin

Launch Nautilus Files and navigate to "Other location" > "Computer"
This will bring you to Root. Double click on etc > default
Now in this folder, right click an open area and select from the context menu
"Open with administrator privileges"
In the new root window, right click on the file grub and select "Open with text editor"
On this line:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
Add the parameter
intel_idle.max_cstate=1

It will look like GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_idle.max_cstate=1"

Save the flle and close. Close the Root elevated Files app.
In terminal, run

sudo update-grub

You can use the mask command:

sudo systemctl mask systemd-backlight@backlight:nvidia_0.service

I did both but i got another freeze when i clicked the files app. My problem seems to be a little different from the nvidia forum post. It's pretty frequent.
Clicked the files app again and yeah another split second freeze.
Is there any kind of log that i can provide maybe that might help?

It does appear to me that a lot of users are posting lately about Gnome freezes and Brave Browser freezes.

Try

journalctl -b -1 -e

Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: boot-efi.mount: Deactivated successf>
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Unmounted boot-efi.mount - /boot/efi.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Reached target umount.target - Unmou>
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: systemd-fsck@dev-disk-by\x2duuid-84E>
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Stopped systemd-fsck@dev-disk-by\x2d>
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Removed slice system-systemd\x2dfsck>
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Stopped target local-fs-pre.target ->
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: systemd-remount-fs.service: Deactiva>
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Stopped systemd-remount-fs.service ->
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: systemd-tmpfiles-setup-dev.service: >
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Stopped systemd-tmpfiles-setup-dev.s>
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: systemd-tmpfiles-setup-dev-early.ser>
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Stopped systemd-tmpfiles-setup-dev-e>
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Reached target shutdown.target - Sys>
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Reached target final.target - Late S>
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: systemd-reboot.service: Deactivated >
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Finished systemd-reboot.service - Sy>
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Reached target reboot.target - Syste>
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Shutting down.
Eki 18 23:42:33 ben-SLAYER-4XL systemd-shutdown[1]: Syncing filesystems and blo>
Eki 18 23:42:33 ben-SLAYER-4XL systemd-shutdown[1]: Sending SIGTERM to remainin>
Eki 18 23:42:33 ben-SLAYER-4XL systemd-journald[477]: Received SIGTERM from PID>
Eki 18 23:42:33 ben-SLAYER-4XL systemd-journald[477]: Journal stopped
lines 978-1000/1000 (END)
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: boot-efi.mount: Deactivated successfully.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Unmounted boot-efi.mount - /boot/efi.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Reached target umount.target - Unmount All Filesystems.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: systemd-fsck@dev-disk-by\x2duuid-84E1\x2d984D.service: Deactivated successfully.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Stopped systemd-fsck@dev-disk-by\x2duuid-84E1\x2d984D.service - File System Check on /dev/disk/by-uuid/84E1-984D.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Removed slice system-systemd\x2dfsck.slice - Slice /system/systemd-fsck.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Stopped target local-fs-pre.target - Preparation for Local File Systems.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: systemd-remount-fs.service: Deactivated successfully.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Stopped systemd-remount-fs.service - Remount Root and Kernel File Systems.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: systemd-tmpfiles-setup-dev.service: Deactivated successfully.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Stopped systemd-tmpfiles-setup-dev.service - Create Static Device Nodes in /dev.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: systemd-tmpfiles-setup-dev-early.service: Deactivated successfully.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Stopped systemd-tmpfiles-setup-dev-early.service - Create Static Device Nodes in /dev gracefully.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Reached target shutdown.target - System Shutdown.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Reached target final.target - Late Shutdown Services.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: systemd-reboot.service: Deactivated successfully.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Finished systemd-reboot.service - System Reboot.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Reached target reboot.target - System Reboot.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Shutting down.
Eki 18 23:42:33 ben-SLAYER-4XL systemd-shutdown[1]: Syncing filesystems and block devices.
Eki 18 23:42:33 ben-SLAYER-4XL systemd-shutdown[1]: Sending SIGTERM to remaining processes...
Eki 18 23:42:33 ben-SLAYER-4XL systemd-journald[477]: Received SIGTERM from PID 1 (systemd-shutdow).
Eki 18 23:42:33 ben-SLAYER-4XL systemd-journald[477]: Journal stopped
~ {A bunch of this}
lines 978-1000/1000 (END)
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: boot-efi.mount: Deactivated successfully.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Unmounted boot-efi.mount - /boot/efi.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Reached target umount.target - Unmount All Filesystems.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: systemd-fsck@dev-disk-by\x2duuid-84E1\x2d984D.service: Deactivated successfully.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Stopped systemd-fsck@dev-disk-by\x2duuid-84E1\x2d984D.service - File System Check on /dev/disk/by-uuid/84E1-984D.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Removed slice system-systemd\x2dfsck.slice - Slice /system/systemd-fsck.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Stopped target local-fs-pre.target - Preparation for Local File Systems.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: systemd-remount-fs.service: Deactivated successfully.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Stopped systemd-remount-fs.service - Remount Root and Kernel File Systems.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: systemd-tmpfiles-setup-dev.service: Deactivated successfully.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Stopped systemd-tmpfiles-setup-dev.service - Create Static Device Nodes in /dev.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: systemd-tmpfiles-setup-dev-early.service: Deactivated successfully.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Stopped systemd-tmpfiles-setup-dev-early.service - Create Static Device Nodes in /dev gracefully.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Reached target shutdown.target - System Shutdown.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Reached target final.target - Late Shutdown Services.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: systemd-reboot.service: Deactivated successfully.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Finished systemd-reboot.service - System Reboot.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Reached target reboot.target - System Reboot.
Eki 18 23:42:33 ben-SLAYER-4XL systemd[1]: Shutting down.
Eki 18 23:42:33 ben-SLAYER-4XL systemd-shutdown[1]: Syncing filesystems and block devices.
Eki 18 23:42:33 ben-SLAYER-4XL systemd-shutdown[1]: Sending SIGTERM to remaining processes...
Eki 18 23:42:33 ben-SLAYER-4XL systemd-journald[477]: Received SIGTERM from PID 1 (systemd-shutdow).
Eki 18 23:42:33 ben-SLAYER-4XL systemd-journald[477]: Journal stopped
~ {A bunch of this}

All those logs look normal. Nothing there indicates a cause of gnome crashing.
We have more than one approach at this point.

  • Graphics stack
  • Gnome-shell
  • System

You are on Xorg, Nvidia 4070, latest driver - all of these indicate to me that Graphics stack is lesser likely - but have you upgraded Mesa?

sudo add-apt-repository ppa:ernstp/mesarc

sudo apt update && sudo apt full-upgrade

I ran both these commands and restarted now but it's still the same.
I should also add that in steam opening the settings and also closing it take an unusually long time (1-2 second), most things load with a delay, upon loading the libraries tab the contents of the page don't load immediately.
I will try using the 580 open driver as Ponce-De-Leon suggested.