On-board audio disabled or not present
-
Pi Model or other hardware: 4b
Power Supply used: adafruit dual usb battery bank
RetroPie Version Used : retropie-buster-4.7.1-rpi4_400.img
Built From: Pre made SD Image on RetroPie website
USB Devices connected: Uctronics 5 inch led screen
Controller used: Magicsee R1I'm trying to install the adafruit speaker bonnet and when I go into Audio in the retropie menu, it is giving me the "on-board audio disabled or not present" message.
Does anyone have any ideas on how to get the Hat working on a pi4b? I appreciate any advice. I can't use the speaker set up i had ( a Canz speaker into the pi's headphone jack) because it shuts off after inactivity eventhough it has a manual on/off switch, and it's enclosed in my portable setup. I have used the speaker bonnet before on another project (pi3b) and it works great! Can the pi4b utilize the speaker bonnet/hat?
Thank you for any advice!
-
@krullbeast i tried installing and uninstalling pulseaudio,. that didn't work. i don't know why it WOULD have, but i saw it work for some people. i also tried setting the audio in emulation station to master, but it resets to 0 when i exit out. I assume this is because i somehow have the on-board audio disabled now. I've tried the guide at https://retropie.org.uk/docs/Sound-Issues/ to no avail. and i have installed the script it says it requires from the pinout page here https://pinout.xyz/pinout/speaker_bonnet my soundcard settings look like this
aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
jack
JACK Audio Connection Kit
pulse
PulseAudio Sound Server
speakerbonnet
dmixer
softvol
default
output
sysdefault:CARD=sndrpihifiberry
snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0
Default Audio Device
dmix:CARD=sndrpihifiberry,DEV=0
snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0
Direct sample mixing device
dsnoop:CARD=sndrpihifiberry,DEV=0
snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0
Direct sample snooping device
hw:CARD=sndrpihifiberry,DEV=0
snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0
Direct hardware device without any conversions
plughw:CARD=sndrpihifiberry,DEV=0
snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0
Hardware device with all software conversions
usbstream:CARD=sndrpihifiberry
snd_rpi_hifiberry_dac
USB Stream Output -
@krullbeast said in On-board audio disabled or not present:
I'm trying to install the adafruit speaker bonnet and when I go into Audio in the retropie menu, it is giving me the "on-board audio disabled or not present" message.
That's normal, since the Audio setting will only work with the on-board audio. If you modified the
/boot/config.txt
file and disabled the on-board audio, then the message is correct.sysdefault:CARD=sndrpihifiberry
What does
amixer scontrols device=sndrpihifiberry
show ?
You need to find out the mixer's name for your card and fill in theAudioDevice
option in EmulationStation's configuration. Setting theAudioCard
to default is ok. -
@mitu thank you for the feedback!
it says that doesn't exist..could i ask how do i find out the mixer's name of my card? i apologize, i'm not very good at linux yet..i'm trying.
after i do find it, can i just launch ES and set it under the start menu settings? i'll try default in the meantime.I really appreciate the help!
-
@krullbeast said in On-board audio disabled or not present:
it says that doesn't exist..could i ask how do i find out the mixer's name of my card? i apologize, i'm not very good at linux yet..i'm trying.
Run the command I posted and look at the output. You can also run
alsamixer
and look for the name of the mixer, it's shown under the volume slider. -
@mitu when i type these commands and press enter here is what i get..
pi@barreltoo:~ $ alsamixer
cannot open mixer: No such file or directory
pi@barreltoo:~ $ amixer scontrols device=sndrpihifiberry
amixer: Mixer attach default error: No such file or directory
pi@barreltoo:~ $ -
@mitu this is part of my config...do you think anything here could be causing the speaker bonnet not to play? thank you if you have any ideas..
# Uncomment some or all of these to enable the optional hardware interfaces #dtparam=i2c_arm=on dtparam=i2s=on #dtparam=spi=on # Uncomment this to enable infrared communication. #dtoverlay=gpio-ir,gpio_pin=17 #dtoverlay=gpio-ir-tx,gpio_pin=18 # Additional overlays and parameters are documented /boot/overlays/README # Enable audio (loads snd_bcm2835) #dtparam=audio=on dtparam=audio=off dtoverlay=hifiberry-dac dtoverlay=i2s-mmap [pi4] # Enable DRM VC4 V3D driver on top of the dispmanx display stack dtoverlay=vc4-fkms-v3d max_framebuffers=2 [all] #dtoverlay=vc4-fkms-v3d #overscan_scale=1 # Disable under-voltage warning avoid_warnings=1 dtoverlay=hifiberry-dac dtoverlay=i2s-mmap
-
@krullbeast said in On-board audio disabled or not present:
pi@barreltoo:~ $ alsamixer
cannot open mixer: No such file or directoryLooks like the card/mixer is not found. If you have a
$HOME/.asoundrc
file, remove it. Runaplay -l
and post the output (use code tags to surround the output -
```
). -
@mitu how can i check if i have that $HOME file? thank you for your input!! here is my aplay result
pi@barreltoo:~ $ aplay -L null Discard all samples (playback) or generate zero samples (capture) jack JACK Audio Connection Kit pulse PulseAudio Sound Server speakerbonnet dmixer softvol default output sysdefault:CARD=sndrpihifiberry snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0 Default Audio Device dmix:CARD=sndrpihifiberry,DEV=0 snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0 Direct sample mixing device dsnoop:CARD=sndrpihifiberry,DEV=0 snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0 Direct sample snooping device hw:CARD=sndrpihifiberry,DEV=0 snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0 Direct hardware device without any conversions plughw:CARD=sndrpihifiberry,DEV=0 snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0 Hardware device with all software conversions usbstream:CARD=sndrpihifiberry snd_rpi_hifiberry_dac USB Stream Output
-
@mitu said in On-board audio disabled or not present:
$HOME/.asoundrc
how do I remove this file? I came up with this
pi@barreltoo:~ $ sudo nano $HOME/.asoundrc GNU nano 3.2 /home/pi/.asoundrc pcm.!default { type asym playback.pcm { type plug slave.pcm "output" } capture.pcm { type plug slave.pcm "input" } } pcm.output { type hw card 1 } ctl.!default { type hw card 1 }
-
@krullbeast said in On-board audio disabled or not present:
@mitu how can i check if i have that $HOME file? thank you for your input!! here is my aplay result
No, that's tha
aplay -L
(uppercasel
(ell)). The command I was asking isaplay -l
(lowercaseL
). Remove or rename the.asoundrc
file and try again running the commands I posted earlier (amixer ...
andalsamixer
). -
@mitu said in On-board audio disabled or not present:
.asoundrc
ok!
this time it let me in to the mixer!!
-
@mitu here is my aplay lowercase l
pi@barreltoo:~ $ aplay -l **** List of PLAYBACK Hardware Devices **** card 0: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 [HifiBerry DAC HiFi pcm5102a-hifi-0] Subdevices: 0/1 Subdevice #0: subdevice #0
-
Based on the output, you'll need to choose Default as Audio Card and PCM as Audio device in EmulationStation.
-
@mitu YOU DID IT! I LOVE YOU!!!!
donated -
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.