Bug 461094 - [NVIDIA] Graphics and some graphics card functionality broken after computer is put to sleep for a long period of time
Summary: [NVIDIA] Graphics and some graphics card functionality broken after computer ...
Status: RESOLVED UPSTREAM
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-28 04:04 UTC by kaiser
Modified: 2022-11-25 13:58 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
It is a screenshot of my Steam client that is suffering from this bug, it also has a pop-up error from OBS that says I cannot use the NVENC encoding on my graphics card (this is resolved by a reboot) (2.27 MB, image/png)
2022-10-28 04:04 UTC, kaiser
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kaiser 2022-10-28 04:04:21 UTC
Created attachment 153249 [details]
It is a screenshot of my Steam client that is suffering from this bug, it also has a pop-up error from OBS that says I cannot use the NVENC encoding on my graphics card (this is resolved by a reboot)

When my desktop is put to sleep for a long period (by  pressing ctrl + l then pressing the sleep button in SDDM), It will often make the wallpaper background nothing but a bunch of bands of different colors, this also happens to the desktop, although the desktop can simply be "fixed" by clicking around.

Some applications also suffer because of this, the Steam client becomes a mess, everything becomes different colors similar to the lock screen and desktop, but even after clicking around to "fix" this, Steam will then continue to only render videos on pages, everything else being black, for example on profiles or store pages, this carries onto the steam overlay as well, and some drop-down menus at the top of the steam client or the friends list, they will just become black boxes with no text or buttons visible.

Some graphics card functionality also becomes unusable until reboot, for example when this happens sometimes I cannot use any NVENC encoding in OBS, it reports an unknown error and to check if my video drivers are up-to-date (they are).

Besides that, sometimes the browser just becomes completely black as well, clicking around after a long sleep fixes this as well, but this can re-occur when opening a game in full-screen for example.

Most other applications from what I can see, are not impacted, for example Discord doesn't suffer any of these issues despite me running it with GPU acceleration enabled.

I suspect the issue lies somewhere with how the GPU is "woken up"? for a lack of a better term, despite this, I do *not* notice any performance issues in games after a long sleep.

STEPS TO REPRODUCE
1.  lock screen for a long period of time, over night
2.  wake up computer, login
 

OBSERVED RESULT
color bands everywhere, applications not working correctly, unable to encode streams.


EXPECTED RESULT
A normal desktop experience with working applications


SOFTWARE/OS VERSIONS
Linux: Void Linux with kernel version 5.19.16_1
KDE Plasma Version: 5.26.0
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.5

ADDITIONAL INFORMATION

I tested out  some other DE's and WM's including Gnome, XFCE4 and Fluxbox over the period of a few days each at the minimum, and none of them had any of these issues.

Image of the issue happening is attached.
Thanks.
Comment 1 Nate Graham 2022-10-28 19:47:37 UTC
NVIDIA, I assume?

Probably driver issues, but I'll let the KWin folks confirm.
Comment 2 kaiser 2022-10-28 22:02:11 UTC
(In reply to Nate Graham from comment #1)
> NVIDIA, I assume?
> 
> Probably driver issues, but I'll let the KWin folks confirm.

I should have specified this, Yes.
It is an NVIDIA GTX 1070 ti GPU with driver version 515.65.01
Comment 3 kaiser 2022-11-05 22:02:18 UTC
Recently I updated my system, I am now running:
KDE Plasma Version: 5.26.2
KDE Frameworks Version: 5.99.0
QT version: 5.15.5
Kernel Version: 5.19.17_1

behavior has changed a bit, I no longer face the color-banding issue from what i can see, however when i wake up my computer after a long period of time, i now get a notification popup saying that klwin had some graphical issues and has restarted. I do not notice any differences or issues at all.
Comment 4 Nate Graham 2022-11-07 18:38:28 UTC
These are all unfortunately issues with the NVIDIA GPU driver. :(

Please report this issue to the NVIDIA folks, either by sending an email to linux-bugs@nvidia.com or making a post at https://forums.developer.nvidia.com/c/gpu-graphics/linux/

It would be helpful to the NVIDIA developers if you could run nvidia-bug-report.sh and attach the resulting file in your report. Thanks!
Comment 5 kaiser 2022-11-25 13:58:48 UTC
(In reply to Nate Graham from comment #4)
> These are all unfortunately issues with the NVIDIA GPU driver. :(
> 
> Please report this issue to the NVIDIA folks, either by sending an email to
> linux-bugs@nvidia.com or making a post at
> https://forums.developer.nvidia.com/c/gpu-graphics/linux/
> 
> It would be helpful to the NVIDIA developers if you could run
> nvidia-bug-report.sh and attach the resulting file in your report. Thanks!

will do, thanks