You are not logged in.

#1 2022-01-02 04:56:42

tporg
Member
Registered: 2019-11-26
Posts: 44

Sound not working in pipewire

Hi,

The sound doesn't work for my laptop (Thinkpad x1 carbon. internal speakers and microphone doesn't work either)  and Pipewire doesn't list any working configuration profiles other than the one from my monitor through HDMI.

Can someone help me? I am missing something here I know. Just can't find out what it is. Appreciate any help.

I have the below packages installed as I was trying to configure pipewire:

  • pipewire

  • pipewire-alsa

  • pipewire-pulse

  • pipewire-jack

  • lib32-pipewire

  • ib32-pipewire-jack

  • pipewire-media-session

Checking for the status of below services gives the below output with hostName being my computer hostname.

$ systemctl --user status pipewire pipewire-media-session pipewire-pulse

● pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2022-01-02 09:25:38 IST; 39min ago
TriggeredBy: ● pipewire.socket
   Main PID: 927 (pipewire)
      Tasks: 2 (limit: 18877)
     Memory: 10.7M
        CPU: 1.557s
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
             └─927 /usr/bin/pipewire

Jan 02 09:25:38 hostName systemd[919]: Started PipeWire Multimedia Service.

● pipewire-media-session.service - PipeWire Media Session Manager
     Loaded: loaded (/usr/lib/systemd/user/pipewire-media-session.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2022-01-02 09:25:38 IST; 39min ago
   Main PID: 928 (pipewire-media-)
      Tasks: 2 (limit: 18877)
     Memory: 7.4M
        CPU: 277ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire-media-session.service
             └─928 /usr/bin/pipewire-media-session

Jan 02 09:25:38 hostName systemd[919]: Started PipeWire Media Session Manager.
Jan 02 09:34:33 hostName pipewire-media-session[928]: ms.mod.policy-node: 0x562eca5b7f10: no node found for 47, stream error
Jan 02 09:34:33 hostName pipewire-media-session[928]: ms.mod.policy-node: 0x562eca5b7f10: no node found for 48, stream error
Jan 02 09:34:34 hostName pipewire-media-session[928]: ms.mod.policy-node: 0x562eca5b7f10: no node found for 48, stream error

● pipewire-pulse.service - PipeWire PulseAudio
     Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2022-01-02 09:25:38 IST; 39min ago
TriggeredBy: ● pipewire-pulse.socket
   Main PID: 929 (pipewire-pulse)
      Tasks: 2 (limit: 18877)
     Memory: 34.3M
        CPU: 699ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire-pulse.service
             └─929 /usr/bin/pipewire-pulse

Jan 02 09:25:38 hostName systemd[919]: Started PipeWire PulseAudio.
Jan 02 09:34:33 hostName pipewire-pulse[929]: mod.protocol-pulse: client 0x55e0aeb0c3d0 [libcanberra]: ERROR command:-1 (invalid) tag:3 error:25 (Input/output error)

Pactl info gives the below output

$ pactl info
Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 47
Tile Size: 65472
User Name: userName
Host Name: hostName
Server Name: PulseAudio (on PipeWire 0.3.42)
Server Version: 15.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: default_null_sink
Default Source: @DEFAULT_SOURCE@
Cookie: 721d3e7821

Pactl list sinks gives the below output

$ pactl list sinks

Sink #50
	State: IDLE
	Name: default_null_sink
	Description: default_null_sink Audio/Sink sink
	Driver: PipeWire
	Sample Specification: float32le 2ch 48000Hz
	Channel Map: aux0,aux1
	Owner Module: 4294967295
	Mute: no
	Volume: aux0: 65536 / 100% / 0.00 dB,   aux1: 65536 / 100% / 0.00 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor Source: default_null_sink.monitor
	Latency: 0 usec, configured 0 usec
	Flags: DECIBEL_VOLUME LATENCY 
	Properties:
		module.author = "Wim Taymans <wim.taymans@gmail.com>"
		module.description = "A NULL sink"
		module.usage = "sink_name=<name of sink> sink_properties=<properties for the sink> format=<sample format> rate=<sample rate> channels=<number of channels> channel_map=<channel map>"
		module.version = "0.3.42"
		object.linger = "1"
		media.class = "Audio/Sink"
		node.name = "default_null_sink"
		audio.channels = "2"
		audio.position = "UNK,UNK"
		device.description = "default_null_sink Audio/Sink sink"
		factory.name = "support.null-audio-sink"
		monitor.channel-volumes = "true"
		factory.id = "18"
		node.driver = "true"
		factory.mode = "merge"
		audio.adapt.follower = ""
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "50"
		object.serial = "50"
	Formats:
		pcm

Pactl list cards gives out the below output

$ pactl list cards

Card #40
	Name: alsa_card.pci-0000_00_1f.3
	Driver: alsa
	Owner Module: n/a
	Properties:
		device.enum.api = "udev"
		device.api = "alsa"
		media.class = "Audio/Device"
		api.alsa.path = "hw:0"
		api.alsa.card = "0"
		api.alsa.card.name = "HDA Intel PCH"
		api.alsa.card.longname = "HDA Intel PCH at 0xec340000 irq 144"
		device.plugged.usec = "170692431"
		device.bus_path = "pci-0000:00:1f.3"
		device.sysfs.path = "/sys/devices/pci0000:00/0000:00:1f.3/sound/card0"
		device.bus = "pci"
		device.subsystem = "sound"
		device.vendor.id = "32902"
		device.vendor.name = "Intel Corporation"
		device.product.id = "40305"
		device.product.name = "Sunrise Point-LP HD Audio (ThinkPad X1 Carbon 5th Gen)"
		device.form_factor = "internal"
		device.name = "alsa_card.pci-0000_00_1f.3"
		device.description = "Built-in Audio"
		device.nick = "HDA Intel PCH"
		device.icon_name = "audio-card-pci"
		api.alsa.use-acp = "true"
		api.acp.auto-profile = "false"
		api.acp.auto-port = "false"
		api.dbus.ReserveDevice1 = "Audio0"
		factory.id = "14"
		client.id = "31"
		object.id = "40"
		object.serial = "37"
		object.path = "alsa:pcm:0"
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xec340000 irq 144"
		alsa.driver_name = "snd_hda_intel"
		device.string = "0"
	Profiles:
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
		output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5900, available: no)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (sinks: 1, sources: 0, priority: 5700, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (sinks: 1, sources: 0, priority: 5700, available: no)
		output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (sinks: 1, sources: 0, priority: 5700, available: no)
		output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (sinks: 1, sources: 0, priority: 5700, available: no)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (sinks: 1, sources: 0, priority: 800, available: no)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (sinks: 1, sources: 0, priority: 800, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (sinks: 1, sources: 0, priority: 600, available: no)
		pro-audio: Pro Audio (sinks: 5, sources: 0, priority: 1, available: yes)
	Active Profile: off
	Ports:
		hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, latency offset: 0 usec, availability group: Legacy 1, not available)
			Properties:
				port.type = "hdmi"
				port.availability-group = "Legacy 1"
				device.icon_name = "video-display"
				card.profile.port = "0"
			Part of profile(s): output:hdmi-stereo, output:hdmi-surround, output:hdmi-surround71
		hdmi-output-1: HDMI / DisplayPort 2 (type: HDMI, priority: 5800, latency offset: 0 usec, availability group: Legacy 2, not available)
			Properties:
				port.type = "hdmi"
				port.availability-group = "Legacy 2"
				device.icon_name = "video-display"
				card.profile.port = "1"
			Part of profile(s): output:hdmi-stereo-extra1, output:hdmi-surround-extra1, output:hdmi-surround71-extra1
		hdmi-output-2: HDMI / DisplayPort 3 (type: HDMI, priority: 5700, latency offset: 0 usec, availability group: Legacy 3, not available)
			Properties:
				port.type = "hdmi"
				port.availability-group = "Legacy 3"
				device.icon_name = "video-display"
				card.profile.port = "2"
			Part of profile(s): output:hdmi-stereo-extra2, output:hdmi-surround-extra2, output:hdmi-surround71-extra2
		hdmi-output-3: HDMI / DisplayPort 4 (type: HDMI, priority: 5600, latency offset: 0 usec, availability group: Legacy 4, not available)
			Properties:
				port.type = "hdmi"
				port.availability-group = "Legacy 4"
				device.icon_name = "video-display"
				card.profile.port = "3"
			Part of profile(s): output:hdmi-stereo-extra3, output:hdmi-surround-extra3, output:hdmi-surround71-extra3
		hdmi-output-4: HDMI / DisplayPort 5 (type: HDMI, priority: 5500, latency offset: 0 usec, availability group: Legacy 5, not available)
			Properties:
				port.type = "hdmi"
				port.availability-group = "Legacy 5"
				device.icon_name = "video-display"
				card.profile.port = "4"
			Part of profile(s): output:hdmi-stereo-extra4, output:hdmi-surround-extra4, output:hdmi-surround71-extra4

Last edited by tporg (2022-01-02 04:57:56)

Offline

#2 2022-01-02 11:22:34

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,999
Website

Re: Sound not working in pipewire

Does this get things working:

systemctl --user restart pipewire{,-pulse,-media-session}

Reference: https://gitlab.freedesktop.org/pipewire … issues/439

I would recommend using wireplumber instead of pipewire-media-session.


Jin, Jîyan, Azadî

Offline

#3 2022-01-02 13:06:07

tporg
Member
Registered: 2019-11-26
Posts: 44

Re: Sound not working in pipewire

Hey!

Thanks for replying. But no it did not help. I did try wireplumber. But that didn't help either.

I am also reading this and wondering if the issue is with my Thinkpad X1 Carbon 5th Gen - https://bbs.archlinux.org/viewtopic.php?id=257975.

Update - Didn't find the dsp-fix.config file at all. So I am assuming this is not the issue.

Last edited by tporg (2022-01-02 13:47:17)

Offline

Board footer

Powered by FluxBB