You are not logged in.
Pages: 1
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
You can begin by looking at ALSA.
Without pipewire or pulseaudio running what is the output of speaker-test -c 2?
Offline
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
And you don't hear that anywhere? What do you get from
aplay -lL
amixer -c0
Online
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
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
It worked perfectly, thanks!, but now after every reboot i have to use those commands to have some volume
Offline
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
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
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
sorry i meant my ~/.xprofile, and yeah, it loads all other commands perfectly but not those ones
Offline
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
I have a lightweight install with xorg and qtile, no other desktop session
Offline
Does the sound work if you boot the multi-user.target (1st link below)?
How do you start the session
- xinit?
Offline
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
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
systemctl status alsa-restore.service
Offline
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
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
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
Pages: 1