Laptop Nvidia display freezes when external monitor is used

I've just switched to Zorin 17 Pro from Mint 21.2 on my ROG Zephyrus G15 with RTX 3060. I've been using a USB-c HDMI splitter to extend my display to 2 external monitors. But since my migration, all my displays freeze after a few minutes of using the HDMI splitter.

$ nvidia-smi
Mon Jan  8 10:13:11 2024       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.129.03             Driver Version: 535.129.03   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 3060 ...    Off | 00000000:01:00.0  On |                  N/A |
| N/A   45C    P8              16W /  80W |    271MiB /  6144MiB |     40%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A      1942      G   /usr/lib/xorg/Xorg                          149MiB |
|    0   N/A  N/A      4219    C+G   ...seed-version=20240105-201042.648000      106MiB |
+---------------------------------------------------------------------------------------+

Kernel version:

$ uname -r
6.2.0-39-generic

It's important to note that this is a GPU issue as all other resources are unaffected. I can still hear and speak to people on video conferences, etc...

This issue used to happen when I was using Ubuntu 20.04, which I resolved by rebuild/installing nvidia modules directly from Nvidia's site. However this meant that every time there is a kernel update I had to repeat the process. Very annoying! However this all went away when i switched to Mint 21.2 8 months ago.

I'm happy to work with 1 external monitor using the HDMI outlet on the laptop for the time being but it would be great to have all 3 displays working using the OS shipped drivers, so that they are updated along with the rest of the system updates, like it was with Mint 21.2.

Thank you for any assistance in advance.

The first thing I would try is switching drivers.
Have you tried the Nvidia 525 (proprietary) driver?
If you have, and no luck, you could try the 545

sudo apt update && sudo apt full-upgrade

sudo apt install nvidia-driver-545

I am using the 545 on my Nvidia 3060 and it does perform better than the 525 and much better than the 535...

$ sudo apt update && sudo apt full-upgrade

Done.

$ sudo apt install nvidia-driver-545
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package nvidia-driver-545

Are you using X-Swat team repo?

No probs, found your post :slight_smile: Is there any way to download the Nvidia 545 latest stable driver on Zorin? - #2 by Aravisian

Yes, glad you figured that out because I forgot that. :wink:

1 Like

Arrgh! Neither worked! Both 525 and 545 freeze minutes after plugging in the USB-c splitter.

Going to try to grab the drivers from Nvidia's site and rebuild.

Manual installation did not improve matters, but manual attempt to install 535 complained kernel source version and running kernel version did not match. Could this be the problem? I've seen this when installing Nvidia drivers on Arch!

Just outside the box thought, would an HDMI 2.1 cable make any difference?

Ok. I've made a right old dogs breakfast of this now. In order to manually install I 1st had to uninstall 545, then install Nouveau. Then manually run 535 downloaded from Nvidia's site. After installing I got the error:

$ nvidia-smi
Failed to initialize NVML: Driver/library version mismatch
NVML library version: 535.146
$ cat /proc/driver/nvidia/version

Revealed that the boot image is still referring to 545, so I tried this:

sudo apt remove --purge nvidia-driver-545 nvidia* libnvidia*

But no luck! So finally tried to install 535 over the top!

sudo apt install nvidia-driver-535

This appears to have fixed the issue and no freezes have been observed!

$ nvidia-smi 
Mon Jan  8 22:12:19 2024       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.146.02             Driver Version: 535.146.02   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 3060 ...    Off | 00000000:01:00.0  On |                  N/A |
| N/A   48C    P5              18W /  80W |    217MiB /  6144MiB |     24%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A      1925      G   /usr/lib/xorg/Xorg                          109MiB |
|    0   N/A  N/A      6733    C+G   ...seed-version=20240107-180120.236000       94MiB |
+---------------------------------------------------------------------------------------+

But I'm not holding my breath, I remember Ubuntu 20.04 which went back to freezing after 1st kernel update.

Will update here if this issue pops up again.

Thanks to everyone who helped! I hate these proprietary drivers. There are no real way of troubleshooting them and they fail silently.

1 Like

Bit of an update on this. The 1st set of kernel updates came through today "6.5." The drivers broke with the screens freezing when monitors are hooked up through the USB-C splitter. I was just about to reinstall the drivers manually, when a 2nd set of updates came through and it seem to have fixed the issue. unfortunately I didn't take note of the updates as I didn't expect them to fix the problem.

It looks like some updates break the drivers while others fix them. I'll keep an eye out for next lot of kernel updates.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.