[Q] JB 4.2 Deep sleep severe Issue - Android Q&A, Help & Troubleshooting

Hi folks,
I am searching for several days for a deep sleep issue solution, but i can say i am completly stuck.
My phone: Star B943 quad core MT6589, linux kernel 3.4.5, JB 4.2.1
At the phone start, deep sleep mode works fine, but as soon as i receive an email or SMS, the phone will never go back in powersaving mode. Just as if the service crashed and the phone still "Awake".
I've tested several solutions and apps:
- Deep Sleep Battery Saver: Failed
- One power guard: Failed
- Powersaving tweaks from Pimpmyrom: Failed
Of course i've checked if a service or apps aren't involved in the problem, but there is nothing. I've checked with Betterbatterystats, wakelock detector...Deep Sleep mode just crash and never restart . And we are a several people in this case...
i imagine the gotosleep void in powermanager can't do his job
"public void goToSleep (long time)
Added in API level 1
Forces the device to go to sleep.
Overrides all the wake locks that are held. This is what happens when the power key is pressed to turn off the screen.
Requires the DEVICE_POWER permission.
Parameters
time The time when the request to go to sleep was issued, in the uptimeMillis() time base. This timestamp is used to correctly order the go to sleep request with other power management functions. It should be set to the timestamp of the input event that caused the request to go to sleep.
See Also
userActivity(long, boolean)
wakeUp(long)"
Thanks for ur help, if you can

So i found that the powersaving is managed by the kernel, and by some files in /sys/power. I have autosleep (set on OFF) and some others: wake_lock, wake_unlock, wakeup_count, wait_for_fb_sleep, wait_for_fb_wake.... This last ones are very difficult to open. Wakeup_count is totaly buggy for example. The others are stuck the most part of time, except after restart. This files could be the source of the probleme ?

Strange situation:
http://forum.xda-developers.com/showpost.php?p=40682880&postcount=230
Has anybody else tried to use 2 SIMS?

Related

Schap's rom problem (minor but can someone help please)

Hi i installed the rom and all is well but i installed that wififofum application and found it wasn't too great and so uninstalled it, Once i'd done this i went to the comm manager and the font had changed and its annoyin me a bit. Just wondering if ic an change it and if this has happened to anyone else? Thanks
Also another thing is that when i leave it for a while for example go to sleep, when i wake up the charge light is flashing green and no button will turn the screen back on, ive disabled the battery options that would normally turn it off but still does it. I all so have average battery when i turn it back on so its not that. I have slide2unlock could that be causing it?
Thanks again lol
Raggers,
First, take S2U2 off. It will be contributing to your problem. Secondly, simply reinstall the comm manager and you should be ok.
If you are sure that the rom you are using has the fake server tweak setup correctly (stops activesync from continuously getting in the way and locking up your phone; google on here for a more detailed explanation) and you are sure you don't have software being polled off an external SD card (will also cause lockups) then you can reinstall S2U2 with the following settings:
On battery power:
- Lock when backlight turns off: set to on
-But blank screen; set to off
- Blank screen on talk: set to off
On external power - have all settings set to off.
In the Avanced section:
- Dont suspend power: set to on
- Safe mode: set to on
- Directdraw: set to off.
These settings will stop S2U2 locking up your phone provided all the other things I referred to are sorted (just sharing my hard earned experience with you).
Let us know how you get on.
Cheers
WB
that is fantastic thankyou very much. One thing i was wondering, is there any good applications i could use to replace s2u2 as an automatic keylock? i wiull have to leave it a while to test but thankyou very very much for the suggestions

[Q] how to keep the wireless on while the screen is off

