Android 13 AOSP or LineageOS audio stops randomly on HDMI output - Raspberry Pi Q&A, Help & Troubleshooting

Hello all, testing both AOSP and LineageOS builds by Konstang on Raspberry Pi 400. Changed audio out from 3.5mm to HDMI0 in Raspberry Pi Settings. Seems to work fine but then randomly goes totally silent for no rhyme or reason. Will suddenly lose all GUI clicks when navigating the icons and then I know it's screwed up again. Will try to do something with audio such as stream a video, and after a while it may randomly come back

Related

A2DP Bluetooth Audio Streaming Skipping - Findings

A number of people have mentioned having issues with A2DP streaming on the Nexus.
I just found out something interesting... I've been getting annoying skips in music when playing audio to my car stereo, so after experimenting I've found:-
Open bluetooth settings, select headunit, enter pin, allow phonebook access and for the duration of that connection I get perfect audio.
Turn off either the headunit or phone, or both and allow them to connect again, then audio skips...
Open bluetooth settings, select headunit, unpair, select headunit, enter pin, allow phonebook access and for the duration of that connection, once again I get perfect audio.
The only thing I can think of is that the good connection is initiated by the N1 and the bad one by the headunit when it connects to the N1 at startup. Maybe capability negotiation problem? Maybe N1 selects a lower bitrate when it connects than the headunit does when it connects, any ideas? Is it possible to tweak the N1 to restrict the connection parameters?
- Anthony
I use a HT820 by Motorola and do not have any issues with skipping.
Started stock, then CM, now froyo. no issues on any of these roms.
That's great, but whilst bluetooth is a standard, some manufacturers get things wrong, and motorola may well have handled this better, this handsfree kit worked with:-
Hermes,
TYTN II
Touch Pro,
Sony Xperia,
Diamond2.
The kit within my headunit is built by parrot, so no small fish in the bluetooth pond.... It has a little menu with a list of models of phone with "funny" (non-standard) bluetooth implementations so that it can implement workarounds.
To top it off, others, with different handsfree kits have similar issues.
So, back to what I was saying...
I've just confirmed that it doesn't matter which end initiates the connection, if the phone was paired previously it skips, if you unpair and re-pair (during pairing the phone is connected as part of that process) for the duration of that connection the sound is flawless.
It must be using different connection parameters on that first connection, but I can't even see _any_ information about the connections, like bitrate/bitpool / sample rate etc.
Is there any way I can get the connection information for current bluetooth connections?
Does anyone know the way around the AOSP code enough to see if there could be any difference in the pairing connection to the normal connections?
I bet it really is that it uses "safe" values during the initial connection.
- Anthony
http://code.google.com/p/android/is...t&colspec=ID Type Status Owner Summary Sta rs
http://forum.xda-developers.com/archive/index.php/t-622231.html
All i found on it, hope it helped. Otherwise, good luck finding out a solution.
Devastatin said:
I use a HT820 by Motorola and do not have any issues with skipping.
Started stock, then CM, now froyo. no issues on any of these roms.
Click to expand...
Click to collapse
I have the same headphones and only notice skipping when I'm walking fast, with my phone in my pocket...or I turn my head away from the phone. But that's all my doing, not the phone.

S5 bluetooth music skipping

