[Q] Is there any way to turn off the compass sensor? - Captivate Q&A, Help & Troubleshooting

I have some hardware malfunction of compass sensor it shows north all the time and I have an error in dmesg, saying that yas529 failed to initialize, so I guess it's hardware problem. I don't care. I've had 3 phones with compass prior and barely used it.
BUT
I have such a problem that after using any navigation software (after closing the app itself) I get horrible battery drain of "Android OS" in battery usage stats, the only way to stop the drain is to reboot the device.
So , I guess compass is being initialized by those navigation software , but it does not turn off (because of HW malfunction).
So my goal is to prevent the OS from seeing the sensor so it won't be turned on.
I know it's better to buy new phone , but It's just not the time for me to switch to another phone and I love my cappy.
I've commented on the orientationd and geomagneticd in init.rc, but that did not help. Something else is turning the compass on.

Related

[Question?] Disabling Bluetooth Hardware Chip

My xperia x1 bluetooth is not working do not know for what reason i tried almost everything i knew (changing roms, changing radios etc.,) My intelligent guess is the hardware chip is not working anymore, everytime I try to turn on the bluetooth from comm manager it take couple of sec and doesn't turn on. No Error or anything nothing....
Because of this bluetooth hardware problem my battery is drained within 6 hours with extremely nominal use.
I'll be very grateful if anyone help me in this regard, you can suggest me registry tweak or anyother trick possible.
Thanks!
no answer?? anyone??
If you've been flashing roms and its still not working then it probbably is hardware related, send it back to Sony Ericsson to get it repaired.
bluetooth is not a chip of it's own
bluetooth hardware is integrated into the cpu from qualcomm along with 3g and wifi and gps
thank you rudegar and comeradealexi for your reply.
rudegar is it possible that i could somehow disable them because i think it is draining my battery. Is this possible that battery draining is due to that chip?
if it's turned on in software then it should not normally use a lot of power
if you turn off bluetooth and wifi and auto recieve incomming beams you get longer batt time
they are already turned off. there was another thing i noticed the other day i turned off my mobile at 40% battery took out the sim and keep it turned off for 5-6 hours but surprisingly when I tried to turn it ON it didnt because whole battery was drained even when it was completely turned Off. So i think it is the battery itself which doesn't hold charge.
sounds like a dodgy battery more then anything else
thank you rudegar

[Q] Partial WakeLock GPSLocationProvider

I'm currently using Nik's Codename Jellybean ROM and am getting excellent battery life for the last week or so. I have used the kernel that has come along with it.
However, yesterday when I went out - I turned on GPS (turned on for a short period and then off) for the first time since flashing the ROM and since then, the GPSLocationProvider has been providing partial wakelocks every second whenever the phone is not on airplane mode and preventing deep sleep, killing my battery in the process.
I have attached a screenshot from BetterBatteryStats.
I have looked about in the forum and the only solution from a couple of old threads seem to be rebooting the phone so that the phone can go back into deep sleep mode, which is really not the best solution is it?
If there is any solution or a compatible kernel that prevents this, I'm happy to hear from you.
It may also due to your Google location services which is active. Take the dump again with all location, GPS turned off!!
Edit: Location wake lock dump shows its active for long time. Seems like its due to location service not GPS, which you turned on only for a short duration.
Cool - that may help isolate the problem. I will toggle Maps, Location Services, GPS and see what is causing the issue.
Many thanks
Happens to me also on other ROM and device. But only if i start some app, which is using GPS, but its not enabled yet.
In case I enable GPS, than start the app, use it, close app, disable GPS, then GpsLocationProvider is not running in background.

Proximity sensor always on: heavy battery drain!

