No deep sleep - Xiaomi Poco X3 NFC Questions & Answers

Hey,
I have encountered that my device does not deep sleep. Several kernel managers just show up 0% ds. Tried really everything. Fresh installation, no Apps, mobile date and wifi disabled, removed sim... 0% deepl sleep. Noticed a "0-0028" wakelock, seems to be device on wl. Nothing else strange.
Only if I reboot device and do not enter a sim pin and not use the device, it sleeps deep. Is that normal?
Any hints truly appreciated.

vinylmeister said:
Hey,
I have encountered that my device does not deep sleep. Several kernel managers just show up 0% ds. Tried really everything. Fresh installation, no Apps, mobile date and wifi disabled, removed sim... 0% deepl sleep. Noticed a "0-0028" wakelock, seems to be device on wl. Nothing else strange.
Only if I reboot device and do not enter a sim pin and not use the device, it sleeps deep. Is that normal?
Any hints truly appreciated.
Click to expand...
Click to collapse
Would be helpful to know which ROM and which version you are using

Of course, you are right
Tried it with almost every rom, on each the same problem. ArrowOS, AEX, BaikalOS, CRDroid and LineageOS. All roms tested on A11.

vinylmeister said:
Of course, you are right
Tried it with almost every rom, on each the same problem. ArrowOS, AEX, BaikalOS, CRDroid and LineageOS. All roms tested on A11.
Click to expand...
Click to collapse
Then it's probably one of your apps not allowing your phone to go into deep sleep.
You can use an app like Greenify to find out which one:
Greenify - Apps on Google Play
Keep your device as smooth and lasting as in the first day, in an unique way!
play.google.com

Well, this happens just from the beginning with a fresh installation, even if there is no single app installed.

Clean your charging port.
I had this issue many years ago with another phone and it was mind boggling as I went to every service center, tried every single suggestion across the entire Internet.
Turned out my charging port was dirty and some pins were being short. Android was incorrectly labeling it as "Android System" and my phone never deep slept.
Clean your headphone port too.

Alrich said:
Clean your charging port.
I had this issue many years ago with another phone and it was mind boggling as I went to every service center, tried every single suggestion across the entire Internet.
Turned out my charging port was dirty and some pins were being short. Android was incorrectly labeling it as "Android System" and my phone never deep slept.
Clean your headphone port too.
Click to expand...
Click to collapse
Sadly, that didn't solve the problem. Phone always awake, kernel wakelock 0-0028 eating battery.

Related

[Q] No deep sleep but no wakelocks huh?

