Bug 494330

Summary: Infinite loop of disconnection/connection notification sounds when certain screens go to sleep
Product: [Plasma] plasmashell Reporter: Julien Delquié <julien.dlq>
Component: Disks & Devices widgetAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: normal CC: gigastarcraft2, jpetso, kde, kdedev, lostfreeman, major-mayer, metzelketzer, natalie_clarius, nate, sebi.loew, xaver.hugl
Priority: NOR    
Version: 6.2.0   
Target Milestone: 1.0   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Julien Delquié 2024-10-09 07:33:58 UTC
SUMMARY
When screens go to sleep, there is a notification sound about screen being disconnected.
But after some seconds, a loop of notification sound about screen being disconnected/connected keeps looping like hell. 

Furthermore, even if I deactivate notification sound about devices disconnection/connection, it keeps playing it when issue happens, so no workaround at all except mute sound.
It’s really disturbing.

STEPS TO REPRODUCE
1. Wait for screens to go to sleep

OBSERVED RESULT
Infinite loop of disconnection/connection notification sound.

EXPECTED RESULT
No sound at all, or at least, just one disconnection notification sound when screens are disconnected, then just one connection notification sound when screens are connected.

SOFTWARE/OS VERSIONS
Operating System: Gentoo Linux 2.15
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.3
Kernel Version: 6.11.2-gentoo-x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-9700K CPU @ 3.60GHz
Memory: 31.3 Gio of RAM
Graphics Processor: AMD Radeon RX 7800 XT

