Bluetooth causes event loop processing lag - Verizon Samsung Galaxy S7 Questions & Answers

After ~14 months of ownership my phone started to get a bit wonky. My assumption is the bluetooth modem is hanging on a periodic scan/probe, causing processing of the central event loop (sadly I'm not an android dev, so I don't know what it's actually called - but the event loop that *everything* on the phone ties into for time and event based notifications) to seriously lag.
Examples: clock alarms do not go off at the correct time - they can be 5 to 20 minutes delayed. LightFlow's control of the LED is delayed by 1-10 minutes (e.g., stock light color comes on immediately, switches to lightflow's some time much later). Lightflow is set to clear the indicator once the phone is unlocked, but that doesn't happen until several minutes *after* I've unlocked the phone.
Turning off bluetooth via settings or the quick pulldown resolves this and the phone goes back to normal.
I've tried removing all bluetooth pairings, wiping data and cache of Bluetooth Share, wiping all cache, installed jrkruse's Hybrid BRA1 ROM, all with no change. This phone has never been rooted.
I use bluetooth a lot, so keeping it disabled all the time isn't super great.
I had similar issues with my S4, but switching ROMs tended to fix it, and certain modem FWs seemed better than others.
Any ideas?

Related

[Q] Strange behaviour after long time up and running

Hello,
I have some issues with my phone behaving strangely and forgetting settings after long power-up times without reboot.
I am on rooted Adam kernel 1.6 knox-free with stock 4.2.2 rom XXUDMH5. I only flashed Adam kernel because whatever i tried, I lost Wifi with stock kernel after I tried CF-Auto-Root (got no clue why, but I am not the only one). Phone normally works quite fine, and after greenifying some apps and disabling some bloatware I normally get battery times of four days+ with moderate use (I am not a power-phoner).
However, after some days of power-on time, the phone starts behaving strangely. I got issues with screen auto brightness not working (screen staying on lowest brightness level all the time), touch screen not reacting properly, apps not starting etc. Two times the phone got hot while charging, apparently something running on heavy duty, with the result that after hours of charging battery power increased only little, if at all. Normally those issues went away after re-booting the phone.
Today, after charging over night, I found the phone with screen on, and looking into power history I found that it had been on for six hours. Apart from the hardware damage this might bring (screen burn-in), the other issue is that after the re-boot, I lost almost all settings. I had to enter passwords again for Samsung account etc., and I had to re-configure everything from keyboard settings, vibration feedback, screen turn-off delay, and remote access features.
When I tried to login to Tomtom live services, I had to enter the password again, too, and then the app told me that my account was already associated with another phone (which it was not, of course). Fortunatelly it allowed me to transfer to my "new" phone.
My questions are: Are those settings (screen turn-off delay, keyboard, remote access etc.) kernel or rom related? Does anybody know where those are stored (some xml file perhaps)? Can I make a backup (I have titanium backup) and restore only those settings if need be?
Many thanks in advance!
One addition: When I started Titanium backup, it notified me that the Android ID has changed and if I want to keep the new one or restore the previous one from a backup. Also, the lockscreen personalization (I replaced that "Live Companion" text) was lost.
So, after being on for more than four or five days the phone is forgetting all settings. Am I really the only one?

Phone Randomly Keeps Rebooting YMMV fix

