Bug 428557

Summary: Disabled audio devices are enabled again after reboot
Product: [Unmaintained] plasma-pa Reporter: Riccardo Robecchi <sephiroth_pk>
Component: generalAssignee: David Rosca <nowrep>
Status: RESOLVED UPSTREAM    
Severity: normal CC: nicolas.fella, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.20.2   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
URL: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/950
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Riccardo Robecchi 2020-11-01 13:06:52 UTC
SUMMARY
If I disable an audio device, e.g. my GPU's HDMI output, this device is then enabled again after I reboot the system.

STEPS TO REPRODUCE
1. Disable an audio device
2. Reboot the system 

OBSERVED RESULT
The device is enabled again.

EXPECTED RESULT
The device should stay disabled.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon Focal
KDE Plasma Version: 5.20.2
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.0

ADDITIONAL INFORMATION
Comment 1 Nicolas Fella 2020-11-01 14:21:05 UTC
How do you disable the device?
Comment 2 Riccardo Robecchi 2020-11-01 14:35:23 UTC
(In reply to Nicolas Fella from comment #1)
> How do you disable the device?

I open the plasma-pa widget, click on settings, select the audio item from the sidebar, then the "advanced" tab, then I disable the device.

I just realised that you don't actually need to reboot, a simple logout followed by a login is sufficient.
Comment 3 Nicolas Fella 2020-11-01 14:40:39 UTC
By disable you mean setting the profile to "Off"?
Comment 4 Riccardo Robecchi 2020-11-01 14:46:17 UTC
Yes, that is the case.
Comment 5 Nicolas Fella 2020-11-01 15:05:10 UTC
The issue seems to be that PulseAudio doesn't remember the profile setting across reboots. I assume this is the case for all profiles, not just "Off".

plasma-pa doesn't store the profile settings itself. When you select something in the combobox it just tells PulseAudio to switch to that profile and expects PulseAudio to remember that. Looks like we need to check whether that assumption is valid
Comment 6 Nicolas Fella 2020-11-01 16:14:45 UTC
On my laptop with PulseAudio 13.0 it stays off after reboot. On my other laptop with PulseAudio 13.99.2 it switches to another profile on reboot. Neon focal uses 13.99.1. Looks like newer PA versions behave differently in this regard
Comment 7 Nicolas Fella 2020-11-01 16:37:49 UTC
Upstream PulseAudio report: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/950