You are not logged in.
After a fairly recent system update, Spotify app does not output sound.
I have tried ncspot as well, but no sound either.
However, I tried Spot (Gtk/Rust native Spotify client for the Gnome desktop.) and that one does play sound.
I have no issues with sound in any other application that I'm aware of.
$ pacman -Qs
local/libpipewire 1:0.3.70-2
Low-latency audio/video router and processor - client library
local/libwireplumber 0.4.14-1
Session / policy manager implementation for PipeWire - client library
local/pipewire 1:0.3.70-2
Low-latency audio/video router and processor
local/pipewire-audio 1:0.3.70-2
Low-latency audio/video router and processor - Audio support
local/pipewire-jack 1:0.3.70-2
Low-latency audio/video router and processor - JACK support
local/pipewire-pulse 1:0.3.70-2
Low-latency audio/video router and processor - PulseAudio replacement
local/wireplumber 0.4.14-1
Session / policy manager implementation for PipeWire
How could I debug this? Thanks in advance
Last edited by pvizczk (2023-05-14 09:40:04)
Offline
During reproduction post
sudo fuser -v /dev/snd/*
pactl list sinks
pactl list sink-inputs
Spotify is an electron/chromium browser it should just work via standard pulse API integration.
Last edited by V1del (2023-05-12 12:38:09)
Online
$ sudo fuser -v /dev/snd/*
USUARIO PID ACCESO ORDEN
/dev/snd/controlC0: pvizc 1322 F.... pipewire
pvizc 1323 F.... wireplumber
/dev/snd/controlC1: pvizc 1323 F.... wireplumber
/dev/snd/pcmC0D7p: pvizc 1322 F...m pipewire
/dev/snd/seq: pvizc 1322 F.... pipewire
$ pactl list sinks
Sink #53
State: RUNNING
Name: alsa_output.pci-0000_04_00.1.hdmi-stereo-extra1
Description: Renoir Radeon High Definition Audio Controller Digital Stereo (HDMI 2)
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_04_00.1.hdmi-stereo-extra1.monitor
Latency: 0 usec, configured 0 usec
Flags: HARDWARE DECIBEL_VOLUME LATENCY SET_FORMATS
Properties:
alsa.card = "0"
alsa.card_name = "HD-Audio Generic"
alsa.class = "generic"
alsa.device = "7"
alsa.driver_name = "snd_hda_intel"
alsa.id = "HDMI 1"
alsa.long_card_name = "HD-Audio Generic at 0xfd3c8000 irq 64"
alsa.name = "ASUS VC239"
alsa.resolution_bits = "16"
alsa.subclass = "generic-mix"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
api.alsa.card.longname = "HD-Audio Generic at 0xfd3c8000 irq 64"
api.alsa.card.name = "HD-Audio Generic"
api.alsa.path = "hdmi:0,1"
api.alsa.pcm.card = "0"
api.alsa.pcm.stream = "playback"
audio.channels = "2"
audio.position = "FL,FR"
card.profile.device = "6"
device.api = "alsa"
device.class = "sound"
device.id = "43"
device.profile.description = "Digital Stereo (HDMI 2)"
device.profile.name = "hdmi-stereo-extra1"
device.routes = "1"
factory.name = "api.alsa.pcm.sink"
media.class = "Audio/Sink"
device.description = "Renoir Radeon High Definition Audio Controller"
node.name = "alsa_output.pci-0000_04_00.1.hdmi-stereo-extra1"
node.nick = "ASUS VC239"
node.pause-on-idle = "false"
object.path = "alsa:pcm:0:hdmi:0,1:playback"
priority.driver = "632"
priority.session = "632"
factory.id = "18"
clock.quantum-limit = "8192"
client.id = "33"
node.driver = "true"
factory.mode = "merge"
audio.adapt.follower = ""
library.name = "audioconvert/libspa-audioconvert"
object.id = "53"
object.serial = "53"
node.max-latency = "16384/48000"
api.alsa.period-size = "1024"
api.alsa.period-num = "32"
api.alsa.headroom = "0"
api.acp.auto-port = "false"
api.acp.auto-profile = "false"
api.alsa.card = "0"
api.alsa.use-acp = "true"
api.dbus.ReserveDevice1 = "Audio0"
device.bus = "pci"
device.bus_path = "pci-0000:04:00.1"
device.enum.api = "udev"
device.icon_name = "audio-card-analog-pci"
device.name = "alsa_card.pci-0000_04_00.1"
device.nick = "HD-Audio Generic"
device.plugged.usec = "4462472"
device.product.id = "0x1637"
device.product.name = "Renoir Radeon High Definition Audio Controller"
device.subsystem = "sound"
sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:04:00.1/sound/card0"
device.vendor.id = "0x1002"
device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
device.string = "0"
Ports:
hdmi-output-1: HDMI / DisplayPort 2 (type: HDMI, priority: 5800, availability group: Legacy 2, available)
Active Port: hdmi-output-1
Formats:
pcm
Sink #54
State: SUSPENDED
Name: alsa_output.pci-0000_04_00.6.analog-stereo
Description: Family 17h/19h HD Audio Controller Estéreo analógico
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_04_00.6.analog-stereo.monitor
Latency: 0 usec, configured 0 usec
Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
Properties:
alsa.card = "1"
alsa.card_name = "HD-Audio Generic"
alsa.class = "generic"
alsa.device = "0"
alsa.driver_name = "snd_hda_intel"
alsa.id = "ALC257 Analog"
alsa.long_card_name = "HD-Audio Generic at 0xfd3c0000 irq 65"
alsa.name = "ALC257 Analog"
alsa.resolution_bits = "16"
alsa.subclass = "generic-mix"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
api.alsa.card.longname = "HD-Audio Generic at 0xfd3c0000 irq 65"
api.alsa.card.name = "HD-Audio Generic"
api.alsa.path = "front:1"
api.alsa.pcm.card = "1"
api.alsa.pcm.stream = "playback"
audio.channels = "2"
audio.position = "FL,FR"
card.profile.device = "3"
device.api = "alsa"
device.class = "sound"
device.id = "44"
device.profile.description = "Estéreo analógico"
device.profile.name = "analog-stereo"
device.routes = "2"
factory.name = "api.alsa.pcm.sink"
media.class = "Audio/Sink"
device.description = "Family 17h/19h HD Audio Controller"
node.name = "alsa_output.pci-0000_04_00.6.analog-stereo"
node.nick = "ALC257 Analog"
node.pause-on-idle = "false"
object.path = "alsa:pcm:1:front:1:playback"
priority.driver = "1009"
priority.session = "1009"
factory.id = "18"
clock.quantum-limit = "8192"
client.id = "33"
node.driver = "true"
factory.mode = "merge"
audio.adapt.follower = ""
library.name = "audioconvert/libspa-audioconvert"
object.id = "54"
object.serial = "54"
api.acp.auto-port = "false"
api.acp.auto-profile = "false"
api.alsa.card = "1"
api.alsa.use-acp = "true"
api.dbus.ReserveDevice1 = "Audio1"
device.bus = "pci"
device.bus_path = "pci-0000:04:00.6"
device.enum.api = "udev"
device.icon_name = "audio-card-analog-pci"
device.name = "alsa_card.pci-0000_04_00.6"
device.nick = "HD-Audio Generic"
device.plugged.usec = "4512442"
device.product.id = "0x15e3"
device.product.name = "Family 17h/19h HD Audio Controller"
device.subsystem = "sound"
sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:04:00.6/sound/card1"
device.vendor.id = "0x1022"
device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
device.string = "1"
Ports:
analog-output-speaker: Altavoces (type: Speaker, priority: 10000, availability group: Legacy 3, availability unknown)
analog-output-headphones: Auriculares (type: Headphones, priority: 9900, availability group: Legacy 4, not available)
Active Port: analog-output-speaker
Formats:
pcm
$ pactl list sink-inputs
Sink Input #71
Driver: PipeWire
Owner Module: n/a
Client: 70
Sink: 53
Sample Specification: float32le 2ch 44100Hz
Channel Map: front-left,front-right
Format: pcm, format.sample_format = "\"float32le\"" format.rate = "44100" format.channels = "2" format.channel_map = "\"front-left,front-right\""
Corked: no
Mute: yes
Volume: front-left: 61306 / 94% / -1,74 dB, front-right: 61306 / 94% / -1,74 dB
balance 0,00
Buffer Latency: 0 usec
Sink Latency: 0 usec
Resample method: PipeWire
Properties:
client.api = "pipewire-pulse"
pulse.server.type = "unix"
application.name = "spotify"
application.process.id = "2891"
application.process.user = "pvizc"
application.process.host = "arch"
application.process.binary = "spotify"
application.language = "es_ES.UTF-8"
window.x11.display = ":0"
application.process.machine_id = "f2be3c49d09d482cbd5ce2a713d2493b"
media.role = "music"
media.name = "Spotify"
node.rate = "1/44100"
node.latency = "8192/44100"
stream.is-live = "true"
node.name = "spotify"
node.autoconnect = "true"
node.want-driver = "true"
media.class = "Stream/Output/Audio"
adapt.follower.spa-node = ""
object.register = "false"
factory.id = "6"
clock.quantum-limit = "8192"
factory.mode = "split"
audio.adapt.follower = ""
library.name = "audioconvert/libspa-audioconvert"
client.id = "65"
object.id = "66"
object.serial = "71"
pulse.attr.maxlength = "4194304"
pulse.attr.tlength = "640064"
pulse.attr.prebuf = "0"
pulse.attr.minreq = "7056"
module-stream-restore.id = "sink-input-by-media-role:music"
Offline
Spotify is muted and playing to the HDMI device.
Check pavucontrol or so or
pactl set-sink-input-mute 71 off #the 71 here will change check the sink input index of spotify from the second command, if that didn't help already try...
pactl move-sink-input 71 alsa_output.pci-0000_04_00.6.analog-stereo
Online
This definitely worked
HDMI output is correct since I do have an external monitor with speakers.
Thank you very much V1del, I will mark this as solved.
Just one last thing, why did this get muted in the first place? I mean, I surely didn't do this manually...
Offline
In the majority of cases you're probably not as sure as you think you are, there are some system triggered special cases like the stream getting muted due to role ducking (e.g. voice calls lowering playback audio) but that mostly affected pulseaudio with a certain module loaded
Online