Bug 405920 - Display is out-of-focus/flickering after waking up from sleep
Summary: Display is out-of-focus/flickering after waking up from sleep
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.15.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-27 05:30 UTC by yamiyukisenpai
Modified: 2019-04-28 14:53 UTC (History)
1 user (show)

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


Attachments
Screenshot of my monitor (869.98 KB, image/png)
2019-03-27 06:25 UTC, yamiyukisenpai
Details
NVIDIA log generated from nvidia-bug-report tool (1.13 MB, application/gzip)
2019-04-07 09:52 UTC, yamiyukisenpai
Details
KWin qdbus output (6.45 KB, text/plain)
2019-04-12 10:10 UTC, yamiyukisenpai
Details
QDbus KWin output from a new user (6.05 KB, text/plain)
2019-04-18 06:05 UTC, yamiyukisenpai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yamiyukisenpai 2019-03-27 05:30:26 UTC
SUMMARY
The display is blurry after waking up from sleep on NVIDIA hardware.  This doesn't happen on my laptop with Intel iGPU.

OBSERVED RESULT
Waking up from sleep causes the desktop to go out of focus.  Wallpaper doesn't seem to be affected, however.

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Operating System: Kubuntu 18.10
KDE Plasma Version: 5.15.3
KDE Frameworks Version: 5.54.0
Qt Version: 5.11.1
Kernel Version: 4.18.0-16-generic
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-6500 CPU @ 3.20GHz
Memory: 15.6 GiB of RAM

ADDITIONAL INFORMATION
GPU: NVIDIA GeForce GTX 1060
I first noticed this with nvidia-driver-418, but downgrading to version 410 didn't fix it.
Comment 1 yamiyukisenpai 2019-03-27 05:38:44 UTC
I also want to mention that I currently emailed NVIDIA about this, and trying out whether this affects version 415 as well.
Comment 2 David Edmundson 2019-03-27 06:16:03 UTC
Screenshot please
Comment 3 yamiyukisenpai 2019-03-27 06:25:25 UTC
Created attachment 119073 [details]
Screenshot of my monitor

I actually captured a video for it. I attached a screenshot just in case you can't open the video (it's linked to YouTube).

https://youtu.be/Gn_dITHQFEs
Comment 4 yamiyukisenpai 2019-04-02 06:35:53 UTC
Tried `kwin --replace`, and that didn't work
Neither did `plasma-shell --replace`
Comment 5 yamiyukisenpai 2019-04-02 10:57:37 UTC
I also posted the bug on Launchpad: https://bugs.launchpad.net/ubuntu/+source/plasma-desktop/+bug/1822767

Now on Disco beta, its even worse because it flickers, even after boot.
Comment 6 yamiyukisenpai 2019-04-03 04:05:05 UTC
After enabling Flipping, the blurry stuff happens much less frequently, but it happens a lot more frequently compared to 5.14.
Comment 7 yamiyukisenpai 2019-04-07 09:52:51 UTC
Created attachment 119278 [details]
NVIDIA log generated from nvidia-bug-report tool

Hope this helps
Comment 8 yamiyukisenpai 2019-04-12 10:10:51 UTC
Created attachment 119369 [details]
KWin qdbus output

Hope this one helps, too.
Comment 9 yamiyukisenpai 2019-04-16 16:44:42 UTC
Any other info you'd want me to let you know so that this issue can be resolved?
Comment 10 yamiyukisenpai 2019-04-16 18:51:01 UTC
I have tried XRender, and while the flickering doesn't happen with it, it won't play nice with multiple monitors
Comment 11 yamiyukisenpai 2019-04-18 05:57:30 UTC
So I tried creating a new user account (probably the first thing I should've tried), and that flickering doesn't happen.

I'm now trying to isolate the problem by comparing the settings from one user to another
Comment 12 yamiyukisenpai 2019-04-18 06:05:07 UTC
Created attachment 119478 [details]
QDbus KWin output from a new user

I'm attaching the output of QDbus from a new user
Comment 13 David Edmundson 2019-04-18 10:19:51 UTC
Thanks
Comment 14 David Edmundson 2019-04-18 15:45:51 UTC
>Tried `kwin --replace`, and that didn't work
>Neither did `plasma-shell --replace`


That should be kwin_x11 --replace

and "plasmashell --replace" - though given the whole screen is blurry, it won't be plasmashell at fault.
Comment 15 yamiyukisenpai 2019-04-19 06:22:45 UTC
Thanks.

After erasing everything in the .config/ directory related to KWin & Plasma, what solved it was actually erasing .nvidia-settings-rc file, and have NVIDIA Settings regenerate it again.
Comment 16 David Edmundson 2019-04-22 15:53:58 UTC
Did you have something non-default in the

nvidia-settings "antialiasing" tab?
Comment 17 yamiyukisenpai 2019-04-28 14:53:32 UTC
(In reply to David Edmundson from comment #16)
> Did you have something non-default in the
> 
> nvidia-settings "antialiasing" tab?

I can't remember, unfortunately