[PX5] Prevent deep sleep? - Android Head-Units

Xtrons unit
PX5
Android 10
MCTE
The text below is now outdated I think.
Everything works if the unit has been on sometime in the past several hours.
But it seems that the unit might be going in to some deeper sleep after a while.
This is when my issues begins.
Is it possible to.prevent this stage of sleep?
OLD
The units lowest setting for brightness is too high at night.
3rd party apps can fix this, like Screen Filter, Darker or Twilight.
But I want it automated on boot and it seems impossible.
Apps seems to get killed or something when the unit is in sleep for a longer time.
So the apps built-in schedule does not work.
So I'm trying Tasker, profile for time and display state on, task to set brightness.
But tasker also gets killed of course.
Is there no way of getting this to work?

Related

change N1 behavior/settings & automate tasks based upon connected bluetooth device?

change N1 behavior/settings & automate tasks based upon connected bluetooth device?
I've had my ATT N1 for the past 1.5 wks and have been loving it. I know with the desktop dock for the N1 that bluetooth can be automatically enabled when docked (at least it does for me). i hope to see this go one step further perhaps. i've tried searching on the market and here on xda, but I haven't found anything that does what i'm thinking of...
I'd like the phone to change various behaviors (eg. sound alerts, screen unlocking, application launching, etc) depending upon the bluetooth device that it is paired with. Essentially, creating setting profiles dependent upon the connected bluetooth device and reverting settings when disconnecting from said devices.
I envision:
-connecting w/ car bluetooth:
disable screen unlocking (having to unlock via pattern while driving is not only annoying but possibly dangerous)
jump to a particular home screen, automatic launching of application such as car home, google maps/nav, music, etc
enable maximum screen brightness (if plugged in and charging could be another modifier. the N1 AMOLED really is pretty bad in direct sunlight and is even worse when trying to view while wearing sunglasses)
set max volume
upon disconnecting, revert to original settings, disable bluetooth
-connecting w/ desktop dock [bluetooth] (bluetooth isn't an absolute requirement here since it can recognize the dock due to the electrical contacts)
disable screen unlocking
silencing most alarms/alerts (so that i can sleep in peace w/o being woken up to by random spam/marketing emails overnight)
upon disconnecting/undocking, revert to original settings
are there any combination of apps/settings that can make this possible? at this point, i'm not too interested in rooting my phone...
thanks
BlueDock (market) plus Tasker (in beta, not yet in the market - http://tasker.dinglisch.net/).
In a future version Tasker will hopefully be able to do this on it's own. But currently you have to hack it useing BlueDock to start an application you don't really need, have Tasker detect the start, kill the app, and then change your settings according to your needs. One drawback is that the app started by BlueDock will only start once the phone is out of sleep mode. So you have to press the unlock button once - no need to swipe to unlock, though.
As for disconnecting you have to abuse the change in the power status.
The setup is quite complex. I will post my setup on the tasker wiki as soon as the next version is released (which will, I hope *gg*, provide a bugfix that make this a little smoother) and I have time. ;-)
I have a widget which I use to indicate whether I want to listen to podcasts (using BeyondPod) or to music. Upon switching on any of my bluetooth devices it will start playback and set the loudness according to the device connected - it will have to be louder with the car bluetooth than with the headset. Upon detecting the car bluetooth it will also start Waze.
interesting. i know what i'm asking is a bit complex. but i'll definitely keep an eye on Tasker. as they're mostly background tasks, any idea as to the battery consumption of these applications? (eg. surprisingly the "Shake Them All" live wallpaper i had installed was consuming up to 10% of battery time recently and was ultimately uninstalled even w/ those cute androids)
My usage pattern says:
40% Display
35% Calls
6% Standby
5% Android System
5% Phone inactive
2% EarthRot
2% Mediaserver
2% Android OS
Tasker isn't even listed.
Within Tasker I have more that a dozen profiles and about 30 tasks.

focus not sleeping properly

My phone is not sleeping itself down after the time elapses.anyone else noticing this, its making me think its draining my battery.
Just tested this myself, and on a one minute sleep timer, my phone did properly go to sleep.
Mine sleeps fine too.
mine sleeps fine as well. Do you have any particular app running? For example, if you have AT&T Navigator running it will not sleep. There are a few other apps that provide the ability to prevent it from sleeping. So, are you on the main screen or in an app when it doesn't sleep?
Cannot say I've had this problem. Worked at its default of 1 min, and still works after I changed to 3.
I am trying to id the app if any that is causing it but with no task manager its impossible.
I do notice an issue with the camera app. If the camera button gets pressed then the phone will stay on and not sleep, for me at least.
It goes off on it's own mostly...thanks for the reports as I work through this. I may need a hard reset anyway, hey why not Ill add a microSD at that time.

Display turning OFF after a while..

I have an LG G Watch with 5.0.1 since a few days and I tried and sent back an identical LG G watch on 4.4W.1 a while ago and didn't experience it. Basically, I am noticing that after leaving the watch alone lying somewhere (I don't wear it at home) for some time (can't really say how long but at least an hour, I think) the display turns OFF. A single tap and it wakes up and then works "normally" until the next time...
The other G Watch with the older Wear version didn't have this behaviour so is this a feature of the latest Wear version or is it maybe an "issue"..?
I am saying this especially because I installed the Slumber app to automatically turn the display OFF while charging but realized that it's easier and more elegantly done by simply choosing the new "Theater mode" in Android Wear 5.0.1 and uninstalled the app. I don't know if what I am seeing is due to having installed Slumber but I really don't think so.
Does anybody know for sure what it is and how it exactly works..?
TIA
No replies here but several in the LG G Watch forum.
Other G Watch owners are seeing the same behaviour I described here so I can rule out that it's something which has been triggered by my having had the Slumber app installed.
One poster there says that his G Watch turns off after 30 minutes leaving it lying on a table. I am timing mine.
So based on all of those replies it seems it's a feature of the latest Android Wear. I am not calling it a bug because, except for a single reported case from a poster there with a Moto 360, it seems to never happen while wearing it, so the logic appears to be "save the battery when not in use".
Just to "investigate" it some more, may somebody else here with Wear watches from other makers please confirm you get the same behaviour on your watches (on 5.0.1)? And may you also confirm you have Ambient turned ON (i.e. the display is always ON) and state whether you have the new Tilt to wake up setting ON (i.e. the Display lights up from its dimmed state when you tilt your wrist).
My settings are Display always ON and Tilt to wake up OFF.
It would be good to have some more reports from owners of different Wear smartwatches and see if we can understand what exactly is this behaviour we are seeing...
Actually, I think this might be a good feature to keep ON in many cases but it absolutely should be an *option*!
UPDATE: Trying to time it, I think I can say (I am still trying to cover all of the different scenarios) that any event which normally wakes the display up to normal brightness (i.e. an incoming call) resets the countdown. BTW, I think the poster StuBFrost, in the other thread, is right and it's 30 minutes off the wirst with no movement, no tapping on it and no event like the ones just mentioned. "Normal" incoming notifications don't seem to reset the countdown.
Like I said, I don't think it's a bad idea in and of itself (I would use it in most cases) but they should have made it an option! And, ideally, they would let us set the time after which the display turns itself off.
I use and *strongly* prefer Android instead of limited and dumbed down Windows Phone and even worse Apple's useless crap exactly because of its customizability and powerfulness...
"Funny" thing is that from further testing, this feature doesn't kick in while on the charger (which could actually be pretty useful for most people...) LOL
ADDENDUM: the kind of events which resets the countdown to this "deep sleep" state (i.e. an incoming call) also wakes the display up from "deep sleep".

Notifications wonky after Pie update

Has anyone else noticed that notifications seem to be super slow in coming after the Pie update? Line and Email can take up to two hours to exhibit a notification. I've looked at the notifications area of the apps, and nothing appears to have changed that I can see, and I can't find anywhere in Pie to tell it to allow more background time for these apps. I've tried force stopping and restarting with no change.
If anyone has any idea on what is going on, and how to fix it, your help would be most appreciated. Being told your wife left you a Line message 2 hours after she did so, or that your kid sent an email 2 hours earlier, is NOT conducive to a happy home life.
Nobody else has this issue? It appears to be connected to the fact that the phone is sitting undisturbed for a long period of time. If I am carrying the phone around with me, the notifications seem to come as expected, but if the phone is just sitting on my desk for a while, they seem to come from minutes to hours later.
You could try to whitelist those apps on Battery Optimization
I'm no expert, but from what you describe sounds like the phone is entering into Doze and notifications cannot come until the next maintenance window
If a user leaves a device unplugged and stationary for a period of time, with the screen off, the device enters Doze mode. In Doze mode, the system attempts to conserve battery by restricting apps' access to network and CPU-intensive services. It also prevents apps from accessing the network and defers their jobs, syncs, and standard alarms.
Click to expand...
Click to collapse
https://developer.android.com/training/monitoring-device-state/doze-standby
I think white listing the app prevents this behaviour
It does sound like you are correct and the phone is entering Doze mode, delaying the notifications. Thanks for that!
I will check into how to add the email and Line app to a whitelist for Doze. Hopefully it's a simple task, but I don't see anything under Battery doing a quick scan.
Just a follow up. After much searching and reading, I finally found where to turn off battery optimization for the two apps I needed notifications from. FYI:
Most things on the web say to go to Settings->Battery, then hit the three dot menu and select Battery Optimization. This does not appear on my phone. (see screenshot) To get to the list of optimized apps, you need to Search->Battery Optimization, select Battery Optimization from the results (it will take a few seconds to load), then tap Not Optimized and select All Apps. Find the app you want, tap it, then select Don't Optimize. You can also go to Apps and Notifications->Advanced->Special app access->battery optimization.
Whether this will actually fix the problem is another question entirely as most posts say that Doze continues to work. I guess we shall see.
I hope this saves someone the aggravation of trying to find something directly relating to Pie. Most things out there are for older builds.
Also, I turned off Adaptive Battery to see what the actual difference is in my light usage use case. If you are interested in the results of this test, let me know and I will post here.
Glad you were able to whitelist those apps.
I think it's weird anyway, as far as I know deep doze takes hours to trigger and the device has to be completely still. Any movement would take the device off deep sleep and enter a less aggressive doze (where notifications would be checked more often)
You did mention this is your case (you were leaving your device on your desk) but just for curiosity, how long approx would you leave your phone unattended?
Thanks and I hope this solves your issue.
Tepig said:
Glad you were able to whitelist those apps.
I think it's weird anyway, as far as I know deep doze takes hours to trigger and the device has to be completely still. Any movement would take the device off deep sleep and enter a less aggressive doze (where notifications would be checked more often)
You did mention this is your case (you were leaving your device on your desk) but just for curiosity, how long approx would you leave your phone unattended?
Thanks and I hope this solves your issue.
Click to expand...
Click to collapse
Unlike some folks, I am not tied to my phone. It often sits on the desk undisturbed for 3 or 4 hours during the day unless a notification comes in and I pick it up to look at it. Most of my screen time is on my computer, so the phone is the external brain when out and about, but not used much otherwise. At night, I turn on airplane mode until I get up the next day, then turn it off. I'm a retired software engineer, so have no real need for constant communication anymore, and I like it that way.

Android Headunit returns home page after sleep

Hello,
I have android headunit installed my car 3gb/32gb
I set it always standby because i dont want cold start every start-up.
Agama launcher set default launcher.
When i shut off car and restart later, last used app still on my screen and usable but sometimes not and this is my question.
Why i find my headunit at homescreen after sleep.
I disabled all battery optimisation for all apps, tried with default launcher but problem exists.
As I said this is not happening every time and this problem has not time interval. For example after 3 days sleep mode radio starts with last used app and playing my music.
But sometimes 10 minutes after shut off and restart, last used app in background and starts with homepage.
Youtube music and online car radio most used app i use.
Hope I described my problem well, what can possibly cause this ?
Thank you

Categories

Resources