I have been experiencing an issue with both PulseAudio and Pipewire (I currently have pipewire), where the moment I open an application, my audio stops working and I need to restart the services. I don’t have any masked sockets or services, and pipewire, pipewire-pulse, and wireplumber are enabled. I am new to this so help would be appreciated as I have tried everything I could find online - I imagine it may be a config thing, but should default config not work? I have completely removed pipewire and pulseaudio while troubleshooting (including config), and reinstalled by installing manjaro-pulseaudio, and then manjaro-pipewire which replaced everything necessary.
To get it to work currently I run systemctl --user restart pipewire pipewire-pulse wireplumber
whenever the sound stops working.
I feel it may be related to the xdg-portal error seen in the services, but I don’t recall removing an xdg-portal. Is that the xdg-portal-desktop package?
pactlinfo:
Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 93
Tile Size: 65472
Server Name: PulseAudio (on PipeWire 0.3.61)
Server Version: 15.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink
Default Source: alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_6__source
Cookie: d689:75d5
Masking:
pipewire-pulse.service enabled enabled
pipewire-session-manager.service alias -
pipewire.service enabled enabled
wireplumber.service enabled enabled
wireplumber@.service disabled enabled
pipewire-pulse.socket enabled enabled
pipewire.socket enabled enabled
Service Status:
wireplumber.service - Multimedia Service Session Manager
Loaded: loaded (/usr/lib/systemd/user/wireplumber.service; enabled; preset: enabled)
Active: active (running) since Sun 2022-12-11 18:20:03 EST; 14h ago
Main PID: 663 (wireplumber)
Tasks: 5 (limit: 18732)
Memory: 13.3M
CPU: 199ms
CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/wireplumber.service
└─663 /usr/bin/wireplumber
systemd[640]: Started Multimedia Service Session Manager.
wireplumber[663]: Can't find xdg-portal: (null)
wireplumber[663]: found session bus but no portal
wireplumber[663]: Failed to set scheduler settings: Operation not permitted
Dec 11 18:20:03 linux-tor-01 wireplumber[663]: [0:00:54.362971133] [663] INFO Camera camera_manager.cpp:299 libcamera v0.0.2
pipewire.service - PipeWire Multimedia Service
Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; preset: enabled)
Active: active (running) since Sun 2022-12-11 18:20:03 EST; 14h ago
TriggeredBy: ● pipewire.socket
Main PID: 662 (pipewire)
Tasks: 3 (limit: 18732)
Memory: 8.5M
CPU: 132ms
CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
└─662 /usr/bin/pipewire
systemd[640]: Started PipeWire Multimedia Service.
pipewire[662]: mod.rt: Can't find xdg-portal: (null)
pipewire[662]: mod.rt: found session bus but no portal
pipewire[662]: mod.x11-bell: XOpenDisplay() failed
pipewire[662]: [0:00:54.607443205] [662] INFO Camera camera_manager.cpp:299
libcamera v0.0.2
pipewire-pulse.service - PipeWire PulseAudio
Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.service; enabled; preset: enabled)
Active: active (running) since Sun 2022-12-11 18:20:03 EST; 14h ago
TriggeredBy: ● pipewire-pulse.socket
Main PID: 664 (pipewire-pulse)
Tasks: 2 (limit: 18732)
Memory: 6.6M
CPU: 48ms
CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire-pulse.service
└─664 /usr/bin/pipewire-pulse
systemd[640]: Started PipeWire PulseAudio.
pipewire-pulse[664]: mod.rt: Can't find xdg-portal: (null)
pipewire-pulse[664]: mod.rt: found session bus but no portal
pipewire-pulse[677]: 536870912
pactl list cards:
Card #45
Name: alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic
Driver: alsa
Owner Module: n/a
Properties:
api.acp.auto-port = "false"
api.acp.auto-profile = "false"
api.alsa.card = "0"
api.alsa.card.longname = "LENOVO-20SA000GUS-ThinkPadX1Yoga4th"
api.alsa.card.name = "sof-hda-dsp"
api.alsa.path = "hw:0"
api.alsa.use-acp = "true"
api.dbus.ReserveDevice1 = "Audio0"
device.api = "alsa"
device.bus = "pci"
device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
device.description = "Comet Lake PCH-LP cAVS"
device.enum.api = "udev"
device.icon_name = "audio-card-analog-pci"
device.name = "alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic"
device.nick = "sof-hda-dsp"
device.plugged.usec = "4491480"
device.product.id = "0x02c8"
device.product.name = "Comet Lake PCH-LP cAVS"
device.subsystem = "sound"
sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
device.vendor.id = "0x8086"
device.vendor.name = "Intel Corporation"
media.class = "Audio/Device"
factory.id = "14"
client.id = "34"
object.id = "43"
object.serial = "45"
object.path = "alsa:pcm:0"
alsa.card = "0"
alsa.card_name = "sof-hda-dsp"
alsa.long_card_name = "LENOVO-20SA000GUS-ThinkPadX1Yoga4th"
alsa.driver_name = "snd_soc_skl_hda_dsp"
device.string = "0"
Profiles:
off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
HiFi: Play HiFi quality Music (sinks: 4, sources: 2, priority: 8000, available: yes)
Active Profile: HiFi
Ports:
[Out] HDMI3: HDMI / DisplayPort 3 Output (type: HDMI, priority: 700, latency offset: 0 usec, availability group: HDMI/DP,pcm=5, not available)
Properties:
port.type = "hdmi"
port.availability-group = "HDMI/DP,pcm=5"
card.profile.port = "0"
Part of profile(s): HiFi
[Out] HDMI2: HDMI / DisplayPort 2 Output (type: HDMI, priority: 600, latency offset: 0 usec, availability group: HDMI/DP,pcm=4, not available)
Properties:
port.type = "hdmi"
port.availability-group = "HDMI/DP,pcm=4"
card.profile.port = "1"
Part of profile(s): HiFi
[Out] HDMI1: HDMI / DisplayPort 1 Output (type: HDMI, priority: 500, 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
[Out] Speaker: Speaker (type: Speaker, priority: 100, latency offset: 0 usec, availability unknown)
Properties:
port.type = "speaker"
card.profile.port = "3"
Part of profile(s): HiFi
[Out] Headphones: Headphones (type: Headphones, priority: 200, latency offset: 0 usec, availability group: Headphone, not available)
Properties:
port.type = "headphones"
port.availability-group = "Headphone"
card.profile.port = "4"
Part of profile(s): HiFi
[In] Mic2: Headphones Stereo Microphone (type: Mic, priority: 200, latency offset: 0 usec, availability group: Mic, not available)
Properties:
port.type = "mic"
port.availability-group = "Mic"
card.profile.port = "5"
Part of profile(s): HiFi
[In] Mic1: Digital Microphone (type: Mic, priority: 100, latency offset: 0 usec, availability unknown)
Properties:
port.type = "mic"
card.profile.port = "6"
Part of profile(s): HiFi