# No found sound card after first boot

**URL:** <https://dietpi.com/forum/t/no-found-sound-card-after-first-boot/19353>\
**Category:** Troubleshooting\
**Created:** [19 February 2024 13:59 UTC](https://dietpi.com/forum/t/no-found-sound-card-after-first-boot/19353 "2024-02-19T13:59:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![abask](https://dietpi.com/forum/user_avatar/dietpi.com/abask/32/5883_2.png) [@abask](https://dietpi.com/forum/u/abask)\
**Post date:** [19 February 2024 13:59 UTC](https://dietpi.com/forum/t/no-found-sound-card-after-first-boot/19353/1 "2024-02-19T13:59:17Z")

</div>

I have searched the existing open and closed issues

Raspberry Pi Zero W

#### Required Information

G\_DIETPI\_VERSION\_CORE=9  
G\_DIETPI\_VERSION\_SUB=0  
G\_DIETPI\_VERSION\_RC=2  
G\_GITBRANCH=‘master’  
G\_GITOWNER=‘MichaIng’

- Distro version | bookworm 1
- Kernel version | Linux DietPi 6.1.21+ #1642 Mon Apr 3 17:19:14 BST 2023 armv6l GNU/Linux
- Architecture | armhf
- SBC model | RPi Zero W (armv6l)
- Power supply used | USB
- SD card used | 2Gb

* * *

My RPi Zero is connected to the Samsung sound bar J-Series via an HDMI connector.  
It also gets power from the same soundbar with a USB port.

So when I turn it on (the soundbar) the RPi gets powered up and boots up.  
But RPi doesn’t see any sound adapters.

`# aplay -l
aplay: device_list:274: no soundcards found...
`

If I connect to the RPi via ssh and reboot it, It starts to see the HDMI audio adapter.  
So, I think that at the first boot of the RPi, the HDMI port is not ready yet.

How can I restart the audio subsystem after a normal boot?

PS  
I tried rmmod and then modprobe all mods with “snd”…

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [19 February 2024 19:43 UTC](https://dietpi.com/forum/t/no-found-sound-card-after-first-boot/19353/2 "2024-02-19T19:43:44Z")

</div>

@MichaIng can you have a look pls.

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [19 February 2024 20:25 UTC](https://dietpi.com/forum/t/no-found-sound-card-after-first-boot/19353/3 "2024-02-19T20:25:37Z")

</div>

Instead of a reboot, does it work to detach and re-attach the HDMI cable? Probably the sound bar is somehow not read yet, when both start together, and the RPi stores the state of the HDMI device to be no sound device. I am not sure how this is initialised, but probably via udev trigger.

… just checked the `alsa-utils` package, and indeed, aside of a systemd service which restores the ALSA mixer state at boot, there is a udev rule which does the same on a per-device level, once a sound device is added/detected. Just not sure whether/when a HDMI device declares itself as sound device, whether there is a hotplug-like detection for audio capability as well etc.

Does this work as alternative to reboot (and re-attaching the HDMI cable)?

```sh
alsactl -E HOME=/run/alsa -E XDG_RUNTIME_DIR=/run/alsa/runtime restore

```

---

<div class="post-metadata">

**Author:** ![abask](https://dietpi.com/forum/user_avatar/dietpi.com/abask/32/5883_2.png) [@abask](https://dietpi.com/forum/u/abask)\
**Post date:** [20 February 2024 08:46 UTC](https://dietpi.com/forum/t/no-found-sound-card-after-first-boot/19353/4 "2024-02-20T08:46:55Z")

</div>

> [@](#):
>
> re-attaching the HDMI cable

It doesn’t help

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [16 August 2024 20:47 UTC](https://dietpi.com/forum/t/no-found-sound-card-after-first-boot/19353/5 "2024-08-16T20:47:03Z")

</div>

Closed on 16 August 2024 20:47 UTC

This topic was automatically closed 178 days after the last reply. New replies are no longer allowed.