hi!
I have a sony xperia tablet s and yesterday i got the upgrade to JB
I would like to keep the wireless connection on while my screen tablet is off. I tried the wireless option and i checked "keep the wireless on always" but it doesn't work.
Is there a way to do that?
thanks
Try some of these apps https://play.google.com/store/search?q=wifi+lock&c=apps
Haven't tried them though
Advanced Wifi Lock is the best one out there. Has different settings aswell.
Ubichinon said:
Advanced Wifi Lock is the best one out there. Has different settings aswell.
Click to expand...
Click to collapse
yes! it works even the free version.
Like this i can download file all night long!
advanced wifi lock disables sleep.
sleep policy is disable wifi when sleep is triggered.
sleep is triggered when hitting power button regardless if synching or uploading is going on ignoring sleep prevention mechanic thats build in many apps.
most android devices are build to only put screen off when hit power button leaving sleep on untill not used anymore.
advanced wifi lock is btw huge batery drain you won't notice extended batery life improvements from 4.1.1 if you gonna use advanced wifi lock.
Zer0K3wL said:
advanced wifi lock disables sleep.
sleep policy is disable wifi when sleep is triggered.
sleep is triggered when hitting power button regardless if synching or uploading is going on ignoring sleep prevention mechanic thats build in many apps.
most android devices are build to only put screen off when hit power button leaving sleep on untill not used anymore.
advanced wifi lock is btw huge batery drain you won't notice extended batery life improvements from 4.1.1 if you gonna use advanced wifi lock.
Click to expand...
Click to collapse
Not true. If you enable the option "disable wifi after period of time" (it isnt named exactly like that), wifi is automatically switched off after 20 mins of afk and the tablet goes in to sleep mode.
Ubichinon said:
Not true. If you enable the option "disable wifi after period of time" (it isnt named exactly like that), wifi is automatically switched off after 20 mins of afk and the tablet goes in to sleep mode.
Click to expand...
Click to collapse
wifi won't turn back on then not sync for hours unless turn tablet on and turn on wifi.
and will interfear more with syncing stuff that way then not having advanced wifi lock installed.
no idea whats causing it but i don't have advanced wifi lock turning of screen does't put tablet in sleep anymore.
have no apps running and custom homescreen apex launcher.
wifi has been on for 2 hours non stop
MAC Address Interface Uptime TX Rate RX Rate Signal Noise SNR Signal Quality
xx:xx:xx:xx:xx:xx ath1 2:03:43 150M 6M -46 -95 49 59%
If sleep is being prevented should wake lock detector not show this ?
apearntly google+ was uploading file in background which has ability to prevent sleep, and if sleep is not triggered wifi stay's on.
so guess wifi working fine now as long apps that upload files or sync have ability to prevent sleep.

Does Android Doze work differently on the S9+?