Has anyone found an actual fix for this issue?
Clearing cache, unpairing, and resetting have not worked.
Someone please help!
This issue is driving me nuts!!!
S5 Bluetooth Potential Fix
I have an AT&T Samsung Galaxy S5 SM-G900A running Android 4.4.4 KitKat, and the bluetooth audio has been skipping constantly when it is paired with my car stereo. This issue has driven me absolutely crazy for months. I've literally come close to throwing my phone out the window.
I first thought it was an issue with buffering when streaming from Google Play since those files are all high-quality 320 kbps, but then I realized playing music directly off of my phone also skipped. Next, I thought it might have been the bluetooth receiver in my stock 2012 Toyota Tacoma radio, so I even upgraded my radio to a Pioneer FH-X720BT.
I've been searching and searching online forums for an answer but no luck yet. I also thought it might've been an issue with Android 4.4.2 and was anxiously anticipating AT&T coming out with a software update in the US. Well, it finally came yesterday and guess what? Bluetooth audio has STILL been skipping.
I figured it had to be something else like CPU availability -- like my phone just didn't have the oomph to stream audio via bluetooth. I downloaded the free GSam Battery Monitor from the app store to see what was using my phone's CPU the most. Once it was downloaded, I went to "App Usage" and then under the top menu "View CPU Minutes Used." I thought it was weird that my Alarm Clock Xtreme app was at the top along with Android System, Kernel (Android OS), and the Intellicast weather app. I uninstalled the Alarm Clock and Intellicast apps and so far the frequency of skips is much lower -- 4 whole songs with no skips on my drive home. Not sure if this will work for you, but try disabling or uninstalling apps that use the CPU the most.
Android should really come out with a better solution for this issue instead of me having to figure out which third-party apps (that I frequently use, btw) that I have to get rid of. I listen to music all the time from my phone via bluetooth, and I am almost frustrated enough to go back to the dreaded iPhone (at least its freaking bluetooth works seamlessly). You'd think there would be some kind of CPU task management prioritization that would put Bluetooth Sharing at the VERY TOP (sort of like task manager in Windows where you can increase/decrease CPU priority). Anyone else got any better ideas? I've considered rooting, but I'm stuck with stock since it's an AT&T phone. If only complex technologies would just WORK..
I was having skipping on both Bluetooth and via aux cable, although I primarily use aux. After much trouble shooting, I finally reflashed from scratch and haven't had the problem since...aux or the limited Bluetooth I use. Of course I'm rooted and thought it must have been something I screwed up, but my phone acted a little screwy even before I ever rooted.
Yeah, this issue has driven me absolutely crazy since I upgraded back in May from my S3, which never had this problem in the slightest. I've tried everything I can think of short of a fresh install from absolute scratch. I'm on unrooted stock (4.4.2 at the moment - 4.4.4 has failed to update the couple times I've tried today). I've been hoping AT&T would get Lollipop rolled out and that it would somehow help whatever annoying glitch is causing this issue, but the fact that 4.4.4 only JUST pushed out from them makes me doubt AT&T will get Lollipop out in any sane amount of time.
I've tried settings in apps like Poweramp for it to use highest priority, but that makes no difference. This is such a basic thing to be so screwed up. I've watched process monitors while it does it, and there's no obvious reason for it. CPU usage seems fine while it's glitching. Nothing is consistently showing in the log when it's happening. I have essentially given up hope of every figuring out what is causing this.
When (if) Lollipop rolls out from AT&T for the S5, I'll see if that upgrade somehow finally helps fix this glitch (assuming that upgrade doesn't keep failing like the 4.4.4 one does). If not, I'll do a fresh install. And if I'm doing that, I'll probably do a custom ROM if I'm gonna go through all that effort...
Bluetooth Audio Buzzing Noise on Pioneer Stereo
So I contacted Pioneer, Samsung, and Crutchfield regarding the issue of bluetooth audio skipping and/or making an extremely loud buzzing noise for 3-5 seconds while streaming from my Galaxy S5.
Pioneer alluded to requiring the ground cable needing to be directly grounded the chassis instead of the factory ground wire. This really didn't make sense because this issue only persists when playing via bluetooth -- not USB, radio, Aux, etc. Plus, the factory ground wire IS connected to the frame anyway, and Crutchfield, BestBuy, and local car audio installers all said they would ground it to the black factory ground wire.
Tonight, Samsung said that this was a known issue, but only related to Pioneer radios. I ended up finding a bluetooth firmware upgrade to my radio on Pioneer's website. My current Bluetooth Version listed on the head unit display is A820, and the firmware update is for A860. Samsung said this should resolve my issue, so I'm going to give it a shot. They also said that the Android Lollipop 5.0 update from AT&T would address this known issue. I saw on another android forum that AT&T reported the update will be release in February this year, but they didn't have a specific date.
If this doesn't work, I'll try putting my phone in Safe Mode and stream audio over bluetooth. If that fixes the issue, then I'll have to painstakingly narrow it down to one or more 3rd-party apps. Typically, I force stop all 3rd-party background processes and only run GSam Battery Monitor, Clean Master, Twilight, and Nova Launcher.
Bluetooth Audio Buzzing Noise on Pioneer Stereo
So I finally put my S5 in safe mode to rule out 3rd party apps, and the Pioneer HU still did that weird, intermittent buzz glitch for about 1 second. The same thing happened today when streaming from my iPad, so now it seems like the android bluetooth wasn't the culprit after all.. I think it must be the cheap SocBlue Bluetooth module Pioneer puts in their radios. Several reports on other forums point out these on-going issues with Pioneer. Sound quality is great for radio or CD, but I warn you: DO NOT buy a Pioneer car stereo if you plan on frequently using a Bluetooth audio connection. I contacted Crutchfield tonight and will be swapping out the Pioneer FH-X720BT for a Kenwood DPX500BT. Hopefully this is the last time I'll have to deal with this kind of issue.
I did this with my iPhone and it worked!!!
Goto settings > bluetooth
press the little info icon on the right side of the FH-X720 or FHX-820BS paired device tile
This will open up a settings view.
Turn Off the Sync Contact feature

