You are not logged in.

#1 2022-06-29 01:28:55

Bena
Member
Registered: 2022-06-29
Posts: 9

Can't get any sound output

Hello, I have a relatively new laptop, a huawei matebook d15, I have installed SOF firmware, also tried with pipewire, and at this point pulseaudio recognizes all the outputs, still can't get any sound.
This is my inxi-SMA output, please ask for any more info that could be usefull.

System:
  Host: becastro Kernel: 5.18.7-arch1-1 arch: x86_64 bits: 64 Desktop: Qtile
    v: 0.21.0 Distro: Arch Linux
Machine:
  Type: Laptop System: HUAWEI product: BOHB-WAX9 v: M1190
    serial: <superuser required>
  Mobo: HUAWEI model: BOHB-WAX9-PCB-B2 v: M1190
    serial: <superuser required> UEFI: HUAWEI v: 1.35 date: 06/23/2021
Audio:
  Device-1: Intel Comet Lake PCH-LP cAVS driver: sof-audio-pci-intel-cnl
  Sound Server-1: ALSA v: k5.18.7-arch1-1 running: yes
  Sound Server-2: PipeWire v: 0.3.52 running: yes

Offline

#2 2022-06-29 07:36:12

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,563

Re: Can't get any sound output

You can begin by looking at ALSA.
Without pipewire or pulseaudio running what is the output of speaker-test -c 2?

Offline

#3 2022-06-29 15:30:04

Bena
Member
Registered: 2022-06-29
Posts: 9

Re: Can't get any sound output

I started rolling back to pulseaudio, uninstalling pipewire, still no sound tho.

stopping pulseaudio services

System:
  Host: becastro Kernel: 5.18.7-arch1-1 arch: x86_64 bits: 64 Desktop: Qtile
    v: 0.21.0 Distro: Arch Linux
Machine:
  Type: Laptop System: HUAWEI product: BOHB-WAX9 v: M1190
    serial: <superuser required>
  Mobo: HUAWEI model: BOHB-WAX9-PCB-B2 v: M1190
    serial: <superuser required> UEFI: HUAWEI v: 1.35 date: 06/23/2021
Audio:
  Device-1: Intel Comet Lake PCH-LP cAVS driver: sof-audio-pci-intel-cnl
  Sound Server-1: ALSA v: k5.18.7-arch1-1 running: yes

as you can see the only audio server running is alsa right now, the speaker test output is this:

❯ speaker-test -c 2

speaker-test 1.2.7

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 96 to 16384
Period size range from 48 to 4096
Using max buffer size 16384
Periods = 4
was set period_size = 4096
was set buffer_size = 16384
 0 - Front Left
 1 - Front Right
Time per period = 5.633177
 0 - Front Left
 1 - Front Right
Time per period = 5.973959
 0 - Front Left
 1 - Front Right

Offline

#4 2022-06-29 15:45:14

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,410

Re: Can't get any sound output

And you don't hear that anywhere? What do you get from

aplay -lL
amixer -c0

Online

#5 2022-06-29 16:22:29

Bena
Member
Registered: 2022-06-29
Posts: 9

Re: Can't get any sound output

Nope! I can't hear absolutely anything coming from the computer speakers

amixer -c0 output:

amixer -c0
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 3
  Mono:
  Front Left: Playback 0 [0%] [-48.00dB] [off]
  Front Right: Playback 0 [0%] [-48.00dB] [off]
Simple mixer control 'Headphone Mixer',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 11
  Front Left: 11 [100%] [0.00dB]
  Front Right: 11 [100%] [0.00dB]
Simple mixer control 'Speaker',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Mic Boost',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958',1
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',2
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Playback Polarity',0
  Capabilities: enum
  Items: 'Normal' 'R Invert' 'L Invert' 'L + R Invert'
  Item0: 'Normal'
Simple mixer control 'Capture Polarity',0
  Capabilities: enum
  Items: 'Normal' 'Invert'
  Item0: 'Normal'
Simple mixer control 'ADC',0
  Capabilities: cvolume cvolume-joined
  Capture channels: Mono
  Limits: Capture 0 - 192
  Mono: Capture 115 [60%] [-38.50dB]
Simple mixer control 'ADC Double Fs',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'ADC PGA Gain',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 10
  Mono: 0 [0%] [-3.50dB]
Simple mixer control 'ADC Soft Ramp',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'ALC',0
  Capabilities: cswitch cswitch-joined
  Capture channels: Mono
  Mono: Capture [off]
Simple mixer control 'ALC Capture Attack Time',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 10
  Mono: 2 [20%]
Simple mixer control 'ALC Capture Decay Time',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 10
  Mono: 3 [30%]
