Linux: no sound after suspend/sleep – the solution
Tags: troubleshooting, linux
Published: 2020-04-30 16:56:40

---
title: Linux: no sound after suspend/sleep – the solution
published: true
date: 2020-04-30 16:13:46 UTC
tags: Troubleshooting,Linux
canonical_url: https://rtfm.co.ua/en/linux-no-sound-after-suspend-sleep-solution/
---

![](https://rtfm.co.ua/wp-content/uploads/2011/08/linux-logo.png)I have a laptop with Arch Linux.

It’s suspended with the `systemctl suspend`.

The issue: after it’s wake up there is no sound.

From the information found during the investigation (see links below) the issue happens because of the [NVIDIA drivers](https://rtfm.co.ua/en/arch-linux-nvidia-driver-installation-for-geforce-gtx-1050-ti/) and isn’t specific to the Arch Linux – can happen with any other Linux distribution.

During googling first found the discussion [here>>>](https://bbs.archlinux.org/viewtopic.php?id=252030).

Check devices after wake up with no sound:

```
$ pacmd list-cards
1 card(s) available.
index: 1
  name: <alsa_card.usb-046d_HD_Pro_Webcam_C920_6C52F41F-02>
  driver: <module-alsa-card.c>
  owner module: 7
  properties:
  alsa.card = "2"
  alsa.card_name = "HD Pro Webcam C920"
...
```

_alsa.card_name = "HD Pro Webcam C920"_ – well, there is only my webcam found...

Restart the `pulseaudio` daemon:

```
$ pulseaudio -k
```

And the sound is back.

Check cards one more time:

```
$ pacmd list-cards | grep 'index:|alsa.card_name'
index: 0
  alsa.card_name = "HDA NVidia"
index: 1
  alsa.card_name = "HD Pro Webcam C920"
index: 2
  alsa.card_name = "HDA Intel PCH"
```

Check the `pulseaudio` logs:

```
$ journalctl -b --user-unit pulseaudio
-- Logs begin at Sat 2019-02-23 23:17:40 EET, end at Fri 2020-04-24 06:48:13 EEST. --
Apr 20 06:48:12 setevoy-arch-pc systemd[669]: Starting Sound Service...
Apr 20 06:48:16 setevoy-arch-pc systemd[669]: Started Sound Service.
Apr 24 06:31:57 setevoy-arch-pc pulseaudio[740]: W: [alsa-sink-ALC887-VD Analog] alsa-util.c: Could not recover alsa device from SUSPENDED state, trying to restart PCM
Apr 24 06:31:57 setevoy-arch-pc pulseaudio[740]: E: [alsa-sink-ALC887-VD Analog] alsa-sink.c: Error opening PCM device front:1: No such file or directory
Apr 24 06:31:57 setevoy-arch-pc pulseaudio[740]: W: [alsa-sink-HDMI 0] alsa-util.c: Could not recover alsa device from SUSPENDED state, trying to restart PCM
Apr 24 06:31:57 setevoy-arch-pc pulseaudio[740]: E: [alsa-sink-HDMI 0] alsa-sink.c: Error opening PCM device hdmi:0: No such file or directory
Apr 24 06:48:12 setevoy-arch-pc systemd[669]: pulseaudio.service: Succeeded.
Apr 24 06:48:12 setevoy-arch-pc systemd[669]: Starting Sound Service...
Apr 24 06:48:13 setevoy-arch-pc systemd[669]: Started Sound Service.
```

_Could not recover alsa device from SUSPENDED state_ – actually, this message led me to another discussion [here>>>](https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/766).

Add your user to the _audio_ group:

```
$ sudo gpasswd -a setevoy audio
Adding user setevoy to group audio
```

And it’s the second week when it’s suspended/resumed each day and no issue presents now.

By the way, I found a great overview here – [PulseAudio under the hood](https://gavv.github.io/articles/pulseaudio-under-the-hood/).

### Similar posts
 
- <small>03/25/2019</small> [Arch Linux: NVIDIA driver installation for GeForce GTX 1050 Ti](https://rtfm.co.ua/en/arch-linux-nvidia-driver-installation-for-geforce-gtx-1050-ti/)
- <small>05/06/2017</small> [Arch Linux: запускаем Diablo 2](https://rtfm.co.ua/arch-linux-zapuskaem-diablo-2/)  
- <small>03/29/2017</small> [Arch: Skype – звук и микрофон](https://rtfm.co.ua/arch-skype-zvuk-i-mikrofon/)