Display freezes: (EE) NVIDIA(GPU-0): WAIT

I experience the same symptoms as: X freezes, NVIDIA(GPU-0): WAIT and Regular Xorg freezes on KDE Manjaro

The display freezes randomly. Though it mostly seems to occur when a new window/popup/setting menu/etc. is opened.
The freezes can be matched with the NVIDIA(GPU-0): WAIT log entries.

I am running ubuntu 20.04 on a laptop without any external screen
AMD Ryzen 7 5800H
Nvidia Gefore RTX3050
HP Pavilion 15-ec2530nd (461U3EA#ABH)

It is very hard to pinpoint the root cause of this issue.

nvidia-bug-report.log.gz (367.1 KB)

Please check if it’s stable with a v470 driver.

Also the 470 driver is giving similar issues. Though the freezes seem to be of longer duration. Even close to a minute, after which I decided to force shutdown by the power button.

Something that happens with both 495 and 470, the first few minutes after boot, there are no issues. The problems start to occur from roughly 5 minutes after boot.

nvidia-bug-report-470.log.gz (375.7 KB)

Instead of running in high-performance mode, I switched to hybrid mode. I don’t experience the freezes anymore. I have only found one log entry, but I never experienced that freeze.

Though I think that this is just a workaround instead of a fix. As most stuff is now run on the AMD integrated GPU.

Applications that require CUDA are able to find the NVIDIA GPU. So no problems there.

The only issue I experience now,: After returning from sleep, the brightness is at minimum. I can find some nvidia stackstraces in the log, see attached logs.

@generix, I hope you have some clue how to fix this.

nvidia-bug-report_brightness.log.gz (532.8 KB)
nvidia-bug-report_brightness2.log.gz (469.4 KB)

On suspend/resume, the brightness should be maintained by the kernel, i.e. the amdgpu driver so I suspect a bug there. Maybe check if this contains some help:
https://gitlab.freedesktop.org/drm/amd/-/issues/1438
For a workaround, you could copy and modify the systemd-backlight units to save/restore brightness on suspend/resume.

1 Like

@generix Thanks for your suggestion regarding the brightness.

Regarding the original bug. The bug prevents me from using an external display. As graphical applications on the external display will use the NVIDIA GPU instead of the integrated AMD GPU.

So a long term solution is really desired.

I’m facing the exact same issue as @MatthijsBurgh
Configuration also pretty much the same:
Ubuntu 20.04
AMD Ryzen 5 5800H
Nvidia Geforce RTX3050
HP Pavilion 15 laptop
No external screen.

When changing windows, tabs, etc. the 5-7 sec freezes happen. Freezes are perfectly in sync with the log message:

gru 06 18:31:27 damian-HP /usr/lib/gdm3/gdm-x-session[1583]: (EE) NVIDIA(GPU-0): WAIT (2, 8, 0x8000, 0x00042194, 0x0004219c)
gru 06 18:31:34 damian-HP /usr/lib/gdm3/gdm-x-session[1583]: (EE) NVIDIA(GPU-0): WAIT (1, 8, 0x8000, 0x00042194, 0x0004219c)

I checked 495 and 470 drivers. Both give the same symptoms. Also from time to time, the freeze is permanent (especially coming back from hibernation), in which case I must reboot.

How do I switch to the hybrid mode, to at least get rid of these symptoms?

Attaching the log.
nvidia-bug-report.log (211.1 KB)

To switch to hybride mode:

  • Open Nvidia X server settings
  • In the left list, go to Prime Profiles
  • Select Hybride Mode in the right part of the window.
  • Reboot

As mentioned, an external display will force the X Server to be run by Nvidia again. Which will bring back the issues. Running apps with Nvidia will not result in any issues.

Thanks Matthijs!
I ended up switching off the Nvidia card completely (called “power saving mode”, also your “hybrid” is called “Nvidia On-Demand” in my system). This seems to at least fix the brightness issue (when reviving from suspend), and I don’t need the gpu for other tasks atm…

Now after suspend my mouse stops working, but that I think is unrelated :)

Anyway, a long-term solution would be great to see :/