FS#61889 - nvidia driver corrupts screen after suspend in KDE

Attached to Project: Arch Linux
Opened by Evert Vorster (evorster) - Friday, 01 March 2019, 05:35 GMT
Last edited by Antonio Rojas (arojas) - Saturday, 22 June 2019, 09:10 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Hi there!

I have been having this issue for a while now, where the text under my icons would be corrupted after a resume from suspend.

Additional info:
* package version(s)
extra/nvidia 415.27-5

* link to upstream bug report, if any
https://forum.kde.org/viewtopic.php?f=111&t=121590


Steps to reproduce:
Suspend to memory
Resume


If you read the link, the fix is rather easy, create a /etc/modprobe.d/50-nvidia.conf, and put the following text inside.

options nvidia NVreg_RegisterForACPIEvents=1 NVreg_EnableMSI=1

It seems to me to be a good thing, and should be included in the nvidia package.

This task depends upon

Closed by  Antonio Rojas (arojas)
Saturday, 22 June 2019, 09:10 GMT
Reason for closing:  Fixed
Additional comments about closing:  kdeclarative 5.58 + qt5-base 5.13.0
Comment by loqs (loqs) - Friday, 01 March 2019, 09:30 GMT
You have tested this fix and it works for you?
As far as I am aware NVreg_EnableMSI has been enabled since 3.25 ( see NVIDIA_Changelog in source tarball ) and NVreg_RegisterForACPIEvents is also enabled https://devtalk.nvidia.com/default/topic/771023/linux/module-parameter-nvreg_registerforacpievents/
Comment by Evert Vorster (evorster) - Friday, 01 March 2019, 10:42 GMT
I applied the fix, but it did not work for me. In fact, after scouring the web for a long time, I have not found anything that works automatically.
There was even a person that wrote a systemd service to try and fix it, but that did not work for me either.

I do apologize for the trouble.

I now have an icon that runs the following command:
killall plasmashell; kstart5 plasmashell

I really hate it, on many levels, but it does fix the corruption.
If I have more time I will try and fix it properly in a way that works in Arch, and then come back to this.
Comment by Raul Cesar Teixeira (raulteixeira) - Thursday, 28 March 2019, 03:22 GMT
I too have been facing this issue using gnome shell. Tried the fix, but the background still corrupts.
Doing alt-f2, then r will bring it back to normal, but could not find a way to automate (and still have it work).

My configuration is as follows:
CPU: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
GPU: GeForce GTX 970
NVIDIA Driver Version: 418.56 (Linux-x86_64)
OS: 5.0.4-arch1-1-ARCH
gnome shell: 3.32
Comment by Raul Cesar Teixeira (raulteixeira) - Friday, 29 March 2019, 10:30 GMT
Just an update, The problem appears to have stopped occurring for me.
I have no idea why. Before posting (on 28/03/2019) I had tried a solution by editing a polkit rule (suggest on this forum (https://forums.fedoraforum.org/showthread.php?312051-KDE-suspend-hibernate-as-regular-user-(Fedora-24))
bug even after a few reboots, this did NOT seem to fix the problem.
The only thing I can remember doing different from there to here was install powerdevil, because the "suspend" option was missing from KDEs menu.
Maybe that did the trick (somehow???), but I don't really have an easy way to check right now, so if anyone is still having this issue and wants to take a shot in the dark...
As a final note, sometimes when I come back from suspend, I can see the background change from "corrupted" to normal.
Comment by Antonio Rojas (arojas) - Friday, 29 March 2019, 11:30 GMT
@raulteixeira: what problem exactly are you talking about? because you were speaking about gnome first, and now about KDE.

The Plasma issue will be fixed with Qt 5.13. In the meantime, add

[QtQuickRendererSettings]
GraphicsResetNotifications=true

to .config/plasmashellrc as a workaround.
Comment by Raul Cesar Teixeira (raulteixeira) - Friday, 29 March 2019, 12:29 GMT
@arojas, sorry about the lack of clarity. I have both environments installed (KDE and GNOME SHELL), switching between the 2 every once in a while.

The problem was occurring in both environments, although much more "consistently" in gnome (practically every time I came back from suspend).
So I started using KDE as main DE, and that's when I installed powerdevil (for a completely non related reason).
After that (maybe by coincidence), the problem seems to have gone away (on both GNOME and KDE).
I will check if my .config/plasmashellrc has the GraphicsResetNotifications=true.

Again, sorry about the lack of clarity, and the fact that I mentioned gnome shell at all on this thread. It's just that the problem on both DEs seemed to me to stem from the same issue, so I was hoping for a workaround or fix that could be applied to both.

Loading...