Question Custom Kernel and Bluetooth connection - Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40

Hello everyone,
I'm on xiaomieu last stable release. Every custom kernel I tried (N0kernel, immensity, wild angel and baalam) has bad Bluetooth connection(for me). I'm using wf-1000xm4 with Ldac codec. While I'm on stock kernel, never even once Bluetooth stuttering. But when I use custom kernel, if I put the phone on my pocket or I move my head too quickly, Bluetooth has micro stuttering. Am I the only one ? Is there something I could do? Custom kernels have much better battery management and performance but this Bluetooth problem stop me to use one.
Thank for your reading and sorry for the horrible English lol

Related

[Q] How to improve bluetooth audio (music) quality?

My opinion is that the bluetooth audio quality on the HTC Desire is terrible!
When playing music, in most of the tracks I hear clicking/crackling noise when some frequency/dB/something else is reached.
To illustrate what I mean, I have uploaded an audio fragment in which you can hear a similar noise.
Download fragment (MP3) Warning! it's drum n bass
You can hear the sound at the very beginning and at around 6 seconds (and at the end). As if a tweeter (speaker for higher frequencies) get overloaded.
I don't know if it is related to the phone's hardware, (radio) firmware or the Android OS. I've tried different music players, radio firmwares and custom roms. I also enabled an equalizer for bt audio using DSPManager. Unfortunately, nothing helped
edit: Using current versions of DeFoST or OpenDesire (and maybe others), the bt sound quality is how it should be! Fixed for me, but I hope an update from HTC will do the same.
Btw, this crackling/clicking is not only related to the HTC Desire, I have heard it on more (non-android) phones that were connected to my bt audio setup (in car). Unfortunately I haven't been able to test other Android phones, but my old Nokia N82 and SE K800i always sounded clear.
My guess is that it's just a non-controllable system setting of Android to solve the problem, but I don't know where (config/settings files?) to search for BT audio settings.
Any ideas?
That's the typical audio quality of a mediocre A2DP device: give a try at a Sony Ericsson MW-600 headset, you'll see what an Hi-Fi Bluetooth device is.
@ngel said:
That's the typical audio quality of a mediocre A2DP device: give a try at a Sony Ericsson MW-600 headset, you'll see what an Hi-Fi Bluetooth device is.
Click to expand...
Click to collapse
I'm running Defrost rom now and the sound quality is perfect, how it should be! So, it's not related to the audio device, or the default settings/drivers of the Desire are "too good" for my audio device (Pioneer BT unit @ car audio), which I think is not the case, since I also had this noise on my Logitech Pure-Fi.
@ngel said:
That's the typical audio quality of a mediocre A2DP device: give a try at a Sony Ericsson MW-600 headset, you'll see what an Hi-Fi Bluetooth device is.
Click to expand...
Click to collapse
Actually I recently owned this headsert but the quality of the sound was still terrible. I thought it was a problem with the headset at first, but that is not the case. I returned it and bought a Jabra BT3030 and the problem still persists. Anyone know if this is actually a problem with the phone or is it software related? I can add that I don't hear these noises when streaming audio through e.g. the youtube app, only mp3 and it doesn't matter which player I use (I've tried loads).
I have the jabra dogtags, audio playback sounds exactly the same as when my headphones are plugged in direct (tested it several times, culd not tell the difference), except that I have a louder volume via the jabra, which is all good as I listen to drum and bass also. Mabey device fault?
It is software related. Using current DeFroST or OpenDesire roms (and maybe others), bluetooth audio is great
CONTACTMC said:
I have the jabra dogtags, audio playback sounds exactly the same as when my headphones are plugged in direct (tested it several times, culd not tell the difference), except that I have a louder volume via the jabra, which is all good as I listen to drum and bass also. Mabey device fault?
Click to expand...
Click to collapse
well if it would've been device fault you'd think that I'd hear that noise through youtube streams as well.
But yeah as tutti-frutti stated it might be a software issue, which points me towards a root. But since I'd rather not root atm, anyone knows any other solution?
Might try a hard reset first and hope for the best. I will get back to you on that .
Thank you so much for describing my problem!!
I am currently downloading OpenDesire. Just in case that it does not work, where do i find DeFost??? I can't find it on the Market.
Thanks again!
I have Samsung Epic 4g.
nope Desire's Bluetooth audio quality is good in fact Awesome..!!
-May be the problem is not with the phone, its with Bluetooth head set you are using.
-My suggestion is to use Nokia or Motorola A2DP Stereo head phones
-I'm using Motorola motorkr S9 hd ,,,its awesome..!!
-Try this ,,it might work
harish.awe said:
nope Desire's Bluetooth audio quality is good in fact Awesome..!!
-May be the problem is not with the phone, its with Bluetooth head set you are using.
-My suggestion is to use Nokia or Motorola A2DP Stereo head phones
-I'm using Motorola motorkr S9 hd ,,,its awesome..!!
-Try this ,,it might work
Click to expand...
Click to collapse
For me, it is an issue with my car, not headphones.
A little UP!
Having the same issues with a Nokia BH-504 headset. Music quality is poor with every Sense ROM (original, rooted, Sense HD, whatever), sound like the tweeters are overloaded.
Definetly not a problem with the headset, it sound perfect with HTC Legend.
Tried to switch to non-Sense ROM (DeFrost, OpenDesire, etc.). The quality is perfect, but music play stops every 1-2 minutes for a second. Very irritating. Anyone experienced this? Is this a problem with my Desire, should I send it for warranty? (Don't want to send without enough evidence, don't wanna be without a phone for weeks...)
Okay, update: Tested the new Gingerbread AOSP and still having these stops at 2-3 minutes. Very strange...
Anyone any idea? Can I debug the bluetooth transfer somehow? Logcat didn't really show anything... Can it be a fault of the phone?
Chapell said:
Anyone any idea? Can I debug the bluetooth transfer somehow? Logcat didn't really show anything... Can it be a fault of the phone?
Click to expand...
Click to collapse
You need an sd r/w-buffer fix in kernel to stop that. I don't know if it comes with any senseless rom though. Maybe you could try the lite version of baadnewz hd rom.
Sent from my HTC Desire using XDA App
Ik Desire said:
You need an sd r/w-buffer fix in kernel to stop that. I don't know if it comes with any senseless rom though. Maybe you could try the lite version of baadnewz hd rom.
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
Thanks, I'll look into it. But if that's the problem, it would affect music playback with wired headphones too, isn't it?
And with Sense ROMs I have the overloaded tweeter-like problem, but no stutters. With non-Sense ROMs I have beautiful audio quality but music stops for a second randomly.
Update: Checked Aura ROM with sdfix, no problem with stuttering, but still the overloaded high-frequency problem. Meanwhile I checked that this SD fix is available only for Sense ROMs because it's HTC's hacking, the AOSP versions have no SD problems.
Oh, good lord! I was nearly to believe that I'm some sort of audiophile!
I'm using Plantronics 903 with my Desire and sound quality is just OK (I'm using SENSE ROM, will try OpenDesire in a bit). However, I cannot say I was expecting more.
What funny is happened today: I paired my 903 with PC today - sound quality was nearly same like my Desire, then I noticed someting in Bluetooth Setting Panel of PC. There was a combo box which labeled as "Audio Quality" and it was at the "Low" setting. I switched it "High Quality" and reconnected the device and voila! The sound has been thousands of times better!
Now I'm wondering if such a switch is also available in Desire? Maybe not obvious, but a Kernel variable perhaps? Damn that I don't know a sh** about programming these devices :'(
EDIT : Funny - I think that setting was not of PC's, but Headset's! It's quite well right now! And I didn't even try OpenDesire yet!
Chapell said:
A little UP!
Having the same issues with a Nokia BH-504 headset. Music quality is poor with every Sense ROM (original, rooted, Sense HD, whatever), sound like the tweeters are overloaded.
Definetly not a problem with the headset, it sound perfect with HTC Legend.
Tried to switch to non-Sense ROM (DeFrost, OpenDesire, etc.). The quality is perfect, but music play stops every 1-2 minutes for a second. Very irritating. Anyone experienced this? Is this a problem with my Desire, should I send it for warranty? (Don't want to send without enough evidence, don't wanna be without a phone for weeks...)
Click to expand...
Click to collapse
I have similar sound issues on non-sense roms. I believe it's mostly to do with range is just not quite as good as with sense based roms. I haven't had time to really figure out why yet.
Okay, so they replaced my Nokia BH-504 headset with a new one, still the same issue with Desire Sense ROMs but Legend Sense is still good. So it's not an issue with the headset (well, could be a general incompatibility problem, but I don't think so) Will check my laptop and a Gingerbread ROM on the Desire. Okay, conclusion after further tests with the replaced headset:
with Desire Sense ROMs: horrible quality in the high frequencies with every MP3.
with Desire non-Sense ROMs (OpenDesire, Gingerbred, etc): Good quality, but music play stops for a secons every 1-2 minutes.
with HP TouchSmart TM2 notebook: Quality problem AND music sutter BOTH
with HTC Legend original Froyo ROM: No problem
with Sony Ericsson X8: No problem
with HTC Touch HD: Quality problem
The headset has been replaced with a new one, same errors occur.
I have no idea what's wrong. I can't believe 2 phone's and a notebook's Bluetooth chip is faulty. So this could be an incompatiblity, hooray for great Bluetooth standard specification I should try a Nokia BH-905 and a Sennheiser MM400, will try them after buy (in the store!) and hand them immediately back if there will be a problem with them
Chapell, I have the same problem as you, with the Nokia BH-504 headset. So far the headset works great with the stock ROM, LeeDroid ROMs or just about any Froyo ROM. Gingerbread-based ROMs or Cyanogen nightlies, or any of the AdamG's Oxygen ROMS, on the other hand, they all have the same issue - every 90 seconds or so there is a glitch, the audio stream skips for half a second or so - very, very annoying keeps you from getting in the mood.
My observations: it is not SD card related, youtube video with the audio part streamd through the bluetooth headset also skips (also tried an SD read-ahead zip patch - no change); also, the glitch doesn't manifest using wired headphones; it has nothing to do with CPU spikes (the music player and the BT connection were the only open applications after a fresh ROM install); it has nothing to do with WiFi being on or off; it has nothing to do with 3G/2G network being active or not, or the GPS; using a different radio also doesn't help (scenario - radio X used with N.S.A. ROM -> no glitch; the same radio used with Oxygen 2.0 RC7 -> glitch)...
My guess - as noobish as it may be - is that this issue is related to some kind of buffering in the streaming process - I compared a few bluetooth configuration files in various ROMs, but couldn't figure any setting related to buffering or such.
If anyone could help, I would be very grateful!
Thanks for the info. If I understand correctly, you had no problems with BH-504 using Sense ROMs. So no high frequency distortion, nothing. This means that my phone is definetly faulty
However it seems the non-Sense skips are not unique for me. Strange, no one uses a BT headset with non-Sense ROMs or it could be a problem only with the BH-504?

