Hardware video decoding crashes on resuming from sleep

Dear NVIDIA,

I tried to collect more “specific” logs, but in this instance found it slightly difficult - the issue is non-obvious.

However, I have details and steps to reproduce.

See also: Unexpected crash on waking from sleep · Issue #7587 · mpv-player/mpv · GitHub

On Manjaro Linux 19.0.2
Kernel 5.5.13-1 and above (or below, tried with kernel 5.4)
64 bits Intel
NVIDIA driver version 440.82

On a Samsung display (TV) in 4k, over HDMI, when the computer is put to sleep, upon reawakening, video ceases to function.

This is whether vdpau is in use or not; the video player software (mpv) appears to use Vulkan for rendering/display, but I think the issue could be reproduced using OpenGL.

I systematically have to kill the video player, then restart playback.

I will gladly offer any assistance needed. I run the same software on Windows 10, and I don’t think it is affected in the same way.

Please check if setting up this
https://download.nvidia.com/XFree86/Linux-x86_64/440.64/README/powermanagement.html
helps.

Hi. Thanks a lot. Unfortunately it doesn’t fix the issue or change the symptoms.

I have:

  • set the module parameter in /etc/modprobe.d/nvidia.conf.
  • activated the three systemd services.
  • I do have the /usr/bin/nvidia-sleep.sh script.
    *mem_sleep_default is deep.
  • tmp has 32G available

Additionally, the nvidia module (nvidia) is not loaded as part of the initramfs. So all boxes apparently ticked, but the issue persists.