No sound in i3 fresh installation

I change volume with shortcuts, but no sound.
I found some topics in the forum, but generally goes out from amixer and uses another package

amixer
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
amixer info
  Card default 'Generic'/'HD-Audio Generic at 0xe0a88000 irq 77'
  Mixer name	: 'ATI R6xx HDMI'
  Components	: 'HDA:1002aa01,00aa0100,00100700'
  Controls      : 7
  Simple ctrls  : 1

inxi -Fxxxza
System:
  Kernel: 5.15.72-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: ...
  Desktop: i3 v: 4.21 info: i3bar vt: 7 dm: LightDM v: 1.32.0
    Distro: Manjaro Linux base: Arch Linux

Audio:
  Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio vendor: Dell
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 04:00.1 chip-ID: 1002:15de class-ID: 0403
  Device-2: AMD Family 17h/19h HD Audio vendor: Dell driver: snd_hda_intel
    v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 04:00.6
    chip-ID: 1022:15e3 class-ID: 0403
  Sound API: ALSA v: k5.15.72-1-MANJARO running: yes
  Sound Interface: sndio v: N/A running: no
  Sound Server-1: JACK v: 1.9.21 running: no
  Sound Server-2: PulseAudio v: 16.1 running: no
  Sound Server-3: PipeWire v: 0.3.58 running: yes

I tested with followings but hear nothing

amixer sevents
event add: 'IEC958',0
event value: 'IEC958',0
Ready to listen...

amixer events
event add: numid=1,iface=CARD,name='HDMI/DP,pcm=3 Jack'
event add: numid=2,iface=MIXER,name='IEC958 Playback Con Mask'
event add: numid=3,iface=MIXER,name='IEC958 Playback Pro Mask'
event add: numid=4,iface=MIXER,name='IEC958 Playback Default'
event add: numid=5,iface=MIXER,name='IEC958 Playback Switch'
event add: numid=6,iface=PCM,name='ELD',device=3
event add: numid=7,iface=PCM,name='Playback Channel Map',device=3
Ready to listen...

amixer commands in post #1 are only showing information for 1st device (card:0 in ALSA)

Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio

To check information and mixer controls for 2nd audio device (card:1 in ALSA)

amixer -c1 info; echo; amixer -c1

Also suggest checking card 1 is set as sysdefault device and Pipewire is default output in ALSA

aplay -L

Okay, I think, I have to set second device as primary. But how