ADDITIONAL INFORMATION
I had no issue prior to Plasma 6.2.0, it started with this version.
I don’t know where to have a look to search useful information to help more on this issue.
Comment 1 Nate Graham 2024-10-10 21:36:56 UTC
Is it possible the notification and sound are exposing an underlying hardware issue of one of the ends of the cables being loose? Maybe the monitor really does keep connecting and reconnecting because of a physical problem. Can you check it?
Comment 2 Julien Delquié 2024-10-10 22:10:05 UTC
(In reply to Nate Graham from comment #1)
> Is it possible the notification and sound are exposing an underlying
> hardware issue of one of the ends of the cables being loose? Maybe the
> monitor really does keep connecting and reconnecting because of a physical
> problem. Can you check it?

I think there is no underlying hardware issue, both my screens works visually perfectly well, each cables are well connected on both end.

What I can tell, is when the issue happen, when screen goes to sleep, I have plenty of messages in journalctl about this:

oct. 10 21:12:15 pasokon.maison org_kde_powerdevil[9588]: dh=Display_Handle[i2c-6: fd=130], Replacing adjusted sleep multiplier 0,00 with 1.00 for SE_POST_WRITE or SE_POST_SAVE_SETTINGS
oct. 10 21:12:17 pasokon.maison org_kde_powerdevil[9588]: dh=Display_Handle[i2c-8: fd=130], Replacing adjusted sleep multiplier 0,20 with 1.00 for SE_POST_WRITE or SE_POST_SAVE_SETTINGS
oct. 10 21:12:17 pasokon.maison org_kde_powerdevil[9588]: dh=Display_Handle[i2c-6: fd=130], Replacing adjusted sleep multiplier 0,00 with 1.00 for SE_POST_WRITE or SE_POST_SAVE_SETTINGS
oct. 10 21:12:24 pasokon.maison org_kde_powerdevil[9588]: dh=Display_Handle[i2c-6: fd=130], Replacing adjusted sleep multiplier 0,00 with 1.00 for SE_POST_WRITE or SE_POST_SAVE_SETTINGS
oct. 10 21:12:25 pasokon.maison org_kde_powerdevil[9588]: dh=Display_Handle[i2c-6: fd=130], Replacing adjusted sleep multiplier 0,00 with 1.00 for SE_POST_WRITE or SE_POST_SAVE_SETTINGS
oct. 10 21:12:25 pasokon.maison org_kde_powerdevil[9588]: dh=Display_Handle[i2c-8: fd=130], Replacing adjusted sleep multiplier 0,20 with 1.00 for SE_POST_WRITE or SE_POST_SAVE_SETTINGS
oct. 10 21:12:27 pasokon.maison org_kde_powerdevil[9588]: dh=Display_Handle[i2c-8: fd=130], Replacing adjusted sleep multiplier 0,20 with 1.00 for SE_POST_WRITE or SE_POST_SAVE_SETTINGS
oct. 10 21:12:27 pasokon.maison org_kde_powerdevil[9588]: dh=Display_Handle[i2c-6: fd=130], Replacing adjusted sleep multiplier 0,00 with 1.00 for SE_POST_WRITE or SE_POST_SAVE_SETTINGS

And of course, nothing when the screen comes back from sleep.
Comment 3 Julien Delquié 2024-10-10 22:12:03 UTC
(In reply to Julien Delquié from comment #2)
> And of course, nothing when the screen comes back from sleep.

Also, the looping sounds stops as soon as the screen comes back from sleep.
Comment 4 Jakob Petsovits 2024-10-10 22:35:08 UTC
> oct. 10 21:12:15 pasokon.maison org_kde_powerdevil[9588]: dh=Display_Handle[i2c-6: fd=130], Replacing adjusted sleep multiplier 0,00 with 1.00 for SE_POST_WRITE or SE_POST_SAVE_SETTINGS
> ...

Those are libddcutil logs. This is not directly related to the notifications, because powerdevil/ddcutil don't play a notable part in the main connection/disconnection logic.

KWin is the component that directly reacts to display (un)plug events. Although it looks like the "Display Detected" / "Display Removed" notifications are issued by plasma-workspace/devicenotifications/devicenotifications.cpp in response to that. It would be a good idea to look at logs for plasma-kwin_wayland to see whether it also thinks the connection keeps changing. Might also make sense to check logs for plasma-plasmashell, although it probably won't say much without first enabling extra verbose log output. I don't know enough about these components off the top of my head to say which environment variables will yield the best logs.
Comment 5 Julien Delquié 2024-10-11 17:56:38 UTC
When the issue is happening (as I said, only when screens goes to sleep, no problem when they are awake), I can see thoses logs about kwin_wayland:

oct. 11 19:43:52 pasokon.maison kwin_wayland[169333]: kwin_core: KWin::LayerShellV1Window doesn't support setting maximized state
oct. 11 19:43:52 pasokon.maison kwin_wayland[169333]: kwin_core: KWin::LayerShellV1Window doesn't support setting fullscreen state
oct. 11 19:45:02 pasokon.maison kwin_wayland[169333]: kwin_core: KWin::LayerShellV1Window doesn't support setting maximized state
oct. 11 19:45:02 pasokon.maison kwin_wayland[169333]: kwin_core: KWin::LayerShellV1Window doesn't support setting fullscreen state
oct. 11 19:45:03 pasokon.maison kwin_wayland[169333]: kwin_core: KWin::LayerShellV1Window doesn't support setting maximized state
oct. 11 19:45:03 pasokon.maison kwin_wayland[169333]: kwin_core: KWin::LayerShellV1Window doesn't support setting fullscreen state
oct. 11 19:45:10 pasokon.maison kwin_wayland[169333]: kwin_core: KWin::LayerShellV1Window doesn't support setting maximized state
oct. 11 19:45:10 pasokon.maison kwin_wayland[169333]: kwin_core: KWin::LayerShellV1Window doesn't support setting fullscreen state
oct. 11 19:45:11 pasokon.maison kwin_wayland[169333]: kwin_core: KWin::LayerShellV1Window doesn't support setting maximized state
oct. 11 19:45:11 pasokon.maison kwin_wayland[169333]: kwin_core: KWin::LayerShellV1Window doesn't support setting fullscreen state
oct. 11 19:45:18 pasokon.maison kwin_wayland[169333]: kwin_core: KWin::LayerShellV1Window doesn't support setting maximized state
oct. 11 19:45:18 pasokon.maison kwin_wayland[169333]: kwin_core: KWin::LayerShellV1Window doesn't support setting fullscreen state
oct. 11 19:45:20 pasokon.maison kwin_wayland[169333]: kwin_core: KWin::LayerShellV1Window doesn't support setting maximized state
oct. 11 19:45:20 pasokon.maison kwin_wayland[169333]: kwin_core: KWin::LayerShellV1Window doesn't support setting fullscreen state

I can also see some firefox logs, but I don’t know if it is useful:

oct. 11 19:43:51 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4c720 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:43:51 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4f4a0 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:43:51 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4f7e0 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:43:51 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe96a9d6120 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:43:51 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe96a9d5420 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:43:51 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4c720 as subsurface because its parent is not mapped.
oct. 11 19:43:51 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4f4a0 as subsurface because its parent is not mapped.
oct. 11 19:43:51 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4f7e0 as subsurface because its parent is not mapped.
oct. 11 19:43:51 pasokon.maison firefox[170755]: Couldn't map window 0x7fe96a9d6120 as subsurface because its parent is not mapped.
oct. 11 19:43:51 pasokon.maison firefox[170755]: Couldn't map window 0x7fe96a9d5420 as subsurface because its parent is not mapped.
oct. 11 19:43:52 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4c720 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:43:52 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4f4a0 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:43:52 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4f7e0 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:43:52 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe96a9d6120 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:43:52 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe96a9d5420 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:43:52 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4c720 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:43:52 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4f4a0 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:43:52 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4f7e0 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:43:52 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe96a9d6120 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:43:52 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe96a9d5420 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:43:52 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4c720 as subsurface because its parent is not mapped.
oct. 11 19:43:52 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4f4a0 as subsurface because its parent is not mapped.
oct. 11 19:43:52 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4f7e0 as subsurface because its parent is not mapped.
oct. 11 19:43:52 pasokon.maison firefox[170755]: Couldn't map window 0x7fe96a9d6120 as subsurface because its parent is not mapped.
oct. 11 19:43:52 pasokon.maison firefox[170755]: Couldn't map window 0x7fe96a9d5420 as subsurface because its parent is not mapped.
oct. 11 19:43:52 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4c720 as subsurface because its parent is not mapped.
oct. 11 19:43:52 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4f4a0 as subsurface because its parent is not mapped.
oct. 11 19:43:52 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4f7e0 as subsurface because its parent is not mapped.
oct. 11 19:43:52 pasokon.maison firefox[170755]: Couldn't map window 0x7fe96a9d6120 as subsurface because its parent is not mapped.
oct. 11 19:43:52 pasokon.maison firefox[170755]: Couldn't map window 0x7fe96a9d5420 as subsurface because its parent is not mapped.
oct. 11 19:43:53 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:43:53 pasokon.maison firefox[170755]: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed
oct. 11 19:43:53 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:43:53 pasokon.maison firefox[170755]: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed
oct. 11 19:45:02 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4c720 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:02 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4f4a0 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:02 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4f7e0 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:02 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe96a9d6120 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:02 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe96a9d5420 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:02 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4c720 as subsurface because its parent is not mapped.
oct. 11 19:45:02 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4f4a0 as subsurface because its parent is not mapped.
oct. 11 19:45:02 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4f7e0 as subsurface because its parent is not mapped.
oct. 11 19:45:02 pasokon.maison firefox[170755]: Couldn't map window 0x7fe96a9d6120 as subsurface because its parent is not mapped.
oct. 11 19:45:02 pasokon.maison firefox[170755]: Couldn't map window 0x7fe96a9d5420 as subsurface because its parent is not mapped.
oct. 11 19:45:02 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:02 pasokon.maison firefox[170755]: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed
oct. 11 19:45:02 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:02 pasokon.maison firefox[170755]: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed
oct. 11 19:45:03 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4c720 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:03 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4f4a0 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:03 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4f7e0 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:03 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe96a9d6120 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:03 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe96a9d5420 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:03 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4c720 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:03 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4f4a0 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:03 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4f7e0 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:03 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe96a9d6120 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:03 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe96a9d5420 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:03 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4c720 as subsurface because its parent is not mapped.
oct. 11 19:45:03 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4f4a0 as subsurface because its parent is not mapped.
oct. 11 19:45:03 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4f7e0 as subsurface because its parent is not mapped.
oct. 11 19:45:03 pasokon.maison firefox[170755]: Couldn't map window 0x7fe96a9d6120 as subsurface because its parent is not mapped.
oct. 11 19:45:03 pasokon.maison firefox[170755]: Couldn't map window 0x7fe96a9d5420 as subsurface because its parent is not mapped.
oct. 11 19:45:03 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4c720 as subsurface because its parent is not mapped.
oct. 11 19:45:03 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4f4a0 as subsurface because its parent is not mapped.
oct. 11 19:45:03 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4f7e0 as subsurface because its parent is not mapped.
oct. 11 19:45:03 pasokon.maison firefox[170755]: Couldn't map window 0x7fe96a9d6120 as subsurface because its parent is not mapped.
oct. 11 19:45:03 pasokon.maison firefox[170755]: Couldn't map window 0x7fe96a9d5420 as subsurface because its parent is not mapped.
oct. 11 19:45:10 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4c720 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:10 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4f4a0 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:10 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4f7e0 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:10 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe96a9d6120 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:10 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe96a9d5420 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:10 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4c720 as subsurface because its parent is not mapped.
oct. 11 19:45:10 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4f4a0 as subsurface because its parent is not mapped.
oct. 11 19:45:10 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4f7e0 as subsurface because its parent is not mapped.
oct. 11 19:45:10 pasokon.maison firefox[170755]: Couldn't map window 0x7fe96a9d6120 as subsurface because its parent is not mapped.
oct. 11 19:45:10 pasokon.maison firefox[170755]: Couldn't map window 0x7fe96a9d5420 as subsurface because its parent is not mapped.
oct. 11 19:45:11 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4c720 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:11 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4f4a0 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:11 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4f7e0 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:11 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe96a9d6120 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:11 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe96a9d5420 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:11 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4c720 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:11 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4f4a0 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:11 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4f7e0 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:11 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4c720 as subsurface because its parent is not mapped.
oct. 11 19:45:11 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe96a9d6120 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:11 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe96a9d5420 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:11 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4f4a0 as subsurface because its parent is not mapped.
oct. 11 19:45:11 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4f7e0 as subsurface because its parent is not mapped.
oct. 11 19:45:11 pasokon.maison firefox[170755]: Couldn't map window 0x7fe96a9d6120 as subsurface because its parent is not mapped.
oct. 11 19:45:11 pasokon.maison firefox[170755]: Couldn't map window 0x7fe96a9d5420 as subsurface because its parent is not mapped.
oct. 11 19:45:11 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4c720 as subsurface because its parent is not mapped.
oct. 11 19:45:11 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4f4a0 as subsurface because its parent is not mapped.
oct. 11 19:45:11 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4f7e0 as subsurface because its parent is not mapped.
oct. 11 19:45:11 pasokon.maison firefox[170755]: Couldn't map window 0x7fe96a9d6120 as subsurface because its parent is not mapped.
oct. 11 19:45:11 pasokon.maison firefox[170755]: Couldn't map window 0x7fe96a9d5420 as subsurface because its parent is not mapped.
oct. 11 19:45:18 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4c720 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:18 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4f4a0 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:18 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4f7e0 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:18 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe96a9d6120 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:18 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe96a9d5420 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:18 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4c720 as subsurface because its parent is not mapped.
oct. 11 19:45:18 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4f4a0 as subsurface because its parent is not mapped.
oct. 11 19:45:18 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4f7e0 as subsurface because its parent is not mapped.
oct. 11 19:45:18 pasokon.maison firefox[170755]: Couldn't map window 0x7fe96a9d6120 as subsurface because its parent is not mapped.
oct. 11 19:45:18 pasokon.maison firefox[170755]: Couldn't map window 0x7fe96a9d5420 as subsurface because its parent is not mapped.
oct. 11 19:45:20 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4c720 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:20 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4f4a0 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:20 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4f7e0 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:20 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe96a9d6120 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:20 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe96a9d5420 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:20 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4c720 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:20 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4f4a0 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:20 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe979f4f7e0 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:20 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4c720 as subsurface because its parent is not mapped.
oct. 11 19:45:20 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe96a9d6120 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:20 pasokon.maison firefox[170755]: [Parent 170755, Main Thread] WARNING: Couldn't map window 0x7fe96a9d5420 as subsurface because its parent is not mapped.: 'glib warning', file /var/tmp/portage/www-client/firefox-131.0.2/work/firefox-131.0.2/toolkit/xre/nsSigHandlers.cpp:187
oct. 11 19:45:20 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4f4a0 as subsurface because its parent is not mapped.
oct. 11 19:45:20 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4f7e0 as subsurface because its parent is not mapped.
oct. 11 19:45:20 pasokon.maison firefox[170755]: Couldn't map window 0x7fe96a9d6120 as subsurface because its parent is not mapped.
oct. 11 19:45:20 pasokon.maison firefox[170755]: Couldn't map window 0x7fe96a9d5420 as subsurface because its parent is not mapped.
oct. 11 19:45:20 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4c720 as subsurface because its parent is not mapped.
oct. 11 19:45:20 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4f4a0 as subsurface because its parent is not mapped.
oct. 11 19:45:20 pasokon.maison firefox[170755]: Couldn't map window 0x7fe979f4f7e0 as subsurface because its parent is not mapped.
oct. 11 19:45:20 pasokon.maison firefox[170755]: Couldn't map window 0x7fe96a9d6120 as subsurface because its parent is not mapped.
oct. 11 19:45:20 pasokon.maison firefox[170755]: Couldn't map window 0x7fe96a9d5420 as subsurface because its parent is not mapped.

I can also see something about kde6 and pulseaudio (I use pipewire actually):

oct. 11 19:43:40 pasokon.maison kded6[169513]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.analog-stereo.monitor"
oct. 11 19:43:52 pasokon.maison kded6[169513]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.analog-stereo.monitor"
oct. 11 19:44:51 pasokon.maison kded6[169513]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.analog-stereo.monitor"
oct. 11 19:45:21 pasokon.maison kded6[169513]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.analog-stereo.monitor"

Same things with plasmashell:

oct. 11 19:43:40 pasokon.maison plasmashell[169577]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.analog-stereo.monitor"
oct. 11 19:43:53 pasokon.maison plasmashell[169577]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.analog-stereo.monitor"
oct. 11 19:44:51 pasokon.maison plasmashell[169577]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.analog-stereo.monitor"
oct. 11 19:45:21 pasokon.maison plasmashell[169577]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.analog-stereo.monitor"

Same thing with kdeconnectd:

oct. 11 19:43:40 pasokon.maison kdeconnectd[169923]: 2024-10-11T19:43:40 org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.analog-stereo.monitor"
oct. 11 19:43:52 pasokon.maison kdeconnectd[169923]: 2024-10-11T19:43:52 org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.analog-stereo.monitor"
oct. 11 19:44:51 pasokon.maison kdeconnectd[169923]: 2024-10-11T19:44:51 org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.analog-stereo.monitor"
oct. 11 19:45:21 pasokon.maison kdeconnectd[169923]: 2024-10-11T19:45:21 org.kde.pulseaudio: No object for name "alsa_output.pci-0000_00_1f.3.analog-stereo.monitor"

And… I don’t know where or what else to look.
Comment 6 Jakob Petsovits 2024-10-11 20:34:14 UTC
Thanks. Let's set this back to REPORTED and see if the KWin devs have any thoughts on it.
Comment 7 Zamundaaa 2024-10-23 14:52:50 UTC
How often does the sound play? Like every few seconds?
Comment 8 Julien Delquié 2024-10-23 15:27:35 UTC
(In reply to Zamundaaa from comment #7)
> How often does the sound play? Like every few seconds?

I would say :
- 1 second between disconnection sound and connection sound,
- 5 seconds between connection sound and disconnection sound.

This, in loop, until I wake up screens.
Comment 9 Zamundaaa 2024-10-23 15:38:35 UTC
Okay, that definitely sounds like the screen and/or GPU driver are doing funny things. It doesn't affect KWin directly, because it has a workaround for screens that do such nonsense (https://invent.kde.org/plasma/kwin/-/merge_requests/2940) but the device notifier doesn't have that.
Comment 10 Julien Delquié 2024-10-23 16:17:27 UTC
In case these information are useful, here are my screens (I removed the serial numbers and binary serial numbers):

$ ddcutil detect
Display 1
   I2C bus:  /dev/i2c-6
   DRM connector:           card0-HDMI-A-1
   EDID synopsis:
      Mfg id:               AUS - UNK
      Model:                VZ249
      Product code:         9420  (0x24cc)
      Serial number:        
      Binary serial number: 
      Manufacture year:     2019,  Week: 12
   VCP version:         2.1

Display 2
   I2C bus:  /dev/i2c-8
   DRM connector:           card0-DP-2
   EDID synopsis:
      Mfg id:               AUS - UNK
      Model:                VG249QM1A
      Product code:         9263  (0x242f)
      Serial number:        
      Binary serial number: 
      Manufacture year:     2023,  Week: 33
   VCP version:         2.2

The DisplayPort screen is my primary screen (on the right), and the HDMI screen is my secondary screen (on the left)
Comment 11 sebi.loew 2024-10-26 10:34:56 UTC
I can confirm this bug since plasma 6.2 (now also with 6.2.2) with fedora 40.
No chance for my monitors that they go to sleep. Only workaround is to use standby every time I leave my pc.
Doesn't matter if it is the lockscreen or normal desktop.

Before plasma 6.2 I never encountered this bug. Hardware didn`t change.
Comment 12 Metz 2024-10-27 12:08:42 UTC
I can confirm this behavior. When my 3 displays go to standby its starts with a disconnect / connect loop. it is relatively inconsistent when the problem gets triggered. but i just tested with a 60 second timeout and got this:


Okt 27 12:42:00 x570 kded6[1458]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_0e_00.4.analog-stereo.monitor"
Okt 27 12:42:00 x570 plasmashell[2958]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_0e_00.4.analog-stereo.monitor"
Okt 27 12:42:00 x570 kded6[1458]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_0e_00.4.analog-stereo.monitor"
Okt 27 12:42:00 x570 kded6[1458]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_0e_00.4.analog-stereo.monitor"
Okt 27 12:42:00 x570 kernel: amdgpu 0000:0c:00.0: [drm] REG_WAIT timeout 1us * 100 tries - dcn32_program_compbuf_size line:140
Okt 27 12:42:01 x570 kded6[1458]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_0e_00.4.analog-stereo.monitor"
Okt 27 12:42:01 x570 kded6[1458]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_0e_00.4.analog-stereo.monitor"
Okt 27 12:42:01 x570 kded6[1458]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_0e_00.4.analog-stereo.monitor"
Okt 27 12:42:01 x570 kded6[1458]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_0e_00.4.analog-stereo.monitor"
Okt 27 12:42:01 x570 kded6[1458]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_0e_00.4.analog-stereo.monitor"
Okt 27 12:42:01 x570 kded6[1458]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_0e_00.4.analog-stereo.monitor"
Okt 27 12:42:01 x570 kded6[1458]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_0e_00.4.analog-stereo.monitor"
Okt 27 12:42:01 x570 kded6[1458]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_0e_00.4.analog-stereo.monitor"
Okt 27 12:42:01 x570 org_kde_powerdevil[1574]: Sleep event. connector=card1-DP-1, dref not set
Okt 27 12:42:03 x570 org_kde_powerdevil[1574]: Emitting DDCA_Display_Status_Event( 3160.632:  DDCA_EVENT_DPMS_ASLEEP, card1-DP-1, dref: Display_Ref[NULL], io_path:/dev/i2c-6]
Okt 27 12:42:03 x570 org_kde_powerdevil[1574]: Executed 1 registered callbacks.
Okt 27 12:42:03 x570 org_kde_powerdevil[1574]: Emitting DDCA_Display_Status_Event( 3160.632:  DDCA_EVENT_DPMS_ASLEEP, card1-DP-3, dref: Display_Ref[bus /dev/i2c-8], io_path:/dev/i2c-8]
Okt 27 12:42:03 x570 org_kde_powerdevil[1574]: Executed 1 registered callbacks.
Okt 27 12:42:03 x570 org_kde_powerdevil[1574]: Emitting DDCA_Display_Status_Event( 3160.632:  DDCA_EVENT_DPMS_ASLEEP, card1-HDMI-A-1, dref: Display_Ref[bus /dev/i2c-5], io_path:/dev/i2c-5]
Okt 27 12:42:03 x570 org_kde_powerdevil[1574]: Executed 1 registered callbacks.
Okt 27 12:42:09 x570 org_kde_powerdevil[1574]: Delaying 6 seconds to avoid a false disconnect/connect sequence...
Okt 27 12:42:16 x570 org_kde_powerdevil[1574]: DRM connectors with newly disconnected displays: card1-HDMI-A-1
Okt 27 12:42:16 x570 org_kde_powerdevil[1574]: Removing connected display, drm_connector: card1-HDMI-A-1, dref Display_Ref[bus /dev/i2c-5]
Okt 27 12:42:18 x570 org_kde_powerdevil[1574]: Emitting DDCA_Display_Status_Event( 3175.638:  DDCA_EVENT_DISPLAY_DISCONNECTED, card1-HDMI-A-1, dref: Display_Ref[bus /dev/i2c-5], io_path:/dev/i2c-5]
Okt 27 12:42:18 x570 org_kde_powerdevil[1574]: Executed 1 registered callbacks.
Okt 27 12:42:21 x570 org_kde_powerdevil[1574]: Emitting DDCA_Display_Status_Event( 3178.639:  DDCA_EVENT_DISPLAY_CONNECTED, card1-HDMI-A-1, dref: Display_Ref[NULL], io_path:/dev/i2c-5]
Okt 27 12:42:21 x570 org_kde_powerdevil[1574]: Executed 1 registered callbacks.
Okt 27 12:42:21 x570 org_kde_powerdevil[1574]: Sleep event. connector=card1-HDMI-A-1, dref not set
Okt 27 12:42:21 x570 org_kde_powerdevil[1574]: Display redetection starting.
Okt 27 12:42:21 x570 org_kde_powerdevil[1574]: Emitting DDCA_Display_Status_Event( 3180.640:  DDCA_EVENT_DPMS_ASLEEP, card1-HDMI-A-1, dref: Display_Ref[NULL], io_path:/dev/i2c-5]
Okt 27 12:42:21 x570 org_kde_powerdevil[1574]: Executed 1 registered callbacks.
Okt 27 12:42:21 x570 org_kde_powerdevil[1574]: Watch thread terminated.
Okt 27 12:42:21 x570 org_kde_powerdevil[1574]: busno=5, sleep-multiplier =  0,20. Testing for supported feature 0x10 returned Error_Info[DDCRC_DPMS_ASLEEP in ddc_write_read_with_retry, causes: EIO]
Okt 27 12:42:21 x570 org_kde_powerdevil[1574]: busno=8, sleep-multiplier =  2,00. Testing for supported feature 0x10 returned Error_Info[DDCRC_RETRIES in ddc_write_read_with_retry, causes: EREMOTEIO(10)]
Okt 27 12:42:21 x570 org_kde_powerdevil[1574]: busno=8, sleep-multiplier= 1,00.Retesting for supported feature 0x10 returned Error_Info[DDCRC_RETRIES in ddc_write_read_with_retry, causes: EREMOTEIO(10)]
Okt 27 12:42:23 x570 org_kde_powerdevil[1574]: busno=6, sleep-multiplier =  2,00. Testing for supported feature 0x10 returned Error_Info[DDCRC_RETRIES in ddc_write_read_with_retry, causes: ETIMEDOUT(10)]
Okt 27 12:42:23 x570 org_kde_powerdevil[1574]: Watch thread started
Okt 27 12:42:23 x570 org_kde_powerdevil[1574]: Display redetection finished.
Okt 27 12:42:26 x570 kded6[1458]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_0e_00.4.analog-stereo.monitor"
Okt 27 12:42:26 x570 plasmashell[2958]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_0e_00.4.analog-stereo.monitor"
Okt 27 12:42:36 x570 rtkit-daemon[1349]: Supervising 7 threads of 4 processes of 1 users.
Okt 27 12:42:36 x570 rtkit-daemon[1349]: Supervising 7 threads of 4 processes of 1 users.

So my suspicion was that pulseaudio detects the HDMI audio device of one of my 3 dispalys over and over again for some reason. so i disabled only this display and at first nothing happened. but after powering it back up i got the disconnect/connect sound again and this:

Okt 27 13:06:43 x570 kded6[1458]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_0e_00.4.analog-stereo.monitor"
Okt 27 13:06:43 x570 plasmashell[2958]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_0e_00.4.analog-stereo.monitor"
Okt 27 13:06:43 x570 firefox[8408]: [Parent 8408, Main Thread] WARNING: Couldn't map window 0x7a26934d2ae0 as subsurface because its parent is not mapped.: 'glib warning', file /usr/src/debug/firefox/firefox-131.0.3/toolkit/xre/nsSigHandlers.cpp:187
Okt 27 13:06:43 x570 firefox[8408]: [Parent 8408, Main Thread] WARNING: Couldn't map window 0x7a2693bb52c0 as subsurface because its parent is not mapped.: 'glib warning', file /usr/src/debug/firefox/firefox-131.0.3/toolkit/xre/nsSigHandlers.cpp:187
Okt 27 13:06:43 x570 firefox[8408]: [Parent 8408, Main Thread] WARNING: Couldn't map window 0x7a26934d2ae0 as subsurface because its parent is not mapped.: 'glib warning', file /usr/src/debug/firefox/firefox-131.0.3/toolkit/xre/nsSigHandlers.cpp:187
Okt 27 13:06:43 x570 firefox[8408]: [Parent 8408, Main Thread] WARNING: Couldn't map window 0x7a2693bb52c0 as subsurface because its parent is not mapped.: 'glib warning', file /usr/src/debug/firefox/firefox-131.0.3/toolkit/xre/nsSigHandlers.cpp:187
Okt 27 13:06:43 x570 firefox[8408]: Couldn't map window 0x7a26934d2ae0 as subsurface because its parent is not mapped.
Okt 27 13:06:43 x570 firefox[8408]: Couldn't map window 0x7a2693bb52c0 as subsurface because its parent is not mapped.
Okt 27 13:06:43 x570 firefox[8408]: Couldn't map window 0x7a26934d2ae0 as subsurface because its parent is not mapped.
Okt 27 13:06:43 x570 firefox[8408]: Couldn't map window 0x7a2693bb52c0 as subsurface because its parent is not mapped.
Okt 27 13:06:43 x570 systemsettings[11600]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_0e_00.4.analog-stereo.monitor"
Okt 27 13:06:44 x570 org_kde_powerdevil[1574]: Sleep event. connector=card1-HDMI-A-1, dref not set
Okt 27 13:06:44 x570 org_kde_powerdevil[1574]: Delaying 6 seconds to avoid a false disconnect/connect sequence...
Okt 27 13:06:44 x570 firefox[8408]: [Parent 8408, Main Thread] WARNING: Couldn't map window 0x7a26934d2ae0 as subsurface because its parent is not mapped.: 'glib warning', file /usr/src/debug/firefox/firefox-131.0.3/toolkit/xre/nsSigHandlers.cpp:187
Okt 27 13:06:44 x570 firefox[8408]: [Parent 8408, Main Thread] WARNING: Couldn't map window 0x7a2693bb52c0 as subsurface because its parent is not mapped.: 'glib warning', file /usr/src/debug/firefox/firefox-131.0.3/toolkit/xre/nsSigHandlers.cpp:187
Okt 27 13:06:44 x570 firefox[8408]: Couldn't map window 0x7a26934d2ae0 as subsurface because its parent is not mapped.
Okt 27 13:06:44 x570 firefox[8408]: Couldn't map window 0x7a2693bb52c0 as subsurface because its parent is not mapped.
Okt 27 13:06:44 x570 firefox[8408]: [Parent 8408, Main Thread] WARNING: Couldn't map window 0x7a26934d2ae0 as subsurface because its parent is not mapped.: 'glib warning', file /usr/src/debug/firefox/firefox-131.0.3/toolkit/xre/nsSigHandlers.cpp:187
Okt 27 13:06:44 x570 firefox[8408]: [Parent 8408, Main Thread] WARNING: Couldn't map window 0x7a2693bb52c0 as subsurface because its parent is not mapped.: 'glib warning', file /usr/src/debug/firefox/firefox-131.0.3/toolkit/xre/nsSigHandlers.cpp:187
Okt 27 13:06:44 x570 firefox[8408]: Couldn't map window 0x7a26934d2ae0 as subsurface because its parent is not mapped.
Okt 27 13:06:44 x570 firefox[8408]: Couldn't map window 0x7a2693bb52c0 as subsurface because its parent is not mapped.
Okt 27 13:06:44 x570 firefox[8408]: [Parent 8408, Main Thread] WARNING: Couldn't map window 0x7a26934d2ae0 as subsurface because its parent is not mapped.: 'glib warning', file /usr/src/debug/firefox/firefox-131.0.3/toolkit/xre/nsSigHandlers.cpp:187
Okt 27 13:06:44 x570 firefox[8408]: [Parent 8408, Main Thread] WARNING: Couldn't map window 0x7a2693bb52c0 as subsurface because its parent is not mapped.: 'glib warning', file /usr/src/debug/firefox/firefox-131.0.3/toolkit/xre/nsSigHandlers.cpp:187
Okt 27 13:06:44 x570 firefox[8408]: Couldn't map window 0x7a26934d2ae0 as subsurface because its parent is not mapped.
Okt 27 13:06:44 x570 firefox[8408]: Couldn't map window 0x7a2693bb52c0 as subsurface because its parent is not mapped.
Okt 27 13:06:44 x570 systemsettings[11600]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_0e_00.4.analog-stereo.monitor"
Okt 27 13:06:44 x570 systemsettings[11600]: qrc:/kcm/kcm_pulseaudio/CardListItem.qml:16:5: TypeError: Cannot read property 'width' of null
Okt 27 13:06:44 x570 kded6[1458]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_0e_00.4.analog-stereo.monitor"
Okt 27 13:06:45 x570 plasmashell[2958]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_0e_00.4.analog-stereo.monitor"
Okt 27 13:06:52 x570 org_kde_powerdevil[1574]: stabilized_connector_names required 1 extra calls to get_sysfs_drm_connector_names()

So yeah, i would say that is more a pulseaudio problem.
Comment 13 Julien Delquié 2024-10-27 12:16:02 UTC
On my side, I use PipeWire.
The screen using HDMI has no audio options.
The screen using DisplayPort has audio options, but muted.
Comment 14 Metz 2024-10-27 12:35:14 UTC
Yeah i had to check. I'm on EndeavourOS (arch) and it is using Pipewire as well but with pipewire-pulse as drop-in replacement for native Pulseaudio. so its Pulseaudio on top of Pipewire if i understand this correctly.

in the Sound System Settings i got

Line Out = Analog Stereo Output. Which is my normal soundcard with speakers.
and
Navi 31 HDMI/DP Audio set to Off. I have 3 other options there. "HDMI", "HDMI 4" and "Pro Audio"

I just thought i had a eureka moment because it only triggered the problem when set to "off" and not when set to "HDMI" but now it does that as well again. it is very inconsistent. i have to do more tests.
Comment 15 Zamundaaa 2024-10-28 15:55:54 UTC
(In reply to sebi.loew from comment #11)
> I can confirm this bug since plasma 6.2 (now also with 6.2.2) with fedora 40.
> No chance for my monitors that they go to sleep. Only workaround is to use
> standby every time I leave my pc.
> Doesn't matter if it is the lockscreen or normal desktop.
> 
> Before plasma 6.2 I never encountered this bug. Hardware didn`t change.
The problem of constant connection/disconnections was almost certainly already there before; it's only now made visible (or rather audible) by Plasma 6.2 making a sound when it happens.
Ideally we'd fix the underlying issue of course, but that hasn't happened in the past two decades, so I wouldn't wait for that. I think the device notifier just needs the same workaround as KWin has.
Comment 16 sebi.loew 2024-10-29 10:35:40 UTC
(In reply to Zamundaaa from comment #15)
> (In reply to sebi.loew from comment #11)
> > I can confirm this bug since plasma 6.2 (now also with 6.2.2) with fedora 40.
> > No chance for my monitors that they go to sleep. Only workaround is to use
> > standby every time I leave my pc.
> > Doesn't matter if it is the lockscreen or normal desktop.
> > 
> > Before plasma 6.2 I never encountered this bug. Hardware didn`t change.
> The problem of constant connection/disconnections was almost certainly
> already there before; it's only now made visible (or rather audible) by
> Plasma 6.2 making a sound when it happens.
> Ideally we'd fix the underlying issue of course, but that hasn't happened in
> the past two decades, so I wouldn't wait for that. I think the device
> notifier just needs the same workaround as KWin has.

But does the notifier also ensure that my screen no longer goes into standby mode? It's not just the sound; the monitor also briefly becomes brighter (without displaying an image) and then goes dark again, and so on. This definitely wasn’t happening before—back then, the monitor would go into power-saving mode.
Comment 17 major-mayer 2024-11-26 17:21:40 UTC
(In reply to sebi.loew from comment #16)
> (In reply to Zamundaaa from comment #15)
> > (In reply to sebi.loew from comment #11)
> > > I can confirm this bug since plasma 6.2 (now also with 6.2.2) with fedora 40.
> > > No chance for my monitors that they go to sleep. Only workaround is to use
> > > standby every time I leave my pc.
> > > Doesn't matter if it is the lockscreen or normal desktop.
> > > 
> > > Before plasma 6.2 I never encountered this bug. Hardware didn`t change.
> > The problem of constant connection/disconnections was almost certainly
> > already there before; it's only now made visible (or rather audible) by
> > Plasma 6.2 making a sound when it happens.
> > Ideally we'd fix the underlying issue of course, but that hasn't happened in
> > the past two decades, so I wouldn't wait for that. I think the device
> > notifier just needs the same workaround as KWin has.
> 
> But does the notifier also ensure that my screen no longer goes into standby
> mode? It's not just the sound; the monitor also briefly becomes brighter
> (without displaying an image) and then goes dark again, and so on. This
> definitely wasn’t happening before—back then, the monitor would go into
> power-saving mode.

Same problem here on Manjaro Unstable, but in my case both displays don't become brighter when the notification sound appears.
The first one is connected via HDMI and has no speakers, while the second one is connected via DisplayPort and has the speakers turned off (in Plasma and the display itself).

Operating System: Manjaro Linux rolling
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.12.1-4-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 6 × Intel® Core™ i5-8600K CPU @ 3.60GHz
Memory: 31.2 GiB of RAM
Graphics Processor: AMD Radeon RX 6800 (DP/ HDMI Connection) + Intel Corporation CoffeeLake-S GT2 [UHD Graphics 630] (not connected)
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7B46
System Version: 1.0
Comment 18 TraceyC 2024-11-27 17:52:09 UTC
*** Bug 495215 has been marked as a duplicate of this bug. ***
Comment 19 Julien Delquié 2024-11-27 18:50:13 UTC
I found something interesting, If I turn off (with its button) my DisplayPort Screen, the infinite loop sounds stop.
As a reminder, my other screen uses HDMI.

And of course, if I switch on my DisplayPort Screen, the infinite loop sounds start again.