You are not logged in.

#1 2021-11-23 16:02:10

cj_marquez
Member
Registered: 2021-11-23
Posts: 6

new Arch installation on a Huawei D16 Razer 5 4600 pipewire no sound

Hi everyone,

I have a fresh install of Arch in this laptop with pipewire, I've tried pulseaudio with the same no audio output on the laptop speakers or headphones jack, Bluetooth works well though. I've gone through the forums, the wiki, installed

sof-firmware

and even the IRC channel where they said could be a distro related issue. Here is some information

Linux kernel

$ uname -r
5.15.4-arch1-1

current pipewire installation (media session was replaced by wireplumber)

$sudo pacman -Q | grep pipewire
gst-plugin-pipewire 1:0.3.40-1
pipewire 1:0.3.40-1
pipewire-alsa 1:0.3.40-1
pipewire-jack 1:0.3.40-1
pipewire-pulse 1:0.3.40-1

sof-firmware

$ sudo pacman -Q | grep sof-firmware
sof-firmware 1.9-1

pactl stat

$ pactl stat
Currently in use: 12 blocks containing 196.0 KiB bytes total.
Allocated during whole lifetime: 12 blocks containing 196.0 KiB bytes total.
Sample cache size: 0 B
$ pactl info
Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 52
Tile Size: 65472
User Name: cj
Host Name: cj-linux
Server Name: PulseAudio (on PipeWire 0.3.40)
Server Version: 15.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_03_00.1.pro-output-3
Default Source: alsa_output.pci-0000_03_00.1.pro-output-3.monitor
Cookie: 75b8:1586

pactl info results
pactl sink inputs
pactl list sinks
pactl list cards
speaker-test
aplay -L
aplay -l

Tests were done while google chrome was playing audio. Pavucontrol shows "Pro audio" tab selected and unmuted, same as alsamixer. Any help would be appreciated.

Offline

#2 2021-11-23 16:33:15

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 14,487

Re: new Arch installation on a Huawei D16 Razer 5 4600 pipewire no sound

Afaik pro-audio is for exclusive access, what's the behaviour if you switch to the "standard" hdmi output profile? Does it work if you bypass pipewire and do direct playback with e.g.

speaker-test -Dhw:0,3 -c2

Offline

#3 2021-11-23 21:54:43

cj_marquez
Member
Registered: 2021-11-23
Posts: 6

Re: new Arch installation on a Huawei D16 Razer 5 4600 pipewire no sound

Hi V1del,

No, it is the same result using both HDMI and Pro Audio profiles, I get a similar terminal output for both with no sound

$ speaker-test -Dhw:0,3 -c2

speaker-test 1.2.5.1

Playback device is hw:0,3
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 1048576
Period size range from 32 to 524288
Using max buffer size 1048576
Periods = 4
was set period_size = 262144
was set buffer_size = 1048576
 0 - Front Left
 1 - Front Right
Time per period = 10.932021
 0 - Front Left
 1 - Front Right

Following the troubleshoot guide I tried adding the following to the modprobe.conf  file, don't know if that's correct or if there are any other configuration that I can set

$ cat /etc/modprobe.d/modprobe.conf 
options snd_hda_intel enable=1,0
options snd-hda-intel model=generic
options snd-hda-intel ac97_quirk=1

Last edited by cj_marquez (2021-11-23 21:58:50)

Offline

#4 2021-11-24 07:32:34

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 14,487

Re: new Arch installation on a Huawei D16 Razer 5 4600 pipewire no sound

Not really, you most certainly never want generic and it's highly unlikely you have an ac97 chip. If you remove that file and reboot (... and retry) and repost these outputs, how do things look?

Offline

#5 2021-11-24 22:28:32

cj_marquez
Member
Registered: 2021-11-23
Posts: 6

Re: new Arch installation on a Huawei D16 Razer 5 4600 pipewire no sound

I reverted my installation to use pipewire media session and removed the modprobe configuration, I get three (unplugged) HDMI outputs only, here are the stats with chrome playing a video.

$ pactl stat
Currently in use: 17 blocks containing 124.0 KiB bytes total.
Allocated during whole lifetime: 17 blocks containing 124.0 KiB bytes total.
Sample cache size: 0 B
 sudo pacman -Q | grep pipewire
