Bug 398538 - Simultaneous output volume control don't working as default anymore after some update
Summary: Simultaneous output volume control don't working as default anymore after som...
Status: RESOLVED FIXED
Alias: None
Product: plasma-pa
Classification: Plasma
Component: applet (show other bugs)
Version: 5.13.5
Platform: Gentoo Packages Linux
: NOR major
Target Milestone: ---
Assignee: David Rosca
URL:
Keywords: reproducible
: 400789 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-09-12 10:32 UTC by Ural
Modified: 2019-02-02 21:09 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.16.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ural 2018-09-12 10:32:00 UTC
Hello. I am always using latest plasma packages, built on gentoo. 
I use pulseaudio system-wide and added a virtual device for simultaneous output. It was working great, I used it as default for volume control (applet, mediakeys, etc). 
After some update (~1mo), it stopped working. I click applet and see, that 'Simultaneous output' is selected as default for volume control, however when I use mediakeys, it controls HDMI volume, which is not what I want. 
To control volume I need, I am disabling HDMI and use only one output. 

Please fix it, so when 'Simultaneous output' is selected as default, control it's volume, not the first real output. 

If I open applet settings, and click to Default radiobutton near first real output, it selects both, but after saving, it remains on 'simul..'
Comment 1 Félim Whiteley 2018-10-23 14:08:44 UTC
I can confirm this is happening on latest KDE Neon 18.04.1 with plasma 5.14

plasma-desktop/bionic,now 4:5.14.1-0xneon+18.04+bionic+build23
Comment 2 Félim Whiteley 2018-10-23 14:11:54 UTC
(In reply to Félim Whiteley from comment #1)
> I can confirm this is happening on latest KDE Neon 18.04.1 with plasma 5.14
> 
> plasma-desktop/bionic,now 4:5.14.1-0xneon+18.04+bionic+build23

I should clarify it worked at some point in the last 3-6months and broke a couple of versions back. Yes I know, should have reported sooner.

And the applet version is actually:

plasma-pa/bionic,now 4:5.14.1-0xneon+18.04+bionic+build16
Comment 3 Marco Rebhan 2018-11-17 11:58:57 UTC
Can confirm this is happening on my system. 

Operating System: Arch Linux 
KDE Plasma Version: 5.14.3
Qt Version: 5.11.2
KDE Frameworks Version: 5.52.0
Kernel Version: 4.19.1-arch1-1-ARCH
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-6600 CPU @ 3.30GHz
Memory: 23.5 GiB of RAM

PulseAudio version: 12.2
Comment 4 Giusy Digital 2018-11-22 09:48:00 UTC
Hello everyone, same issue reported here: https://bugs.kde.org/show_bug.cgi?id=400789

The title here has a small mistake. plasma-pa is not changing the default sink, it's only changing the volume on the first sink (usually the sink linked to the audio card, i.e. HDMI or Internal Card). In my experience, it was changing volume on the default sink when nothing was reproduced, but when I play something, the behavior is the same reported here.

Anyway, you can work around this bug getting rid of plasma-pa and installing Kmix. Configured in the right way, it can control only one sink chosen by the user (even a sink not configured as the default). The only lack is that you can't choose the default sink from the applet, but you can set it from command line using pacmd set-default-sink.

In your case, set the simultaneous output as the default sink from pacmd and choose from Kmix to control the simultaneous sink and everything will work.
Comment 5 Nate Graham 2018-11-24 21:11:23 UTC
*** Bug 400789 has been marked as a duplicate of this bug. ***
Comment 6 Giusy Digital 2018-11-24 21:29:32 UTC
STEPS TO REPRODUCE
1. You have a pulseaudio sink, let's call it "Stereo Internal Audio", linked to your sound card and it's the default after a fresh install.
2. Make a new pulseaudio sink, i.e. using PulseEffects, and let's make it the default sink.
3. Change the volume through keyboard key and PulseEffects default sink is affected correctly.
4. Let's start a song or a video file and you make sure that the default PulseEffects sink is used by the application.
5. Change the volume and you will see that PulseEffetcs sink IS NOT affected by plasma-pa. Volume is changed on the sound card sink: Stereo Internal Audio. You can also notice that nothing is changed in pulseaudio configuration: PulseEffects is still the default sink.
6. Stop the reproduction, close the mediaplayer application and change the volume again. PulseEffects is affected.

OBSERVED RESULT
plasma-pa does not respect the control on the default sink when an audio stream is reproduced.

EXPECTED RESULT
plasma-pa should always change the volume on the default sink, or at least it should let you choose the preferred sink to control even if it's not the default in the pulseaudio config, just like it's done in kmix.

ADDITIONAL INFORMATION
kmix is another volume manager and it lets you choose one sink to control and volume control always affects that sink even if it's not the default sink. While the behavior in plasma-pa is clearly a bug because considering that: 

- It does not let you choose a preferred sink to control;
- It lets you switch the default pulseaudio sink changing the pulseaudio configuration and the sink to be used by all applications

When you set a default sink different from the one associated to the sound card and reproduce something, it won't control the volume on default sink.
Comment 7 Stefanos Harhalakis 2018-12-24 20:44:51 UTC
I believe the problem is that it ignores virtual devices.

https://phabricator.kde.org/D17784 fixes it for me.
Comment 8 Giusy Digital 2019-02-02 12:00:54 UTC
Is it fixed then?

Anyway, KMix is working pretty fine for me and I don't need plasma-pa anymore. I wonder why Plasma did a volume manager for Pulseaudio if there's already something like KMix that works for ALSA and Pulseaudio.
Comment 9 Stefanos Harhalakis 2019-02-02 14:11:18 UTC
The patch got submitted and it works for me. I'd suggest trying it yourself.
Comment 10 Giusy Digital 2019-02-02 14:27:50 UTC
I'm not using plasma-pa anymore. Kmix is better because you can choose to control whatever output you want, even one that's not marked as the default sink.

Anyway, if it's working, you can switch the status of this bug report to fixed.
Comment 11 Nate Graham 2019-02-02 21:09:48 UTC
author	Stefanos Harhalakis <v13@v13.gr>	2019-01-22 14:55:13 +0100
committer	David Rosca <nowrep@gmail.com>	2019-01-24 10:12:44 +0100
commit	5dc7cca58a72cc6c357ac2457de6868ad3a61305 (patch)
tree	e2d227f0e1cd39bacb1ebcaa60d29ccb133a9d61
parent	a629c6257ff5f45614b6590542412d2f6955ee09 (diff)
Don't ignore default virtual devicesHEADmaster
Summary:
Ignoring virtual PA devices for volume control results in ignoring the
"Simultaneous output" devices. This makes it impossible to control them
with the volume keys, which is not what the user expects. As a workaround,
prefer not to ignore virtual devices that are marked as default.

Reviewers: broulik, drosca

Reviewed By: drosca

Subscribers: filipf, ngraham, cfeck, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D17784