Matt
--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
dumpsys batteryinfo
You do not need root to run that. That might offer clues as to how to detect wireless charging.
Tom
Daniel, I think you might be missing what Matt was trying to explain. There are few different ways to achieve what you are trying to do. It can be done by settings variables in your different profiles And then using those variables in your contexts. However a much nicer way to do this is with the profile active Context. I noticed in your first post you are using the proximity sensor To do something As long as you are on the wireless charger. I would recommend the following 3 profiles.
Profile 1: Charging Wireless.
Context: power / wireless charging
Task: stop
This first profile is simply here to detect that you have started the wireless charging..
Profile 2: Charging
Context: Profile Active /Charging*
Context: State / Sensor / Orientation/'Orientation of phone while charging'
Task: Stop
This second profile shows the versatility of the Profiles active context. This profile will not become active or require sensor monitoring until profile 1 is active. Then after profile 1 becomes inactive ( battery is charged) profile 2 will remain active until the orientation state changes IE the device is removed from the charger.
Profile 3: Proximity profile
Context: Profile active /Charging
Context: State / sensor / Proximity sensor
Task: ' Do Stuff'
Now task 3 will only become active if profile 2 is active ( charging was started and phone is still in charger) so when the device is removed from charger all sensor monitoring will stop...
I think that should do it....... :)
Rich...
Hi,I have the proximity sensor set up to be monitored "When power connected", as I only want it to react when my phone (Nexus 4) is on its wireless charging pad. This is working great while the phone is charging, but as soon as it is fully charged, the proximity sensor turns off. I'm running 4.0b12m, the latest beta I believe.Could you guys please suggest a workaround for this, until this issue hopefully gets fixed?Thanks in advance!Daniel, Sweden
I think it may be a little wonky,
Nah... Even if both profile 1 and profile 2 cycle a few times they will both be true once things settle. The only wonky thing should be is if you place it on the charger when it is at %100. It probably will not fire as there will be no available trigger. If this happens too often you may need a manual trigger with a profile named 'Charging manual'
Of course I do not think NFC tags have been mentioned as of yet. A tag would work nicely here I believe .....
Rich...
Wow.... I am NOT use to that new UI look.... I am still on Gingerbread so cannot update to it.
It looks correct however,
There should be an option for you to ' export description to clipboard' with the old UI You would long press on the profile name / export / export description to clipboard. This will give you a better description of the profiles to post if something is not working for you ..
Rich..
> However, when the screen is off, the behavior is different, and the second profile stays activated a lot longer after the phone has been tilted, like 5-10 seconds. This makes me believe that the frequency in which android/tasker monitor the accelerometer is lowered when the screen is off
I did not know that...
>
> Any ideas how to tweak this?
The one thing I can think of would be...
If you max all the sliders out on the 'display time out' action this will keep your screen on. Then there is a tasker add on called screen filter that will dim the screen down to almost black. I believe the screen uses very little power like this but of course I don't think your device will go into deep sleep..
I would put the screen time out and the screen filter dim in the entry task of the second profile and then in the exit task, You should only need screen filter --- 100% ( this will disable the screen filter ) and Tasker should reset your screen timeout to what it was before the profile was active.
Not sure if that will work for you.. but it is all I can come up with at the moment.... Rich..
I don't think that will work..
> If the first profile is deactivating correctly with screen off, use the exit task of that profile to turn the screen on
The first profile will be active until the batt is 100% then it will activate again when the battery reaches something like 95% and starts charging. Again( at least that is how I understand the wireless charging)
UNLESS..... (good you mentioned this dave) the act of removing the device from the charger will trigger the first profile even if the battery is charged... Then we would have something to work with..... this can be ckeked in the run log. In the old UI it was menu / more / run log..
Rich...
I have seen a few different posts on this topic but do not think I have seen any info on trying the magnetic level. There is a variable and a context available so if the mag field is very stable when in the charger perhaps that could be used ... It might be worth trying..... Rich..