[Q] Music and bluetooth headset problem

Hello folks
I have tested these roms Leedroid 3.1.1 and Revolution hd 5.1.8
Sound lag when listening to music(Bluetooth Headset) Can anyone fix this problem.
Can you describe the lag better? What kind of headset?
I have this problem too...i have SE MW600 bluetooth headset....problem is signal noise in hight frequenties.with wired headset is no lag.i have this problem only with sense's ROM. cyanogen mod is without this problem.
Sent from my Desire HD using XDA Premium App
Hi,
I don't know if my problem is the same.... perhaps due to language.
My problem is that every 3-4 minutes listening to music, sound pauses for 1-2 seconds, and then it resumes music for 3-4 minutes to next pause and so on...
I have the problem with a Cardo / Schuberth SRC System bluetooth handsfree.
I tried several Sense ROMs and I found always this problem, but with CM7 it works correctly.
I tried to compile the kernel by using CM7 bluetooth options, but no succeed.
I tried by compiling the kernel by overwritting all bluetooth source code related (using CM7 kernel code). I get an error, and once solved by merging code, the problem is still there.
I tried by overwritting all bluetooth related libraries, but the ROM is not starting.
If anyone has any idea on how follow...
THANKS!
This is a known issue with Gingerbread. I actually am surprised there's not more chatter in the XDA DHD forums about it. Google updated the Bluetooth stack in Gingerbread, which breaks compatibility with many Bluetooth audio devices, like headsets and car stereos. While some people claim that updating the Bluetooth stack on your headset/stereo should fix the problem, it's not always possible. In fact, it's rarely possible, as most of the manufacturers aren't going to bother with firmware upgrades for those of us with Gingerbread devices yet.
I haven't tried CM7 myself, as I'd much rather keep Sense, but I think Jorgitosms's on the right track. Not being much of a developer, I'm not at all sure how to go about doing this, but what about pulling the Bluetooth stack out of a Froyo Sense ROM and putting it into a Gingerbread one? I love everything about Gingerbread, except the broken A2DP audio, so I've gone back to Froyo. If we could get this done, I think a lot of people would be relieved.
Jorgitosms said:
Hi,
I don't know if my problem is the same.... perhaps due to language.
My problem is that every 3-4 minutes listening to music, sound pauses for 1-2 seconds, and then it resumes music for 3-4 minutes to next pause and so on...
I have the problem with a Cardo / Schuberth SRC System bluetooth handsfree.
I tried several Sense ROMs and I found always this problem, but with CM7 it works correctly.
I tried to compile the kernel by using CM7 bluetooth options, but no succeed.
I tried by compiling the kernel by overwritting all bluetooth source code related (using CM7 kernel code). I get an error, and once solved by merging code, the problem is still there.
I tried by overwritting all bluetooth related libraries, but the ROM is not starting.
If anyone has any idea on how follow...
THANKS!
Click to expand...
Click to collapse
I initially thought it was my bt headphones (nokia 905i) creating this skipping but today i exhumed my old htc hd and the music played skip free via bluetooth.
@craig0r, Ive had this skipping on Froyo as well so Im not sure, maybe I have a dud Desire HD. Mind you Im still on stock gingerbread rom. downgrading and rooting seems just too complicated, not too mention which rom to choose!