[sudo] password for cj: 
gst-plugin-pipewire 1:0.3.40-1
pipewire 1:0.3.40-1
pipewire-alsa 1:0.3.40-1
pipewire-jack 1:0.3.40-1
pipewire-media-session 1:0.4.1-1
pipewire-pulse 1:0.3.40-1
$ pactl info
Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 65
Tile Size: 65472
User Name: cj
Host Name: cj-linux
Server Name: PulseAudio (on PipeWire 0.3.40)
Server Version: 15.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_03_00.1.HiFi__hw_Generic_3__sink
Default Source: alsa_output.pci-0000_03_00.1.HiFi__hw_Generic_3__sink.monitor
Cookie: 2295:14df

Pactl list cards

Card #40
        Name: alsa_card.pci-0000_03_00.1
        Driver: alsa
        Owner Module: n/a
        Properties:
                device.enum.api = "udev"
                device.api = "alsa"
                media.class = "Audio/Device"
                api.alsa.path = "hw:1"
                api.alsa.card = "1"
                api.alsa.card.name = "HD-Audio Generic"
                api.alsa.card.longname = "HD-Audio Generic at 0xd03c0000 irq 85"
                device.plugged.usec = "2344012"
                device.bus_path = "pci-0000:03:00.1"
                device.sysfs.path = "/sys/devices/pci0000:00/0000:00:08.1/0000:03:00.1/sound/card1"
                device.bus = "pci"
                device.subsystem = "sound"
                device.vendor.id = "4098"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
                device.product.id = "5687"
                device.product.name = "Renoir Radeon High Definition Audio Controller"
                device.name = "alsa_card.pci-0000_03_00.1"
                device.description = "Renoir Radeon High Definition Audio Controller"
                device.nick = "HD-Audio Generic"
                device.icon_name = "audio-card-pci"
                api.alsa.use-acp = "true"
                api.acp.auto-profile = "false"
                api.acp.auto-port = "false"
                api.dbus.ReserveDevice1 = "Audio1"
                factory.id = "14"
                client.id = "31"
                object.id = "40"
                object.path = "alsa:pcm:1"
                alsa.card = "1"
                alsa.card_name = "HD-Audio Generic"
                alsa.long_card_name = "HD-Audio Generic at 0xd03c0000 irq 85"
                alsa.driver_name = "snd_hda_intel"
                device.string = "1"
        Profiles:
                off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
                HiFi: Play HiFi quality Music (sinks: 3, sources: 0, priority: 8000, available: no)
        Active Profile: HiFi
        Ports:
                [Out] HDMI3: HDMI / DisplayPort 3 Output (type: HDMI, priority: 1300, latency offset: 0 usec, availability group: HDMI/DP,pcm=8, not available)
                        Properties:
                                port.type = "hdmi"
                                port.availability-group = "HDMI/DP,pcm=8"
                                card.profile.port = "0"
                        Part of profile(s): HiFi
                [Out] HDMI2: HDMI / DisplayPort 2 Output (type: HDMI, priority: 1200, latency offset: 0 usec, availability group: HDMI/DP,pcm=7, not available)
                        Properties:
                                port.type = "hdmi"
                                port.availability-group = "HDMI/DP,pcm=7"
                                card.profile.port = "1"
                        Part of profile(s): HiFi
                [Out] HDMI1: HDMI / DisplayPort 1 Output (type: HDMI, priority: 1100, latency offset: 0 usec, availability group: HDMI/DP,pcm=3, not available)
                        Properties:
                                port.type = "hdmi"
                                port.availability-group = "HDMI/DP,pcm=3"
                                card.profile.port = "2"
                        Part of profile(s): HiFi

Pactl list sinks