With my Note 4, it would wake up from Android Doze, or simply not enter that state if there was movement of the phone. I felt stupid needing to pick up my phone every 10 min to give it a small shake, but at least it seemed to work. I keep my phone in my pocket when I'm working outside and that always kept the Note 4 from falling into Doze mode. Not so with the S9+. It drops into Doze even in my pocket. Anyway to stop that from happening? Like others here, I feel frustrated needing to activate my screen to find out if there are notifications.
Brokk said:
With my Note 4, it would wake up from Android Doze, or simply not enter that state if there was movement of the phone. I felt stupid needing to pick up my phone every 10 min to give it a small shake, but at least it seemed to work. I keep my phone in my pocket when I'm working outside and that always kept the Note 4 from falling into Doze mode. Not so with the S9+. It drops into Doze even in my pocket. Anyway to stop that from happening? Like others here, I feel frustrated needing to activate my screen to find out if there are notifications.
Click to expand...
Click to collapse
That's not Doze mode. Doze is when Android puts apps to sleep that are in memory not being used. This is done to save battery (and processing time?).
So what is happening here, if I understand, is that your phone display is going blank when you pull it from your pocket?
Scott said:
That's not Doze mode. Doze is when Android puts apps to sleep that are in memory not being used. This is done to save battery (and processing time?).
Click to expand...
Click to collapse
Doze was originally described as putting your phone into a power saving sleep mode after 20 min of "inactivity". The issue that caused me problems back then was not about the apps, but that notifications pushed to the device were queued up by the system until your phone "woke up", then the notifications would come rolling through. This happened at the system level regardless of app.
Perhaps in the latest version of Android they have changed the definition of Doze, but another poster was having a lot of issues with notifications (mostly email) and the culprit was deemed to be Doze.
Scott said:
So what is happening here, if I understand, is that your phone display is going blank when you pull it from your pocket?
Click to expand...
Click to collapse
No. My display is blank (as it should be) when I put it into my pocket, as well as when I pull it out. I always shut the screen off before putting my phone down, or in my pocket.
If I put my phone in my pocket, and 5-10 min later I get a notification, it comes through loud and clear and I pull my phone out and check it. If 20+ min has gone by without me having a reason to turn the screen on, then I stop getting notifications. When I pull it out to check the time or send a message, suddenly the notifications come rolling through.
Again, I was used to this if the Note 4 was put down, but this behavior is new to me if the phone is moving about.
Brokk said:
Doze was originally described as putting your phone into a power saving sleep mode after 20 min of "inactivity". The issue that caused me problems back then was not about the apps, but that notifications pushed to the device were queued up by the system until your phone "woke up", then the notifications would come rolling through. This happened at the system level regardless of app.
Perhaps in the latest version of Android they have changed the definition of Doze, but another poster was having a lot of issues with notifications (mostly email) and the culprit was deemed to be Doze.
No. My display is blank (as it should be) when I put it into my pocket, as well as when I pull it out. I always shut the screen off before putting my phone down, or in my pocket.
If I put my phone in my pocket, and 5-10 min later I get a notification, it comes through loud and clear and I pull my phone out and check it. If 20+ min has gone by without me having a reason to turn the screen on, then I stop getting notifications. When I pull it out to check the time or send a message, suddenly the notifications come rolling through.
Again, I was used to this if the Note 4 was put down, but this behavior is new to me if the phone is moving about.
Click to expand...
Click to collapse
I concur. Same happens to me.
I don't have this issue at all. I have my phone in my pocket most of the day and don't need to "wake" the phone up for notifications. I can leave my phone unattended for hour or 3 and it still receives the notifications without issues. I don't know if I have turned on a setting that mine works different, but I must say that my battery life isn't that great....as if the phone never sleeps/doze at all
termdj said:
I don't have this issue at all. I have my phone in my pocket most of the day and don't need to "wake" the phone up for notifications. I can leave my phone unattended for hour or 3 and it still receives the notifications without issues. I don't know if I have turned on a setting that mine works different, but I must say that my battery life isn't that great....as if the phone never sleeps/doze at all
Click to expand...
Click to collapse
I'm curious. Do you have any of the power saving modes turned on? Do you use "always on display"?
I never use the power save modes. Aod is on from 5 in the morning till 8 at night
termdj said:
I never use the power save modes. Aod is on from 5 in the morning till 8 at night
Click to expand...
Click to collapse
AoD could be keeping your phone awake, preventing Doze. The power saving features talks about putting apps to sleep, so unless you use them, that could also be disabling Doze. I could try changing the power saving settings, though it seems like a shame. I have zero interesting in AoD for multiple reasons, so it's not worth it for me to use that to solve my problems.
Thanks for the information!
Doze changed in Nougat, I believe, so that motion no longer prevented Doze from working. Since most men, at least, carry their phone in their pocket Doze hardly ever kicked in, greatly limiting its power saving capability.
You can exempt specific apps from Doze if you want to get notifications from them even when dozing.
Settings / Apps / 3 dot menu / special access / Optimize battery usage. Select All Apps from the drop down. Turn off the toggle for any apps you don't want to Doze.
Brokk said:
Doze was originally described as putting your phone into a power saving sleep mode after 20 min of "inactivity". The issue that caused me problems back then was not about the apps, but that notifications pushed to the device were queued up by the system until your phone "woke up", then the notifications would come rolling through. This happened at the system level regardless of app.
Perhaps in the latest version of Android they have changed the definition of Doze, but another poster was having a lot of issues with notifications (mostly email) and the culprit was deemed to be Doze.
No. My display is blank (as it should be) when I put it into my pocket, as well as when I pull it out. I always shut the screen off before putting my phone down, or in my pocket.
If I put my phone in my pocket, and 5-10 min later I get a notification, it comes through loud and clear and I pull my phone out and check it. If 20+ min has gone by without me having a reason to turn the screen on, then I stop getting notifications. When I pull it out to check the time or send a message, suddenly the notifications come rolling through.
Again, I was used to this if the Note 4 was put down, but this behavior is new to me if the phone is moving about.
Click to expand...
Click to collapse
Yes, I am confusing Doze with the Samsung power saving options. Blah!
I know the battery life will decrease with aod, but I have noticed that even without aod on my battery drop 2% per hour, so I leave it on...There are days that I can go 1 day and 8 hours before charging, but then my sot is only 2 hours....In general I'm happy with the battery life
meyerweb said:
You can exempt specific apps from Doze if you want to get notifications from them even when dozing.
Settings / Apps / 3 dot menu / special access / Optimize battery usage. Select All Apps from the drop down. Turn off the toggle for any apps you don't want to Doze.
Click to expand...
Click to collapse
Thanks!
It seems oddly redundant needing to do essentially the same thing in two places. One well advertised under the battery settings, and the other one hidden under settings/apps/special access.
Hopefully this will fix my problems. Glad to know there is a work around.
Brokk said:
Thanks!
It seems oddly redundant needing to do essentially the same thing in two places. One well advertised under the battery settings, and the other one hidden under settings/apps/special access.
Hopefully this will fix my problems. Glad to know there is a work around.
Click to expand...
Click to collapse
The two settings really are doing different things. Samsung's (in the battery settings), puts apps to sleep after 3 to 7 days (depending on your settings). The won't wake up again until you use them. Doze (the pretty much hidden option in Apps), lets the apps wake up on their own, when you start using the phone, even if you don't access those particular apps.
I'm not sure why the Doze setup is buried so deep in settings, though. I guess Google (or Samsung?) really doesn't want you interfering with it.
meyerweb said:
The two settings really are doing different things. Samsung's (in the battery settings), puts apps to sleep after 3 to 7 days (depending on your settings). The won't wake up again until you use them.
Click to expand...
Click to collapse
I made a mistake of putting an app to sleep that I use to keep my screen awake. It uses a widget to toggle it on/off, but will shut off along with the screen if you intentionally shut your screen off. After putting that app to sleep, the widget stopped working. I had to go find the actual app, start it, then quickly flip back to my home screen and click on the widget. I couldn't undo my "sleep" action on that app. I changed it to "unmonitored", so that the S9+ would never put it to sleep. I rebooted. I shut off the power saving options. Nothing worked. Everytime I would go to the widget (unless I just started the actual app), it wouldn't react to clicking on the widget.
I finally gave up and uninstalled the app from my phone. Rebooted. Reinstalled it and now it works fine. So I'm not sure I agree with "puts the app to sleep in 3 to 7 days". Maybe 3-7 minutes...
Well, 3 to 7 days is what Samsung says, and the optional range you can set in the app. Don't know what specifically happened with that widget, though.
meyerweb said:
Well, 3 to 7 days is what Samsung says, and the optional range you can set in the app. Don't know what specifically happened with that widget, though.
Click to expand...
Click to collapse
Where is the setting(s) for optimal range? I don't remember specifying that. I thought it was more of an on/off thing. White listed (unmonitored resource consumption) or black listed (never let it run in the background). Then apps in neither list it reports to you and you can force them to sleep or not.
Brokk said:
Where is the setting(s) for optimal range? I don't remember specifying that. I thought it was more of an on/off thing. White listed (unmonitored resource consumption) or black listed (never let it run in the background). Then apps in neither list it reports to you and you can force them to sleep or not.
Click to expand...
Click to collapse
Samsung does bury things....
Settings / Device maintenance, click Battery at the bottom.
Then click the 3 dot menu at the top, and Advanced Settings.
Tap App power monitor (the text, not the toggle).
Tap Put unused apps to sleep (again, the text).
You can set the slider anywhere between 3 days and 7.
I spent several days just wandering through every settings option I could find after I setup the phone. Discovered all kinds of hidden things. Sometimes I can even remember where I saw them.

