[Q] Stamina Mode and Android Wear - Xperia Z3 Compact Q&A, Help & Troubleshooting

[Apologies - posted this in Android Wear Q&A and don't know how to remove it: forgive the cross post]
Hello,
Does anyone know how Stamina Mode interacts with Android Wear? If I make an exception in Stamina Mode's settings to essentially permit the watch to request data whenever the screen is off - is that totally negating the point of the battery saving option? i.e. because traffic can come at any time it's essentially always on?

Related

Auto On / Off?

Just started modding my Tilt and wanted to know if there is any app or fix that can enable a timed startup / shutdown, much like the BB auto on/off feature?
Not that aware of you can auto time off with CTscheduler but the phone is off nothing is alive so no way to be back on, this would be different if say the phone was just in a hibernate state to which is what must happen to phones that do this.
Wirelesstime
Freeware Wirelesstime might be what you are looking for, use it to save battery time. Personally still happy with version 1.2.1

[Q] alarm clock while phone is off

Hi,
I've been going through the internet with this question and have always found the same answer: "it is not possibale to turn off the phone and have the alarm clock work". now most people say its because the phone is a smartphone confused: not so smart if you ask me) but i have a nokia x6 which is a smartphone and this option is included in this phone.
So i guess my question is : what the heck? how hard can it be? can anyone make an app that does this? i would gladly pay for this feature as will other users i guess...why didn't samsung think of this?
and by the way my friend which has an iphone says this option is available on the iphone so i don't really buy the "not optional on smartphones".
anyway would be glad if someone had an app that does this....
Same search happening here. I dont think it's possible though.
You mean off as in off dead not switched on and asleep i take it .
That would require an app to power the phone on and set off alarm i guess .
jje
And-roid said:
Hi,
I've been going through the internet with this question and have always found the same answer: "it is not possibale to turn off the phone and have the alarm clock work". now most people say its because the phone is a smartphone confused: not so smart if you ask me) but i have a nokia x6 which is a smartphone and this option is included in this phone.
So i guess my question is : what the heck? how hard can it be? can anyone make an app that does this? i would gladly pay for this feature as will other users i guess...why didn't samsung think of this?
and by the way my friend which has an iphone says this option is available on the iphone so i don't really buy the "not optional on smartphones".
anyway would be glad if someone had an app that does this....
Click to expand...
Click to collapse
this is one of the better features of nokia, i don't remember what phone first introduced this, but is a shame that an android phone doesn't have this. try to put the phone into aerial mode, switch off wifi,and keep it on.that made the trick to save more the battery and have the alarm ringing at the proper time.
also the iphone,has got issues with alarms...
Smartphone does not need this features anymore
I had the same question! but now I understand that smartphone does not need this features anymore.
Try to make your phone idle in "Plan mode" for 10h the battery only drain 1%. So why did you need to turn it off during the night?
I suppose that your nokia x6 also eats battery (evens very little) while turning off to maintains this features.
As you cannot expect the battery life of a smartphone beat a regular phone.
At this point we can consider that the "Plan mode" of your smartphone equivalent to "turning off mode" of nokia x6 ^^
(Just my thought with my bad english)
Yeah I used to have a nokia 5800 running symbian and it would wake from off and activate alarms. Doesn't appear possible with android but I guess the question is why would you want to? It's bad practice to turn smart phones off all the time. As has been said the smart thing to do is to activate flight mode while you sleep. This is about you changing your behaviour - not your phones
Sent from my GTI9000 using XDA App, Froyo 2.2.1, Darky's v9.3, Voodoo 5.4.1, ADW launcher + gingerbread theme
It's bad practice to turn smart phones off all the time.
Rubbish you don't leave A TV on day and night nor a car running without use .
If you do not need your phone for twelve hours turn it off .
jje
I bought new I9003 & have been looking for the same feature as my 6yr old moto L7 had this feature I somehow assumed that this should be a standard feature.
I think it should be easily possible to write an app which schedules the power on /off scheme, its very handy when you are in areas where charging the phone will not be possible, moreover I don't need the incoming phone at night.
Would be possible on a HTC desire or HTC desire z as they don't properly turn off but the galaxy s does a full shut down.
If it was built into a kernal battery drain would be a mass problem.
Airplane mode would be just as good.
Sent from my GT-I9000
A smartphone is more a computer than a phone. If it's off, you want it to be off, not just to shut everything down unless X
Nokia probably builds it's hardware to support this. since the internal clock of any computer runs at any time they probably built a trigger into it to boot up the phone to ring. On setting the alarm you program it probably into the hardware.
I think that's pretty bad design.
Anyway to answer less confused:
Android wants to have any part interchangeable and it would be kind of dangerous to let every app that poses as an alarm access the hardware on such a level they did not build it in. And since it's not in android the manufacturers (as samsung) did not give a damn about it either.
I think its more to do with the android operating system which has to be loaded before the alarm turns on then samsung.
Annoying but highly useful during exams when your not too sure if your phone might ring or the alarm might go off.
But yh google should have solved this problem, Its been possible on the most basic of phones 6-7 years ago. My last 2 samsung phones that were basic (e900 and d600) both had this function.

[Q]fix msm_serial_hs_dma wakelock? overlay/frameworks/base/core/res/res/values/config

Hello,
yesterday i have flashed my friends Samsung galaxy i9001 with an Android 4.0.4 Rom.
I have tested it of functionality and found out that the device wouldnt go into deepsleep.
BBS shows me two fulltime wakelocks:
msm_serial_hs_dma
bluesleep
which refere both to bluetooth. But playing around with bluetooth on/off etc. did not help.
After searching the web for a solution i found this about someones HTC wildfire:
I’ve had the problem that the device didn’t want to switch into deep sleep mode if radio was on. What is deep sleep? To make it simple we break it down. Your device has 3 modes. The fisrst is “Screen On and Awake”, “Awake” and “Deep Sleep”. If you use your device it you’re in the first mode and you need a obviously a lot of battery. The second “Awake” means it is doing some background work. Checking for calls, checking Emails, syncing contacts. The last one means it goes for some time into a mode were it uses almost no battery, and this is Deep Sleep. If you don’t do anything and your phone is in your pocket you want that it is in the Deep Sleep mode most of the time.
My HTC Wildfire S didn’t want to go into the “Deep Sleep” mode at all if radio was turned on. It worked with Airplane mode. I thought this has something todo with RIL but I was wrong. Actually it was a bluetooth wakelock. The wakelock “msm_serial_hs_dma” was held all the time. The problem is that the msm7227 platform doesn’t supports quick switch-on/off of the bluetooth module and you need to deactivate it with an overlay else ICS always tries to trigger it.
So adding
<bool name="config_bluetooth_adapter_quick_switch">false</bool>
to overlay/frameworks/base/core/res/res/values/config.xml fixed the problem and the wakelock was gone.
Click to expand...
Click to collapse
Source: http://blog.cryptomilk.org/2012/05/
So i would like to add the mentioned line to the config.xml file but i do not know where to find this file.
Could someone lead me to the path?
Regards
Hi there,
I freshly registered because I have the same problem, I9001 with remICS rom 1.3a.
Edit: Updated to Version 1.3.1 of the ROM followed the instructions but problem is the same.
If I go in flight mode the mobile can enter Deep Sleep without problem. As soon as I turn off the flight mode it stops going in this mode.
I tried to put the rom again with all the wipes and cleans and stuff, I took out the battery a few times, I tried to boot with flight mode switched on already but nothing helped.
I also searched this config.xml file but there is nothing like it on the phone.
Any help? Any app which manualy switches off and on the bluetooth will help?
Thanks
I'm having the same issue with CM10 for the Evo3d.
When bluetooth is enabled, those components wake lock the phone.
yes please how i can fix it ?? i am not dev...
Follow this thread to decompile: http://forum.xda-developers.com/showthread.php?t=1752201
Find config.xml in overlay/frameworks/base/core/res/res/values and change or add in
Code:
<boolname="config_bluetooth_adapter_quick_switch "> false</bool>
Someone please help where is config.xml??
this issue kills my battery after update to kk. on jb idle consumption was 5x lower than on kk. the reason was bluetooth always on and this bug which prevent system to switch to deep sleep. @username1234321 you can more likely find it in /system/framework/framework-res.apk . you need to extract it from your current rom, decompile using apktool, modify, recompile, prepare update package zip and then install it using cwm recovery install option.

[Q] With Stamina mode on, what do I set WiFi as?

Hey guys, apologies if this has already been queried, I look around first and couldnt find another thread about it, just similar topics.
I recently got the Xperia Z and I've got the Stamina mode turned on. As I have unlimited data, I always leave my data turned on and I have switched on the the location based WIFI so that my phone can auto switch to WIFI when Im somewhere that I have successfully connected to before.
My question is though, to get the benefit of all this battery saving modes, in the WIFI settings where it says 'Keep on during sleep' should I turn that to 'Only when plugged in/Never' or can I leave it set as 'Always' cause of having Stamina mode on? Or does the Stamina mode only turn my mobile data on/off?
Thanks for any and all help guy.
Gaz
Gaz1521 said:
Hey guys, apologies if this has already been queried, I look around first and couldnt find another thread about it, just similar topics.
I recently got the Xperia Z and I've got the Stamina mode turned on. As I have unlimited data, I always leave my data turned on and I have switched on the the location based WIFI so that my phone can auto switch to WIFI when Im somewhere that I have successfully connected to before.
My question is though, to get the benefit of all this battery saving modes, in the WIFI settings where it says 'Keep on during sleep' should I turn that to 'Only when plugged in/Never' or can I leave it set as 'Always' cause of having Stamina mode on? Or does the Stamina mode only turn my mobile data on/off?
Thanks for any and all help guy.
Gaz
Click to expand...
Click to collapse
For my device, the Wifi setting bypasses the Stamina mode...if you really want to save power...put the wifi on never setting.
Thanks chefnoob,
when you say bypass, you mean that it doesn't turn off WiFi for your device, only mobile data? Sorry to sound like such a noob. I have set it to 'Only when plugged in' as whenever its plugged in, it is charging, so I don't worry about power saving during this time.
Have you, or anyone else, come across problems with Whatsapp being a huge battery drain? Stamina mode had notified me that Whatsapp was preventing it from fully working, but it was only when i finally decided to check in my battery usage that i realized it was using as much as 75% of my battery :/. Tried force stopping it, but then It stops you from receiving messages until you decide to open the app again.
I am hoping that it gets fixed in an update soon, if not I may have to uninstall.
Thanks again. Gaz
You'll save more power by keeping your wifi always on.
I beg to differ.
Wysłane z mojego C6603 za pomocą Tapatalk 2
mengsuan - But that would mean all the time my phone is locked it will still be connected/trying to connect to WiFi, where as if I have my WiFi set to one of the other two, like the mobile data in stamina mode, it will be temporarily turned off until unlock my phone again. Surely the latter would be more power saving, having mobile and WiFi disable themselves whenever the device goes into sleep?
Gaz
Gaz1521 said:
Thanks chefnoob,
when you say bypass, you mean that it doesn't turn off WiFi for your device, only mobile data? Sorry to sound like such a noob. I have set it to 'Only when plugged in' as whenever its plugged in, it is charging, so I don't worry about power saving during this time.
Have you, or anyone else, come across problems with Whatsapp being a huge battery drain? Stamina mode had notified me that Whatsapp was preventing it from fully working, but it was only when i finally decided to check in my battery usage that i realized it was using as much as 75% of my battery :/. Tried force stopping it, but then It stops you from receiving messages until you decide to open the app again.
I am hoping that it gets fixed in an update soon, if not I may have to uninstall.
Thanks again. Gaz
Click to expand...
Click to collapse
Yes, meaning that even if I had the stamina mode on... If the WiFi is set to always, the WiFi still connects...
Dont quote me on this but I think stamina mode only works with data.
Sent from my C6603 using xda app-developers app
---------- Post added at 11:29 AM ---------- Previous post was at 11:21 AM ----------
Gaz1521 said:
mengsuan - But that would mean all the time my phone is locked it will still be connected/trying to connect to WiFi, where as if I have my WiFi set to one of the other two, like the mobile data in stamina mode, it will be temporarily turned off until unlock my phone again. Surely the latter would be more power saving, having mobile and WiFi disable themselves whenever the device goes into sleep?
Gaz
Click to expand...
Click to collapse
Yes, that is correct...
Also, if you set WiFi to "always" and you are not connected to a network, it uses up more power to seek for networks...
With your whatsapp problem, I think you have a conflict happening...
Maybe you got the whatsapp set to sync regularly while you have stamina mode on. What happens is, whatsapp tries to connect/sync but it cant due to stamina mode. Try this work around...
If you want to keep using whatsapp, add it to the exemption list in stamina mode. That way, it wont block it.
If you dont really need whatsapp, just disable it...you'll save more power using the latter.
Sent from my C6603 using xda app-developers app
Oh right, thanks chefnoob
In regards to the WiFi, I have set it to 'Only when plugged in' as I dont mind it being on more whilst my device is charging. When I unlock my device and I'm in range of one of my 'location based Wifi'' spots, it doesn't take very long to connect so that I can use that rather than mobile data.
As for Whatsapp, I don't really use it a huge amount, but I'm not fully decided on whether I want to uninstall yet haha, so my 'kind of' fix for now is to go on to read/reply to a message from someone, then if I expect a quick reply back leave it for a few minutes, if not I just force stop the app and check it again later on. A tedious job just to use an app, i know, but at the moment its my main method of contact with one of my friends, so I will need to find a new way before uninstalling.
Thanks anyway though, to you all, for help in answering my question and clearing it all up for me
Gaz

One Marshmallow user's impressions

http://tomhorsley.com/rants/doze-mode.html
I'm definitely reverting back to 5.1.1 when I get the time and energy to fool with it .
sounds like that was written by someone who hasn't even tried marshmallow yet. I have yet to experience any missed notifications, alarms or any issues relating to time in any way. If some apps are being affected by this then its a sign to the developer to fix their ****ty code because all of my apps relating to time at all have been working just fine and alot of them are still the same version they were on lollipop. Doze has improved my batter significantly. It sounds like this article was probably written by a developer who cant code properly and instead of improving his skills he'd rather complain and convince everyone to stay away from updates because he is unwilling to evolve. Even the article looks like it was written in paint...
I had indeed a wrong time bug some days ago...really strange and worrying, a reboot fixed it. First time ever since Android Froyo that I experienced something like that.
That author seems to think that Marshmallow's Doze is a horrible thing that breaks all apps that rely on background services, namely alarms and notifications, and couldn't possibly be fixed in 10 years (rather than a few months) due to Google's horrible mistake (rather than devs not fixing their code).
Frankly, it sounds like a bunch of hyperbole.
Sent from my ALCATEL ONE TOUCH Fierce using Tapatalk
He's wrong about how doze works. And if he's in the camp that doesn't understand it nor wants to rewrite his app. Then yeh he's the idiot group that Google is targeting and was writing garbage code anyway.
lol complete nonsense, my alarm has worked everyday since i flashed M, even on dev previews...the only issues i have with M are really the "slow to connect wifi when using toggles" and the weird wifi consumption on battery stats
Another annoying issue on M is that if your leave your phone longer in standby mode (display off), wifi turns off and you stop recieving notifications until you turn your phone on again. This is with wifi set to "never turn off", etc.
Kustaa said:
I had indeed a wrong time bug some days ago...really strange and worrying, a reboot fixed it. First time ever since Android Froyo that I experienced something like that.
Click to expand...
Click to collapse
This actually happened with me a couple of days back, I was travelling, so I put my phone connected to a power bank and went for a nap, woke up to see phone switched off, switching it on throws me a 2nd September date set on my device. Had to manually set the date as no network was available to automatically set the date from servers.
Ubichinon said:
Another annoying issue on M is that if your leave your phone longer in standby mode (display off), wifi turns off and you stop recieving notifications until you turn your phone on again. This is with wifi set to "never turn off", etc.
Click to expand...
Click to collapse
This I had been noticing these days just because of WhatsApp Web. When in standby, WhatsApp Web shows phone not connected error. Just waking the phone reconnects to the WiFi, but happens every 30-40mins.
I have a feeling that folks who never see these problems have their phones charging at night and doze mode doesn't happen when you are charging. I have no convenient way to charge my phone near my bed, so it is not charging and totally idle all night. Email and messaging completely stops. Only the stock alarm clock works. My medication reminder stops working. It might as well be turned off completely. Plus when you do wake up and turn on the phone, all the pent up alerts come through and scare the hell out of you. I hate doze mode.
Settings -> Battery -> ... (menu)-> Battery Optimization --> All apps --> Select whatsapp, etc... and select not optimized.
Test again.
You're welcome.
I already disabled optimization in the battery settings for all the apps that weren't working. They still don't work after sitting overnight. It looks as if that setting has absolutely no effect.
Claghorn said:
I already disabled optimization in the battery settings for all the apps that weren't working. They still don't work after sitting overnight. It looks as if that setting has absolutely no effect.
Click to expand...
Click to collapse
This is a real problem. I tested this on a Nexus 5. The device seems to enter Doze after about 1 hour and this is what happens.
What does work in Doze mode:
- Telephone: call can be heard.
- Alarm: alarm can be heard
What does NOT work in Doze mode:
- Receiving mail notifications directly: it seems to wait for the maintenance window. There is no "ping" from my GMail. No lock screen notification until I picked it up. I turned off battery optimalization as suggested. Like Claghorn says, it doesn't make a difference. When I was sleeping, the time difference between sending the mail and getting a notification can be hours. That is not acceptable: I want to determine whether or not I get a message. I got no control over Doze, except plugging it in. Also, when it sits on the desk at work I need to pick it up or turn the screen on every so often, because I don't know if it "dozed" off again.
Works partially:
- Notification light: It works once mail passes through the maintenance window. It does NOT work before the maintenance window.
I tested all of this with a unrooted, updated Nexus 5. Topic Starter and Claghorn have good points. Why can't I turn this off? I don't want this. I want notification on time, with ping, right now. If I don't I will turn the volume off or set priorities. They could have told me this behavior in a mail or during the update. Important mail from work, family comes in hours late. Not happy with this at all.
Tried all sorts of things, nothing seems to help. And no, battery optimalization is either not enough or has nothing to do with it. I love the Nexus 5. Marshmallow seems to be much smoother than Lollipop. I was happy with the update until I discovered this. Now, I am fustrated. I expect the phone to inform me when I need to be informed. Most days I don't need to save 10% of power anyway. For the first time I want to either root the phone and go back to Lollipop or even Kitkat. I don't know what else can be done. Fustrated.
Dennis de Swart said:
This is a real problem. I tested this on a Nexus 5. The device seems to enter Doze after about 1 hour and this is what happens.
What does work in Doze mode:
- Telephone: call can be heard.
- Alarm: alarm can be heard
What does NOT work in Doze mode:
- Receiving mail notifications directly: it seems to wait for the maintenance window. There is no "ping" from my GMail. No lock screen notification until I picked it up. I turned off battery optimalization as suggested. Like Claghorn says, it doesn't make a difference. When I was sleeping, the time difference between sending the mail and getting a notification can be hours. That is not acceptable: I want to determine whether or not I get a message. I got no control over Doze, except plugging it in. Also, when it sits on the desk at work I need to pick it up or turn the screen on every so often, because I don't know if it "dozed" off again.
Works partially:
- Notification light: It works once mail passes through the maintenance window. It does NOT work before the maintenance window.
I tested all of this with a unrooted, updated Nexus 5. Topic Starter and Claghorn have good points. Why can't I turn this off? I don't want this. I want notification on time, with ping, right now. If I don't I will turn the volume off or set priorities. They could have told me this behavior in a mail or during the update. Important mail from work, family comes in hours late. Not happy with this at all.
Tried all sorts of things, nothing seems to help. And no, battery optimalization is either not enough or has nothing to do with it. I love the Nexus 5. Marshmallow seems to be much smoother than Lollipop. I was happy with the update until I discovered this. Now, I am fustrated. I expect the phone to inform me when I need to be informed. Most days I don't need to save 10% of power anyway. For the first time I want to either root the phone and go back to Lollipop or even Kitkat. I don't know what else can be done. Fustrated.
Click to expand...
Click to collapse
A quick suggestion -
You may use Doze Mode Editor and edit the script so that your phone never enters Doze mode.
That way you can enjoy Marshmallow without Doze.
Sent from my Nexus 5
Achilles. said:
A quick suggestion -
You may use Doze Mode Editor and edit the script so that your phone never enters Doze mode.
That way you can enjoy Marshmallow without Doze.
Sent from my Nexus 5
Click to expand...
Click to collapse
Thanks, I will look into that. I'd like to keep Mashmallow as a whole if possible. I think it is a good update in general.
OK, I've looked at the doze mode editor thread and I find that the descriptions of the parameters I can set to be totally confusing, however, the flowchart pointed at in that thread seems to indicate that if I set the "inactive_to" value to something like 24 hours, then all the other doze mode nonsense is unlikely to ever happen (because I'll probably turn on my phone at least once every 24 hours). Does that seem like the best way to essentially turn off doze mode?
Claghorn said:
OK, I've looked at the doze mode editor thread and I find that the descriptions of the parameters I can set to be totally confusing, however, the flowchart pointed at in that thread seems to indicate that if I set the "inactive_to" value to something like 24 hours, then all the other doze mode nonsense is unlikely to ever happen (because I'll probably turn on my phone at least once every 24 hours). Does that seem like the best way to essentially turn off doze mode?
Click to expand...
Click to collapse
I will look into this over the weekend. I find it odd that there isn't simply a switch to turn Doze off, which is a pity. It seems to me it's part of saving energy in general. A switch under Battery would do nicely. It should not be this complicated. That said, I think the UI of Marshmallow is silky smooth, much better than Lollipop. Marshmallow in general in good. It' just this that annoys me.
i'm baffled by google's aversion to end user config. This kind of b.s. is how I found xda and drove me to become a chronic flashaholic. All or nothin I guess.
ElwOOd_CbGp said:
i'm baffled by google's aversion to end user config. This kind of b.s. is how I found xda and drove me to become a chronic flashaholic. All or nothin I guess.
Click to expand...
Click to collapse
I get the feeling Google assumes the customer is a developer. A few examples:
- The Nexus 5 does have a notification light: I didn't know until I read 5 reviews and even then I couldn't find any documentation on it. Needed an external app to get it working.
- Battery indicator: I like to have small numbers indicating battery charge: it could be done by hacking KitKat and Lollipop I think. Then at Marshmallow finally there's a (hidden) switch.
- I don't recall having any user guide in the Nexus 5 package. Not that I needed one. But some landing page doing a walkthrough would have been nice. Although there are some walkthroughs in every app
Not fatal flaws, but you wonder why does it need to be that difficult. It scares people away. Not me. I handed the Nexus 5 to some friends on numerous occasions and most found it too "empty". As for me, I want all developer stuff on. So it suprised me, there is no Doze fine tuning. Again, overall I give the Nexus a 8 or 9 out of 10. It fits me. In general I like it. So it's just constructive criticism. The empty layout and raw speed of the Nexus 5 works good in development of apps afterall.
Last night I ran an adb command (generated by the doze mode editor app) to set inactive_to to 24 hours (86400000 milliseconds). I then set an alarm for the next morning in the "Alarm Clock Plus" app (which completely ceased to function after Marshmallow showed up). This morning, the alarm actually went off on time, but the big "Dismiss" button it draws on the screen was totally non-functional. I had to hit the power button to get control (which then caused a popup saying alarm clock plus was non-responsive). I have no idea what caused all that behavior, but at least the alarm actually went off.
Also, with doze mode essentially disabled (in theory anyway), the power dropped from 100% in the evening all the way down to 97% in the morning.
With the exception to facebook and game type apps, Google's apps are the only ones I find that excessively waste resourxes and need to be forced to sleep. If they would get off the constant location polling, media scanning, and logging or at least tone it down a bit some they wouldnt need to implement thier half baked versions of solutions that they hijacked from xda devs

Categories

Resources