Sink #45
	State: SUSPENDED
	Name: alsa_output.pci-0000_03_00.1.HiFi__hw_Generic_8__sink
	Description: Renoir Radeon High Definition Audio Controller HDMI / DisplayPort 3 Output
	Driver: PipeWire
	Sample Specification: s32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor Source: alsa_output.pci-0000_03_00.1.HiFi__hw_Generic_8__sink.monitor
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE DECIBEL_VOLUME LATENCY 
	Properties:
		object.path = "alsa:pcm:1:hw:Generic,8:playback"
		api.alsa.path = "hw:Generic,8"
		api.alsa.open.ucm = "true"
		api.alsa.pcm.card = "1"
		api.alsa.pcm.stream = "playback"
		audio.channels = "2"
		audio.position = "FL,FR"
		device.routes = "1"
		alsa.mixer_device = "_ucm0001.hw:Generic"
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "HDMI 2"
		alsa.id = "HDMI 2"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "8"
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xd03c0000 irq 85"
		alsa.driver_name = "snd_hda_intel"
		device.profile.name = "HiFi: hw:Generic,8: sink"
		device.profile.description = "HDMI / DisplayPort 3 Output"
		card.profile.device = "0"
		device.id = "40"
		factory.name = "api.alsa.pcm.sink"
		priority.driver = "552"
		priority.session = "552"
		media.class = "Audio/Sink"
		node.nick = "HD-Audio Generic"
		node.name = "alsa_output.pci-0000_03_00.1.HiFi__hw_Generic_8__sink"
		device.description = "Renoir Radeon High Definition Audio Controller HDMI / DisplayPort 3 Output"
		device.icon_name = "audio-card"
		device.bus = "pci"
		device.bus_path = "pci-0000:03:00.1"
		node.pause-on-idle = "false"
		factory.id = "18"
		client.id = "32"
		node.driver = "true"
		factory.mode = "merge"
		audio.adapt.follower = ""
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "45"
		node.max-latency = "8192/48000"
	Ports:
		[Out] HDMI3: HDMI / DisplayPort 3 Output (type: HDMI, priority: 1300, availability group: HDMI/DP,pcm=8, not available)
	Active Port: [Out] HDMI3
	Formats:
		pcm

Sink #46
	State: SUSPENDED
	Name: alsa_output.pci-0000_03_00.1.HiFi__hw_Generic_7__sink
	Description: Renoir Radeon High Definition Audio Controller HDMI / DisplayPort 2 Output
	Driver: PipeWire
	Sample Specification: s32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor Source: alsa_output.pci-0000_03_00.1.HiFi__hw_Generic_7__sink.monitor
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE DECIBEL_VOLUME LATENCY 
	Properties:
		object.path = "alsa:pcm:1:hw:Generic,7:playback"
		api.alsa.path = "hw:Generic,7"
		api.alsa.open.ucm = "true"
		api.alsa.pcm.card = "1"
		api.alsa.pcm.stream = "playback"
		audio.channels = "2"
		audio.position = "FL,FR"
		device.routes = "1"
		alsa.mixer_device = "_ucm0001.hw:Generic"
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "HDMI 1"
		alsa.id = "HDMI 1"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "7"
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xd03c0000 irq 85"
		alsa.driver_name = "snd_hda_intel"
		device.profile.name = "HiFi: hw:Generic,7: sink"
		device.profile.description = "HDMI / DisplayPort 2 Output"
		card.profile.device = "1"
		device.id = "40"
		factory.name = "api.alsa.pcm.sink"
		priority.driver = "568"
		priority.session = "568"
		media.class = "Audio/Sink"
		node.nick = "HD-Audio Generic"
		node.name = "alsa_output.pci-0000_03_00.1.HiFi__hw_Generic_7__sink"
		device.description = "Renoir Radeon High Definition Audio Controller HDMI / DisplayPort 2 Output"
		device.icon_name = "audio-card"
		device.bus = "pci"
		device.bus_path = "pci-0000:03:00.1"
		node.pause-on-idle = "false"
		factory.id = "18"
		client.id = "32"
		node.driver = "true"
		factory.mode = "merge"
		audio.adapt.follower = ""
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "46"
		node.max-latency = "8192/48000"
	Ports:
		[Out] HDMI2: HDMI / DisplayPort 2 Output (type: HDMI, priority: 1200, availability group: HDMI/DP,pcm=7, not available)
	Active Port: [Out] HDMI2
	Formats:
		pcm

