Audio issues after latest Raspbian updates (June 2020)
-
@mitu - I'm sorry if I am missing the obvious here. I did read the technical details, watched the video and I also spent a few hours on the raspberry pi forums reading the engineers posts yesterday. It sounds like audio was a bit of challenge for them to straighten out and decide how to proceed over the past months.
Just to clarify before the OS upgrade there was HDMI 1 and 2 in the audio menu which worked to switch the audio back and forth between ports. It works great. Plug in your TV, boot up and pick your HDMI port from the audio menu and the audio works.
After the update I only see HDMI 1 (in the RetroPie -> AUDIO menu or HDMI in ES) so when you say the audio menu will make one of them the default. You can no longer switch between HDMI 1 and 2 but it treats both of them as a single card?
After the OS update I did not choose HDMI as my Audio Device but left it as PCM (In Emulationstation) and my audio is working perfectly on both HDMI ports. It seems to automatically work on either port. I just switch ports, reboot and play. Are both HDMI ports bundled as one card hence you only see HDMI 1 in the RetroPie audio menu?
Is the ES menu the preferred method of setting the audio or is it ok to use RetroPie audio menu. I am a bit confused on the two options and the differences of when to use which menu.
In the RetroPie menu I see HDMI 1 but in ES I only see HDMI so I wonder is that HDMI 1 or 2 or both? I'm just trying to wrap my head around everything here and I appreciate any help in getting it straight if possible, if not I can follow the steps above and call it good too.
-
@Riverstorm said in Audio issues after latest Raspbian updates:
Just to clarify before the OS upgrade there was HDMI 1 and 2 in the audio menu which worked to switch the audio back and forth between ports. It works great. Plug in your TV, boot up and pick your HDMI port from the audio menu and the audio works.
After the update I only see HDMI 1 (in the RetroPie -> AUDIO menu or HDMI in ES) so when you say the audio menu will make one of them the default. You can no longer switch between HDMI 1 and 2 but it treats both of them as a single card?Honestly, I don't know how can I make clearer, but I'll try again.
In the Audio menu of RetroPie:
-
Before the upgrade, the switching between the outputs was just that - a switch. The system didn't know what you had connected and just routed the sound to one of the possible outputs.
-
After the upgrade, the system shows the connected ports (the Headphone jack is always connected) and there are (at least) 2 separate audio options - one for each output. It doesn't matter which HDMI port is connected, HDMI 1 will always be it. If you had both HDMI ports connected, you'd have 2 HDMI ports + Headphone jack as options.
After the OS update I did not choose HDMI as my Audio Device but left it as PCM (In Emulationstation) and my audio is working perfectly on both HDMI ports. It seems to automatically work on either port. I just switch ports, reboot and play. Are both HDMI ports bundled as one card hence you only see HDMI 1 in the RetroPie audio menu?
That's normal, the settings in EmulationStation affect only how EmulationStation outputs audio - for video snaps (vlc or omxplayer).
Is the ES menu the preferred method of setting the audio or is it ok to use RetroPie audio menu. I am a bit confused on the two options and the differences of when to use which menu.
The ES menu only configures how ES outputs audio, but doesn't affect the other applications. Using the Audio menu in RetroPie, you configure the default audio for all ALSA based applications (which in Linux is pretty much every application).
The volume control is the only one that affects other applications and it's easier to use than invokingalsamixer
.In the RetroPie menu I see HDMI 1 but in ES I only see HDMI so I wonder is that HDMI 1 or 2 or both?
The naming is confusing and perhaps should be changed, but there's no relation between them. The Audio Device is actually the name of the ALSA volume control, not the name of the device. You can see it when looking in
alsamixer
.Here's the name of the volume control when the Headphone card is selected (Item Name="Headphone")
Here's the name of the volume control when the HDMI (1) card is selected (and muted, as shown by the MM toggle)
-
-
@mitu - Ok, several things clicked there that I had no idea how they worked so I really appreciate the layman's explanation.
I read a post once to the effect that RetroPie users are "protected" from really understanding how things work. I can't completely disagree with that statement but on the other hand that's part of the "magic" of RetroPie.
You can get things up and running fairly easy and then go back and dig in a bit deeper to fine tune settings. There's so many aspects of RetroPie that probably are very simplistic but I learn new things all the time. I honestly never used Linux in any capacity until RetroPie. Anyway I usually don't update the underlying OS with each new RetroPie release and basically use them as is but I truly appreciate the opportunities to learn new things.
To the effect of sounding cheesy, in a world that's a bit crazy right now and could use more good, I do thank the good lord of folks like you. You may have been around much longer than I know or realize but you just seemed to come out of nowhere and took RetroPie by storm knowing it inside and out. It's always at the back of my thoughts when reading your posts. It probably always will be no matter what is said, I guess there's something to say for first impressions. ;)
You do have an incredible technical talent but also the perfect mindset and temperament to be a natural moderator beyond the basic task of some typical terms of service violation, unacceptable behavior, or illegal ROM link.
One of my favorite sayings is "Common sense, so rare it's a superpower." :)
Most can't set aside biases, pride or petty disagreements to focus on what truly constitutes "gold standard" moderation which isn't always about being the "smartest" member that knows the most in the community.
I've yet to genuinely like someone purely based on knowledge alone. Even if they are the leading-global-authority-go-to-go-guy that knows it all. A skill that's as equally, if not more, important is connecting and helping others without making them feel inferior. Making them feel like they are part of a community. It leaves a much more powerful and forever lasting impact.
Knowing when to let marginal conversations play out and being impartial to all members equally. Elevating conversations to bring about the best conclusion or sometimes shooting the breeze with some small talk.
In this day and age of phones and social media along with less and less face-to-face real human contact many people forget that being social is a skill set that needs to be practiced to stay good. Lord knows I do my fair share at small pub's and the like. Anyway basically exercising good judgement or common sense to foster, promote and grow a community culture. It's an enormous responsibility really.
Anyway I may say it often but I don't think it can be said enough as I've always been impressed with how you handle most situations and think you're a class act and a true asset to the community working the back-end and just as often, if not more, the front-end.
I just wanted to say THANKS, good sir, for all you do and have a great weekend. As that beer commercial goes... "This Bud's for you!" ...errr... whatever the beer of choice is on that side of the pond! ;)
-
Dude, at least pour the guy a real ale. When I go over there I like a good Scottish 80 myself.
-
@Riverstorm said in Audio issues after latest Raspbian updates:
[..]
I just wanted to say THANKS, good sir, for all you do and have a great weekend. As that beer commercial goes... "This Bud's for you!" ...errr... whatever the beer of choice is on that side of the pond! ;)Thank for the - more than - kind words.
-
@VictimRLSH - lol...I apologize for my shortsightedness I should buy the man a proper drink and not just a pint! ;) I've never been but my wife has several times and wants to go as a family, which with the current state of affairs will probably be a while. I guess you could say I'm dead chuffed about that. I hope I used that properly I just learned it the other night on TV. I love their slang over there. Ok fellas, have a super weekend, heading home now to spend some time with the fam! ;)
-
I've just upgraded my 3B+ to Buster (it went exactly in this manner: https://djangocas.dev/blog/upgrade-existing-jessie-to-buster-without-re-image/ ), and this, of course, happened - the above fix, with the addition to cmdline.txt, did restore the sound.
(Incidentally, I had the sound in startx, even before the attempts to fix it in Retropie).
However, the volume still always resets to 0 in EmuStation, and the fix seems to only work sometimes - one time EmuStation will click when scrolling through titles, other times it will stay quiet.
Speaker-test from the command line, however, now always seems to make its noise properly.
(By the way, I've noticed that while the regular binary for EmuStation is from June, the one for EmuStation dev. version 2.10 is still from April - I'll check if this influences the sound fix. I normally use the dev. version, I switched to the regular for the sound fix).
-
Adding: hah, "funnily" enough, now EmuStation's sound is crackling, wobbly, and it also slowns down the emulators to the point that after updating to Buster, RP has become just unusable. :|
EmuStation 2.10 dev acts in the same manner, no matter what devices are selected in the menu - HDMI, PCM, ALSA, both...
-
@BazzCatt that sounds like another issue.
-
@BazzCatt This is what was happening to me. Check alsamixer and see what your default sound device is. I found a Bluetooth utility I installed into the desktop to facilitate file transfers also installed Pulseaudio and completely jacked up my sound in the same manner. I had to purge pulseaudio to remedy the problem (see above post).
-
This should fix the problem:
sudo rpi-update 8d64ec7016906fb1f2bbe937dd7401705c5acf33
Newer firmwares makes troubles with sound on Raspbian Buster.
Use that command on your own risk. -
@Sid1968 said in Audio issues after latest Raspbian updates:
sudo rpi-update 8d64ec7016906fb1f2bbe937dd7401705c5acf33
Using
rpi-update
is not recommended for normal updates. While this might get you a firmware version before the changes in the audio configuration, any updates for OS updates including kernel/firmware - viaapt
- will overwrite it.
I strongly advice against this approach.Newer firmwares makes troubles with sound on Raspbian Buster.
Hence the topic at hand. If you want to revert to the previous audio configuration, you can modify
cmdline.txt
as outlined in the first post. -
@mitu The problem is that the "normal" update command installs a new firmware. That causes the sound issues. My command restores an older version. For me it works well. But... that should everyone decide for themselves.
-
@Sid1968 as said in the topic starter, you can get back to your previous configuration without downgrading anything. There's no reason to use
rpi-update
. -
@mitu Ok i agree. :-)
-
@mitu Is it possible to prevent this error message to appear again by reverting back to previous configuration ?
-
@Yobiwan Yes, but I wouldn't recommend that. You have the new settings explained in the first port, once you set them, you shouldn't get any error.
-
@mitu OK thanks ! i'm out of data for this month (deep countryside!) so in a few days I will try updating all of that.
-
@mitu, Hi, I am running my Raspberry Pi 3b+ with an audio jack and I've been having sound problems as mentioned in this post (no audio from games, although I can verify my computer's audio works by running an mp3 file on omxplayer). The errors I've been getting when trying to change my audio settings in emulation station is "lvl0: VolumeControl::init() - Failed to attach to default card". I followed all the steps and configured the audio in the menu as you suggested. But, still hasn't solved anything, unfortunately.
I've been looking through blog posts all day trying to fix this, but it hasn't been working. If you'd like me to make a new post and list my system specs and whatnot, please let me know, and thank you.
-
@amansur Nvm, I gave up and just decided to reboot everything on the pre-installed image. For those that manually installed and are having trouble like I was and nothing seemed to be working, just do that. My recommendation.
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.