BLUETOOTH issues CM12, CM13 and other ROMs N7100

hi. I have done so many tests so far so I know what I'm saying.
most used ROMs for N7100 are heavly unstable with bluetooth.
effects are various, from stuttering in a2dp with BT headset to bad reconnecting to low power devices (example smartbands) etc.
again, to connect to some special device I need to reboot many times, for example some kind of internet things.
at the moment the ONLY rom, beside stock, that has a PERFECT manage of bluetooth is:
[OK] ---- [ROM][5.1.1][Haxynox] AOSP for n7100
and roms I tested that has not:
[NOT] ---- [ROM][5.1.1] 12.11.2015 Cyanogenmod 12.1 N7100
[NOT] ---- [ROM][6.0.1] Cyanogenmod 13.0 N7100 Build 8
[NOT] ---- Paranoid Android for Note II(GT-N7100)
[NOT] ---- [ROM][5.1.1_r24][Official][Nightlies]Exodus Android for Samsung note II
[NOT] ---- [ROM][5.1.1][Lollipop][Official][Nightlies] NamelessROM 2.1
[NOT] ---- [ROM] CyanoBiz - CM-13.0 - Doze enable - n7100 / Galaxy Notes2
[continue]
how to test:
there are many methods to test bad handling of bluetooth, most important test with daily use, but to prevent headache you can do in this way.
- pair any bluetooth headset or car free-hand kit.
- play some music to that device
- meantime go to bluetooth option and search for new devices
- if music stutters that rom is affected with bt issues, if not rom will never hurt you and your devices.
so: why I don't stay with Haxynox?
I would but that rom is
a little unstable.
vivavoice volume doesn't work.
bt file transfer crashes.
sometime reboots.
doesn't handle >16GB sd card.
doesn't handle movetosd.
developer is working on CM13 and left this.
please feedback here to have stable bluetooth back!
8rnity said:
hi. I have done so many tests so far so I know what I'm saying.
most used ROMs for N7100 are heavly unstable with bluetooth.
effects are various, from stuttering in a2dp with BT headset to bad reconnecting to low power devices (example smartbands) etc.
again, to connect to some special device I need to reboot many times, for example some kind of internet things.
at the moment the ONLY rom, beside stock, that has a PERFECT manage of bluetooth is:
[OK] ---- [ROM][5.1.1][Haxynox] AOSP for n7100
and roms I tested that has not:
[NOT] ---- [ROM][5.1.1] 12.11.2015 Cyanogenmod 12.1 N7100
[NOT] ---- [ROM][6.0.1] Cyanogenmod 13.0 N7100 Build 8
[NOT] ---- Paranoid Android for Note II(GT-N7100)
[continue]
how to test:
there are many methods to test bad handling of bluetooth, most important test with daily use, but to prevent headache you can do in this way.
- pair any bluetooth headset or car free-hand kit.
- play some music to that device
- meantime go to bluetooth option and search for new devices
- if music stutters that rom is affected with bt issues, if not rom will never hurt you and your devices.
so: why I don't stay with Haxynox?
I would but that rom is
a little unstable.
vivavoice volume doesn't work.
bt file transfer crashes.
sometime reboots.
doesn't handle >16GB sd card.
doesn't handle movetosd.
developer is working on CM13 and left this.
please feedback here to have stable bluetooth back!
Click to expand...
Click to collapse
On RR Lollipop I've had bt stuttering
on dr.ketan kitkat bt was very good
on CM 13 build 7 bt works just fine: tested on mazda infotainment, bt jack adapter, JBL speaker, laptop, pairing with other phone also ok and recently with SmartWatch 3, so I think it's related to hardware if you can't get it to work
thank you for reply. sorry but I don't think is hardware related.
I read tons of thread where n7100 owners wait for a build with decent bluetooth manager. most are still searching for. I was lucky as I found at least haynox build.
so I decided to share this.
did you test playing music through bt speakers and while listen music going to 'searching for bt device' screen?
8rnity said:
thank you for reply. sorry but I don't think is hardware related.
I read tons of thread where n7100 owners wait for a build with decent bluetooth manager. most are still searching for. I was lucky as I found at least haynox build.
so I decided to share this.
did you test playing music through bt speakers and while listen music going to 'searching for bt device' screen?
Click to expand...
Click to collapse
no, I think when it's paired with device and sound plays well, so there is no need to go there, but I#ll check it this evening
yaro666 said:
I'll check it this evening
Click to expand...
Click to collapse
thank you. this may be useful for me.
tested:
[ROM][5.1.1_r24][Official][Nightlies]Exodus Android for Samsung note II
[ROM][5.1.1][Lollipop][Official][Nightlies] NamelessROM 2.1
both have bt issues
yep, I had to go back to stock.. my sony smartwatch 3 was unusable.... I don't like to put my money on trash...
[ROM][5.1.1] 12.11.2015 Cyanogenmod 12.1 N7100
[ROM][6.0.1] Cyanogenmod 13.0 N7100 Build 8
Have problems with bluetooth calls (Static, robot voice), Music player is fine
As I added more bt devices it started to stutter rarely. I noticed that it only stutters when bt is searching, although it's connected.
CM13 build 7.
I believe it's related to data flow, it just can't send/receive that much data simultaneously
ok, after tried so many roms I can say that if you have that stutter bluetooth is less stabile than ideal. can be that you have devices where is less evident. but it's not the way to be:
if you can nandroid backup your note2 and try haynox build. you'll nave stable BT and in test never stutters. in fact there's no way to make it stutter with this ROM. but as said there are other issues..
less than ideal.
[ROM] CyanoBiz - CM-13.0 - Doze enable - n7100 / Galaxy Notes2
my hope for BT was fix by P.A.N. from i9305 github, but NO, it doesn't work well.
waiting for AOSP from same developer
Any news about this?
CM Roms were always weak about bluetooth stream. I have a 6p now and it's happening. On Pure Nexus I'm fine but would love to stay CM
after many devices and settings I came into conclusion, that bluetooth problem is related to android wear app. When I had paired SW3 and allowed Note2 to constantly search for my watch it stutters often, but after uninstalling all that crap, Note don't search for other devices when connected to 1 device and sound doesn't stutter, not even once.
I'm using CM13 build 10
Umm I posted some stuff in Ivan's build 10 rom thread. If you switch network to 2G instead of 3G, bluetooth calling works once again. I tested this about 20 times afterwards and it worked everytime. It even works with traffalguar square's rom.
Hope it helps.
[ROM][6.0.1][v6.18][Beanstalk][OFFICIAL][Great Experience][DU-Features][19.06.16]
This rom have bt issue too.
Still no solution ?
I found a good ROM
I've been struggling with BT Handsfree issue for a very long time. I almost bought a new phone recently, because of this issue. I drive a lot and I really need that function. Samsung original stock rom is so bloated and ugly that it was not an option. Unfortunately non of the CM and AOSP ROMS have fully working BT audio.
I found a solution: [ROM][GT-N7100][TW 4.4.4] Eclipse By AC version 9
It is a stock based ROM with TouchWiz UI. I don't like Samsung interface but this one is really debloated and very pleasant. I think I will get used to it. It's super stable and very fast. I moved to it a few days ago, and my Plantronics M70 headset is finally working like a charm. Just remember to make a full phone wipe before install (including data partition). I had some issues with that.