Sink #47
	State: SUSPENDED
	Name: alsa_output.pci-0000_03_00.1.HiFi__hw_Generic_3__sink
	Description: Renoir Radeon High Definition Audio Controller HDMI / DisplayPort 1 Output
	Driver: PipeWire
	Sample Specification: s32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor Source: alsa_output.pci-0000_03_00.1.HiFi__hw_Generic_3__sink.monitor
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE DECIBEL_VOLUME LATENCY 
	Properties:
		object.path = "alsa:pcm:1:hw:Generic,3:playback"
		api.alsa.path = "hw:Generic,3"
		api.alsa.open.ucm = "true"
		api.alsa.pcm.card = "1"
		api.alsa.pcm.stream = "playback"
		audio.channels = "2"
		audio.position = "FL,FR"
		device.routes = "1"
		alsa.mixer_device = "_ucm0001.hw:Generic"
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "HDMI 0"
		alsa.id = "HDMI 0"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "3"
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xd03c0000 irq 85"
		alsa.driver_name = "snd_hda_intel"
		device.profile.name = "HiFi: hw:Generic,3: sink"
		device.profile.description = "HDMI / DisplayPort 1 Output"
		card.profile.device = "2"
		device.id = "40"
		factory.name = "api.alsa.pcm.sink"
		priority.driver = "632"
		priority.session = "632"
		media.class = "Audio/Sink"
		node.nick = "HD-Audio Generic"
		node.name = "alsa_output.pci-0000_03_00.1.HiFi__hw_Generic_3__sink"
		device.description = "Renoir Radeon High Definition Audio Controller HDMI / DisplayPort 1 Output"
		device.icon_name = "audio-card"
		device.bus = "pci"
		device.bus_path = "pci-0000:03:00.1"
		node.pause-on-idle = "false"
		factory.id = "18"
		client.id = "32"
		node.driver = "true"
		factory.mode = "merge"
		audio.adapt.follower = ""
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "47"
		node.max-latency = "8192/48000"
	Ports:
		[Out] HDMI1: HDMI / DisplayPort 1 Output (type: HDMI, priority: 1100, availability group: HDMI/DP,pcm=3, not available)
	Active Port: [Out] HDMI1
	Formats:
		pcm

aplay -lL

null
    Discard all samples (playback) or generate zero samples (capture)
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
default
    Default ALSA Output (currently PipeWire Media Server)
usbstream:CARD=acp
    acp
    USB Stream Output
hdmi:CARD=Generic,DEV=0
    HD-Audio Generic, HDMI 0
    HDMI Audio Output
hdmi:CARD=Generic,DEV=1
    HD-Audio Generic, HDMI 1
    HDMI Audio Output
hdmi:CARD=Generic,DEV=2
    HD-Audio Generic, HDMI 2
    HDMI Audio Output
usbstream:CARD=Generic
    HD-Audio Generic
    USB Stream Output
**** List of PLAYBACK Hardware Devices ****
card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Edit: speaker test results

$ speaker-test -Dhw:0,3 -c2

speaker-test 1.2.5.1

Playback device is hw:0,3
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Playback open error: -2,No such file or directory

Last edited by cj_marquez (2021-11-24 22:37:37)

Offline

#6 2021-11-25 11:52:22

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 14,487

Re: new Arch installation on a Huawei D16 Razer 5 4600 pipewire no sound

Your "hw:0" doesn't exist anymore:

sudo dmesg | grep -iE 'snd|sof'

Offline

#7 2021-11-25 14:18:19

cj_marquez
Member
Registered: 2021-11-23
Posts: 6

Re: new Arch installation on a Huawei D16 Razer 5 4600 pipewire no sound

V1del wrote:

Your "hw:0" doesn't exist anymore:

sudo dmesg | grep -iE 'snd|sof'

Thanks V1del, here's the output

$sudo dmesg | grep -iE 'snd|sof'
[    0.255418] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.298429] software IO TLB: tearing down default memory pool
[    2.006924] snd_rn_pci_acp3x 0000:03:00.5: enabling device (0000 -> 0002)
[    2.500708] snd_hda_intel 0000:03:00.1: enabling device (0000 -> 0002)
[    2.500851] snd_hda_intel 0000:03:00.1: Handle vga_switcheroo audio client
[    3.325960] snd_hda_intel 0000:03:00.1: bound 0000:03:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])

Offline

#8 2021-11-27 05:45:39

cj_marquez
Member
Registered: 2021-11-23
Posts: 6

Re: new Arch installation on a Huawei D16 Razer 5 4600 pipewire no sound

Quick update, found this in the Manjaro forums, the issue seems to be that these laptops have a sound card that is not yet supported by the Linux kernel nor sof-firmware. I tried myself booting live distros of Garuda, mint and arco, all showing the same behavior.

In the same thread there's this Github link where the issue was reported around a month ago and is being analyzed.

I'll leave my thread open and follow up on that, I'll report back here any updates I can get. Thank you for the help!!

Offline

Board footer

Powered by FluxBB