Bug 1955921 - Sound doesnt work after upgrade to fedora 34
Summary: Sound doesnt work after upgrade to fedora 34
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: pipewire
Version: 34
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Wim Taymans
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-01 13:47 UTC by BradErz
Modified: 2022-06-08 01:09 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-06-08 01:09:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
output from: alsa-info.sh --no-upload (50.34 KB, text/plain)
2021-05-01 13:47 UTC, BradErz
no flags Details

Description BradErz 2021-05-01 13:47:06 UTC
Created attachment 1778129 [details]
output from: alsa-info.sh --no-upload

Description of problem:
After upgrading to fedora 34 audio on my system is no longer working. I believe pipewire was previously installed on my system and therefore i followed the steps provided:
https://fedoraproject.org/wiki/Common_F34_bugs#Audio_may_not_work_after_upgrade_to_Fedora_34_if_pipewire_was_previously_installed

However after these steps the issue is still present.

No sound devices input/output show up in the sound menu. Audio was working before the upgrade to fedora 34.

Version-Release number of selected component (if applicable):


How reproducible:
Unknown

Expected results:
Working audio.

Additional info:

I have also followed the steps from here:
https://fedoraproject.org/wiki/How_to_debug_sound_problems#:~:text=If%20your%20problem%20is%20that,mixer%20(volume%20control)%20settings.&text=In%20GNOME%20on%20Fedora%2011,Control%20in%20the%20menu%20system.

alsa-plugins-pulseaudio is not installed on my system to start with. And nothing shows up when searching for the model parameter didnt return any results.

Comment 1 BradErz 2021-05-01 13:50:35 UTC
Also just to note i didn't have any custom settings for pipewire as far as im aware and havent made any changes to the config file both before and after reinstalling pipewire. I believe in the past i simply installed pipewire to have screensharing working with wayland.

Comment 2 BradErz 2021-05-01 14:09:39 UTC
After some more digging in journalctl logs it seems pipewire-pulse is complaining it can't find the client.conf/pipewire-pulse.conf file.

May 01 14:55:59 bwilsonhunt-xps systemd[1659]: Started Multimedia Service.
May 01 14:55:59 bwilsonhunt-xps systemd[1659]: Started PipeWire PulseAudio.
May 01 14:55:59 bwilsonhunt-xps pipewire-pulse[1970]: context 0x5589fdeb98d0: can't load config pipewire-pulse.conf: No such file or di>
May 01 14:55:59 bwilsonhunt-xps pipewire-pulse[1970]: context 0x5589fdeb98d0: can't load config client.conf: No such file or directory
May 01 14:55:59 bwilsonhunt-xps pipewire-pulse[1970]: context 0x5589fdeb98d0: can't load config client.conf: Success
May 01 14:55:59 bwilsonhunt-xps pipewire-pulse[1970]: failed to create context: Success
May 01 14:55:59 bwilsonhunt-xps systemd[1659]: pipewire-pulse.service: Main process exited, code=exited, status=255/EXCEPTION
May 01 14:55:59 bwilsonhunt-xps systemd[1659]: pipewire-pulse.service: Failed with result 'exit-code'.


However when checking the directory i only have these files.
➜  ~ tree /etc/pipewire 
/etc/pipewire
├── media-session.d
│   ├── alsa-monitor.conf
│   ├── bluez-monitor.conf
│   ├── media-session.conf
│   └── v4l2-monitor.conf
└── pipewire.conf

I assume there is a missmatch in the config file which is installed vs the default config file the binary is looking for?

Comment 3 BradErz 2021-05-01 14:22:04 UTC
Ok i guess credit to this guy https://fedoramagazine.org/announcing-fedora-34/#comment-514622


Doing these steps fixed my issue:
sudo mv /etc/pipewire /etc/pipewire.old
sudo dnf reinstall pipewire-alsa.x86_64 pipewire-gstreamer.x86_64 pipewire-pulseaudio.x86_64 pipewire
systemctl –user restart pipewire pipewire-pulse

Maybe its worth changing the steps under the known issues?

Comment 4 BradErz 2021-05-01 14:25:44 UTC
>  If this happens to you, we recommend moving all *.conf files out of /etc/pipewire and reinstalling pipewire with sudo dnf reinstall pipewire. 

Removing all conf files from the /etc/pipewire directory removes also the `pipewire-pulse.conf` file. However without the `dnf reinstall pipewire-pulseaudio.x86_64` the `pipewire-pulse.conf` is not replaced..

Comment 5 BradErz 2021-05-01 14:50:54 UTC
I was also missing a client.conf file.. who knows what else im missing out of those config directories.

Ive taken the client.conf from here:
https://github.com/PipeWire/pipewire/blob/master/src/daemon/client.conf.in

Placing that into /etc/pipewire/client.conf seems to have stopped some applications from crashing and creating core dumps..

Comment 6 BradErz 2021-05-01 15:02:24 UTC
Ok final soloution if like me you removed all the config files in /etc/pipewire.

Run `sudo dnf reinstall "pipewire*"` and it will replace all config files to their defaults.

 pipewire                                           i686                   0.3.26-3.fc34                  updates                 131 k
 pipewire                                           x86_64                 0.3.26-3.fc34                  updates                 134 k
 pipewire-alsa                                      x86_64                 0.3.26-3.fc34                  updates                  57 k
 pipewire-gstreamer                                 x86_64                 0.3.26-3.fc34                  updates                  54 k
 pipewire-jack-audio-connection-kit                 x86_64                 0.3.26-3.fc34                  updates                 108 k
 pipewire-libs                                      i686                   0.3.26-3.fc34                  updates                 1.1 M
 pipewire-libs                                      x86_64                 0.3.26-3.fc34                  updates                 1.1 M
 pipewire-pulseaudio                                x86_64                 0.3.26-3.fc34                  updates                  23 k
 pipewire-utils                                     x86_64                 0.3.26-3.fc34                  updates                 307 k


The default structure should look something like this 

➜  appimages tree /etc/pipewire
/etc/pipewire
├── client.conf
├── client-rt.conf
├── jack.conf
├── media-session.d
│   ├── alsa-monitor.conf
│   ├── bluez-monitor.conf
│   ├── media-session.conf
│   ├── v4l2-monitor.conf
│   ├── with-alsa
│   ├── with-jack
│   └── with-pulseaudio
├── pipewire.conf
└── pipewire-pulse.conf

I hope that helps some future person get their audio back working.

Comment 7 Rex Dieter 2021-05-01 16:46:01 UTC
Triaging -> pipewire (previously assigned to pulseaudio component)

Comment 8 Wim Taymans 2021-05-03 07:41:05 UTC
Is this fixed now?

Comment 9 mov_ebpesp 2021-12-23 20:29:41 UTC
I ran into similar issues on VMware FC34 and FC35 (5.15.10-200.fc35.x86_64).

In case it helps someone, to re-create the /etc/pipewire files you can copy the default ones from /usr/share/pipewire
sudo cp -a /usr/share/pipewire /etc

Comment 10 Ben Cotton 2022-05-12 16:44:48 UTC
This message is a reminder that Fedora Linux 34 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 34 on 2022-06-07.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '34'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 34 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 11 Ben Cotton 2022-06-08 01:09:18 UTC
Fedora Linux 34 entered end-of-life (EOL) status on 2022-06-07.

Fedora Linux 34 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release.

Thank you for reporting this bug and we are sorry it could not be fixed.


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