I hope you can help me, Lately I've had a pretty bad battery consumption on my htc one... So I decided to install an application to monitor such consumption, '' Battery Monitor Widget '' the result was as follows:
Android System'' drains a lot battery, even the phone being idle, the battery lasts me very little, at most 2 hours of screen on without wifi or mobile data, without playing games :/ ...but I noticed that this consumption of the operating system were caused by the proximity sensor which was on whenever the screen was turned on...
I've installed three different roms based on 6.09.401.10 firmware and all the same thing happens ... THE PROXIMITY SENSOR IS ALWAYS ON! I even turned off automatic brightness and nothing works. I also turned on the phone in safe mode to check that no installed application was causing the problem, even so the proximity sensor is always on.
Could someone tell me if the same thing happens in your phone please?
Device HTC One (M7) S-ON
ROM - Maximus HD/Skydragon/ARHD
Kernel - Stock
HBOOT - 1.57
Recovery - TWRP 2.6.3.3
Sense - 6.0
Android KitKat - 4.4.3 w/ 6.09.401.10 FW
I found a partial solution ... when the Auto Sleep is active the phone all the time keeps activated the proximity sensor ... when you put a fixed time, the sensor turns off and remains so until some application as the phone it requires... Now the problem seems to be the light sensor, which seems to be always on when the screen is just so ... I turned off the automatic brightness (it is the only process that I use the sensor) but somehow it does not work ... disable the light sensor?
Any help?
maybe this is what is causing battery drain and lags on my phone :/ (arhrd 82)
Gnavarroc said:
maybe this is what is causing battery drain and lags on my phone :/ (arhrd 82)
Click to expand...
Click to collapse
yeah...i think so...

ssp_sensor_hub_wake_lock - need to catch this battery thief

Hello there . Using Better Battery Stats I found out about this process which takes my phone out of Deep Sleep for about 5 minutes every hour. Totally annoying.
My phone is seriously trimmed down. I'm very strict when it comes to what is running. Data connection is almost permanently disabled, no weather widgets anywhere (that I'm aware of), no sensors active, extremely few processes in background, and even those that are have been thoroughly vetted. I'm using Disable Service / Greenify & Autostart to seriously trim down on whatever is running.
I did notice that when the phone is in Airplane mode, ssp_sensor_hub_wake_lock is keeping my phone alive "only" about 1 minute / hour. That is still too much, since I do NOT have any sensors that should be active at that time.
CONCLUSION AND THE ACTUAL QUESTION:
How can I investigate WHAT PROCESS starts ssp_sensor_hub_wake_lock OR ALTERNATIVELY get any logs / debug that could lead me to the culprit.
Thank you in advance!
try better battery stats

Weird Battery Behavior

I received my Xiaomi Mi 9 yesterday and after setting everything up I started to notice a fast battery drain, even when the screen is off, which I found to be quite weird for this phone.
When I restarted the device however, my battery percentage was back up again. It somehow went from being at 15% to being back at 73% after the reboot!
I am very confused about this, and I have no clue what could be causing this.
So far I've tried to do a factory reset, which didn't seem to help however. I've turned off WiFi, GPS, Sync and I pulled out my SIM Card and left it sitting, screen off, with occasional checks, but still the same drain.
What's even weirder about this is that the drain seems to be constant. I included a screenshot of the battery history graph, where it is visible that the battery "drains" at the same exact speed every time. Every time you see a spike upwards, that is me rebooting the phone. You can also see that WiFi (and also GPS and SIM Card) was turned off at some point, but that didn't affect the drain at all.
The phone isn't running hot or anything either, it's literally doing nothing, just sitting there draining.
I've let it drain down to 0%, at which point it just turned off. I could immediately start it again and it was back at 66%.
MIUI's battery analyzer thingy does also not have any recommendations as to what to do, except "turn on battery saver", which it says only gains 8 minutes.
I'm running the latest update that I could get through the updater in the settings (MIUI Global 10.2.17.0).
I'm really at a loss here as to how to fix this, or even pinpoint what could be causing this. I would've blamed I faulty battery in my unit, but it kind of seems to be more of a software issue? I really don't know.
It seems that a hardware fault (BSI) rather than a software issue
Cause no one report such a problem with this phone
Do you have any idea which part of the hardware could be causing this?
I said bsi or battery
But refer to warranty for replacement
emprazol said:
It seems that a hardware fault (BSI) rather than a software issue
Cause no one report such a problem with this phone
Click to expand...
Click to collapse
But yes.
https://c.mi.com/thread-1891092-1-0.html
Some people helped now flash FW:
https://miblog.co/mi-9-eea-stable-10-2-17-0/

Categories

Resources