Bug 426260 - NVIDIA Optimus: Plasma boots a black desktop on multi-screen setup; wallpaper returns after changing display setup
Summary: NVIDIA Optimus: Plasma boots a black desktop on multi-screen setup; wallpaper...
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-multiscreen (show other bugs)
Version: 5.18.5
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Aleix Pol
URL:
Keywords:
: 426764 427383 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-09-06 19:30 UTC by Andrés B.S.
Modified: 2021-11-05 04:36 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
The black desktop with no icons (12.37 KB, image/png)
2020-09-06 19:30 UTC, Andrés B.S.
Details
journalctl and dmesg output (53.59 KB, application/zip)
2020-10-15 03:19 UTC, Andrés B.S.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrés B.S. 2020-09-06 19:30:07 UTC
Created attachment 131454 [details]
The black desktop with no icons

SUMMARY
When the display settings are set to only use the external display, rebooting (this does not happen every boot, but it is frequent ~every 4 or 5 reboots) boots to a black desktop (no background, no icons, right click does nothing), however, the taskbar and the launcher are visible (a.k.a. the default panel I guess?). Using Meta+P to change the display output to the laptop monitor and does show the full desktop, and then switching back to only the external monitor does fix the problem. I am using nouveau (I had installed nvidia previously and then unistalled it, and 'unblacklisted' nouveau from modprobe.d files).

STEPS TO REPRODUCE
1. Set the display output to only use the external monitor using System Settings (I am using Xorg)
2. Reboot
3. Login (I am using autologin, as setup by Yast while installing OpenSUSE)


Operating System: openSUSE Leap 15.2
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.71.0
Qt Version: 5.12.7
Kernel Version: 5.3.18-lp152.36-default
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-7700HQ CPU @ 2.80GHz
Memory: 15,5 GiB of RAM 

ADDITIONAL INFORMATION
It seems to me that Plasma tries to load the desktop on the disabled display (internal monitor), so that's why, when I change the output display, it shows up, and changing back, shows the desktop as well (black desktop gone, icons are back).
Comment 1 Nate Graham 2020-09-08 13:20:55 UTC
How odd.
Comment 2 Andrés B.S. 2020-09-08 16:22:34 UTC
I should have taken a look before posting, it seems like very similar issues have been reported previously. What piques me is the fact that it happens inconsistently across reboots. Mainly looking at #391531.

I haven't tested for this on Wayland since I can't get it running properly (weird artifacts when resizing windows-optimus laptop).
Comment 3 gudvinr+kde 2020-09-13 11:40:04 UTC
I have a similar issue which as I may wrongly connect to recent Qt update because everything was fine before.

Yesterday after reboot I've got messed up wallpapers on second monitor.

Monitor on the right is vertical and wallpaper covers only top half of the screen. Wallpaper set to "tiling" but if I toggle mode, plasma still shows black background in lower half.

It seems like plasma missing information about display rotation in my case and just tries to render wallpaper as if monitor were horizontal.

Windows placement etc works as expected though.
Comment 4 Andrés B.S. 2020-09-20 06:47:01 UTC
Found some nvidia driver leftovers (module was being loaded but doing nothing)... got rid of those and the issue has not been happening for now. Still something weird because the display worked fine once it was booted, even logging out and back in fixed the black screen thing... still looks like a bug or an unhandled exception to me.
Comment 5 Ashcon Mohseninia 2020-09-20 09:27:01 UTC
I filed a similar bug report here:
https://bugs.kde.org/show_bug.cgi?id=426764

Seems that with more than 2 monitors on optimus laptops the black screen happens on every boot. Im using optimus manager set to NVIDIA mode
Comment 6 Nate Graham 2020-09-21 04:44:33 UTC
*** Bug 426764 has been marked as a duplicate of this bug. ***
Comment 7 Andrés B.S. 2020-10-02 01:26:37 UTC
It happened today again, so at least I know it's not an NVIDIA driver thing because I checked the loaded modules and I could confirm I was using only nouveau. I also read the following report: https://bugs.kde.org/show_bug.cgi?id=369450

Seems to match my situation and the behavior is exactly the same.
Comment 8 Andrés B.S. 2020-10-15 03:19:56 UTC
Created attachment 132372 [details]
journalctl and dmesg output

journalctl was captured about 30 minutes before posting this. (the issue happened again that boot). I booted the system around 20:50, and hope these logs might shed some light on what's going on.

Current versions:
Operating System: openSUSE Leap 15.2
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.71.0
Qt Version: 5.12.7
Kernel Version: 5.3.18-lp152.44-default
Comment 9 Nate Graham 2021-08-16 21:47:03 UTC
GPU does not seem to be relevant here; marking as a dupe of the master issue which is GPU-independent.

*** This bug has been marked as a duplicate of bug 391531 ***
Comment 10 Nate Graham 2021-10-06 18:38:32 UTC
Probably different, sorry for the noise.
Comment 11 Nate Graham 2021-10-06 18:38:37 UTC
*** Bug 426764 has been marked as a duplicate of this bug. ***
Comment 12 Nate Graham 2021-10-06 18:38:40 UTC
*** Bug 427383 has been marked as a duplicate of this bug. ***
Comment 13 Nate Graham 2021-10-06 18:39:33 UTC
A not of work was done with NVIDIA Optimus setups for Plasma 5.23. Can someone with such a setup please test the Plasma 5.23 beta (or wait a week and try the final release) and see if the issue is fixed now? Thanks!
Comment 14 Bug Janitor Service 2021-10-21 04:35:27 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 15 Bug Janitor Service 2021-11-05 04:36:03 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!