| Summary: | [Regression] Infinite loop of device disconnection/connection notification sounds after screens go to sleep | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Julien Delquié <julien.dlq> |
| Component: | general | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | agurenko, antti.savo, kde, nate, navi, xaver.hugl |
| Priority: | NOR | Keywords: | regression |
| Version First Reported In: | 6.7.0 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Gentoo Packages | ||
| OS: | Linux | ||
| See Also: | https://bugs.kde.org/show_bug.cgi?id=494330 | ||
| Latest Commit: | https://invent.kde.org/plasma/kwin/-/commit/0f2c65f9339eb7820f9a28d28e680b98a743741b | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: | Remove infinite loop sound | ||
|
Description
Julien Delquié
2026-06-20 04:54:31 UTC
Created attachment 193415 [details] Remove infinite loop sound Okay, I'm not a Qt, KDE, etc. developer, but I tried something. I started with the fix at https://invent.kde.org/plasma/plasma-workspace/-/commit/bc268f1d8597b7545cf9c225138f11fd38874ef7 to find out which files were affected. I looked at the git-blame for what was done around this fix between Plasma 6.6.5 and 6.7.0. I came across this commit: https://invent.kde.org/plasma/plasma-workspace/-/commit/40e743b453f8ef1996adf804c3e5a0beaf02a961 From there… well, I understood that there were improvements and, more importantly, a crash fix (https://bugs.kde.org/show_bug.cgi?id=507691), so I didn't bother reverting the code to recompile plasma-workspace on my Gentoo system. So I used an LLM (Duck.ai GPT-5.4 nano) to help me understand what's happening in the commit https://invent.kde.org/plasma/plasma-workspace/-/commit/40e743b453f8ef1996adf804c3e5a0beaf02a961 associated with my explanation of the problem I encountered. This resulted in a patch that I tried myself (and whose contents I understood)... I applied it to the code from tag 6.7.0, recompiled plasma-workspace, and it works! I no longer have the infinite loop of sound! I don't know KDE's policy regarding the use of LLM, and I would understand if this wasn't correct, and I would be very sorry if I had done something wrong. Therefore, I recommend that you do not use the patch I am proposing as is, and instead wait for an official version from a KDE developer who knows very well what he is doing. I know I got this bug earlier, with a phone plugged in the computer, but I'm unable to reproduce it just by putting the screens to sleep The empty uuid does seem to be the cause, but I think it would be better to guard that in KWin directly. A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/9462 Can you test the MR, to make sure it actually fixes the issue? (In reply to Zamundaaa from comment #5) > Can you test the MR, to make sure it actually fixes the issue? I’m sorry, but it does not fix. :’( What I have performed: - remove the patch I have proposed for plasma-workspace and recompile it, - add the patch you have proposed for kwin and recompile it, - reboot, - lock my screen and wait for screen to be in sleep mode. The loop is back. :s There was a second sendDone that I overlooked. Does the updated MR work? (In reply to Zamundaaa from comment #7) > There was a second sendDone that I overlooked. Does the updated MR work? Just tested, and it works. :) Thank you! Git commit 1d45c66c1fcb6e03c3bc23322f84dc0fcf92889d by Xaver Hugl. Committed on 29/06/2026 at 12:02. Pushed by zamundaaa into branch 'master'. wayland/outputdevice: delay done event until the output has a UUID The output device is created immediately after the output, but the UUID is only set by workspace a bit later. Co-authored-by: Julien Delquié julien.dlq@gmail.com M +7 -1 src/wayland/outputdevice_v2.cpp https://invent.kde.org/plasma/kwin/-/commit/1d45c66c1fcb6e03c3bc23322f84dc0fcf92889d Git commit 0f2c65f9339eb7820f9a28d28e680b98a743741b by Xaver Hugl. Committed on 29/06/2026 at 13:06. Pushed by zamundaaa into branch 'Plasma/6.7'. wayland/outputdevice: delay done event until the output has a UUID The output device is created immediately after the output, but the UUID is only set by workspace a bit later. Co-authored-by: Julien Delquié julien.dlq@gmail.com (cherry picked from commit 1d45c66c1fcb6e03c3bc23322f84dc0fcf92889d) Co-authored-by: Xaver Hugl <xaver.hugl@kde.org> M +7 -1 src/wayland/outputdevice_v2.cpp https://invent.kde.org/plasma/kwin/-/commit/0f2c65f9339eb7820f9a28d28e680b98a743741b |