Losing sound after waking from sleep

Whenever I wake up from sleep, I would lose sound.

inxi -Fxxx

Host: Kernel: 5.9.11-3-MANJARO x86_64 bits: 64 compiler: gcc 
  v: 10.2.0 Desktop: Xfce 4.14.3 tk: Gtk 3.24.23 info: xfce4-panel wm: xfwm4 
  dm: LightDM 1.30.0 Distro: Manjaro Linux 
  Type: Laptop System: Sony product: VPCEH11FX v: C105NRAH 
  serial: <superuser/root required> Chassis: type: 10 
  serial: <superuser/root required> 
  Mobo: Sony model: VAIO serial: <superuser/root required> BIOS: INSYDE 
  v: R0180Z9 date: 04/28/2011 
  ID-1: BAT0 charge: 30.1 Wh condition: 30.1/43.2 Wh (70%) volts: 3.8/10.8 
  model: Sony Corp. VGP-BPS26 type: Li-ion serial: 314 status: Full 
  Device-1: hidpp_battery_0 model: Logitech Wireless Touch Keyboard K400 
  serial: 404b-af-11-a0-cb charge: 100% (should be ignored) 
  rechargeable: yes status: Discharging 
  Info: Dual Core model: Intel Pentium B940 bits: 64 type: MCP 
  arch: Sandy Bridge rev: 7 L2 cache: 2048 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 bogomips: 7984 
  Speed: 798 MHz min/max: 800/2000 MHz Core speeds (MHz): 1: 911 2: 973 
  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics 
  vendor: Sony driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:0106 
  Device-2: Microdia Sony Visual Communication Camera type: USB 
  driver: uvcvideo bus ID: 1-1.2:3 chip ID: 0c45:6436 
  Display: x11 server: X.Org 1.20.10 driver: intel unloaded: modesetting 
  alternate: fbdev,vesa resolution: 1920x1080~60Hz s-dpi: 96 
  OpenGL: renderer: Mesa DRI Intel HD Graphics 2000 (SNB GT1) 
  v: 3.3 Mesa 20.2.3 compat-v: 3.0 direct render: Yes 
  Device-1: Intel 6 Series/C200 Series Family High Definition Audio 
  vendor: Sony driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
  chip ID: 8086:1c20 
  Sound Server: ALSA v: k5.9.11-3-MANJARO 
  Device-1: Qualcomm Atheros AR9285 Wireless Network Adapter 
  vendor: Foxconn T77H126.00 802.11bgn driver: ath9k v: kernel port: 4040 
  bus ID: 07:00.0 chip ID: 168c:002b 
  IF: wlp7s0 state: up mac: 90:00:4e:ca:86:68 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Sony driver: r8169 v: kernel port: 2000 bus ID: 13:00.0 
  chip ID: 10ec:8168 
  IF: enp19s0 state: down mac: 78:84:3c:e4:3e:14 
  Local Storage: total: 357.25 GiB used: 50.90 GiB (14.2%) 
  ID-1: /dev/sda vendor: HGST (Hitachi) model: HTS725032A7E630 
  size: 298.09 GiB speed: 6.0 Gb/s rotation: 7200 rpm serial: TF645AY1GP6YDL 
  rev: B550 scheme: MBR 
  ID-2: /dev/sdb type: USB vendor: SanDisk model: Cruzer Dial 
  size: 59.16 GiB serial: 4C530001010418106322 rev: 1.00 scheme: MBR 
  ID-1: / size: 292.41 GiB used: 50.90 GiB (17.4%) fs: ext4 dev: /dev/dm-0 
  Alert: No Swap data was found. 
  System Temperatures: cpu: 50.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
  Processes: 179 Uptime: 6h 13m Memory: 3.79 GiB used: 1.96 GiB (51.7%) 
  Init: systemd v: 246 Compilers: gcc: 10.2.0 Packages: 1398 pacman: 1391 
  flatpak: 7 Shell: Bash v: 5.0.18 running in: xfce4-terminal inxi: 3.1.08 

Additional info: laptop connected to a tv monitor and I use pulseaudio, and pulseaudio effects

Hello @zombiechop :wink:

Is alsa still working or only pulseaudio is crashed?

Test alsa (install first alsa-utils):

speaker-test -c2 -twav

if it is working, try to restart pulseaudio-daemon:

systemctl restart --user pulseaudio
1 Like

Hi thank you for the response!
I don’t think pulseaudio crashes, because even after losing sound. pulseaudio is working. I do reset pulseaudio, sometimes the sound will comeback and sometimes it won’t

Even if pulseaudio is running, it doesn’t mean it is not crashed… and well… thinking is not knowing. Test it.

ok I tried to wake up from sleep again, no sound, did the test and there’s no sound.

ok then it is really alsa… try to restore it:

sudo systemctl restart alsa-restore.service

and try again the speaker test

But don’t think that will make any difference… :man_shrugging:

Seems it is more a driver problem…

modinfo snd_hda_intel gives some parameters to try. Maybe it is a powersaving issue?

Try this parameter: pm_blacklist=Y


sorry I do not understand how to apply that, am I supposed to add that to the kernel?
and I think already have pm_blacklist=Y added

!!Module: snd_hda_intel
	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
	dmic_detect : Y
	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
	enable_msi : -1
	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

I don’t now if alsa is used with PulseAudio but…
Could it be related to a missing /etc/alsa/state-daemon.conf?

On my system i see only these alsa related services: (as name at least)

systemctl status alsa-restore.service alsa-state.service
â—Ź alsa-restore.service - Save/Restore Sound Card State
     Loaded: loaded (/usr/lib/systemd/system/alsa-restore.service; static)
     Active: inactive (dead)
  Condition: start condition failed at Sun 2020-12-06 11:53:37 +03; 4h 10min ago
             └─ ConditionPathExists=/var/lib/alsa/asound.state was not met

Dec 06 11:53:37 manjaro systemd[1]: Condition check resulted in Save/Restore Sound Card State being skipped.

â—Ź alsa-state.service - Manage Sound Card State (restore and store)
     Loaded: loaded (/usr/lib/systemd/system/alsa-state.service; static)
     Active: inactive (dead)
  Condition: start condition failed at Sun 2020-12-06 11:53:37 +03; 4h 10min ago
             └─ ConditionPathExists=/etc/alsa/state-daemon.conf was not met

Dec 06 11:53:37 manjaro systemd[1]: Condition check resulted in Manage Sound Card State (restore and store) being skipped.

I checked and I am in fact missing state-daemon.conf

Me 2 thats why i mentioned it :wink: