Bug 497095

Summary: On X11, black screen (desktop containment lost) after unlocking
Product: [Plasma] plasmashell Reporter: marco <marcoben73>
Component: ContainmentAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: jonmagon, nate, notmart
Priority: NOR    
Version First Reported In: 6.2.4   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screen black

Description marco 2024-12-05 18:22:54 UTC
Created attachment 176374 [details]
screen black

SUMMARY
I've two minitor, one connected with DP and one with HDMI.
Often the HDMI screen become black, windows are still there and usable, but no widgets and no backgound (see attached image)

STEPS TO REPRODUCE
It occurs randomly.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 40
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0 
Qt Version: 6.7.2

ADDITIONAL INFORMATION
If I disable the black screen through "Dispaly Configuration" and the re-enable it, it works normally.

Im' using X11 (not Wayland because I need to use Anydesk)

When the problem occur in journal I find these log

dic 05 18:38:25 marco-hp-g9 kded6[2296]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.hdmi-stereo"
dic 05 18:38:25 marco-hp-g9 plasmashell[2331]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.hdmi-stereo"
dic 05 18:38:25 marco-hp-g9 kded6[2296]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.hdmi-stereo"
dic 05 18:38:25 marco-hp-g9 kded6[2296]: org.kde.pulseaudio: No object for name "@DEFAULT_SINK@"
dic 05 18:38:25 marco-hp-g9 plasmashell[2331]: file:///usr/share/plasma/plasmoids/org.kde.plasma.volume/contents/ui/main.qml:91: TypeError: Cannot read property 'description' of undefined
dic 05 18:38:25 marco-hp-g9 plasmashell[2331]: file:///usr/share/plasma/plasmoids/org.kde.plasma.volume/contents/ui/main.qml:91: TypeError: Cannot read property 'description' of undefined
dic 05 18:38:25 marco-hp-g9 plasmashell[2331]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.hdmi-stereo"
dic 05 18:38:25 marco-hp-g9 plasmashell[2331]: org.kde.pulseaudio: No object for name "@DEFAULT_SINK@"
dic 05 18:38:25 marco-hp-g9 kded6[2296]: org.kde.pulseaudio: No object for name "@DEFAULT_SINK@"
dic 05 18:38:30 marco-hp-g9 plasmashell[2331]: org.kde.pulseaudio: No object for name "@DEFAULT_SINK@"
dic 05 18:38:31 marco-hp-g9 plasmashell[2331]: kde.plasmashell: requesting unexisting screen available rect -1
dic 05 18:38:31 marco-hp-g9 plasmashell[2331]: kde.plasmashell: requesting unexisting screen available rect -1
dic 05 18:38:31 marco-hp-g9 plasmashell[2331]: kde.plasmashell: requesting unexisting screen available rect -1
dic 05 18:38:31 marco-hp-g9 plasmashell[2331]: kde.plasmashell: requesting unexisting screen available rect -1
dic 05 18:38:31 marco-hp-g9 kded6[2296]: colord: Failed to register device: "device id 'xrandr-Philips Consumer Electronics Company-PHL 276E8F-AU51733001254' already exists"
dic 05 18:38:32 marco-hp-g9 kded6[2296]: colord: Setting X atom (id: 0 ) "_ICC_PROFILE" on output: "DP-1"
dic 05 18:38:32 marco-hp-g9 kded6[2296]: colord: EDID ICC Profile already exists "/home/marco/.local/share/icc/edid-e7f6daa1af890e77079b7e64bac294a9.icc"
dic 05 18:38:32 marco-hp-g9 sddm-helper-start-x11user[1744]: "(II) modeset(0): EDID vendor \"PHL\", prod id 49490\n"
dic 05 18:38:32 marco-hp-g9 sddm-helper-start-x11user[1744]: "(II) modeset(0): Using hsync ranges from config file\n(II) modeset(0): Using vrefresh ranges from config file\n(II) modeset(0): Printing DDC gathered Modelines:\n(II) modeset(0): Modeline \"2560x1440\"x0.0  241.50  2560 2>
dic 05 18:38:32 marco-hp-g9 sddm-helper-start-x11user[1744]: "(II) modeset(0): Modeline \"800x600\"x0.0   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz e)\n(II) modeset(0): Modeline \"640x480\"x0.0   31.50  640 656 720 840  480 481 484 500 -hsync -vsync (37.5 kHz >
dic 05 18:38:32 marco-hp-g9 sddm-helper-start-x11user[1744]: "(II) modeset(0): Modeline \"1440x900\"x0.0  106.50  1440 1520 1672 1904  900 903 909 934 -hsync +vsync (55.9 kHz e)\n(II) modeset(0): Modeline \"1280x1024\"x0.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vs>
dic 05 18:38:32 marco-hp-g9 kded6[2296]: colord: Failed to register device: "device id 'xrandr-Philips Consumer Electronics Company-PHL 276E8F-AU51733001254' already exists"
dic 05 18:38:32 marco-hp-g9 kded6[2296]: colord: Setting X atom (id: 0 ) "_ICC_PROFILE" on output: "DP-1"
dic 05 18:38:32 marco-hp-g9 kded6[2296]: colord: Setting X atom (id: 1 ) "_ICC_PROFILE_1" on output: "HDMI-4"
dic 05 18:38:32 marco-hp-g9 kded6[2296]: colord: EDID ICC Profile already exists "/home/marco/.local/share/icc/edid-e7f6daa1af890e77079b7e64bac294a9.icc"
dic 05 18:38:32 marco-hp-g9 kded6[2296]: colord: EDID ICC Profile already exists "/home/marco/.local/share/icc/edid-697bb10c040d68ed1229ccc672afce5b.icc"
dic 05 18:38:32 marco-hp-g9 kded6[2296]: colord: Setting X atom (id: 1 ) "_ICC_PROFILE_1" on output: "HDMI-4"
dic 05 18:38:33 marco-hp-g9 kded6[2296]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.analog-stereo"
dic 05 18:38:33 marco-hp-g9 plasmashell[2331]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.analog-stereo"
dic 05 18:38:33 marco-hp-g9 kded6[2296]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.analog-stereo"
dic 05 18:38:33 marco-hp-g9 kded6[2296]: org.kde.pulseaudio: No object for name "@DEFAULT_SINK@"
dic 05 18:38:33 marco-hp-g9 plasmashell[2331]: file:///usr/share/plasma/plasmoids/org.kde.plasma.volume/contents/ui/main.qml:91: TypeError: Cannot read property 'description' of undefined
dic 05 18:38:33 marco-hp-g9 plasmashell[2331]: file:///usr/share/plasma/plasmoids/org.kde.plasma.volume/contents/ui/main.qml:91: TypeError: Cannot read property 'description' of undefined
dic 05 18:38:33 marco-hp-g9 plasmashell[2331]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.analog-stereo"
dic 05 18:38:33 marco-hp-g9 plasmashell[2331]: org.kde.pulseaudio: No object for name "@DEFAULT_SINK@"
dic 05 18:38:33 marco-hp-g9 kded6[2296]: org.kde.pulseaudio: No object for name "@DEFAULT_SINK@"
dic 05 18:38:34 marco-hp-g9 kded6[2296]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.hdmi-stereo"
dic 05 18:38:34 marco-hp-g9 kded6[2296]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.hdmi-stereo"
dic 05 18:38:34 marco-hp-g9 kded6[2296]: org.kde.pulseaudio: No object for name "@DEFAULT_SINK@"
dic 05 18:38:34 marco-hp-g9 kded6[2296]: org.kde.pulseaudio: No object for name "@DEFAULT_SINK@"
dic 05 18:38:34 marco-hp-g9 plasmashell[2331]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.analog-stereo"
dic 05 18:38:34 marco-hp-g9 plasmashell[2331]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.analog-stereo"
dic 05 18:38:36 marco-hp-g9 org_kde_powerdevil[2394]: dh=Display_Handle[i2c-9: fd=29], Keeping adjusted sleep multiplier 2,00 for SE_POST_WRITE or SE_POST_SAVE_SETTINGS
dic 05 18:38:36 marco-hp-g9 org_kde_powerdevil[2394]: dh=Display_Handle[i2c-6: fd=29], Keeping adjusted sleep multiplier 1,00 for SE_POST_WRITE or SE_POST_SAVE_SETTINGS