Simple mixer control 'ALC Capture Hold Time',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 10
  Mono: 0 [0%]
Simple mixer control 'ALC Capture Max',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 28
  Mono: 28 [100%] [35.50dB]
Simple mixer control 'ALC Capture Min',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 28
  Mono: 0 [0%] [-12.00dB]
Simple mixer control 'ALC Capture Noise Gate',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'ALC Capture Noise Gate Threshold',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 31
  Mono: 0 [0%]
Simple mixer control 'ALC Capture Noise Gate Type',0
  Capabilities: enum
  Items: 'Constant PGA Gain' 'Mute ADC Output'
  Item0: 'Constant PGA Gain'
Simple mixer control 'ALC Capture Target',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 10
  Mono: 11 [110%] [0.00dB]
Simple mixer control 'DAC',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 192
  Mono:
  Front Left: Playback 115 [60%] [-38.50dB]
  Front Right: Playback 115 [60%] [-38.50dB]
Simple mixer control 'DAC Double Fs',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'DAC Mono Mix',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'DAC Notch Filter',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'DAC Soft Ramp',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'DAC Soft Ramp Rate',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 4
  Mono: 4 [100%]
Simple mixer control 'DAC Source Mux',0
  Capabilities: enum
  Items: 'LDATA TO LDAC, RDATA TO RDAC' 'LDATA TO LDAC, LDATA TO RDAC' 'RDATA TO LDAC, RDATA TO RDAC' 'RDATA TO LDAC, LDATA TO RDAC'
  Item0: 'LDATA TO LDAC, RDATA TO RDAC'
Simple mixer control 'DAC Stereo Enhancement',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 7
  Mono: 0 [0%]
Simple mixer control 'Differential Mux',0
  Capabilities: enum
  Items: 'lin1-rin1' 'lin2-rin2' 'lin1-rin1 with 20db Boost' 'lin2-rin2 with 20db Boost'
  Item0: 'lin1-rin1'
Simple mixer control 'Digital Mic Mux',0
  Capabilities: enum
  Items: 'dmic disable' 'dmic data at high level' 'dmic data at low level'
  Item0: 'dmic disable'
Simple mixer control 'Dmic0',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 70
  Front Left: Capture 0 [0%] [-99999.99dB] [off]
  Front Right: Capture 49 [70%] [-1.00dB] [on]
Simple mixer control 'Dmic1 2nd',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 70
  Front Left: Capture 50 [71%] [0.00dB]
  Front Right: Capture 50 [71%] [0.00dB]
Simple mixer control 'Headset Mic',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Internal Mic',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Left Headphone Mixer LLIN',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Left Headphone Mixer Left DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Left Headphone Mux',0
  Capabilities: enum
  Items: 'lin1-rin1' 'lin2-rin2' 'lin-rin with Boost' 'lin-rin with Boost and PGA'
  Item0: 'lin1-rin1'
Simple mixer control 'PGA1.0 1 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA2.0 2 PCM 0',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 40
  Front Left: Capture 32 [80%] [0.00dB]
  Front Right: Capture 32 [80%] [0.00dB]
Simple mixer control 'PGA5.0 5 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA6.0 6 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA7.0 7 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'Right Headphone Mixer RLIN',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Right Headphone Mixer Right DAC',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Right Headphone Mux',0
  Capabilities: enum
  Items: 'lin1-rin1' 'lin2-rin2' 'lin-rin with Boost' 'lin-rin with Boost and PGA'
  Item0: 'lin1-rin1'

aplay output:

aplay -lL
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
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
default:CARD=sofessx8336
    sof-essx8336,
    Default Audio Device
sysdefault:CARD=sofessx8336
    sof-essx8336,
    Default Audio Device
usbstream:CARD=sofessx8336
    sof-essx8336
    USB Stream Output
**** List of PLAYBACK Hardware Devices ****
card 0: sofessx8336 [sof-essx8336], device 0: ES8336 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofessx8336 [sof-essx8336], device 5: HDMI 1 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofessx8336 [sof-essx8336], device 6: HDMI 2 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofessx8336 [sof-essx8336], device 7: HDMI 3 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Last edited by Bena (2022-06-29 16:24:18)

Offline

#6 2022-06-29 16:38:38

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,410

Re: Can't get any sound output

Not really guaranteed to work but try

amixer -c0 sset 'Headphone',0 100%,100%
amixer -c0 sset 'DAC',0 100%,100%

retry speaker-test. If it doesn't work check some of the latter responses/fixes mentioned in: https://github.com/thesofproject/linux/ … 1157409177 for example

Online

#7 2022-06-29 17:00:55

Bena
Member
Registered: 2022-06-29
Posts: 9