Hello all, I recently noticed that my OPO was not going into deep sleep. So I installed wakelock detector and to my surprise, nothing out of the ordinary was going on. I proceeded to wipe the dalvik and cache, still nothing, won't deep sleep. Last night I flashed franco kernel in the hopes that it would solve the problem, guess what, nothing, still won't deep sleep. The phone just drops to 300mhz and stays there for the minimum frequency.
I'm running liquid smooth 3.2 (4.4.4) with the recently flashed franco kernel.
Do you guys have any other suggestions on what to do?, I was just about to flash an entirely new rom and keep it barebones till the end of the week when cm 12s and oxygen os are released.
I'm experiencing exactly the same issue..
amd-dude said:
Hello all, I recently noticed that my OPO was not going into deep sleep. So I installed wakelock detector and to my surprise, nothing out of the ordinary was going on. I proceeded to wipe the dalvik and cache, still nothing, won't deep sleep. Last night I flashed franco kernel in the hopes that it would solve the problem, guess what, nothing, still won't deep sleep. The phone just drops to 300mhz and stays there for the minimum frequency.
I'm running liquid smooth 3.2 (4.4.4) with the recently flashed franco kernel.
Do you guys have any other suggestions on what to do?, I was just about to flash an entirely new rom and keep it barebones till the end of the week when cm 12s and oxygen os are released.
Click to expand...
Click to collapse
Maybe the PlayServices are the Problem somewhere here is a guid to prevent them to keep your phone awake
Actually play services did not come up in the battery stats to indicate it was indeed active. I ran through anything, there is nothing causing unnecessary wakelocks. So that's why I'm confused.
amd-dude said:
Actually play services did not come up in the battery stats to indicate it was indeed active. I ran through anything, there is nothing causing unnecessary wakelocks. So that's why I'm confused.
Click to expand...
Click to collapse
Play Services doesn't always show up as Play Services in the battery stats page in your settings menu, it quite often will show up as Android OS.
Transmitted via Bacon
timmaaa said:
Play Services doesn't always show up as Play Services in the battery stats page in your settings menu, it quite often will show up as Android OS.
Transmitted via Bacon
Click to expand...
Click to collapse
Not even that, as I said there was nothing android related nor was there any app in wakelock detector that was showing signs of a wakelock. For good measure I did follow the many guides on stopping google services etc. and none of them worked. Phone still won't go into deep sleep. Strangely enough it was wasn't affecting my battery life that much, was still getting about 6hrs on screen time with 14% battery left.
amd-dude said:
Not even that, as I said there was nothing android related nor was there any app in wakelock detector that was showing signs of a wakelock. For good measure I did follow the many guides on stopping google services etc. and none of them worked. Phone still won't go into deep sleep. Strangely enough it was wasn't affecting my battery life that much, was still getting about 6hrs on screen time with 14% battery left.
Click to expand...
Click to collapse
Sounds to me like your battery stats might just be screwy.
Transmitted via Bacon
So now I'm wondering, as well. What would an example of good/excellent deep sleep look like? % drop over time?
My battery stats show cell standby at 1%, phone idle at 1%, and over over eight hours go from 100% to about 86%. Would that drain be considered deep sleep, or good deep sleep?
I had a similar issue and able troubleshoot successfully.
Device:
- POCO F1
- MIUI 12.0.3.0, Android 10
- Magisk 21
What tried but didn't help
- There is no wake-locks active
- Tried Battery Saver and Ultra Battery Saver
- Tried Airplane mode
- Tried rebooting
- There is no significant battery drain (only 1.6% per hour)
- Tried disabling Proximity sensor
- Tried wiping dalvik-cache
I have followed the guide by Intel at https://software.intel.com/content/...-no-sleep-issues-in-android-applications.html
As I mentioned earlier, there is no active wakelock, that is why the troubleshooting was much difficult.
I have digged into `/sys/kernel/debug/wakeup_sources` and sorted processes based on the column `prevent_suspend_time`. The process `qtidataservice` was on the top. Not sure what it is, but it's probably from Qualcomm and running under the `radio` user.
The `strace` was showing nothing. I have simply killed that process. It's eventually re-created with a new PID. Interestingly the device began to go Deep-sleep while in idle.

Android system severe battery drain 5.1.1

