You are not logged in.
After I updated my system with sudo pacman -Syu, sometimes after resuming my system from suspension there would be no sound at all. Upon opening pavucontrol, I would only find a "Dummy Output". I tried the whole pulseaudio -k and then pulseaudio -D thing (restarting PulseAudio). I did a bit of Googling and found this useful command:
journalctl --user --no-pager -b -u pulseaudio
Output included this:
kevin@Kevin-B350MA:~$ journalctl --user --no-pager -b -u pulseaudio
-- Logs begin at Sun 2019-09-22 17:10:27 BST, end at Wed 2019-09-25 20:59:30 BST. --
Sep 24 18:05:39 Kevin-B350MA systemd[667]: Starting Sound Service...
Sep 24 18:05:48 Kevin-B350MA systemd[667]: Started Sound Service.
Sep 24 18:05:48 Kevin-B350MA pulseaudio[718]: E: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.systemd1.NoSuchUnit: Unit dbus-org.bluez.service not found.
Sep 24 18:47:37 Kevin-B350MA pulseaudio[718]: E: [alsa-sink-ALC887-VD Analog] alsa-sink.c: ALSA woke us up to write new data to the device, but there was actually nothing to write.
Sep 24 18:47:37 Kevin-B350MA pulseaudio[718]: E: [alsa-sink-ALC887-VD Analog] alsa-sink.c: Most likely this is a bug in the ALSA driver 'snd_hda_intel'. Please report this issue to the ALSA developers.
Sep 24 18:47:37 Kevin-B350MA pulseaudio[718]: E: [alsa-sink-ALC887-VD Analog] alsa-sink.c: We were woken up with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or another value < min_avail.
Sep 25 19:16:32 Kevin-B350MA pulseaudio[718]: W: [alsa-sink-ALC887-VD Analog] alsa-util.c: Could not recover alsa device from SUSPENDED state, trying to restart PCM
Sep 25 19:16:32 Kevin-B350MA pulseaudio[718]: E: [alsa-sink-ALC887-VD Analog] alsa-sink.c: Error opening PCM device front:1: No such file or directory
How could I fix this issue?
Rebooting seems to solve this, but it would be inconvenient for me to wait ~2-3 minutes each bootup to start properly using my PC again (boot time + waiting for it to "warm up").
Last edited by Vectorlocity (2019-09-25 20:33:44)
Offline
What's your output for
sudo fuser -v /dev/snd/*
aplay -lL
dmesg
during this situation?
Offline
@Vectorlocity do you have multiple HDMI/DisplayPort interfaces? if so try to change sound output port from pavucontrol or similar desktops native audio mixer application:
https://i.imgur.com/FEvPlYy.png
I have the same problem with my nVidia 1080 with 3xDisplayPorts connected: my audio output may randomly switch to one of those ports sometimes after suspend/resume
I did not understanded after first read, forget it
moderator edit -- replaced oversized image with link.
Pasting pictures and code
Last edited by 2ManyDogs (2019-09-26 15:09:50)
Offline
What's your output for
sudo fuser -v /dev/snd/* aplay -lL dmesg
during this situation?
Sorry for the long time to reply, I had school here in the UK.
Output of those commands when the sound is working (I had just rebooted my system since I made my original post at night and it wouldn't be too much of a hassle to turn it back on after school when I got home today):
kevin@Kevin-B350MA:~$ sudo fuser -v /dev/snd/*
[sudo] password for kevin:
USER PID ACCESS COMMAND
/dev/snd/controlC0: gdm 483 F.... pulseaudio
/dev/snd/controlC1: gdm 483 F.... pulseaudio
kevin 752 F.... pulseaudio
/dev/snd/pcmC1D0p: kevin 752 F...m pulseaudio
/dev/snd/timer: kevin 752 f.... pulseaudio
kevin@Kevin-B350MA:~$ aplay -lL
null
Discard all samples (playback) or generate zero samples (capture)
jack
JACK Audio Connection Kit
pulse
PulseAudio Sound Server
default
Default ALSA Output (currently PulseAudio Sound Server)
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
usbstream:CARD=NVidia
HDA NVidia
USB Stream Output
sysdefault:CARD=Generic
HD-Audio Generic, ALC887-VD Analog
Default Audio Device
front:CARD=Generic,DEV=0
HD-Audio Generic, ALC887-VD Analog
Front speakers
surround21:CARD=Generic,DEV=0
HD-Audio Generic, ALC887-VD Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Generic,DEV=0
HD-Audio Generic, ALC887-VD Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic,DEV=0
HD-Audio Generic, ALC887-VD Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Generic,DEV=0
HD-Audio Generic, ALC887-VD Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Generic,DEV=0
HD-Audio Generic, ALC887-VD Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Generic,DEV=0
HD-Audio Generic, ALC887-VD Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Generic,DEV=0
HD-Audio Generic, ALC887-VD Digital
IEC958 (S/PDIF) Digital Audio Output
usbstream:CARD=Generic
HD-Audio Generic
USB Stream Output
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 0: ALC887-VD Analog [ALC887-VD Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 1: ALC887-VD Digital [ALC887-VD Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
I will post a dmesg when the problem occurs again, along with all the other given commands again too.
For context, I use a pair of HyperX Cloud Stinger headphones connected to the headphone and microphone jacks at the front of my BitFenix Nova (non-tempered glass black) case. I've specified the headphones and case because I'm not sure if it may be something to do with them.
For more linux-y context, I have two audio outputs. My PC motherboard's output jacks and my monitor's output jack (I use HDMI). I disable my monitor output jack with
pactl unload-module 6
6 being my monitor output jack's index. I did this to prevent my computer sometimes suddenly automatically switching to my monitor's output jack after resuming from suspension as well.
Offline
Mhm, The generic looks weird and I'm suspecting that the card indices do a switcheroo (though pulse shouldn't care that much, do hdmi and analog switch places with subsequent aplay -l invocations between after and before suspend?) What's your output for
systool -vm snd_hda_intel
#FWIW do you get anything from e.g.
speaker-test -Dhw:1 -c2
?
Offline
Mhm, The generic looks weird and I'm suspecting that the card indices do a switcheroo (though pulse shouldn't care that much, do hdmi and analog switch places with subsequent aplay -l invocations between after and before suspend?) What's your output for
systool -vm snd_hda_intel #FWIW do you get anything from e.g. speaker-test -Dhw:1 -c2
?
kevin@Kevin-B350MA:~$ systool -vm snd_hda_intel
Module = "snd_hda_intel"
Attributes:
coresize = "49152"
initsize = "0"
initstate = "live"
refcnt = "10"
srcversion = "202B7092860754AC89E8756"
taint = ""
uevent = <store method only>
Parameters:
align_buffer_size = "-1"
bdl_pos_adj = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
beep_mode = "Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y"
enable_msi = "0"
enable = "Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y"
id = "(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)"
index = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
jackpoll_ms = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
model = "(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)"
patch = "(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)"
pm_blacklist = "Y"
position_fix = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
power_save = "0"
power_save_controller= "N"
probe_mask = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
probe_only = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
single_cmd = "-1"
snoop = "-1"
Sections:
kevin@Kevin-B350MA:~$ speaker-test -Dhw:1 -c2
speaker-test 1.1.9
Playback device is hw:1
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Playback open error: -16,Device or resource busy
I can't hear anything when running the speaker-test command.
Offline
I have the same problem as the OP. Any resolution to this?
What's your output for
sudo fuser -v /dev/snd/* aplay -lL dmesg
during this situation?
However, when I'm having a Dummy output I don't get anything with this command:
sudo fuser -v /dev/snd/*
Only when I restart pulseaudio -k, with working sound I get
USER PID ACCESS COMMAND
/dev/snd/controlC1: ivan 5316 F.... pulseaudio
/dev/snd/pcmC1D0p: ivan 5316 F...m pulseaudio
/dev/snd/timer: ivan 5316 f.... pulseaudio
Last edited by maboleth (2020-01-13 12:37:45)
Offline
maboleth, I don't have the problem anymore.
It was fixed by a kernel update.
However, you can try this - https://askubuntu.com/questions/190146/ … end-resume (2nd answer done with 3 upvotes)
Offline