amixer -c1 info; echo; amixer -c1
Card sysdefault:1 'Generic_1'/'HD-Audio Generic at 0xe0a80000 irq 78'
  Mixer name	: 'Realtek ALC3234'
  Components	: 'HDA:10ec0255,102808d7,00100002'
  Controls      : 28
  Simple ctrls  : 15

Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 87
  Mono: Playback 78 [90%] [-6.75dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 82 [94%] [-3.75dB] [on]
  Front Right: Playback 82 [94%] [-3.75dB] [on]
Simple mixer control 'Headphone Mic',0
  Capabilities: pvolume pswitch cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Mono
  Limits: Playback 0 - 31
  Mono: Capture [off]
  Front Left: Playback 21 [68%] [-3.00dB] [off]
  Front Right: Playback 21 [68%] [-3.00dB] [off]
Simple mixer control 'Headphone Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 2 [67%] [20.00dB]
  Front Right: 2 [67%] [20.00dB]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 87 [100%] [0.00dB] [on]
  Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Beep',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 18 [58%] [-7.50dB] [off]
  Front Right: Playback 18 [58%] [-7.50dB] [off]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 63
  Front Left: Capture 0 [0%] [-17.25dB] [on]
  Front Right: Capture 0 [0%] [-17.25dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Digital',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 120
  Front Left: Capture 60 [50%] [0.00dB]
  Front Right: Capture 60 [50%] [0.00dB]
Simple mixer control 'Headset Mic',0
  Capabilities: pvolume pswitch cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Mono
  Limits: Playback 0 - 31
  Mono: Capture [on]
  Front Left: Playback 23 [74%] [0.00dB] [off]
  Front Right: Playback 23 [74%] [0.00dB] [off]
Simple mixer control 'Headset Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 2 [67%] [20.00dB]
  Front Right: 2 [67%] [20.00dB]
Simple mixer control 'Internal Mic',0
  Capabilities: cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Mono
  Mono: Capture [off]
Simple mixer control 'Internal Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 2 [67%] [20.00dB]
  Front Right: 2 [67%] [20.00dB]
Simple mixer control 'Loopback Mixing',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Disabled'
aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
lavrate
    Rate Converter Plugin Using Libav/FFmpeg Library
samplerate
    Rate Converter Plugin Using Samplerate Library
speexrate
    Rate Converter Plugin Using Speex Resampler
jack
    JACK Audio Connection Kit
oss
    Open Sound System
pipewire
    PipeWire Sound Server
pulse
    PulseAudio Sound Server
speex
    Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
hdmi:CARD=Generic,DEV=0
    HD-Audio Generic, HDMI 0
    HDMI Audio Output
usbstream:CARD=Generic
    HD-Audio Generic
    USB Stream Output
default:CARD=Generic_1
    HD-Audio Generic, ALC3234 Analog
    Default Audio Device
sysdefault:CARD=Generic_1
    HD-Audio Generic, ALC3234 Analog
    Default Audio Device
front:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC3234 Analog
    Front output / input
surround21:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC3234 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC3234 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC3234 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC3234 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC3234 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC3234 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
usbstream:CARD=Generic_1
    HD-Audio Generic
    USB Stream Output

ALSA controls for audio playback all appear to be ok – controls for Master; Headphone and Speaker are all unmuted [on]

Audio capture controls Headphone Mic and Internal Mic are usually turned [off] by default
If you want to test microphone audio capture, controls can be turned on and adjusted using:

sudo alsamixer -c1 --view=Capture

I suspect that audio issues are in PipeWire, but suggest you confirm ALSA audio playback is working before troubleshooting PipeWire

  1. Stop PipeWire service:

    systemctl --user stop pipewire.socket pipewire.service
    
  2. use speaker-test to play audio direct to onboard audio device in ALSA

    speaker-test -D hw:1,0 -f dat -c2 -l2
    

If audio playback to ALSA device is working, reboot system to restart PipeWire and try speaker-test command using PipeWire default output

speaker-test -D pipewire -f dat -c2 -l2

Alsa works well with following
speaker-test -D hw:1,0 -f dat -c2 -l2

checked services status

 systemctl --user status pipewire.socket pipewire.service
● pipewire.socket - PipeWire Multimedia System Socket
     Loaded: loaded (/usr/lib/systemd/user/pipewire.socket; enabled; preset: enabled)
     Active: active (running) since Sun 2022-10-23 14:43:25 +03; 4min 3s ago
      Until: Sun 2022-10-23 14:43:25 +03; 4min 3s ago
   Triggers: ● pipewire.service
     Listen: /run/user/1000/pipewire-0 (Stream)
     CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/pipewire.socket

Oct 23 14:43:25 axe-inspiron3585 systemd[799]: Listening on PipeWire Multimedia System Socket.

● pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; disabled; preset: enabled)
     Active: active (running) since Sun 2022-10-23 14:43:26 +03; 4min 3s ago
TriggeredBy: ● pipewire.socket
   Main PID: 1018 (pipewire)
      Tasks: 2 (limit: 6969)
     Memory: 1.9M
        CPU: 19ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
             └─1018 /usr/bin/pipewire

Oct 23 14:43:26 axe-inspiron3585 systemd[799]: Started PipeWire Multimedia Service.
Oct 23 14:43:26 axe-inspiron3585 pipewire[1018]: mod.rt: Can't find xdg-portal: (null)
Oct 23 14:43:26 axe-inspiron3585 pipewire[1018]: mod.rt: found session bus but no portal

I enable it with

systemctl --user enable pipewire.service
Created symlink /home/axe/.config/systemd/user/default.target.wants/pipewire.service β†’ /usr/lib/systemd/user/pipewire.service.
Created symlink /home/axe/.config/systemd/user/sockets.target.wants/pipewire.socket β†’ /usr/lib/systemd/user/pipewire.socket.
[axe@axe-inspiron3585 ~]$ systemctl --user status pipewire.socket pipewire.service
● pipewire.socket - PipeWire Multimedia System Socket
     Loaded: loaded (/usr/lib/systemd/user/pipewire.socket; enabled; preset: enabled)
     Active: active (running) since Sun 2022-10-23 14:43:25 +03; 4min 37s ago
      Until: Sun 2022-10-23 14:43:25 +03; 4min 37s ago
   Triggers: ● pipewire.service
     Listen: /run/user/1000/pipewire-0 (Stream)
     CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/pipewire.socket

Oct 23 14:43:25 axe-inspiron3585 systemd[799]: Listening on PipeWire Multimedia System Socket.

● pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; preset: enabled)
     Active: active (running) since Sun 2022-10-23 14:43:26 +03; 4min 36s ago
TriggeredBy: ● pipewire.socket
   Main PID: 1018 (pipewire)
      Tasks: 2 (limit: 6969)
     Memory: 1.9M
        CPU: 19ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
             └─1018 /usr/bin/pipewire

Oct 23 14:43:26 axe-inspiron3585 systemd[799]: Started PipeWire Multimedia Service.
Oct 23 14:43:26 axe-inspiron3585 pipewire[1018]: mod.rt: Can't find xdg-portal: (null)
Oct 23 14:43:26 axe-inspiron3585 pipewire[1018]: mod.rt: found session bus but no portal

then started

systemctl --user start pipewire.service
 speaker-test -D pipewire -f dat -c2 -l2

but still not hear anything. Alsa still works

Problem could be related with this… Still searching

Oct 23 14:43:26 axe-inspiron3585 systemd[799]: Started PipeWire Multimedia Service.
Oct 23 14:43:26 axe-inspiron3585 pipewire[1018]: mod.rt: Can't find xdg-portal: (null)
Oct 23 14:43:26 axe-inspiron3585 pipewire[1018]: mod.rt: found session bus but no portal

Its solved. Just install following packages
sudo pacman -S wireplumber pipewire-pulse

Package pipewire-pulse is needed to ensure PipeWire is configured as default ALSA output

Speaker test for -D pipewire should now work, but -D hw:1,0 will fail to connect direct to hardware device because of the PipeWire default connection (Device or resource busy)

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.