Sup XDA!
When I updated to android 5.1.1 (cm12.1, rooted) android system started to drain my battery, even more than my screen would. This wasn't an issue back on 5.0 and I wonder what the problem is, and I thought you guys could be able to help me out as this forum has helped me before, thx for that!
Ive attached 3 screens, first is from battery monitor and the other 2 are screens of my battery 'page' in settings. Let me know if you need any additional information and or screenshots and I'll be happy to provide.
Thanks in advance
Disable all of the google services you feel that take RAM (and so, battery) using the Disable Service app. Don't disable GCM Service. Don't disable FusedLocation Service if you use GPS. The only google service running on my phone is GCM. Disable location services, key chain, pppreferences, CM logger, dev tools, etc. just anything that you find isn't important and takes battery! Use apps like Greenify, Disable Service and Titanium backup to greenify, disable and freeze the apps/services.
TheHighLife said:
Sup XDA!
When I updated to android 5.1.1 (cm12.1, rooted) android system started to drain my battery, even more than my screen would. This wasn't an issue back on 5.0 and I wonder what the problem is, and I thought you guys could be able to help me out as this forum has helped me before, thx for that!
Ive attached 3 screens, first is from battery monitor and the other 2 are screens of my battery 'page' in settings. Let me know if you need any additional information and or screenshots and I'll be happy to provide.
Thanks in advance
Click to expand...
Click to collapse
This seems to be a common issue.... the fix involves downgrading the modem. However downgrading the modem requires downgrading your TWRP Recovery... which you cannot do if you are running CM12.1, the downgrade will fail every time no matter which "tricks" you use.
lotherius said:
This seems to be a common issue.... the fix involves downgrading the modem. However downgrading the modem requires downgrading your TWRP Recovery... which you cannot do if you are running CM12.1, the downgrade will fail every time no matter which "tricks" you use.
Click to expand...
Click to collapse
You don't need to downgrade TWRP to flash a modem. You can very easily flash a modem without TWRP even installed; fastboot. It isn't even certain that the modem is causing this drain either.
Working on the likely assumption that it is the same problem, the modem is indeed not to blame.
I have moved through COS12.1, CM12.1, sultan, paranoid android, and exodus, with and without flashing the modem and gapps, using both stock and Boeffla kernel.
They all exhibit the same drain, 9-11% overnight or 16-40mA/h (via dumpsys). This is regardless of wifi/cellular/ambient and other features being disabled.
The only obvious anomalies differing from 5.0.2 are high system_server cpu (25-450% via top) when asleep, and intermittent floods of "unknown" wakeups without wakelocks (Observed by dumping batterystats, and are not registered by settings - battery).
On one of my many reflashes Exodus 12.1 suddenly began behaving reasonably, with 6-10mA/h drain and 2% overnight.
The high System_sever cpu and intermittent wakeups were still present at this point, and may be unrelated oddities.
I later made the mistake of flashing a newer nightly (and later the correct modem), upon which the problem reappeared.
Doing a wipe and reflashing in the same manner did not resolve the issue, and many attempts later I have been unable to reproduce the same state.
Coming from kitkat I figured 5.0.2 would be the same, but it has been smooth sailing since flashing it last night (Exodus), with 6-10mA/h drain and 0% overnight.
Roughy said:
Working on the likely assumption that it is the same problem, the modem is indeed not to blame.
I have moved through COS12.1, CM12.1, sultan, paranoid android, and exodus, with and without flashing the modem and gapps, using both stock and Boeffla kernel.
They all exhibit the same drain, 9-11% overnight or 16-40mA/h (via dumpsys). This is regardless of wifi/cellular/ambient and other features being disabled.
The only obvious anomalies differing from 5.0.2 are high system_server cpu (25-450% via top) when asleep, and intermittent floods of "unknown" wakeups without wakelocks (Observed by dumping batterystats, and are not registered by settings - battery).
On one of my many reflashes Exodus 12.1 suddenly began behaving reasonably, with 6-10mA/h drain and 2% overnight.
The high System_sever cpu and intermittent wakeups were still present at this point, and may be unrelated oddities.
I later made the mistake of flashing a newer nightly (and later the correct modem), upon which the problem reappeared.
Doing a wipe and reflashing in the same manner did not resolve the issue, and many attempts later I have been unable to reproduce the same state.
Coming from kitkat I figured 5.0.2 would be the same, but it has been smooth sailing since flashing it last night (Exodus), with 6-10mA/h drain and 0% overnight.
Click to expand...
Click to collapse
So right now you are on the 5.0.2 exodus builds and having minimal battery drain? Which modem are you using?
f41lbl0g said:
So right now you are on the 5.0.2 exodus builds and having minimal battery drain? Which modem are you using?
Click to expand...
Click to collapse
Correct, with the Xposed Mobile Radio Active fix applied.
bacon_firmware_update_2015_04_03.zip from ... <10 posts and am not allowed to post links yet.
It's on Exodus' 5.0.2 download page along with the roms.
As usual the modem will not flash in TWRP, and has to be done manually via fastboot.
Paresh Kalinani said:
Disable all of the google services you feel that take RAM (and so, battery) using the Disable Service app. Don't disable GCM Service. Don't disable FusedLocation Service if you use GPS. The only google service running on my phone is GCM. Disable location services, key chain, pppreferences, CM logger, dev tools, etc. just anything that you find isn't important and takes battery! Use apps like Greenify, Disable Service and Titanium backup to greenify, disable and freeze the apps/services.
Click to expand...
Click to collapse
I did all of this but it's still draining battery, should I post new screenshots?
TheHighLife said:
I did all of this but it's still draining battery, should I post new screenshots?
Click to expand...
Click to collapse
As you have tried many things to improve your battery life, last option I wanna suggest you to use your device in safe mode for one complete charge cycle from 94% down to 5% (I know that this mode is pathetic).
If you still find that it's causing battery drain, you need to reflash the ROM and please do not restore any backup(restore only those which are most important).
If you find that Android system is not causing anymore battery drain, then it's one of the third party app that is doing so.
Mr hOaX said:
As you have tried many things to improve your battery life, last option I wanna suggest you to use your device in safe mode for one complete charge cycle from 94% down to 5% (I know that this mode is pathetic).
If you still find that it's causing battery drain, you need to reflash the ROM and please do not restore any backup(restore only those which are most important).
If you find that Android system is not causing anymore battery drain, then it's one of the third party app that is doing so.
Click to expand...
Click to collapse
Ive only tried to disable some services that show up under android system. How do I put it in safe mode tho?
By the way, I just noticed that the CPU total time for android system is exactly the same time as the SOT, what does this mean? It only drains this much battery when the screen is on?
TheHighLife said:
Ive only tried to disable some services that show up under android system. How do I put it in safe mode tho?
By the way, I just noticed that the CPU total time for android system is exactly the same time as the SOT, what does this mean? It only drains this much battery when the screen is on?
Click to expand...
Click to collapse
Boot your device into safe mode https://support.google.com/nexus/answer/2852139?hl=en
Just post some screenshots of the battery (complete overview of graph screen and app list screen) after using your OPO in safe mode atleast for one charge cycle (90%+ down to 10%)
This will help us to figure out what is the exact issue you are facing.
If you are not interested in troubleshooting, just flash fastboot images of this build(CMOS12.1) using following guide
forum.xda-developers.com/oneplus-one/general/guides-bacon-timmaaas-how-to-guides-t2839471
For OnePlus One, about a month ago after systems update, my battery started draining fats and it has gotten worse over the past week. The battery barely holds four hours of after a full charge and the phone gets very hot. Also, over the past week, my main SMS messaging app (SMS) crashes nine out of 10 times -- I can start the app but when I click any of the messages I was to read or type, it freezes and crashes. Also, since yesterday, my phone dilaer crashes very often. Any thoughts/help? I am not familiar with how to flash ROM, etc. Also, since yesterday, charging has been very slow -- overnight, the charge went from 35% full to 74% full. I tried safe mode as well and no luck -- battery still keeps draining at 1% every three minutes.
I have the same issue. Any fixes which work ?

