You are not logged in.
Hello. A while back I tried to setup JACK with pulseaudio and did get it to work. I had removed my previous default pulseaudio setup (I did not have any configuration changed, all default from package). When I reverted this change, spotify is the only application that seems to ignore my pulseaudio setup. Using pavucontrol I can see that spotify does not "register" in pulseaudio and the console logs from spotify also says it "uses ALSA". I would like to get some help with this issue as I cant seem to get my head around why it does not work anymore..
/etc/asound.conf:
# Use PulseAudio by default
pcm.!default {
type pulse
fallback "sysdefault"
hint {
show on
description "Default ALSA Output (currently PulseAudio Sound Server)"
}
}
ctl.!default {
type pulse
fallback "sysdefault"
}
# vim:set ft=alsaconf:
I have no ~/.asoundrc file.
aplay -L:
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
default
Default ALSA Output (currently PulseAudio Sound Server)
sysdefault:CARD=HD
USB Sound Blaster HD, USB Audio
Default Audio Device
front:CARD=HD,DEV=0
USB Sound Blaster HD, USB Audio
Front speakers
surround21:CARD=HD,DEV=0
USB Sound Blaster HD, USB Audio
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=HD,DEV=0
USB Sound Blaster HD, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=HD,DEV=0
USB Sound Blaster HD, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=HD,DEV=0
USB Sound Blaster HD, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=HD,DEV=0
USB Sound Blaster HD, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=HD,DEV=0
USB Sound Blaster HD, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=HD,DEV=0
USB Sound Blaster HD, USB Audio #1
IEC958 (S/PDIF) Digital Audio Output
sysdefault:CARD=PCH
HDA Intel PCH, ALC887-VD Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
Front speakers
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
HDA Intel PCH, ALC887-VD Digital
IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia,DEV=0
HDA NVidia, HDMI 0
HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
HDA NVidia, HDMI 1
HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
HDA NVidia, HDMI 2
HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
HDA NVidia, HDMI 3
HDMI Audio Output
Logs from spotify when playing a song:
17:56:13.407 I [audio_driver_linux.cpp:26 ] Using Alsa
17:56:13.407 I [audio_player_queue_impl.cpp:213 ] Pause driver: 0x00007f5ae802ee20
17:56:13.408 I [audio_player_queue_entry.cpp:310] Buffering changed for entry: 0x00007f5ae43c25b8, 1
17:56:13.408 I [audio_player_queue_impl.cpp:285 ] fade in at -1 for -1 milliseconds, fade out at -1 for -1 milliseconds
17:56:13.408 I [audio_player_queue_impl.cpp:821 ] Pause driver: 0x00007f5ae802ee20, 0
17:56:13.412 I [audio_player_queue_impl.cpp:641 ] Open driver: 0x00007f5ae802ee20
ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave
17:56:13.456 E [audio_decompressor_process.cpp:350] playbackError: playback_error_audio_driver (12)
Offline
sudo fuser -v /dev/snd/*
pacmd list-sinks
pacmd list-sink-inputs
This isn't right. This isn't even wrong.
-- Wolfgang Pauli --
Offline
sudo fuser -v /dev/snd/* pacmd list-sinks pacmd list-sink-inputs
sudo fuser -v /dev/snd/*
USER PID ACCESS COMMAND
/dev/snd/controlC0: thypthon 20908 F.... pulseaudio
/dev/snd/controlC1: thypthon 20908 F.... pulseaudio
/dev/snd/controlC2: thypthon 20908 F.... pulseaudio
/dev/snd/pcmC0D0c: thypthon 20908 F...m pulseaudio
/dev/snd/pcmC0D0p: thypthon 18320 F...m spotify
/dev/snd/pcmC1D0c: thypthon 20908 F...m pulseaudio
/dev/snd/pcmC1D0p: thypthon 20908 F...m pulseaudio
/dev/snd/timer: thypthon 18320 f.... spotify
pacmd list-sinks
2 sink(s) available.
index: 0
name: <alsa_output.usb-Creative_Technology_USB_Sound_Blaster_HD_000001T4-00.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: IDLE
suspend cause:
priority: 9049
volume: front-left: 37588 / 57% / -14.49 dB, front-right: 37588 / 57% / -14.49 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 34.89 ms
max request: 7 KiB
max rewind: 375 KiB
monitor source: 0
sample spec: s16le 2ch 48000Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 1
configured latency: 40.00 ms; range is 0.50 .. 2000.00 ms
card: 1 <alsa_card.usb-Creative_Technology_USB_Sound_Blaster_HD_000001T4-00>
module: 7
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "USB Audio"
alsa.id = "USB Audio"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "0"
alsa.card_name = "USB Sound Blaster HD"
alsa.long_card_name = "Creative Technology USB Sound Blaster HD at usb-0000:00:14.0-9, full speed"
alsa.driver_name = "snd_usb_audio"
device.bus_path = "pci-0000:00:14.0-usb-0:9:1.0"
sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb1/1-9/1-9:1.0/sound/card0"
udev.id = "usb-Creative_Technology_USB_Sound_Blaster_HD_000001T4-00"
device.bus = "usb"
device.vendor.id = "041e"
device.vendor.name = "Creative Technology, Ltd"
device.product.id = "3232"
device.product.name = "Sound Blaster Premium HD [SBX]"
device.serial = "Creative_Technology_USB_Sound_Blaster_HD_000001T4"
device.string = "front:0"
device.buffering.buffer_size = "384000"
device.buffering.fragment_size = "192000"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
device.description = "Sound Blaster Premium HD [SBX] Analog Stereo"
alsa.mixer_name = "USB Mixer"
alsa.components = "USB041e:3232"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-usb"
ports:
analog-output: Analog Output (priority 9900, latency offset 0 usec, available: unknown)
properties:
active port: <analog-output>
* index: 1
name: <alsa_output.pci-0000_00_1f.3.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: IDLE
suspend cause:
priority: 9039
volume: front-left: 70973 / 108% / 2.08 dB, front-right: 70973 / 108% / 2.08 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 40.48 ms
max request: 6 KiB
max rewind: 344 KiB
monitor source: 2
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 1
configured latency: 40.00 ms; range is 0.50 .. 2000.00 ms
card: 2 <alsa_card.pci-0000_00_1f.3>
module: 8
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "ALC887-VD Analog"
alsa.id = "ALC887-VD Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "1"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0xf7240000 irq 132"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1f.3"
sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card1"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "a170"
device.product.name = "Sunrise Point-H HD Audio"
device.form_factor = "internal"
device.string = "front:1"
device.buffering.buffer_size = "352800"
device.buffering.fragment_size = "176400"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
device.description = "Built-in Audio Analog Stereo"
alsa.mixer_name = "Realtek ALC887-VD"
alsa.components = "HDA:10ec0887,104386c9,00100302"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
analog-output-lineout: Line Out (priority 9900, latency offset 0 usec, available: no)
properties:
analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: yes)
properties:
device.icon_name = "audio-headphones"
active port: <analog-output-headphones>
pacmd list-sink-inputs
0 sink input(s) available.
Offline
Hello, no encouragement to offend you, please read and look in the forum, because in the "planet Linux" will NOT find a https://wiki.archlinux.org/ so but as complete and rich as that of ArchLinux. Surely you will get the answer to your problem!
If you want, you can start with https://bbs.archlinux.org/viewforum.php?id=32
This isn't right. This isn't even wrong.
-- Wolfgang Pauli --
Offline
You should configure spotify so that it plays back from your 'default' device as opposed to a direct card. Otherwise it isn't handled by pulse and will lead to conflicts.
Offline
You should configure spotify so that it plays back from your 'default' device as opposed to a direct card. Otherwise it isn't handled by pulse and will lead to conflicts.
Thanks. Is this something that should be set in spotifys own config? There does not seem to be any documentation of it.
Offline
Note: I did have some luck to get spotify to work with pulseaudio. Yesterday, I ended up uninstalling `pulseaudio-alsa` package and then it worked... for some reason. Just now, I had the same issue again with spotify playing directly to alsa and not showing up in pavucontrol. Then I did `systemd --user restart pulseaudio.socket` and `systemd --user restart pulseaudio.service` and after restarting spotify it plays songs, but only if `pavucontrol` is not open.. Spotify does not play via the configured default in pulseaudio..
Offline
That's because spotify is not playing back over pulse, which is not what you want as that will block the audio device for everything but spotify and vice versa. The fuser output should return only pulseaudio even if you are playing something in spotify. And you should see at the very least a [alsa-plugin] spotify stream within pavucontrol.
As you are seemingly the first person having an issue with that, at least on here, something on your setup might be weird, do you have an ~/.asoundrc or something? Reinstall pulseaudio-alsa in any case, not having it there isn't going to be the fix and you might get other issues with other apps that properly ask for the default device.
Do you have any ALSA related redefinitions in your environment?
printenv
Maybe try something like
ALSA_PCM=pulse spotify
Last edited by V1del (2018-05-27 15:58:09)
Offline
I reinstalled pulseaudio-alsa now without any luck fixing the spotify issue.
printenv
LANG=en_US.UTF-8
DISPLAY=:0
MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
XDG_VTNR=7
SSH_AUTH_SOCK=/tmp/ssh-EtRHjE5fN2OD/agent.2228
XDG_SESSION_ID=c2
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/edvin
USER=edvin
DESKTOP_SESSION=i3
PWD=/home/edvin
HOME=/home/edvin
XDG_SESSION_TYPE=x11
XDG_SESSION_DESKTOP=i3
GTK_MODULES=canberra-gtk-module
_JAVA_OPTIONS=-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
MAIL=/var/spool/mail/edvin
SHELL=/bin/zsh
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_CURRENT_DESKTOP=i3
XDG_SEAT=seat0
SHLVL=3
MAVEN_OPTS=-Xmx512m
GDMSESSION=i3
LOGNAME=edvin
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
XDG_RUNTIME_DIR=/run/user/1000
XAUTHORITY=/home/edvin/.Xauthority
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
PATH=/home/edvin/.nvm/versions/node/v8.11.1/bin:/home/edvin/.local/bin:/home/edvin/bin:/home/edvin/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/edvin/.gem/ruby/2.4.0/bin
_=/usr/bin/printenv
KITTY_WINDOW_ID=1
WINDOWID=31457300
TERM=xterm-kitty
COLORTERM=truecolor
TERMINFO=/usr/lib/kitty/terminfo
OLDPWD=/home/edvin
ZSH=/home/edvin/.oh-my-zsh
PAGER=less
LESS=-R
LC_CTYPE=en_US.UTF-8
LSCOLORS=Gxfxcxdxbxegedabagacad
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
EDITOR=vim
YSU_HARDCORE=1
SSH_AGENT_PID=2229
NVM_DIR=/home/edvin/.nvm
NVM_CD_FLAGS=-q
NVM_BIN=/home/edvin/.nvm/versions/node/v8.11.1/bin
I don't have a .asoundrc config, but I do have a /etc/asound.conf, the same as in pulseaudio-alsa package.
I tried running `ALSA_PCM=pulse spotify --show-console` and I then saw this message: `16:22:46.195 I [audio_driver_linux.cpp:26 ] Using Alsa` so it seems to not work. I think you are on to something, because when some app is using pulseaudi as they should (like firefox), spotify is unable to play.
When firefox is running:
USER PID ACCESS COMMAND
/dev/snd/controlC0: edvin 1538 F.... polybar
edvin 1774 F.... pulseaudio
/dev/snd/controlC1: edvin 1774 F.... pulseaudio
/dev/snd/controlC2: edvin 1774 F.... pulseaudio
/dev/snd/pcmC0D0p: edvin 1774 F...m pulseaudio
When spotify plays (no other app is playing audio, because spotify does not play anything when something else is playing):
USER PID ACCESS COMMAND
/dev/snd/controlC0: edvin 1538 F.... polybar
edvin 1774 F.... pulseaudio
/dev/snd/controlC1: edvin 1774 F.... pulseaudio
/dev/snd/controlC2: edvin 1774 F.... pulseaudio
/dev/snd/pcmC0D0p: edvin 17039 F...m spotify
/dev/snd/timer: edvin 17039 f.... spotify
Last edited by thypthon (2018-05-27 16:27:37)
Offline