Bug 2065167

Summary: pulseaudio not started automatically after login
Product: Red Hat Enterprise Linux 9 Reporter: Tomas Pelka <tpelka>
Component: pulseaudioAssignee: Wim Taymans <wtaymans>
Status: CLOSED WONTFIX QA Contact: Tomas Pelka <tpelka>
Severity: unspecified Docs Contact: Marek Suchánek <msuchane>
Priority: unspecified    
Version: 9.0CC: jkysela, msuchane, ndegraef, sbarcomb, wtaymans
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-23 12:54:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2065175    

Description Tomas Pelka 2022-03-17 12:46:05 UTC
Description of problem:
Seems that after swapping pulseaudio for pipewire the pulseaudio deamon is not started by deafut after session is started

Version-Release number of selected component (if applicable):
pulseaudio-libs-15.0-2.el9.x86_64
pulseaudio-libs-glib2-15.0-2.el9.x86_64
pulseaudio-15.0-2.el9.x86_64
pulseaudio-module-bluetooth-15.0-2.el9.x86_64
pulseaudio-utils-15.0-2.el9.x86_64
pulseaudio-module-zeroconf-15.0-2.el9.x86_64
pulseaudio-module-x11-15.0-2.el9.x86_64
pulseaudio-module-gsettings-15.0-2.el9.x86_64

How reproducible:
100%

Steps to Reproduce:
1. dnf swap --allowerasing pipewire-pulseaudio pulseaudio
2. reboot
3. check sound

Actual results:
User need to pulseaudio --start manually in order to get sound.

Expected results:


Additional info:

Comment 1 Tomas Pelka 2022-03-23 12:43:21 UTC
*** Bug 2065175 has been marked as a duplicate of this bug. ***

Comment 2 Tomas Pelka 2022-03-23 12:50:48 UTC
Different approach:
1. dnf swap --allowerasing pipewire-pulseaudio pulseaudio
2. reboot
3. login
4. systemctl --user stop pipewire.socket
5. systemctl --user stop pipewire.service
6. systemctl --user stop wireplumber
7. systemctl --user start pulseaudio.socket 
8. systemctl --user start pulseaudio.service

This makes all the controls in gnome-control-center work, I can see the progress bars, I can hear the test sound. But it seems no other apps cant access sound devices, e.g. playing video in firefox ended with error regarding sound system. I can't also see no apps that would be using pulseaudio via pavucotrol for example.

Comment 4 Wim Taymans 2022-05-05 13:42:47 UTC
You should not stop pipewire and wireplumber, this will break screensharing and possibly other things.

You however need to disable the audio parts of wireplumber or they will keep the audio device (DBus) locked. I'll find out how to best do that..

Comment 5 Wim Taymans 2022-05-05 13:49:22 UTC
Also:

sudo dnf remove pipewire-alsa pipewire-jack-audio-connection-kit

To remove alsa and jack compatibility layers

And

sudo dnf install alsa-plugins-pulseaudio

To reinstall the alsa pulseaudio plugins.

Comment 6 Tomas Pelka 2022-05-13 16:37:16 UTC
OK I did:

dnf swap --allowerasing pipewire-pulseaudio pulseaudio
dnf remove pipewire-alsa pipewire-jack-audio-connection-kit
dnf install alsa-plugins-pulseaudio
reboot

after the reboot pulseaudio service/socket were not running, but 
systemctl --user start pulseaudio.socket 
systemctl --user start pulseaudio.service
brought soud back and it seems pulseaudio is now hadnling the sound.

Comment 7 Tomas Pelka 2022-05-13 16:46:55 UTC
So I guess this can now be documented and if there is a way how to make the swap process more easy lets do it in z-stream.

Comment 8 Niels De Graef 2022-05-13 18:51:44 UTC
Leaving a NEEDINFO on Marek just to be sure he sees it

Comment 21 Niels De Graef 2022-07-14 08:56:49 UTC
The package should be in the latest RHEL 9 Appstream now. Would someone be willing to verify that this works now without having to install any packages or enabling any repositories? If so, we can consider making a zstream for this

Comment 34 Red Hat Bugzilla 2023-12-22 04:25:05 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days