debian-pi / raspbian-ua-netinst

Raspbian (minimal) unattended netinstaller
Other
1.18k stars 153 forks source link

no sound card installed (aplay: device_list:268: no sound card found ...) #444

Closed dirkclemens closed 6 years ago

dirkclemens commented 7 years ago

I installed jessie on a RPi2 using ua-netinst and it worked fine besides I do no longer have sound via the 3.5 jack. I tried everything google told me, e.g.

Any hints?

Mausy5043 commented 7 years ago

As we disabled sound on the default installation you would need to include this in the post-install.txt to re-enable it:

echo "snd-bcm2835" >> /rootfs/etc/modules

OR
you could sudo modprobe snd-bcm2835 on the installed system.

Then go from there.

We already discussed this a bit in #393. Does that discussion answer your question?

dirkclemens commented 7 years ago

thanks for your response, but as written above, I already did this without success. btw: the module is named sndbcm2835 and not snd-bcm2835 ("" instead of "-")

Mausy5043 commented 7 years ago

Both "-" and "_" seem to work for me.

Since sound is not supported out-of-the-box I'm guessing you'll need to install some additional packages. Can't help you there though. EDIT: I assume you already tried this: https://sites.google.com/site/semilleroadt/home/raspberry-pi

Mausy5043 commented 7 years ago

BTW, you said:

I do no longer have sound via the 3.5 jack

What was your previous set-up? The one that did work.

dirkclemens commented 7 years ago

my old setup broke because the sd-card was corrupted. now i've installed everything to a usb-harddrive (160GB) and started from scratch with ua-netinst. I do have backups, but I suppose that the problem is not having something misconfigurated but a missing driver/module/additional packages, as you already mentioned.

Mausy5043 commented 7 years ago

Was that on a stock Raspbian image or raspbian-ua-netinst?

dirkclemens commented 7 years ago

sorry, i forgot: it was an original wheezy image. but an updated on (latest firmware).

Mausy5043 commented 7 years ago

sorry, i forgot: it was an original wheezy image. but an updated on (latest firmware).

Ah well, that explains it. The RPF images have sound support installed by default. Systems installed with this repo don't.

aristosv commented 7 years ago

I had the exact same issue. Only I was trying to play audio with mpg123. No matter how many suggestions I tried, audio would not work. But for some weird reason omxplayer could play audio. So I just changed my scripts to use omxplayer.

433

oupala commented 7 years ago

I think this is due to the new way raspbian is handling the devicetree.

To enable the soundcard, you just have to add a line to a config file:

Add dtparam=audio=on to the file /boot/config.txt, then restart the server.

Mausy5043 commented 6 years ago

Closing this issue because it is not our intention to provide sound support by default. You may use the post-install.txt mechanism to make the appropriate changes. If you feel the closure was in error please feel free te re-open and add your new information.