Bug 446756 - Sound volume popup doesn't show percents over 100% (with Pipewire??)
Summary: Sound volume popup doesn't show percents over 100% (with Pipewire??)
Status: RESOLVED UPSTREAM
Alias: None
Product: kmix
Classification: Applications
Component: general (show other bugs)
Version: 22.04.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Christian Esken
URL: https://gitlab.freedesktop.org/pipewi...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-09 21:59 UTC by Lyubomir
Modified: 2022-06-18 09:29 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
pipewire sound level issue (43.24 KB, image/png)
2021-12-09 21:59 UTC, Lyubomir
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lyubomir 2021-12-09 21:59:58 UTC
Created attachment 144410 [details]
pipewire sound level issue

SUMMARY
I'm using pipewire and in the audio volume tray applet i've checked "Raise maximum volume". Raising above 100% does show real volume in the tray applet, but does not show any number more than 100% in the popup.
local/gst-plugin-pipewire 1:0.3.40-1
    Multimedia graph framework - pipewire plugin
local/pipewire 1:0.3.40-1
    Low-latency audio/video router and processor
local/pipewire-alsa 1:0.3.40-1
    Low-latency audio/video router and processor - ALSA configuration
local/pipewire-jack 1:0.3.40-1
    Low-latency audio/video router and processor - JACK support
local/pipewire-pulse 1:0.3.40-1
    Low-latency audio/video router and processor - PulseAudio replacement
local/wireplumber 0.4.5-2
    Session / policy manager implementation for PipeWire

OBSERVED RESULT
See screenshot - real sound level is more than 100%.

EXPECTED RESULT
Real sound level shown, like say 115%.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
Kernel Version: 5.15.6-zen2-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-8250U CPU @ 1.60GHz
Memory: 7,6 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Comment 1 Nate Graham 2021-12-14 21:01:05 UTC
Huh, it's  working for me with PipeWire 0.3.40 on Fedora 35 in the Wayland session.
Comment 2 Lyubomir 2022-01-18 16:13:20 UTC
Furthermore there are some percents which don't work, for example on 20% there is no sound, and on 25% the sound goes noticeably higher  - probably somehow what's shown by Plasma as percents are not the real ones?? I'm not sure whether the percents that are not working are hard-coded, because i believe once time the 25% works and only the 20% doesn't, but other time both 20% and 25% don't work. In addition twice or thrice the change of sound level wasn't happening in reality, only Plasma printed higher or lower percents, but the sound continued to play at the same physical level. At other times (noticed this specifically at the "Audio Volume popup menu in the tray") if the sound is say at 35% and i click/lower it to say 7 percent or 15 percent or 20 percent it immediately returns to 35%.
Comment 3 Nate Graham 2022-01-18 20:18:03 UTC
It sounds very much like there is something wrong with PipeWire on your computer. I would recommend that you ask for help in an Arch-specific forum.
Comment 4 Lyubomir 2022-02-09 20:27:47 UTC
@Nate are you sure that the following specific part of this bug is not from Plasma side?

So if i use the mouse scroll wheel over the speaker tray icon sound volume goes above 100% and everything is just fine. However if i use the Fn + Up Arrow key on keyboard it doesn't go above 100% - and if it was already above 100% it reverts to 100% on trying to move up the volume.

I'm not really sure what gets how it works:
1. Plasma gets the volume up keyboard shortcut from keyboard and generates commands to (PipeWire??)?
OR
2. PipeWire gets the volume up keyboard shortcut from keyboard and sends signal to Plasma to display the sound volume level popup?
Comment 5 Lyubomir 2022-02-09 20:34:24 UTC
I think that in addition to the above, the issue with the sudden rough changes to sound volume also doesn't appear when i'm using the scroll wheel over the tray icon, only when using the keyboard.
Comment 6 tate 2022-05-10 18:24:48 UTC
had the same problem with osd not showing % over 100.  the problem seems to be kmix.  if you open kmix settings and disable (uncheck) show osd,  it will be fixed.  i dont know shit, but it seems the kmix volume osd is not the same as the audio volume osd.  the osd from the audio volume system tray widget works properly and does show volume over 100%.
Comment 7 Nate Graham 2022-05-10 18:51:35 UTC
That's correct!
Comment 8 Lyubomir 2022-05-10 18:57:29 UTC
I have no idea what program shows the popup in https://bugs.kde.org/attachment.cgi?id=144410... I think it is plasmashell. I've uninstalled kmix cause when i searched for kmix it didn't open its window no matter how many times i selected it in the Application Launcher. I still haven't rebooted but there is no change after uninstalling it, everything works the same broken way.
Comment 9 Lyubomir 2022-05-12 15:18:11 UTC
Thanks tate, your solution made almost all of the issues go away here.

1. I've had the issue that "kmix" entry doesn't open anything when using the Application Menu and selecting it. Not sure if bug. I've uninstalled  kmix package.
2. Since I uninstalled kmix package and then logged out and back in Plasma - Now the sound volume popup shows percents above 100% and does increase the sound actually above 100%.
2.1 Not sure if kmix ships with another implementation of the sound volume popup that looks the same as the plasmashell one, or it is really a single volume popup that was hijacked by kmix while it was installed.
2.2 Not sure why this kmix hijacking caused such problems. Kmix is installed by default with the kde-applications-meta package of Arch. Seems strange that I'm the only one complaining with this issue.
3. Now the volume changes doesn't have such issues with one level being significantly lower than the other levels, and no more large increases/decreases of sound between levels next to each other (like 45% and 50% for example). Volume change is smooth, except in 4 below.
4. Still I see sometimes it refuses to change between levels (as in refuses to "service" the request for volume change) or about 3-4 seconds, but it seems that these cases might have started to happen less rare/frequently than it was before kmix was uninstalled. Also, now when these "service refusing" happen, the volume sound level popup doesn't print the percentages as if they have changed (while not changed in reality), but prints the same stucked percentage number until it finally unstucks 3-4 seconds later and then it starts to work correctly again. This is bearable i think for now.
Comment 10 Lyubomir 2022-06-18 09:28:03 UTC
Moved to kmix, as this is what somehow causes the conflict. I'll leave the status to RESOLVED UPSTREAM until i get a reply from PipeWire in the linked bug whether this is not their fault.