No sound, no volume icon, no output-device, host

System:

           /:-------------:\          joe@ec.ibm.com
        :-------------------::        OS: Fedora 
      :-----------/shhOHbmp---:\      Kernel: x86_64 Linux 5.11.17-300.fc34.x86_64
    /-----------omMMMNNNMMD  ---:     Uptime: 2h 54m
   :-----------sMMMMNMNMP.    ---:    Packages: 1842
  :-----------:MMMdP-------    ---\   Shell: pkcommand-not-found
 ,------------:MMMd--------    ---:   Resolution: 1920x1080
 :------------:MMMd-------    .---:   DE: GNOME 40.0
 :----    oNMMMMMMMMMNho     .----:   WM: Mutter
 :--     .+shhhMMMmhhy++   .------/   WM Theme: 
 :-    -------:MMMd--------------:    GTK Theme: Adwaita [GTK2/3]
 :-   --------/MMMd-------------;     Icon Theme: Adwaita
 :-    ------/hMMMy------------:      Font: Cantarell 11
 :-- :dMNdhhdNMMNo------------;       Disk: 27G / 143G (19%)
 :---:sdNMMMMNds:------------:        CPU: Intel Core i5-4430 @ 4x 3.2GHz [48.0°C]
 :------:://:-------------::          GPU: NVD9
 :---------------------://            RAM: 8361MiB / 15794MiB

Audio:

[joe@ec ~]$ inxi -A
Audio:     Device-1: Intel 8 Series/C220 Series High Definition Audio driver: snd_hda_intel 
           Device-2: NVIDIA GF119 HDMI Audio driver: snd_hda_intel 
           Sound Server-1: ALSA v: k5.11.17-300.fc34.x86_64 running: yes 
           Sound Server-2: PipeWire v: 0.3.27 running: yes 
[joe@ec ~]$ pactl info
Server String: /run/user/1000/pulse/native
Library Protocol Version: 34
Server Protocol Version: 35
Is Local: yes
Client Index: 42
Tile Size: 65472
User Name: joe
Host Name: ec.ibm.com
Server Name: PulseAudio (on PipeWire 0.3.27)
Server Version: 14.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: @DEFAULT_SINK@
Default Source: @DEFAULT_SOURCE@
Cookie: 3829:55da

installed packages

joe@ec ~]$ dnf list pipewire\* --installed
Installed Packages
pipewire.x86_64                                                                         0.3.27-1.fc34                                                @updates 
pipewire-alsa.x86_64                                                                    0.3.27-1.fc34                                                @updates 
pipewire-gstreamer.x86_64                                                               0.3.27-1.fc34                                                @updates 
pipewire-jack-audio-connection-kit.x86_64                                               0.3.27-1.fc34                                                @updates 
pipewire-libs.x86_64                                                                    0.3.27-1.fc34                                                @updates 
pipewire-utils.x86_64                                                                   0.3.27-1.fc34                                                @updates 
pipewire0.2-libs.x86_64                                                                 0.2.7-5.fc34                                                 @anaconda
[joe@ec ~]$ 

ALSACTL

[joe@ec ~]$ alsactl init
alsa-lib parser.c:260:(error_node) UCM is not supported for this HDA model (HDA Intel PCH at 0xf7130000 irq 31)
alsa-lib main.c:1014:(snd_use_case_mgr_open) error: failed to import hw:0 use case configuration -6
Found hardware: "HDA-Intel" "Realtek ALC892" "HDA:10ec0892,8086204a,00100302" "0x8086" "0x204a"
Hardware is initialized using a generic method
alsa-lib parser.c:260:(error_node) UCM is not supported for this HDA model (HDA NVidia at 0xf7080000 irq 17)
alsa-lib main.c:1014:(snd_use_case_mgr_open) error: failed to import hw:1 use case configuration -6
Found hardware: "HDA-Intel" "Nvidia GPU 1c HDMI/DP" "HDA:10de001c,10438411,00100100" "0x1043" "0x8411"
Hardware is initialized using a generic method

PIPEWIRE y ALSA

[joe@ec ~]$ systemctl status pipewire.service
Unit pipewire.service could not be found.