This may or may not be related to anybody having the same issues but I'd like to report on a fix for this. This may or may not apply to you so YMMV, but this defenitely stopped my phone from rebooting randomly.
The thing that fixed my phone from auto rebooting by itself randomly is to go into your Play Store option and set Auto Update Apps to 'Update over Wifi only'. I had set it to never update. I can't get into why it happens since I don't know where to check logs but this does work for me. (Menu>Settings>Auto-update apps)
My story: Yesterday my phone reboots by itself every few minutes without even touching it for no reason at all. Phone had about 75% juice. I remember doing the unlock and had no problem with it for the whole day. I was at jury duty, boored and I was messing with options to restrict background data and changed the Play Store update options to Never Auto Update Apps since I switched to Tmobile and I don't have an unlimited data anymore. Afterwards the phone started rebooting by itself at various times during the day. I didn't notice until later on the night where it rebooted itself every few minutes. So I tried out various fixes which didn't work and set Airplane mode stopped the rebooting but wasnt a fix. After awhile I tried to retrace all the stuff I did on my phone during the day and strangely setting the option back to Auto Update Apps to Wifi Only fixed it. After doing that the phone stopped rebooting by itself and I was able to use it all day today.
So basically, see if setting the auto update to wifi only if you had it off will fix this.
Also I realize there are many different fixes other users have reported like the Power Cycling, Airplane mode or Clearing Dalvik and Cache(Which didn't work for me), or even reflashing/reset to factory (I avoided this). None of those worked for me. If those didn't work for you, try this as another option.
Mods: Please move this to Sprint Samsung S4 section. I have no idea why I'm in this section. I'm sure this applies to every S4 though.

[Q] Lollipop 5.0 has turned my Nexus into a pretty paperweight - help!

So I finally got the notification that I could update my Nexus 4 to Lollipop; I was aware of some issues regarding performance/wifi etc but nothing prepared me for this;
I installed Lollipop last night and left my phone optimising its apps etc overnight. In the morning I had a couple of messages saying the launcher was not responding, I also noticed I had no wifi or mobile data connection.
I restarted and my wifi connected but the phone promptly froze and needed another reboot. After reboot it took a long time for even the 'no signal' triangle to come up and much longer for it to show any service, but still no data connection. Various apps are causing popups asking me to close, wait or report. Normally it won't respond to any of these options. I've not even tried to use most of the apps, such as Google Docs which has come up a few times.
Within a couple of hours all I had managed to do was let Gmail steal my emails and get a quick glance of the 'new look' (which I like).
A bit more careful handling got Spotify running for my drive to work but it froze and needed a reboot after removing the aux lead from the port.
Then it stopped responding and I left it for the day as I was working, when I came back it still said 9am on the screen. I cleared the cache via the recovery boot process, performance has improved but its still freezing and the data/mobile reception is very flaky. In 24hrs I still haven't managed to use the phone for anything except Spotify. Not even loaded a web page. Its probably had 20 restarts today.
Help!
Just done the following and there has been a marginal improvement i.e. I can actually open an app (occasionally) without freezing the phone but its still largely unresponsive and no mobile reception at all.
Go into the developer options as above. There are three options under "Drawing" in Developer Options :
-Window animation scale
-Transition animation scale
-Animator duration scale
Turn all three to 'Animation off'.
then, under the 'Apps' subheading (in developer options still), set Background Process Limit to "at most, 2 processes".
My N4 and N7 have been flying along since I did that.

HELP REQ - Stock Lollipop Note 3 N9005 - Random Reboots/Wifi-BT Clashes

Hi all,
Having a problem here.
Had my N9005 for about 18 months, never really had any problems with it - or rather, never really required anything of it which might manifest any problems.
I've always used Stock ROM's, soft-rooted.
Never triggered KNOX.
I'm currently running Stock Lollipop (latest Switzerland Open). Everything I'm about to elaborate is also the same using Stock Lollipop (latest UK Open).
I'm rooted on Lollipop using the method compiled by The TAMAS on XDADEV.
I root because my phone is work-critical, and so I use Titanium Backup to keep my data/calls/APN/SMS backed up and to make restoring easy, as well as to disable stock bloatware etc.
The problem may have pre-existed in pre-Lollipop ROM's, but the sequence of changes which caused it to be manifested included my need to update to Lollipop, about 5/6 months back.
THE PROBLEM - First and foremost, the damn phone reboots randomly. I become aware of it because it will vibrate for startup and play the Samsung startup tone and splash screen before booting to normal functionality. It can do this day or night, maybe 3-4 times a day. I have no error messages or warnings, it's done it while in my hand, while plugged in charging, while out and about, in the car, on wifi, on data. MOST times it reboots. SOME times it just shuts off and I don't realise it's off until I go to use it, or get a call on a second phone to ask why I'm not responding to calls or messages.
When it reboots itself, if I go to the Samsung Battery control panel pane and take a look at the battery chart it will show a gap which is longer than the time it took to reboot, and a shift in the battery meter level.
But, that's not the only possible symptom or problem with the phone.
I've noticed also that my WIFI does a lot of crapping out, or slowing to a crawl, even on my home AP. I've reset AP's, reset networks, reset the phone, forgotten and then reattached the AP in WiFi Settings. So I downloaded the Ookla Speedtest App, to see this issue in black and white, and sure enough, even though any other Android or iOS or Windows or OSX device in my place can connect via Wireless AP to my fibre connection and get great consistent throughput, the Note 3 can often appear crippled...
At it's best, it responds to ping quickly on the Speedtest app, and leaps up to the 30-40Mbps range with consistency for download, and up to 17-20Mbps for upload. This is the least I would expect it to do, my target standard.
At it's worst (which can be 'most of the time') it responds slowly to ping, and either struggles to get over 250Kbps download and maybe a crazy Meg or two for upload, consistently, a slow grind; or it may oscillate extremely wildly between slow and high speeds before eventually settling to unacceptably low transfer rates.
Up to press, I've been trying to chase these problems in isolation, believing them to be unconnected.
No success.
I've reflashed several times. I've Factory Reset. I've wiped data and cache. I've reinstalled and restored from Titanium. I've reinstalled and restored nothing but my SMS's and Call Logs. I've reduced my installed apps to bare minimums. I've tried it with a MicroSD installed, and without. I've bought another battery and replaced it. I've tried it in its case and without its case.
Then I started thinking that the problems were all the same thing, and stemming from the same root.
It suddenly occurred to me that my use of the phone changed significantly at the same time as I moved to Lollipop.
I need to be on Lollipop because apps and hardware that are critical to me are Lollipop dependent.
All at the same time, I began using a Moto360, a Bluetooth Receipt Printer and a Bluetooth Credit Card Reader, all of which are deficient in functionality or in some way hamstrung by not using Lollipop.
So I had gone from occasional BT user (maybe PlayerPro plus a BT link to headphones or my stereo occasionally; when needed, BT speakerphone in car) who usually turned BT off manually to preserve battery life, to a constantly connected BT user...
So I went back to Speedtest app, and tried to test the WIFI connection again. Sure enough, it was pitiful. Then I simply disabled BT on the N9005 and ran the test again, and had full 'through the roof' speed ratings.
I've tried this back and forth hundreds of times now, and it is predictable and established. BT is somehow crippling WIFI on my N9005.
I've tried running the phone on either wifi or data only, with BT off, and had a couple of days use at a time without any restarts. Put BT back on permanently, and the restarts resume within hours.
I'll be honest, I've even been cursing and swearing at my BT devices, because BT sometimes struggles to even maintain a continuous connection. I get vibrations all the time on my Moto360 indicating that the phone, which is on my person, has disconnected from the watch again, perhaps just for moments, sometimes for minutes, resulting in the watch eating battery life, trying to get reconnected.
I'm convinced now that all these things are related, and the problem lies somewhere in the interaction between BT and WIFI in my N9005.
It seems likely that I never noticed the problem before because I never required continuous BT connection before the point where I installed Lollipop.
Downgrading the ROM isn't an option. Leaving BT off isn't an option (nor should they have to be, on an 18 month old £600 smartphone).
Does anyone else have experience of this? Has anyone else had problems that they now suspect might be this same problem? Does anyone understand what's going on hardware/software wise, or have experience of a solution to these issues?
I'd appreciate your input urgently, even if only to affirm that I need to go to the inconvenience of temporarily buying another phone to replace this, while I send this away for a warranty repair.
Is this even a recognised hardware fault, or would I just get back an identical unit which is crippled from being able to perform as I expect it?
Please help.

Help - Random Reboot Problem

This is an ongoing, intermittent and devastating problem I have. My phone will be working perfectly fine, then all of a sudden it will randomly reboot. Then it will work for a few minutes or hours, then randomly reboot again. Then for a shorter time and reboot again until the phone basically can't even get through the bootup process without rebooting. It will be essentially bricked for anywhere from 1/2 a day to nearly a week (though it usually manages to get to working for 15 minutes at a time for most of the week. Then, all of a sudden and for no reason I can tell, it will just start working fine again for anywhere from several days to a month. This has been going on for at least 6 months.
It reboots during any manner of activities with the most common being phone calls, texting (I usually use Handcent Next SMS), anything with the keyboard (stock), browsing, swiping on the home screen, etc.. Really anything causes it, including it just sleeping with the screen off. The same problem occurs when in Safe mode, with or without the SD card (using as just extra storage, not phone memory), and with or without the SIM. It doesn't matter if it's plugged in or not. I have noticed what seems to be a greater tendency for rebooting to occur when the battery is low.
I am on T-Mobile (if that matters in any way for OTAs and such) and running the stock ROM without root. I'm about to try a factory reset but that has not been a permanent solution in the past.
so I just did the factory reset and it rebooted during the initial phone info setup (select your language, etc.)... I think it's toast... Does anyone know if this is the sort of thing that can be repaired for <$100 or should I just buy a new phone from ebay?

Resources