Google Home Mini + BT speaker = stuttering music

I encountered stutter when broadcasting music from GHM to my BT speaker. It's like buffering every second. With the Internet connection everything is ok. The router is located near the GHM. When connecting via BT to the phone or through AUX with any other source, my Marshall Acton plays music without any problems. The problem occurs only when the music is broadcast from the GH Mini. It started a couple of days ago. Up to this point, there were no problems for a week. It happens randomly, it can play an hour without stammering, and then start, or vice versa. The GHM itself plays without problems. Tried TuneIn and Google Music. I also tried to reset GHM.
CC Audio has no Bluetooth
Has anyone encountered this problem?
The same thing has been happening for me as well. It only occurs when playing to a Bluetooth speaker. Playback via the Google Home Mini speaker itself is fine and it is right next to the wifi router.
What firmware are you on? Mine are on 1.32.118652. I think it's a preview firmware so it may be a bug in the firmware as nothing I do has made it any better and it was working fine before and has only started over the last few weeks.
athua said:
The same thing has been happening for me as well. It only occurs when playing to a Bluetooth speaker. Playback via the Google Home Mini speaker itself is fine and it is right next to the wifi router.
What firmware are you on? Mine are on 1.32.118652. I think it's a preview firmware so it may be a bug in the firmware as nothing I do has made it any better and it was working fine before and has only started over the last few weeks.
Click to expand...
Click to collapse
The same version. Do you remember what version was before the problems started?
Created a topic in Google support - https://productforums.google.com/forum/#!topic/googlehome/e694YsvR9M8
Another person with the same problem - https://productforums.google.com/forum/#!topic/googlehome/wqB5eG1bwaI
I bought the Home Mini yesterday and found the same problem. Any update about it?
Same
Same here. Stuttering music. Thought I was the only one and there was something wrong with my BT speaker. Stuttering music. FW 1.32.118652
Managed to get it working by unpairing and forgetting, and re-pairing. Now it happens every time my BT speaker goes into sleep mode.
More irritating is that when this happens the Google Home Mini defaults back to its own speaker instead of trying to reconnect.
This is firmware basics. Let's hope they iron this out.
My BT speaker will start to studder with about 25% battery left now or when it's actually plugged in. Fresh charge will run fine.
I'm having this issue too. I'm at the latest update at the time and using Harman Kardon Aura speaker
I'm having the same issue on GHM in 2022, using an Anker Soundcore Flare 2. Seems like Google has not fixed this issue. Does anyone know if Google Nest Mini has the same issue too?

