# External monitor freezes when using dedicated GPU

**URL:** <https://forums.developer.nvidia.com/t/external-monitor-freezes-when-using-dedicated-gpu/265406>\
**Category:** Linux\
**Created:** [September 5, 2023, 5:38am UTC](https://forums.developer.nvidia.com/t/external-monitor-freezes-when-using-dedicated-gpu/265406 "2023-09-05T05:38:19Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![simpson38](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@simpson38](https://forums.developer.nvidia.com/u/simpson38)\
**Post date:** [September 5, 2023, 5:38am UTC](https://forums.developer.nvidia.com/t/external-monitor-freezes-when-using-dedicated-gpu/265406/1 "2023-09-05T05:38:19Z")

</div>

Hello,  
I have a Acer PH18-71 with Intel and RTX4070. When i have an external monitor connected through HDMI and start using the dedicated GPU there is a high chance that the external monitor freezes, everything else is supposedly working since the sound is continuing.

I then have to change over to a TTY and then back to the graphical interface. It will then work for an arbitrary time and then freeze.

EDIT: I’ve tried three different HDMI cables aswell.

Here is the log.  
[nvidia-bug-report.log.gz](https://forums.developer.nvidia.com/uploads/short-url/qzI3bn2BoBcSUurmtumPbPJPyMG.gz) (1.2 MB)

---

<div class="post-metadata">

**Author:** ![ursom](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/ursom/32/538690_2.png) [@ursom](https://forums.developer.nvidia.com/u/ursom)\
**Post date:** [September 5, 2023, 5:34pm UTC](https://forums.developer.nvidia.com/t/external-monitor-freezes-when-using-dedicated-gpu/265406/2 "2023-09-05T17:34:11Z")

</div>

Having same issue at least since 530.41.03 (and then 535.86.05, 535.98, **535.104.05** ) with integrated intel UHD 630 (i915 driver) & GTX1660Ti on laptop with debian-12/xfce-4.18.  
When external screen is frozen, I can move my mouse back to laptop display, disable/enable external screen, and it starts working again. It starts freezing for a short period of time, like “lagging”, then freezes screen completely.  
Best way to reproduce (takes about 1 minute to poke around) - when one of apps is offloaded like:  
\_\_NV\_PRIME\_RENDER\_OFFLOAD=1 \_\_GLX\_VENDOR\_LIBRARY\_NAME=nvidia vlc  
(Confirmed with glxgears, firefox, openarena, vlc) and actively work with non-offloaded app, let’s say Gimp/thunar/mousepad on external screen. Apps don’t give any error in console.  
Can be reproduced with HDMI and USB-C outputs.  
This can also be reproduced, but less consistently, with 530.41.03 (haven’t retried since then) when doing so on a single laptop display, when external monitor is not physically connected.  
Can’t reproduce with nouveau driver.  
[This could be a related info.](https://forums.developer.nvidia.com/t/for-those-having-stutters-under-x11/265708/1)  
[nvidia-bug-report.log.gz](https://forums.developer.nvidia.com/uploads/short-url/5hSXZLoH0aXEc17IVvKZrvaURuT.gz) (300.8 KB)  
[nvidia-installer.log.txt](https://forums.developer.nvidia.com/uploads/short-url/xLmegxSiypreb3mRIjmczJS3p6k.txt) (39.2 KB)

---

<div class="post-metadata">

**Author:** ![ursom](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/ursom/32/538690_2.png) [@ursom](https://forums.developer.nvidia.com/u/ursom)\
**Post date:** [September 22, 2023, 5:36pm UTC](https://forums.developer.nvidia.com/t/external-monitor-freezes-when-using-dedicated-gpu/265406/3 "2023-09-22T17:36:07Z")

</div>

Tested latest 535.113.01 driver release - same issue.  
Attaching 2 logs - first one is made right after a short freeze, second one made during full freeze.  
Please help!  
[nvidia-bug-report-short-freeze.log.gz](https://forums.developer.nvidia.com/uploads/short-url/x23SkEPoLlG5o9OBUAdhoKk3tuE.gz) (321.6 KB)  
[nvidia-bug-report-full-freeze.log.gz](https://forums.developer.nvidia.com/uploads/short-url/9hNdCn2krMDckFISIB84eiH7WyY.gz) (336.2 KB)

P.S. I had Windows 10 and now 11 as a secondary system on this laptop - wasn’t able to reproduce this issue, so this is not a hardware issue for sure.

---

<div class="post-metadata">

**Author:** ![amrits](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/amrits/32/14043_2.png) [@amrits](https://forums.developer.nvidia.com/u/amrits)\
**Post date:** [October 9, 2023, 10:16am UTC](https://forums.developer.nvidia.com/t/external-monitor-freezes-when-using-dedicated-gpu/265406/4 "2023-10-09T10:16:26Z")

</div>

We have a bug filed 4322356 internally for tracking purpose, shall keep updated on the same.

---

<div class="post-metadata">

**Author:** ![ursom](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/ursom/32/538690_2.png) [@ursom](https://forums.developer.nvidia.com/u/ursom)\
**Post date:** [October 17, 2023, 5:44pm UTC](https://forums.developer.nvidia.com/t/external-monitor-freezes-when-using-dedicated-gpu/265406/5 "2023-10-17T17:44:50Z")

</div>

Thank you!

I tested latest betta driver 545.23.06 and found that bug can be reproduced even easier: only run  
\_\_NV\_PRIME\_RENDER\_OFFLOAD=1 \_\_GLX\_VENDOR\_LIBRARY\_NAME=nvidia glxgears  
on laptop display without running any other apps on second monitor. Now hold right bottom corner of the gears window and start resizing it by moving mouse in circles quickly. After 3-5 circles main laptop display freezes for a second, then unfreezes. At this point laptop display usable again, but second monitor (that didn’t have any apps on it) gets permanently frozen.  
[nvidia-bug-report.log.gz](https://forums.developer.nvidia.com/uploads/short-url/2lO0qiz7kNGhDvOfVxT8Z7Licb0.gz) (332.6 KB)

This also can be reproduced with Release driver 535.113.01  
[nvidia-bug-report.log.gz](https://forums.developer.nvidia.com/uploads/short-url/goEj3BNd2AvjpijSu4BSfl4hwNm.gz) (302.6 KB)

One more thing I forgot to mention - no matter what driver it is, when I start up and login into desktop, only laptop display works and external display is frozen - if I move mouse to the second screen, it doesn’t appear there. Once I open any app on laptop display and move window to external display - it unfreezes and function normally, so most users would probably never note that it was frozen.

---

<div class="post-metadata">

**Author:** ![simpson38](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@simpson38](https://forums.developer.nvidia.com/u/simpson38)\
**Post date:** [October 18, 2023, 8:51pm UTC](https://forums.developer.nvidia.com/t/external-monitor-freezes-when-using-dedicated-gpu/265406/6 "2023-10-18T20:51:08Z")

</div>

I got the same when i did what ursom suggested. The second monitor froze until i used xrandr to enable it again. Im using 535.113.01

---

<div class="post-metadata">

**Author:** ![hauke.wintjen](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@hauke.wintjen](https://forums.developer.nvidia.com/u/hauke.wintjen)\
**Post date:** [October 24, 2023, 8:15am UTC](https://forums.developer.nvidia.com/t/external-monitor-freezes-when-using-dedicated-gpu/265406/7 "2023-10-24T08:15:12Z")

</div>

Affects me too. Happens several times a day. Can be reproduced via glxgears easily.  
I am using driver 545.23.06 on an RTX 3060 Laptop GPU with monitors connected via USB-C.

---

<div class="post-metadata">

**Author:** ![j22gim](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@j22gim](https://forums.developer.nvidia.com/u/j22gim)\
**Post date:** [October 25, 2023, 7:21am UTC](https://forums.developer.nvidia.com/t/external-monitor-freezes-when-using-dedicated-gpu/265406/8 "2023-10-25T07:21:25Z")

</div>

Same here with RTX 4080 (MSI laptop) on Linux. Makes the second monitor unusable.  
It used to work fine a few weeks ago… so I’m trying to revert back to previous drivers without messing up…

Details [in this post](https://forums.developer.nvidia.com/t/gtx-4080-second-monitor-freezes/270374/9).

---

<div class="post-metadata">

**Author:** ![Spange](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/spange/32/290348_2.png) [@Spange](https://forums.developer.nvidia.com/u/Spange)\
**Post date:** [October 25, 2023, 7:55am UTC](https://forums.developer.nvidia.com/t/external-monitor-freezes-when-using-dedicated-gpu/265406/9 "2023-10-25T07:55:46Z")

</div>

I have the same problem, and my external screen freezes constantly, sometimes within the same minute, while my laptop is not frozen, if I (e.g.) open a Terminal nothing happens to my external screen, but if I remove the HDMI cable the laptop screen takes over, I can see that the Terminal did indeed open. If I’m in extended view, I can blindly try to move the cursor toward my laptop, and with a bit of movement, the cursor shows up there showing that the laptop display is active.

Because of this, my laptop is completely useless, I don’t like working on it directly I always connect it to an external screen, mouse, and keyboard. I am able to reproduce this with three different monitors. It happens both in extended view and in “external screen only” mode.

I am able to un-freeze it by running

```auto
xrandr --output HDMI-1-0 --off --output eDP-1 --auto
xrandr --output eDP-1 --off --output HDMI-1-0 --preferred

```

Most times I have to run these two commands more than once, but seldom more than five times to get a responsive external screen. On some rare occasions (1/50) I have to remove the HDMI cable and plug it back in to un-freeze the monitor.

My laptop is the MSI Katana 15 B13V, I am running Ubuntu 22.04.  
Originally the laptop came with 2x8Gb RAM, I have removed these and replaced them with 2x32Gb RAM. It has a 4070 RTX GPU.

I have installed the

```auto
nvidia-driver-535/jammy-updates,jammy-security,jammy,now 535.113.01-0ubuntu0.22.04.3 amd64

```

driver.

If you need more information about my laptop I have attached

```auto
lscpu
sudo lshw
hwinfo

```

[lscpu\_json.txt](https://forums.developer.nvidia.com/uploads/short-url/uZilk4DE2QIEhH5A1HOG9ZvQw8L.txt) (4.0 KB)  
[lshw\_json.txt](https://forums.developer.nvidia.com/uploads/short-url/udVoVWTT7lgXOdjYHSpnhesxyKU.txt) (54.5 KB)  
[hwinfo.txt](https://forums.developer.nvidia.com/uploads/short-url/nlNUKJapR9lA9VPAtVKMFh8fwXt.txt) (637.6 KB)

---

<div class="post-metadata">

**Author:** ![Spange](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/spange/32/290348_2.png) [@Spange](https://forums.developer.nvidia.com/u/Spange)\
**Post date:** [October 25, 2023, 9:22am UTC](https://forums.developer.nvidia.com/t/external-monitor-freezes-when-using-dedicated-gpu/265406/10 "2023-10-25T09:22:15Z")

</div>

Hello, @generix  
I will stick to this thread now, other readers might want to have a look at this [thread](https://forums.developer.nvidia.com/t/gtx-4080-second-monitor-freezes/270374/24) too.

So I did your recommendation of

```auto
sudo apt install nvidia-driver-535

```

And now I’m back to my fault statue.  
I have attached a bug report from earlier today, and just now after re-installing 535.  
I will now attempt to install 525 according to your suggestions.

[nvidia-bug-report\_535.log.gz](https://forums.developer.nvidia.com/uploads/short-url/61PcLvGpD58dbyks7CUORA0m81C.gz) (526.4 KB)  
[nvidia-bug-report\_535\_after\_reinstall.log.gz](https://forums.developer.nvidia.com/uploads/short-url/aJMNYs1yy0vQYYv03yeQbEA230c.gz) (440.1 KB)

---

<div class="post-metadata">

**Author:** ![Spange](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/spange/32/290348_2.png) [@Spange](https://forums.developer.nvidia.com/u/Spange)\
**Post date:** [October 25, 2023, 9:46am UTC](https://forums.developer.nvidia.com/t/external-monitor-freezes-when-using-dedicated-gpu/265406/11 "2023-10-25T09:46:46Z")

</div>

@j22gim @generix  
I installed nvidia-driver-525

```auto
apt list --installed | grep nvidia-driver
nvidia-driver-525/jammy-updates,jammy-security,jammy,now 525.125.06-0ubuntu0.22.04.1 amd64 [installed]

```

The problems are just as bad as before, the external monitor freezes within minutes after boot.  
[nvidia-bug-report\_525.log.gz](https://forums.developer.nvidia.com/uploads/short-url/fITVvm2NbPcRpMvE83HDLrN4RjS.gz) (404.8 KB)

For installing 525 I went through this step:

 ![Screenshot from 2023-10-25 11-30-43](https://global.discourse-cdn.com/nvidia/original/4X/e/d/4/ed45160b72b14eae451ae485ac083f50a6bc9012.png)

---

<div class="post-metadata">

**Author:** ![generix](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/generix/32/16024_2.png) [@generix](https://forums.developer.nvidia.com/u/generix)\
**Post date:** [October 25, 2023, 9:53am UTC](https://forums.developer.nvidia.com/t/external-monitor-freezes-when-using-dedicated-gpu/265406/12 "2023-10-25T09:53:13Z")

</div>

The 525 driver is installed correctly and working now but obviously has the same bug so you can return to the current 535 driver as well.

---

<div class="post-metadata">

**Author:** ![Spange](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/spange/32/290348_2.png) [@Spange](https://forums.developer.nvidia.com/u/Spange)\
**Post date:** [October 25, 2023, 9:54am UTC](https://forums.developer.nvidia.com/t/external-monitor-freezes-when-using-dedicated-gpu/265406/13 "2023-10-25T09:54:52Z")

</div>

I see 545 is in the list, should I give it a try?

---

<div class="post-metadata">

**Author:** ![generix](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/generix/32/16024_2.png) [@generix](https://forums.developer.nvidia.com/u/generix)\
**Post date:** [October 25, 2023, 10:10am UTC](https://forums.developer.nvidia.com/t/external-monitor-freezes-when-using-dedicated-gpu/265406/14 "2023-10-25T10:10:54Z")

</div>

@ursom already tried:  
[https://forums.developer.nvidia.com/t/external-monitor-freezes-when-using-dedicated-gpu/265406/5?u=generix](https://forums.developer.nvidia.com/t/external-monitor-freezes-when-using-dedicated-gpu/265406/5)  
so upgrading doesn’t help either.

---

<div class="post-metadata">

**Author:** ![Spange](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/spange/32/290348_2.png) [@Spange](https://forums.developer.nvidia.com/u/Spange)\
**Post date:** [October 25, 2023, 10:58am UTC](https://forums.developer.nvidia.com/t/external-monitor-freezes-when-using-dedicated-gpu/265406/15 "2023-10-25T10:58:55Z")

</div>

I agree, I tried and the bug is still there.  
[nvidia-bug-report\_545.log.gz](https://forums.developer.nvidia.com/uploads/short-url/iuFvmncOtba0N2qWzuzWAzqQhV6.gz) (504.3 KB)

---

<div class="post-metadata">

**Author:** ![Spange](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/spange/32/290348_2.png) [@Spange](https://forums.developer.nvidia.com/u/Spange)\
**Post date:** [October 25, 2023, 12:26pm UTC](https://forums.developer.nvidia.com/t/external-monitor-freezes-when-using-dedicated-gpu/265406/16 "2023-10-25T12:26:36Z")

</div>

@generix Do you think I will eventually find a version that works, if I keep installing an older release? 520 has the same bug  
[nvidia-bug-report\_520.log.gz](https://forums.developer.nvidia.com/uploads/short-url/wNAkBxBxm6ixk5X02fn1D1nlgYU.gz) (469.6 KB)

@j22gim is 525 still working for you?

---

<div class="post-metadata">

**Author:** ![j22gim](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@j22gim](https://forums.developer.nvidia.com/u/j22gim)\
**Post date:** [October 25, 2023, 12:30pm UTC](https://forums.developer.nvidia.com/t/external-monitor-freezes-when-using-dedicated-gpu/265406/17 "2023-10-25T12:30:43Z")

</div>

@Spange I have rebooted like 5 times now and for the last few hours, the 2nd monitor did not freeze.  
With the newer drivers I was not able to work more than 3-5 minutes without the problem… so I would say yes, it seems to be gone…

---

<div class="post-metadata">

**Author:** ![j22gim](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@j22gim](https://forums.developer.nvidia.com/u/j22gim)\
**Post date:** [October 25, 2023, 12:49pm UTC](https://forums.developer.nvidia.com/t/external-monitor-freezes-when-using-dedicated-gpu/265406/18 "2023-10-25T12:49:05Z")

</div>

> [@Spange](#):
>
> @j22gim is 525 still working for you?

happily, [yes](https://forums.developer.nvidia.com/t/gtx-4080-second-monitor-freezes/270374/29). Cross my fingers

---

<div class="post-metadata">

**Author:** ![Spange](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/spange/32/290348_2.png) [@Spange](https://forums.developer.nvidia.com/u/Spange)\
**Post date:** [October 25, 2023, 12:53pm UTC](https://forums.developer.nvidia.com/t/external-monitor-freezes-when-using-dedicated-gpu/265406/19 "2023-10-25T12:53:32Z")

</div>

@j22gim I’m genuinely happy that your issue has been resolved. I hope that I find a version that fixes my problem.

Do you think there is anything to gain by changing this setting, or any other tweak in NVIDIA settings?

 ![image](https://global.discourse-cdn.com/nvidia/original/4X/3/7/5/375b3d2980207bdbd62f77cdb4899b6e187da513.png)

---

<div class="post-metadata">

**Author:** ![j22gim](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@j22gim](https://forums.developer.nvidia.com/u/j22gim)\
**Post date:** [October 25, 2023, 12:58pm UTC](https://forums.developer.nvidia.com/t/external-monitor-freezes-when-using-dedicated-gpu/265406/20 "2023-10-25T12:58:39Z")

</div>

> [@Spange](#):
>
> Do you think there is anything to gain by changing this setting, or any other tweak in NVIDIA settings?

I honestly don’t know. I would not take my advice, this is the first time I have an NVIDIA card. Two other similarities between your case and mine are

1. MSI laptop computers
2. we both changed the default RAM (I also removed the original RAM and added two new chips to reach 64GB).

Also, please note my system might not be correctly configured, as [I don’t see anything in the NVIDIA-settings inspector](https://forums.developer.nvidia.com/t/gtx-4080-second-monitor-freezes/270374/29) after coming back to 525. However, as long as I don’t get errors I will stick to this (I can not afford to lose my external monitor for my work!)

Good luck, let’s keep posting our cases.

[Next page](https://forums.developer.nvidia.com/t/external-monitor-freezes-when-using-dedicated-gpu/265406.md?page=2)