Re: Can't get any sound output

It worked perfectly, thanks!, but now after every reboot i have to use those commands to have some volume

Offline

#8 2022-06-29 18:06:26

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,410

Re: Can't get any sound output

Run them, then run

sudo alsactl store

, that should retain it for future boots. If it doesn't you could also make the amixer commands something that's ran on boot/on your login with systemd services.

Online

#9 2022-06-29 18:25:39

Bena
Member
Registered: 2022-06-29
Posts: 9

Re: Can't get any sound output

tried

sudo alsactl store

command and doesn't retain the config, also tried to put both amixer commands on my .Xprofile and didn't work either

Offline

#10 2022-06-29 20:19:45

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: Can't get any sound output

systemctl status alsa-restore.service

also tried to put both amixer commands on my .Xprofile and didn't work either

1. "~/.xprofile", nb. that there's no capital X
2. How do you start the session, are you sure ~/.xprofile is sourced? Try to add a line that says "date > /tmp/xprofile.log"
3. What's your desktop session? It might very well steamroll over the sound config. Does the sound work if you boot the multi-user.target (1st link below)?

Offline

#11 2022-07-01 00:05:24

Bena
Member
Registered: 2022-06-29
Posts: 9

Re: Can't get any sound output

sorry i meant my ~/.xprofile, and yeah, it loads all other commands perfectly but not those ones

Offline

#12 2022-07-01 06:43:17

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: Can't get any sound output

seth wrote:

What's your desktop session? It might very well steamroll over the sound config. Does the sound work if you boot the multi-user.target (1st link below)?

Offline

#13 2022-07-01 12:48:15

Bena
Member
Registered: 2022-06-29
Posts: 9

Re: Can't get any sound output

I have a lightweight install with xorg and qtile, no other desktop session

Offline

#14 2022-07-01 14:39:55

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: Can't get any sound output

seth wrote:

Does the sound work if you boot the multi-user.target (1st link below)?

seth wrote:

How do you start the session

- xinit?

Offline

#15 2022-07-01 15:02:23

Bena
Member
Registered: 2022-06-29
Posts: 9

Re: Can't get any sound output

I use lightdm to start the session, so my starting commands are in ~/xprofile, and i don't really get how can I test the multi-user target.

Offline

#16 2022-07-01 15:09:09

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: Can't get any sound output

You boot it and check the mixer settings or just "mpv -ao alsa thunderstruck.mp3" to see whether it works.
Oh, and we've not seen

seth wrote:

systemctl status alsa-restore.service

Offline

#17 2022-07-01 15:28:16

Bena
Member
Registered: 2022-06-29
Posts: 9

Re: Can't get any sound output

Here is the alsa status after a reboot:

systemctl status alsa-restore.service
● alsa-restore.service - Save/Restore Sound Card State
     Loaded: loaded (/usr/lib/systemd/system/alsa-restore.service; static)
     Active: active (exited) since Fri 2022-07-01 17:17:43 CEST; 8min ago
    Process: 590 ExecStart=/usr/bin/alsactl restore (code=exited, status=0/SUCCESS)
   Main PID: 590 (code=exited, status=0/SUCCESS)
        CPU: 3ms

Jul 01 17:17:43 becastro systemd[1]: Starting Save/Restore Sound Card State...
Jul 01 17:17:43 becastro alsactl[590]: /usr/bin/alsactl: set_control:1475: Cannot write control '2:0:0:ALC Capture Target Volume:0' : Invalid argu>
Jul 01 17:17:43 becastro systemd[1]: Finished Save/Restore Sound Card State.

also tried your using mpv with your flags and the volume is still much lower than what it should be.

Offline

#18 2022-07-01 15:58:54

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: Can't get any sound output

the volume is still much lower than what it should be

is not the same as

can't get any sound

Did the overall situation change after https://bbs.archlinux.org/viewtopic.php … 6#p2043416 ?

Offline

#19 2022-08-19 19:42:59

eworm
Package Maintainer (PM)
From: Oberhausen, Germany
Registered: 2010-01-30
Posts: 105
Website

Re: Can't get any sound output

Looks like this is a race condition when restoring the volume. The sound card is not ready when alsactl restore runs. This fixes it for me:

mkdir -p /etc/systemd/system/alsa-restore.service.d/
cat > /etc/systemd/system/alsa-restore.service.d/delay.conf<<EOF
[Service]
ExecStartPre=/usr/bin/sleep 5
EOF
amixer -c0 sset 'Headphone',0 100%,100%
amixer -c0 sset 'DAC',0 100%,100%
alsactl store

Not really beautiful, but it works.


ArchLinux - make it simple & lightweight

Offline

Board footer

Powered by FluxBB