[joe@ec ~]$ systemctl status alsa-state.service 
● alsa-state.service - Manage Sound Card State (restore and store)
     Loaded: loaded (/usr/lib/systemd/system/alsa-state.service; static)
     Active: active (running) since Sat 2021-05-08 10:19:32 -05; 3h 11min ago
   Main PID: 1644 (alsactl)
      Tasks: 1 (limit: 18909)
     Memory: 436.0K
        CPU: 16ms
     CGroup: /system.slice/alsa-state.service
             └─1644 /usr/sbin/alsactl -s -n 19 -c -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --initfile=/lib/alsa/init/00main rdaemon

May 08 10:19:32 ec.ibm.com alsactl[1644]: alsactl 1.2.4 daemon started
May 08 10:19:32 ec.ibm.com systemd[1]: Started Manage Sound Card State (restore and store).
[joe@ec ~]$ 

No vloume icon in the top bar
Screenshot from 2021-05-08 13-32-29

No output device


It is the second time of the same problem, in both cases i was working with a vm(centos 8 stream) in gnome-boxes , the exact moment when the audio was lost i did not notice.
The quick solution is log out and log in, or restart the system.
Will there be a solution to fix the problem without logout or restart?

Take in consideration to create new config files for pipwire see here:
Audio may not work after upgrade to Fedora 34 if pipewire was previously installed

Restart pipwire systemctl --user restart pipewire*

after an update and restart the pc:
There is no the word pipewire at the end of the line as before.
Server Name: PulseAudio (on PipeWire 0.3.27)

And the volume is working well.

[joe@ec bespoke-tailoring-mysql]$ pactl info
Server String: /run/user/1000/pulse/native
Library Protocol Version: 34
Server Protocol Version: 34
Is Local: yes
Client Index: 14
Tile Size: 65472
User Name: joe
Host Name: ec.ibm.com
Server Name: pulseaudio
Server Version: 14.2-rebootstrapped
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_00_1b.0.analog-stereo
Default Source: alsa_input.pci-0000_00_1b.0.analog-stereo
Cookie: 7dcc:85b4
[joe@ec bespoke-tailoring-mysql]$

So now you changed back to pulse-audio instead of pipe-wire. If this solves your problem and is what you want everything is fine.

I only remmeber was installed

pulseaudio pulseaudio-utils

but was automatically when i was searching information with tools like pactl info , the tool was not installed and the terminal asked me to install first the above packages.

But now when i try to remove pulseaudio pulseaudio-utils the following message is showed.

[joe@ec bespoke-tailoring-mysql]$ sudo dnf remove pulseaudio pulseaudio-utils
[sudo] password for joe: 
Error: 
 Problem: The operation would result in removing the following protected packages: gnome-shell
(try to add '--skip-broken' to skip uninstallable packages)
[joe@ec bespoke-tailoring-mysql]$ 

I think you have to use dnf’s swap command to switch from pulseaudio to pipewire.

$ sudo dnf swap --allowerasing pulseaudio pipewire-pulseaudio
1 Like

I had to solved it, restarting these service:

pipewire-pulse.service
pipewire.service

You can view all service pipewire running, with this code:

systemctl --user status pipewire*

Currently, i have installed these package:

pipewire.x86_64                                   0.3.29-2.fc34                        @updates                  
pipewire-alsa.x86_64                              0.3.29-2.fc34                        @updates                  
pipewire-gstreamer.x86_64                         0.3.29-2.fc34                        @updates                  
pipewire-jack-audio-connection-kit.x86_64         0.3.29-2.fc34                        @updates                  
pipewire-libs.x86_64                              0.3.29-2.fc34                        @updates                  
pipewire-pulseaudio.x86_64                        0.3.29-2.fc34                        @updates                  
pipewire-utils.x86_64                             0.3.29-2.fc34                        @updates                  
pipewire0.2-libs.x86_64                           0.2.7-5.fc34                         @anaconda  

My version pipewire is:

  • pipewire
  • Compiled with libpipewire 0.3.29
  • Linked with libpipewire 0.3.29