Pipewire with pulseaudio volume resets to 74% or muted
Version, Distribution, Desktop Environment:
Fedora 34
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
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).
How Reproducible:
All the time
Steps to Reproduce:
- Have Pulseaudio along with Pipewire (pipewire+pulseaudio, not pipewire-pulse, default configuration when upgrading Fedora 33→34)
- Plug in the headphones to the jack
- 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).
Volume data is not saved to .config/pipewire/media-session.d/default-routes
.
{
"default.route.alsa_card.pci-0000_00_1b.0:profile:off": [ ],
"default.route.alsa_card.pci-0000_00_1b.0:profile:output:analog-stereo+input:analog-stereo": [ ]
}
pipewire-debug.zip This is pipewire log running with PIPEWIRE_DEBUG=3, PIPEWIRE_DEBUG=4 and no pulseaudio process running.
- Pipewire is started
- Volume is decreased from 75% to 30-40% using alsamixer -c0
- Headphones are plugged in
- Volume is decreased from 75% to 30-40% using alsamixer -c0
- Headphones are unplugged
- Volume is decreased from 75% to 30-40% using alsamixer -c0
Fedora bug: https://bugzilla.redhat.com/show_bug.cgi?id=1988850