Bug 1988850 - Pipewire with pulseaudio volume resets to 74% or muted
Summary: Pipewire with pulseaudio volume resets to 74% or muted
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: pipewire
Version: 34
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Wim Taymans
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-01 18:55 UTC by ValdikSS
Modified: 2021-08-02 10:36 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug


Attachments (Terms of Use)
PIPEWIRE_DEBUG=3 and PIPEWIRE_DEBUG=4 logs (176.05 KB, application/zip)
2021-08-01 19:05 UTC, ValdikSS
no flags Details

Description ValdikSS 2021-08-01 18:55:34 UTC
Description of problem:

When plugging the headphones into headphones port, the volume of the headphones becomes either 74% or 0% (muted). The same happens for the speakers upon unplugging the headphones. Volume levels are neither saved nor restored.

It seems that Pipewire is in conflict with Pulseaudio when no pipewire-pulse is installed, however this bug happens even when pulseaudio process is not running (stopped with systemctl --user stop pulseaudio.service pulseaudio.socket).


Version-Release number of selected component (if applicable):
pipewire.x86_64                                 0.3.32-1.fc34
pipewire-alsa.x86_64                            0.3.32-1.fc34
pipewire-jack-audio-connection-kit.x86_64       0.3.32-1.fc34
pipewire-libs.x86_64                            0.3.32-1.fc34
pulseaudio.x86_64                               14.2-3.fc34


How reproducible:
All the time


Steps to Reproduce:
1. Have Pulseaudio along with Pipewire (pipewire+pulseaudio, not pipewire-pulse, default configuration when upgrading Fedora 33→34)
2. Plug in the headphones to the jack
3. Disconnect the headphones

Actual results:
The volume of headphones is either 74% or muted upon connection, regardless of the previous volume levels. The volume of speakers is either 74% or muted upon headphones disconnection, regardless of the previous volume levels.


Expected results:
The volume and muted/unmuted state is saved and restored properly.


Additional info:
I've tried to disable volume restoring modules in pulseaudio, that didn't help. Even stopping pulseaudio process completely, letting pipewire handle everything, triggers this bug.
Everything is fine with pipewire-pulse (no real pulseaudio).

Comment 1 ValdikSS 2021-08-01 19:05:25 UTC
Created attachment 1809913 [details]
PIPEWIRE_DEBUG=3 and PIPEWIRE_DEBUG=4 logs

This is pipewire log running with PIPEWIRE_DEBUG=3, PIPEWIRE_DEBUG=4 and no pulseaudio process running.

1. Pipewire is started
2. Volume is decreased from 75% to 30-40% using alsamixer -c0
3. Headphones are plugged in
4. Volume is decreased from 75% to 30-40% using alsamixer -c0
5. Headphones are unplugged
6. Volume is decreased from 75% to 30-40% using alsamixer -c0

Comment 3 ValdikSS 2021-08-02 10:36:48 UTC
Pipewire developer says that installing Pipewire with plugins along with Pulseaudio is not supported, however this is exactly what happens on Fedora 33-34 upgrade.

>If you install PulseAudio along with PipeWire you need to disable all audio functionality in PipeWire. Usually this means uninstalling the alsa plugin, pipewire-pulse and jack support. This will remove an with-* files from the session manager config directory and disable all audio.
>With that in place, PipeWire doesn't do anything with audio and it can't be a pipewire bug.
>I suspect some audio parts are still routed to PipeWire, causing both pulseaudio and PipeWire to mess with the volume. This is not supported.


Note You need to log in before you can comment on or make changes to this bug.