Bug 478928 - After a while, the sound control hotkeys stop working
Summary: After a while, the sound control hotkeys stop working
Status: RESOLVED FIXED
Alias: None
Product: plasma-pa
Classification: Plasma
Component: general (show other bugs)
Version: 5.27.10
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-23 11:00 UTC by Konstantin
Modified: 2024-03-10 03:52 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin 2023-12-23 11:00:11 UTC
After recent updates, the sound control hotkeys stop working after a while.

I have a microphone mute assigned to the Scroll Lock key.

After some time after turning on the system (30min-hour), the sound control hotkeys that I assigned and the volume control keys on the keyboard stop working.

Reassigning the keys doesn't help, it doesn't work anyway.

Only a reboot helps.

Operating System: Arch Linux 
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.113.0
Qt Version: 5.15.11
Kernel Version: 6.6.7-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 32 × Intel® Core™ i9-14900KF
Memory: 62.6 ГиБ of RAM
Graphics Processor: NVIDIA GeForce RTX 4080/PCIe/SSE2
Manufacturer: ASUS
Comment 1 Nate Graham 2024-02-16 04:20:12 UTC
Just those keys? Or any other global shortcuts affected as well? For example the ones to control screen brightness, wifi status, etc.
Comment 2 Konstantin 2024-02-16 07:02:19 UTC
(In reply to Nate Graham from comment #1)
> Just those keys? Or any other global shortcuts affected as well? For example
> the ones to control screen brightness, wifi status, etc.

I don't have a laptop, but a PC, and there are only volume control keys on the keyboard. But that's not the point. Sometimes it turns out that the sound control keys stop working, no matter what I assign. They just suddenly stop working.

For example, I set the microphone to turn off on Scroll Lock. After a while, this key stops turning off the microphone, and even if I assign another button to turn off the microphone, it also does not work.

After a reboot, everything works, but after a while it randomly sometimes stops working again.
Comment 3 Nate Graham 2024-02-16 18:21:30 UTC
I get it. But the reason why I asked is to try to determine if the problem is specific to only the keys handed by plasma-pa, or if it affects everything on the system. Can you answer the question please?
Comment 4 Konstantin 2024-02-16 18:41:05 UTC
(In reply to Nate Graham from comment #3)
> I get it. But the reason why I asked is to try to determine if the problem
> is specific to only the keys handed by plasma-pa, or if it affects
> everything on the system. Can you answer the question please?

I have 3 additional keys on my keyboard.
Increase the sound
Reduce the sound
Turn off the sound

Additionally, I have configured to turn off the microphone on the Scr Lock.

When a bug occurs, none of the keys work.
Comment 5 Nate Graham 2024-02-20 19:51:07 UTC
Can you try a global shortcut not involving sound, such as Meta+E to launch Dolphin, or Meta+period to launch Emoji picker? Do those still work when your volume keys are not working?
Comment 6 Konstantin 2024-02-20 20:41:21 UTC
I remember for sure that Alt+Tab works. Meta+E too.
Comment 7 Nate Graham 2024-02-20 22:34:24 UTC
In that case it sounds like global shortcuts in general are working, and it's only your volume keys that aren't. That makes me suspicious or something in the Audio Volume widget, which defined these shortcuts in Plasma 5.27 (in Plasma 6 they're provided by something more global which is more robust).

Did you by any chance remove your Audio Volume widget, or disable it from the System Tray, or did the update have the effect of doing anything like that?
Comment 8 Konstantin 2024-02-21 08:51:28 UTC
I didn't touch anything or turn anything off. Perhaps it has something to do with the taskbar hanging (you said that this will be fixed in KDE 6). When the panel freezes, I use this script:

#!/bin/bash
plasmashell --replace & disown

But the problem with broken sound keys occurs by accident, I do not know what it is related to.
Comment 9 Nate Graham 2024-02-21 16:09:33 UTC
Yep, very relevant. In Plasma 5, the volume shortcuts are defined by the Audio Volume widget, which runs in-process. So when Plasma hangs, the shortcuts stop working. This will be fixed once those shortcuts are moved to a KDED module, per Bug 391578 (I was wrong for saying this has happened already in Plasma 6; I was misremembering the status of the work).

*** This bug has been marked as a duplicate of bug 391578 ***
Comment 10 Konstantin 2024-02-21 17:37:45 UTC
You marked it as a duplicate, but maybe it's a completely different mistake. Because it occurs even without the bottom panel hanging. In the previous post, I just suggested that it might be because of the script that I use, but it happens without it. When the panel does not freeze
Comment 11 Nate Graham 2024-02-21 17:42:43 UTC
The script that you use fixes it. If that fixes it, it indicates that *something* in Plasma has hung to make this happen. Hence, it will still be fixed by fixing Bug 391578.
Comment 12 Konstantin 2024-02-21 18:00:38 UTC
No, the script I'm using doesn't fix it. It only helps to remove the panel hang. He doesn't fix keyboard shortcuts.

I assumed that it could somehow affect the fact that the keys stop working. But the fact is that the problem with the keys happens even without using a script. Maybe this is the same error, if the problem remains after correcting that error, I will write here or create a new request.
Comment 13 Nate Graham 2024-02-21 20:58:19 UTC
In that case, I'm out of ideas.
Comment 14 Intergalactic Narwhal 2024-03-06 22:31:08 UTC
I have the same issue, if there is anything else you would like me to test I'd be happy to help. As I'm writing this, the volume controls are not working but everything else is fine (changing the brightness, using Meta + E for Dolphin works).
Comment 15 Konstantin 2024-03-07 03:44:03 UTC
(In reply to Intergalactic Narwhal from comment #14)
> I have the same issue, if there is anything else you would like me to test
> I'd be happy to help. As I'm writing this, the volume controls are not
> working but everything else is fine (changing the brightness, using Meta + E
> for Dolphin works).

Is it already in Plasma 6 or 5?
Comment 16 Intergalactic Narwhal 2024-03-07 10:25:30 UTC
I'm on 6.0.0 on Fedora 40 at the moment.
Comment 17 Intergalactic Narwhal 2024-03-07 10:27:36 UTC
I haven't restarted my laptop since yesterday and now it's connected to an external display, keyboard & mouse through an USB-C adapter. The external keyboard doesn't have volume buttons but the internal keyboard works now.
Comment 18 Nate Graham 2024-03-08 21:49:43 UTC
Mr./Ms. Narwhal, did you happen to add and remove an Audio Volume widget and then not restart plasmashell when it happened? If so, then it's Bug 391578
Comment 19 Intergalactic Narwhal 2024-03-09 16:40:47 UTC
To be honest, I don't know. I was messing with the panel configuration, so it's a possibility. Now I'm on 6.0.1, had a restart and haven't experienced the issue since then.
Comment 20 Nate Graham 2024-03-10 03:33:40 UTC
In that case, *your* issue will probably be fixed by Bug 391578, but it sounds like it could be different from what Konstantin is reporting.

Konstantin, is this still intermittently happening?
Comment 21 Konstantin 2024-03-10 03:42:54 UTC
(In reply to Nate Graham from comment #20)
> In that case, *your* issue will probably be fixed by Bug 391578, but it
> sounds like it could be different from what Konstantin is reporting.
> 
> Konstantin, is this still intermittently happening?

Hello, Nate. I have been using Plasma 6 for several days (about 3 days) and have not encountered a bug yet. By the way, the bottom panel no longer freezes, I've been waiting for this bug to be fixed for almost 3 years.
Comment 22 Nate Graham 2024-03-10 03:52:59 UTC
Excellent, glad to hear it!