Apps not auto-starting or so with IMobS Battery Calibration App

I've installed and used the IMobs Battery Callibration App (see how-to and play store
Short description: i have run the calibration, and now some apps are not triggered to run, e.g. the alarm doesn't off.
I have run the 'long' calibration, where it cycles through every single app to do something about their battery use. Now I've a problem with some apps. It seems all to do with that the apps do not wake up/start when triggered, or do start but are suppressed quickly. I've tried to find a solution on this forum, but didn't find it.
example 1 alarm doesn't ring: e.g. an alarm is set for 6 a.m. to wake up. At 6 a.m. the phone wakes up, sometimes in a flash the click/alarm view is visible for a moment and it immediately disappears. The alarm does not sound (or only available fraction of a second).
Note: I have noticed that after reboot the ringing is triggered, but after some time (say 1 day or maybe half a day), it doesn't ring at the specified alarm time.
example 2. When I open de cover of the phone, thee screen does not turn on (it's a special Samsung cover, that turns on the screen when opened). Also when I press the power button, the 'small screen' belonging to the Samsung cover does not turn on; the whole screen turns on in stead.
example 3. In contacts, there is a function 'Business Cards', which can open the camera, take a picture of the card, and create automatically a contact from it. When I press the 'camera' button, the camera starts and closes immediately, as if something is detecting it as not-the-foreground app.
How can I solve this?
I have already tried to search on this and other fora, but because the term 'Battery Callibration' is so common, I find only how-to guides! Trying to solve this I was already wondering these questions:
Question 1: what does Battery Callibration actually do when do the 'long' calibration? It goes through all the apps. What setting does it change?
Question 2: how can I reverse whatever Battery Callibration did?
Question 3: would factory-resetting acutally help, since it required root, it might have changed settings in the system partition?
Question 4: are there other people with similar problems? I couldn't find any, but some experts here have more experience or more luck finding info.
Device: Samsung Galaxy Note3 (model N9002) with Android v4.4.2
XDA Developers is a busy forum and I am new here; I was wondering if I had posted this in the wrong section, since I didn't get any response so far.
Thanks for your kind help.

I've got a SLEEP MODE on SWITCH (But it's not the best we can have)

(I feel like a youtuber doing clickbait LOL.)
I managed to simulate a "deep sleep" thanks to tasker.
-When you turn on the screen status on the Wifi and bluetooth. Enter the processor at 1.2Ghz. Ondemend
-When you turn off the screen, turn off Wi-Fi and after 5 minutes, turn off the bluetooth. 400Mhz (?) In powersave. I am testing how long it takes to discharge the battery and see the screen time to know how long it lasts. but this will not solve the battery wear because it continues to work in the system but with another governor but less cpu. is necessary to have tasker. This apk has cost. But it is very useful with this.
edited:Hey guys, after all the testing I got 14 hours of battery without using the console. Now when I am writing I am my switch has a 55% battery
To edit.
Would magisk and greenify help with sleep mode?
Mind sharing the tasker's task list? (not sure what its should be called ) - I would appreciate as I'm using the switch as a daily driver for work and play which turning heads now.

Categories

Resources