LineageOS is here!!! [ROM MM]

LineageOS is here!!!
The title is enough, I think,
I haven't tested it yet but.... the first LineageOS ROM for our beloved Photon appeared !
https://download.lineageos.org/xt897
I've been 2 days using this rom on my xt926 so far is good and fast
Thanks, do we have to 'clean-install' this?
clean install was safe.
You'll get a broken notification status bar eventually and you'll need this:
https://forum.xda-developers.com/showpost.php?p=67444950&postcount=721
I spent half-a-day
palmwangja said:
clean install was safe.
You'll get a broken notification status bar eventually and you'll need this:
https://forum.xda-developers.com/showpost.php?p=67444950&postcount=721
I spent half-a-day
Click to expand...
Click to collapse
gapps package which removes CyanogenSetupWizard/LineageSetupWizard is broken and shouldn't be used.
There's no such issue with opengapps nano package which I use.
you can avoid wiping if you "hack" a bit.
I had only to defeat the check (adding the key to htmlviewer in the package.xml (or something like that)) and do a "pm grant com.android.systemui android.permission.READ_CONTACTS" via adb (to enable the logon screen).
Additionally, I did something like
for i in /data/app/*; do
pm install -r $i/base.apk
done
(could have small errors, is two weaks sine then ) to fix the other permissions problem (most with network status access)
It works apparently
Upgrade done almost flawlessly from LL resurrection remix to Lineage OS 13
Few apps had permission problems, i fixed it just restoring the app (app only, no data) using titanium backup.
Anyway I went back to RR given I like it more, and I can't see any real improvement on MM over LL
I am experiencing huge battery drain. Battery in idle last for about 8 hours. Even when phone was in airplane mode during night it fall from 100% to 75% during about 8 hours. Previously with Cyanogen I've lost maybe 3% during the night tops.
Battery stats does not shows any apps that goes wild. I've installed GSam Battery Monitor and it shows that battery is used mainly by kernel (~40%) and LineageOS (20-30%), but it was running only about half an hour. I will check tomorrow morning after airplain mode night, maybe something came out.
sc0ty said:
I am experiencing huge battery drain. Battery in idle last for about 8 hours. Even when phone was in airplane mode during night it fall from 100% to 75% during about 8 hours. Previously with Cyanogen I've lost maybe 3% during the night tops.
Battery stats does not shows any apps that goes wild. I've installed GSam Battery Monitor and it shows that battery is used mainly by kernel (~40%) and LineageOS (20-30%), but it was running only about half an hour. I will check tomorrow morning after airplain mode night, maybe something came out.
Click to expand...
Click to collapse
Have you checked if the CPU is entering deep sleep? My phone usually manages > 80% time in deep sleep. Of course that would depend on usage. Previous ROMs (nearly all) virtually never entered deep sleep. This one wallows in it.
If I leave it over night (clearing stats at the beginning) it gets very close to 100% I personally use CPU Spy, but there are many apps that would show you if you dont already have one.
I've installed CPU Spy, will see the stats after the night. I've also installed Greenify and I think battery consumption is better now, so I suspect one of my apps was preventing my phone from going to deep sleep.
According to CPU Spy my phone never goes to deep sleep when in airplane mode. I've checked this also with clean rom installed, without gapps or any other apps, just CPU Spy. I'm gonna open ticket in LineageOS JIRA.
sc0ty said:
According to CPU Spy my phone never goes to deep sleep when in airplane mode.
Click to expand...
Click to collapse
so, when its not in airplane mode, it does go to sleep?
I just tested mine, and even with a ton of apps, Xposed, Viper, Magisk etc etc it still went to sleep quickly. This ROM for me wallows in deep sleep. Previous ROMs hardly visited deep sleep if at all.
DiamondJohn said:
so, when its not in airplane mode, it does go to sleep?
Click to expand...
Click to collapse
Yes, the problem with battery drain when not in airplane mode seams to be fixed. It goes to deep sleep ~80% of the time when idle. I'm not sure what was the fix since there was update to LineageOS in between, and I was reflashing two times in the meantime, cleaning caches and restoring backup from recovery, so hard to say.
sc0ty said:
Yes, the problem with battery drain when not in airplane mode seams to be fixed. It goes to deep sleep ~80% of the time when idle. I'm not sure what was the fix since there was update to LineageOS in between, and I was reflashing two times in the meantime, cleaning caches and restoring backup from recovery, so hard to say.
Click to expand...
Click to collapse
Sorry, reading my post I guess was not clear. My phone DOES go to deep sleep when in airplane mode. XT905
============ edit
oh, and almost forgot. I am using Pico Gapps, and turn off auto updates and notifications on play store updates.
Hello, it looks like I'm experiencing the same problem. Battery drain on my photo Q running the last lineage os 14.1 (android 7.1.2).
When on airplane mode the battery drain disappears (even if I can't consider this phone a battery beast).
It seems curious to me, I was imagining that in all these months the problem was corrected.
Do you guys have a suggestion? Many thanks in advance
The thing is that my phone seems to suffer from battery draining (when not on airplane mode) even when running sailfish OS (flashed over cyanogenmod 11).
Could then be possible that it has some kind of hardware problem connected to the gsm/radio part? Except for the battery consumption It works fine tough.

Hidden Wakelocks by Whatsapp

I am running into a Wakelock issue and I am completely stumped. For some reason, my phone refuses to go into deep sleep for hours on end. Better Battery Stats shows that the phone spends the majority of its time with the CPU at its lowest frequency, but refuses to go into deep sleep. The issue started when I clean flashed LinageOS back when I tried 14.1. Since 15.1 has recently released, I tried to have another go, yet the problem remains. I am using a Oneplus 5.
The very weird thing about these Wakelocks is, is that they are completely invisible. Wakelock Detector isn't showing any specific wakelocks (Advanced mode enabled), but does show that the phone isn't entering the deep sleep state. Not even for a single second. Better Battery Stats shows the same thing, with zero seconds spent in Screen off (deep sleep) and all the time spent in Screen off (Awake). No application is listed anywhere that's causing these wakelocks. They aren't visible under partial wakelocks nor kernel wakelocks.
Now this is where things get bizarre. I tried removing all my applications and reinstalling them one by one to find out if it was an app that was causing the issues. Each time I installed an app, I would check whether the phone would go into deep sleep when I wasn't using it. It turns out that the phone stopped going into deep as soon as Whatsapp was installed. Yet Whatsapp would never register more than a few seconds of wakelocks each passing hour.
I'm not sure where to even begin to try and solve this issue. Has anyone else ever experienced these kind of invisible / hidden wakelocks, and if so, how did you manage to fix these issues? Thank you very much in advance for helping me out
Nobody with a similar problem to mine? It's really killing battery life for me
Mushoz said:
Nobody with a similar problem to mine? It's really killing battery life for me
Click to expand...
Click to collapse
I think I may have something similar happening with WhatsApp. My stats show lots of time spent with CPU on and screen off. Wakelock detector shows WhatsApp at the top of the list. But I don't really understand how to solve it other than deleting WhatsApp, which I don't want to do. Did you get anywhere with it?
Ian
IanHodgson said:
I think I may have something similar happening with WhatsApp. My stats show lots of time spent with CPU on and screen off. Wakelock detector shows WhatsApp at the top of the list. But I don't really understand how to solve it other than deleting WhatsApp, which I don't want to do. Did you get anywhere with it?
Ian
Click to expand...
Click to collapse
No, I still have the same issue unfortunately. Though my issue seems to be slightly different than yours in the sense that Whatsapp is very low in the list. The total minutes of Wakelock is far below the total minutes of awake (screen off). But uninstalling Whatsapp instantly solves the wakelock issue. Out of interest, what phone are you using and what rom?
Mushoz said:
Out of interest, what phone are you using and what rom?
Click to expand...
Click to collapse
Redmi Note 4, Pixel Experience Oreo 8.1
I got here through a google search. I am not sure it's whatsapp causing this (haven't removed it yet) but on a Moto G3 with LOS 15.1 unofficial by Rahul I have the same symptoms.

Alarmclock works while Android is shutdown?

Hello Forum,
why does my alarm clock work while the phone is turned out? What is the name of this function and how can I turn it off?
I think it uses battery, because I charged my old phone (switched off, emergency phone) a week ago and now its empty.
Thanks
Peter
peterfarge said:
Hello Forum,
why does my alarm clock work while the phone is turned out? What is the name of this function and how can I turn it off?
I think it uses battery, because I charged my old phone (switched off, emergency phone) a week ago and now its empty.
Thanks
Peter
Click to expand...
Click to collapse
Hi, what phone do you have ?
I remember this was an issue for certain phones (but that was 6 years ago lol). Your phone must be really old !
And about the battery life when shut down, how long does it last usually?
Now for the upfront solutions:
Delete the alarm you sat up.
And if you have a removable battery on this phone, removing it would have a very good effect on battery life.
Have a good one
Its an Elephone P7000. I want to charge it and use it as a secondary phone. I turn it only on when my main phone has no battery. Last month I bought a new battery for this phone, on the battery is written "production date 2015". The battery last a whole day when the phone is turned on.
I'm really interested what is running the whole time in the background when Android is turned off. Is it some kind of BIOS? Is it the bootloader? Can you give me the name of this "program"?
PS: When my Xiaomi phone if turned of, the alarm does not work.
peterfarge said:
Its an Elephone P7000. I want to charge it and use it as a secondary phone. I turn it only on when my main phone has no battery. Last month I bought a new battery for this phone, on the battery is written "production date 2015". The battery last a whole day when the phone is turned on.
I'm really interested what is running the whole time in the background when Android is turned off. Is it some kind of BIOS? Is it the bootloader? Can you give me the name of this "program"?
PS: When my Xiaomi phone if turned of, the alarm does not work.
Click to expand...
Click to collapse
A battery life thread which may help is:
https://forum.xda-developers.com/showthread.php?t=1179809
PS: I have never heard of an android phone that respects alarms when the phone is off, as android is not running But I always wondered why not, since my previous non-smart phones all did.
This App analyses the energy consumption of Android and the Apps, but that is not my problem. My problem is that the charged phone loses energy while it is turned off.
And secondly I'm really interested what is running in the background while the phone is turned off. Is is a firmeware from Elephone? I removed the original Elephone rom and switched to Cyagenomod and then to Rublix. But original Bootloader and other Elephone stuff my still be there.
I asked in a german Android forum and they said it is the fastboot function. But I think this is only a possibility of Android to boot fast when is is wakened from the watchdog I'm searching. (That the alarm clock starts immediately and not minutes after the targeted wakeup time.)
peterfarge said:
This App analyses the energy consumption of Android and the Apps, but that is not my problem. My problem is that the charged phone loses energy while it is turned off.
And secondly I'm really interested what is running in the background while the phone is turned off. Is is a firmeware from Elephone? I removed the original Elephone rom and switched to Cyagenomod and then to Rublix. But original Bootloader and other Elephone stuff my still be there.
I asked in a german Android forum and they said it is the fastboot function. But I think this is only a possibility of Android to boot fast when is is wakened from the watchdog I'm searching. (That the alarm clock starts immediately and not minutes after the targeted wakeup time.)
Click to expand...
Click to collapse
Yes, when you flash a custom ROM, all you are really changing is the system partition itself and maybe the kernel, everything else from your original firmware is still there: e.g. bootloader, modem, etc, etc..
Fastboot has nothing to do with how quickly the device boots, fastboot is a bootable function/mode used to flash/manage the device using the adb/fastboot software while booted into fastboot mode. Some devices have a feature that allows for fast booting, but that is a different animal than fastboot.
Your device has an internal clock the same as a PC does, that is how a PC keeps correct time even when the system is powered off and still shows the correct time when you boot the system. As for what is causing the battery to die even turned off, that may be a different issue than the power used by the internal clock.
All of my old devices lose charge after sitting in a draw for some time without being used, it isn't really an "issue" or problem, it is just the nature of the beast. Batteries do not store power indefinitely.
You can find out more about lithium-ion instability and the particulars of their construction and how they actually work if you do some google searches on the subject.
Sent from my SM-S767VL using Tapatalk
peterfarge said:
And secondly I'm really interested what is running in the background while the phone is turned off.
Click to expand...
Click to collapse
Are you rooted? running Magisk?
The smartphone is rooted with SuperSU.
This watchdog is more than a Bios clock. It wakes the smartphone at a given time. So the android system configures this background watchdog somehow. Maybe there are more things that it can do?
My Motorola Moto E (LineageOS) starts always with a wrong time. (WhatsApp is complaining about it at the start) So there seems to be no watchdog.
peterfarge said:
I'm really interested what is running the whole time in the background when Android is turned off. Is it some kind of BIOS? Is it the bootloader? Can you give me the name of this "program"?
Click to expand...
Click to collapse
peterfarge said:
The smartphone is rooted with SuperSU.
Click to expand...
Click to collapse
OK, if you are rooted, I would try running a boot-script that logs what is running on your phone every X minutes. If your lucky, the boot-script will log while the phone is "OFF".
something like the following maybe:
Code:
#!/system/bin/sh
top >> /sdcard/runnig_processes.log;
You may need to find a path that is actually mounted in your "OFF" state.
Also, I wouldn't keep this as a permanent thing, simply a test.
I dont think that this works. The uptime shows that the smartphone is running since 6 hours. I think if I put the script somewhere in the android system it wont be executed while android is turned off.
I have done some search. It seems that the P7000 has a Real Time Clock (RTC) in the MT6752 SOC. This chip can be configured to wakeup Android. I can see it at "cat /sys/class/rtc/rtc0/name".
There is also the charging screen despite the phone is turned off. The SOC can do a lot of things when android is not running.
peterfarge said:
I dont think that this works. The uptime shows that the smartphone is running since 6 hours. I think if I put the script somewhere in the android system it wont be executed while android is turned off.
I have done some search. It seems that the P7000 has a Real Time Clock (RTC) in the MT6752 SOC. This chip can be configured to wakeup Android. I can see it at "cat /sys/class/rtc/rtc0/name".
There is also the charging screen despite the phone is turned off. The SOC can do a lot of things when android is not running.
Click to expand...
Click to collapse
It does sound like android is not running on your phone for the phone-off-alarms, since it has a real time clock (I didnt read it, sorry).
As for the charging animation, all my phones have that too, but I think that is only the bootloader and ONLY while charging. ie connected to power, so discharging isn't an issue.
I suggested the above, as waaaay back when I modified my first phone, when I added a bunch of boot scripts that logged heavily, I *think* i was surprised when I noticed once (its back in gingerbread days) that I had logs from the start up of when I turned it off. But that was now many moons ago. It was just an idea, that shouldn't be too hard to test, even though all you have said points to it failing. And now that I think of it, the charging animation on that first phone I had, was actually PNG images (as animation frames) sitting on the android file system path; but again, that was during charging, not completely off.

Categories

Resources