Help with BT headset problems on cm12.1 (SM-T700)

Hello guys.
The thing is I used to run the latest CM12.1 on my SM-T700 a few weeks ago with no problems at all, it was smooth, until the other day I decided to buy me a pair of Bluetooth Wireless Stereo Headset from radioshack. The pairing was successful; the problems started when playing audio from any source (Spotify, YouTube, Netflix, etc) the audio was lagging really bad, like stuttering, coming with "sound holes" in between, and it was really annoying.
I realized the problem wasn't coming from the Bluetooth Headset, 'cause it works perfectly with other devices running CM13. (LG Optimus L90 for instance)
I tried a few things before running to you guys for help:
-Turned off experimental NuPlayer by default (didn't work)
-Clean Flashed CM12.1 like 5 times (didn't work)
-I even tried a few other ROMS based on CM, the problem was still there.
-So I went back to IronROM 5.0.2 and the problem is gone. :good:
Of course I want to go back to CM12.1, IronROM is awesome but CM is the thing nowadays, so if any of you has an idea of what is the origin of the problem and can guide me through the solution, I'd be thankful for life.
Have a good day!
It's a known bug in CM12.1

LineageOS 18.1[UNOFFICIAL ROM] SM-G920F Bluetooth audio not working

Hi,
So I've been using this ROM for a while as a daily driver, but for all this time I've been forced to use the mighty headphone jack, which i don't mind using, but on the bus it would be very convenient to not have a cable in the way. The problem is that the headphones connect but the audio always plays through the normal speaker. I THINK I've tried everything but the entire reasoning behind this post is because I most definetely haven't. Hopefully there's a way to maybe reinstall the bluetooth driver/module?
To be fair, I can and have only tested LDAC headphones, as i only have those to try at the moment, if that's the main problem I don't even know how to switch them to SBC or another basic codec.
Thank you in advance for all the suggestions.

Categories

Resources