Car Bluetooth Audio Metadata Issues

I have just got my P20 Pro, it seems like a great phone so far, but I have one nagging issue.
When I connect my phone to my car's (2015 BMW 3 Series) Bluetooth the now playing metadata of the audio being played is not being passed correctly. So if I play audio from Google Play Music or Pocketcasts the head unit on my car will show either Unknown Track or the track data of the first item on the album or the playlist. The audio itself sounds fine and I am able to skip tracks, select new albums from the car's controls, so it seems some information is being passed correctly, it is just that the info of the track that is currently playing seems to not be working.
Has anyone else encountered this?
At this point I have to assume it is the phone, as my Galaxy S6, S7 & S8's all worked, but I guess it is technically possible that could have been a workaround put in by BMW as they were such popular phones. Hopefully Huawei will sort this out, it may be an underlying Oreo issue as threads like this suggest that Bluetooth issues were around when 8.0 launched https://productforums.google.com/forum/#!topic/nexus/E9Q2lyFYRgI
I have done some more digging on this issue and I suspect that is might be something to do with the Bluetooth AVRCP version that the phone is using. Normally in Android (since 8.0) you could adjust the AVRCP version from within Developer Options, but for some reason this is not available on this phone. My Galaxy S8 was using AVRCP 1.4, so I suspect that this phone is using 1.5 or 1.6 and my car does not like it.
I have emailed Huawei to ask for clarification. At this point it is the only real issue I have with the phone, but it will annoy me if it isn't resolved quickly. I'm going to pester BMW too to see what versions of AVRCP they officially support.
Don't have these issues in the car, head display current track etc via Bluetooth ... Use this in a Nissan
Everything works as it should with my Pioneer headunit using Spotify
I just posted something related (possibly) in the RAM/Battery Management thread - I have issues with the Audi MMI Connect app, losing connectivity and so on.....does seem that the P20 Pro handles Bluetooth (no rsap?) and background process management quite differently to my previous phone (Galaxy S8+)....also hoping quick resolution, as love the phone!
Search facility not working in car
Hi
I've just put music onto my P20 pro and it plays fine on the device and the car, however, I can't use the search facility on the car (BMW, 3 series, 2017) to change track. I can do this on the phone. Any suggestions? I put the music onto the 'Music' app (dragged and dropped from my iTunes folder- don't know if this is relevant. Any help would be greatly appreciated as without being able to use the car's search facility and come in and out of albums/ artists is useless. Should I have put the music into somewhere else?
JQ
P20 PRO and BMW - bluetooth issue
Bojanglez, did you find a solution? I got the same issue with P20 PRO and BMW X4... so it seems a problem linked to that phone connected to the BMW multimedia system.
With my previous phone, an ASUS Zenfone, everything was fine.
It may be a BMW issue to, maby P20 pro isn't compatible with BMW or Audi. I know that some manufacturers put all in to be compatible with ios and some larger manufacturers of phones. It could be that car manufacturers don't test Huawei phones and don't support them.
Skickat från min CLT-L29 via Tapatalk
No Huawei Garbage bloatware issue, my is random something is normal, most times it plays music but gets stuck on providing music playing info.
Same issue here with my 2016 Toyota rav4. It plays the first track and shows the metadata but then as the tracks keep playing the metada remains the one of the first song. Definitely an issue with Huawei. Their music player works just fine. I think it has to do with the poor Google integration and their need to force that half baked apple wanna be emui down our throats. It should be Oreo but looks and feels like gingerbread.
Hi all, I have an update. I have resolved the issue, but not quite sure which of the following specifically fixed it.
Huawei software update
Renamed by phone in Bluetooth settings
Updated to the latest BMW firmware (from their site)
Messed with some of the Bluetooth settings in Developer Options on the phone
Unfortunately I did all these at pretty much the same time so I can't say for certain which one fixed it, I think it was the Huawei software update as after I updated my BMW firmware I still had the same issue and also in other BMWs I tried. I also noticed that the Bluetooth was dropping constantly in my wife's Puegeot 3008 so that's why I played with the Developer Options. For anyone interested I havethe following now set:
Codec: SBC
sample rate: 44.1khz
channel mode: Stereo
LDAC playback quality: 990kbps/909kbps (optimised for connectivity quality)
HWA playback quality: Best effort (400KB Optimised for connectivity)
HWA Latency: 50-100ms
So I now have track information and basic controls using Google Play Music and Pocketcasts. It does not seem to like letting me browse my library though, but it is at least functional.
Also I changed my car, this was not because the BT didn't work It worked in my 2015 3 series before I changed it. I now have a 2018 4 series and the behaviour is the same, track listing and skip functionality but no browsing.
I have installed the most recent firmware update on my 2 Series 2017, I see two fundamental issues. One is, by using your phone normally, no issues should arise most of the time but still random sync issues with metadata can occur. The second issue is, no matter how good your phone behave and how well synchronized the metadata is, once you open Android Auto app, everything goes to hell and you are back in square one.
To fix it, you should deactivate auto start when connected in the app (or not using it at all), erase your car from devices in bluetooth config within your phone. Erase your phone from the list in your car. Change the phone name. Start over with the synching process. Check for correct metadata in the car. If not working repeat. That should fix the problem eventually.
If you like very Android Auto very much, get used to see the songs information in your phone screen rather than the car.
I am also having the same problem, Huawei P20 Pro and Sony XAV-601BT head unit. I've tried enabling all the permissions in Spotify, cycling the connections, renaming the phone.
i have Pixel 3xl with Android 10, - Bluetooth connects fine there is no metadata - song info. this problem started with 8.1 Android version and I have not been able to get it to work. I really cant believe google cant fix this issue or even aware of it. plenty of threads on google. I think they all use Iphone, i am guessing ...this is very annoying. I have change the avrcp version from 1.4 to 1.6. no luck, also I read that turn off battery optimization on Bluetooth. no luck. anyone else here having similar issue??

Bluetooth issues Android Pie CLT-L29

Howdy,
Anyone else experiencing stuttering while streaming audio over Bluetooth?
Started happening after the 9.0.0.168 update.
I'm located in Australia if that makes any difference.
Tried a bunch of different devices using different codecs (aac, SBC, aptx, etc). I've also tried factory resetting, and different streaming apps (Spotify, apple music, tidal, etc).
Literally the only thing that works is reverting back to EMUI 8.1.
Yes! It is annoying!
No clue on how to o fix it yet....
Stevles said:
Howdy,
Anyone else experiencing stuttering while streaming audio over Bluetooth?
Started happening after the 9.0.0.168 update.
I'm located in Australia if that makes any difference.
Tried a bunch of different devices using different codecs (aac, SBC, aptx, etc). I've also tried factory resetting, and different streaming apps (Spotify, apple music, tidal, etc).
Literally the only thing that works is reverting back to EMUI 8.1.
Click to expand...
Click to collapse
What is your car?
This doesn't seem to be limited to the P20 Pro. I can confirm the issue on the Mate 10 Pro after the EMUI9 (European) upgrade. Bluetooth worked flawlessly before, even under heavy load (Google Maps navigation and Torque Pro in split screen mode, Spotify in background) with two bluetooth devices (Torque adapter and JVC car radio) connected.
Since the update I am experiencing intermittent stutter with any bluetooth audio device. As soon as I connect the Torque adapter (bluetooth serial protocol) the stutter on the audio output becomes unbearable. I get about 10 seconds of clear sound, then 5-8 seconds of stutter. Re-pairing didn't help.
hiddenasian said:
This doesn't seem to be limited to the P20 Pro. I can confirm the issue on the Mate 10 Pro after the EMUI9 (European) upgrade. Bluetooth worked flawlessly before, even under heavy load (Google Maps navigation and Torque Pro in split screen mode, Spotify in background) with two bluetooth devices (Torque adapter and JVC car radio) connected.
Since the update I am experiencing intermittent stutter with any bluetooth audio device. As soon as I connect the Torque adapter (bluetooth serial protocol) the stutter on the audio output becomes unbearable. I get about 10 seconds of clear sound, then 5-8 seconds of stutter. Re-pairing didn't help.
Click to expand...
Click to collapse
What's your Bluetooth device?
lxy463187 said:
What's your Bluetooth device?
Click to expand...
Click to collapse
I've tried several Bluetooth devices, ranging far and wide and with a large variety of different codecs being used. Re-pairing doesn't help, factory resetting doesn't help. I suspect it's a driver related issue.
Stevles said:
I've tried several Bluetooth devices, ranging far and wide and with a large variety of different codecs being used. Re-pairing doesn't help, factory resetting doesn't help. I suspect it's a driver related issue.
Click to expand...
Click to collapse
Did you try to turn off wifi?
lxy463187 said:
Did you try to turn off wifi?
Click to expand...
Click to collapse
Yeah, WiFi is never enabled while I'm driving. My dash cam gives off a WiFi connection with no Internet access.
I did read that fixed a similar issue on an other Huawei device, thanks for the tip.
got updated to Pie last night, and I listened to Spotify on my way to work this morning. I noticed the audio is interrupted (for about half a second) two or three times within 45 mins. I thought it is just the Spotify streaming issue. Hmm .. maybe it is this issue.
spiderx_mm said:
got updated to Pie last night, and I listened to Spotify on my way to work this morning. I noticed the audio is interrupted (for about half a second) two or three times within 45 mins. I thought it is just the Spotify streaming issue. Hmm .. maybe it is this issue.
Click to expand...
Click to collapse
You can try other apps。You can see whether it's the problem of Bluetooth headset or the problem of App.
It only appears to be LDAC in my case (when using my Sony WH-1000XM3's). If I drop the codec down, the aborations don't manifest for me. Turning the screen on by way of power button makes the audio cut out for 100ms or less, but seems to indicate it's processor load that's causing it (across any audio app, like Spotify, Tidal, PocketCasts, YouTube).
Using anything lower than LDAC seems to be fine for me though (like when I'm using my Samsung Gear IconX 2018's).
I only updated to EMUI 9 on my P20 Pro yesterday and identified this issue within 5 minutes, so it doesn't bode well for Huawei's testing.
AWretchSavedByGrace said:
It only appears to be LDAC in my case (when using my Sony WH-1000XM3's). If I drop the codec down, the aborations don't manifest for me. Turning the screen on by way of power button makes the audio cut out for 100ms or less, but seems to indicate it's processor load that's causing it (across any audio app, like Spotify, Tidal, PocketCasts, YouTube).
Using anything lower than LDAC seems to be fine for me though (like when I'm using my Samsung Gear IconX 2018's).
I only updated to EMUI 9 on my P20 Pro yesterday and identified this issue within 5 minutes, so it doesn't bode well for Huawei's testing.
Click to expand...
Click to collapse
So, after having contacted Huawei, they initially advised me to wipe the cache partition however this didn't address the issue. They then apologetically recommended a full reset. Having now done this the Bluetooth audio issues I was experiencing appear to have been resolved.
Whether they'll return with use of the phone I have no idea, but LDAC and all other codes are working brilliantly now.
Hope that helps anyone having the same probs.
I have exactly same Issue, doesn't matter aptx ldac SBC, with some devices works fine with others horrible... It's a lot of work to reset to factory settings and reinstall all the apps and settings though
Any one know if there's a fix for this yet?
I've tried wiping the device and still has issues.
I have same issue w p20 pro EMUI 10.0.0.161 CLT-L29 model. Has earlier p20 pro china version L100? And no issues.
I'm using BT Shure SE846 and they are studdering. App notwithstanding. My cheap car BT radio jig works flawlessly. Huawei said I need to change mb. (For $150 since out of warranty)

Categories

Resources