xrandr output

Screen 0: minimum 320 x 200, current 5120 x 1440, maximum 16384 x 16384
DP-1 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440     59.95*+
   1920x1080     60.00    50.00    59.94  
   1280x1440     59.91  
   1680x1050     59.95  
   1280x1024     75.02    60.02  
   1440x900      59.89  
   1280x960      60.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    72.81    66.67    60.00    59.94  
   720x400       70.08  
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
HDMI-3 disconnected (normal left inverted right x axis y axis)
HDMI-4 connected 2560x1440+2560+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440     59.95*+
   1920x1080     60.00    50.00    59.94  
   1280x1440     59.91  
   1680x1050     59.88  
   1280x1024     75.02    60.02  
   1440x900      59.90  
   1280x960      60.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    72.81    66.67    60.00    59.94  
   720x400       70.08
Comment 1 Dmitry 2024-12-11 10:46:04 UTC
Could be more general bug isn't specific to a two-monitor setup: https://bugs.kde.org/show_bug.cgi?id=497204
Comment 2 marco 2024-12-11 12:31:55 UTC
(In reply to Dmitry from comment #1)
> Could be more general bug isn't specific to a two-monitor setup:
> https://bugs.kde.org/show_bug.cgi?id=497204

In my case the error occurs during normal work, non after screen unlock, at least not immediatly after screen unlock
Comment 3 Nate Graham 2024-12-11 21:13:00 UTC
Sounds a bit like Bug 496923. Does it reproduce on Wayland, or is it X11-specific? I know you said you're not using Wayland because you need to use AnyDesk, but can you test it out for a little while anyway? No need to permanently switch.
Comment 4 marco 2024-12-13 17:27:52 UTC
(In reply to Dmitry from comment #1)
> Could be more general bug isn't specific to a two-monitor setup:
> https://bugs.kde.org/show_bug.cgi?id=497204

I looked better and indeed the problem always occurs after a screen unlock and occasionally during normal operation.
Comment 5 marco 2024-12-18 13:48:04 UTC
(In reply to Nate Graham from comment #3)
> Sounds a bit like Bug 496923. Does it reproduce on Wayland, or is it
> X11-specific? I know you said you're not using Wayland because you need to
> use AnyDesk, but can you test it out for a little while anyway? No need to
> permanently switch.

I tested with Wayland for two days and the problem never occurs. So it seems that is specific to X11.
Comment 6 Nate Graham 2024-12-18 16:30:03 UTC

*** This bug has been marked as a duplicate of bug 496926 ***