[Nexus 5 Themes and Apps] Dragusdrake:
Hi guys

I want to open this thread to talk about tasker and possibility to set dt2w only when the proximity sensor is not covered

https://docs.google.com/file/d/0B5DaTWX-IUMjUGVWZFFOOW0wQ1k/edit?usp=docslist_api

After run app, switch your finger on proximity sensor, if icon on statusbar say that profile run, it is OK, otherwise click on dt2w'button and swith your finger on proximity sensor

Changelog 2.71

New UI

Partially fix to battery

THIS IS A ALPHA APP

IS FOR ALL SMARTPHONE THAT HAVE DT2W LOCATE AT sys/android_touch/doubletap2wake

To do:

S2S

S2W

T2W

Old, how to create a profile

_________________________________________________________________________________

The solution that I have found is:

1 buy and download tasker from play store

------------- ------------- ------------- ------------- ------------- ------------- ------------- -------------

2 on the window TASK

create a task, click script, you will call it "on"

Put this line on command

echo 2 > /sys/android_touch/doubletap2wake

2a Tick on root permission

2b Tick on root permission

------------- ------------- ------------- ------------- ------------- ------------- ------------- -------------

3 on the window TASK

create a task, click script, you will call it "off"

Put this line on command

echo 0 > /sys/android_touch/doubletap2wake

3a Tick on root permission

3b optional

you can set optionally a timeout which power off dt2w, if kernel support it, when proximity sensor isn't covered, so:

Add another script into TASK "OFF"

Put this line on command

echo "#" > /sys/android_touch/wake_timeout

(# is time that you choose for power off dt2w)

------------- ------------- ------------- ------------- ------------- ------------- ------------- -------------

4 on the window PROFILE*

create a profile*

State/sensor/proximity sensor

And associate with it the task off

------------- ------------- ------------- ------------- ------------- ------------- ------------- -------------

5 on the window PROFILE*

create a profile*

State/sensor/proximity sensor

Tick inverted

And associate with it the task on

------------- ------------- ------------- ------------- ------------- ------------- ------------- -------------

According to ROM/kernel, this tips can not work

Sometimes, in fact, after a few minutes that proximity sensor is covered, the phone not wake with dt2w.

So just add some other profile

For example

Profile/state/display/display state/off with task "on"

Profile/event/display/off with task "on"

Because the problem is not deactive dt2w when the display is off, but reactive it !

So you can long-tap on the previous proximity sensor profile option and set as this picture

Now long tap to on the previous not proximity sensor and display state off profile option and set as this picture

P.s. in any program or script about dt2w MUST BE DEACTIVE

This is a solution

But will not the definitely solution

So if you have another one

Post it!

-------------_-----_-----------_-------------_-----------_

another feature in tasker

See the picture

For explain it

The green want to say that if the variable profile enter on work, will work the ask associated (in this case "not proximity sensor" happen when the proximity sensor is NOT covered, and dt2w is on)

The red want to say that if the variable profile enter off work, will work the ask associated (in this case "not proximity sensor" will off when the proximity sensor is COVERED, and dt2w is off)

this other mechanism not only allows you to have only one profile, but allows you to turn off in the options, the monitor of the proximity sensor, saving battery

To create it, long tap on task called "on" and click on "add exit task", choosing "off"

What appear will this

Let's try and report feedback

-------------_-----_-----------_-------------_-----------_

A third solution been found!

Maybe the most efficienty

This wake phone when the sun light hit the proximity sensor

Add a profile

State/proximity sensor/light

Put a interval from 10 to 100 (or whetever you want)

Will this :

Or you can set a specif time for a different range of light

Inviato dal mio Nexus 5 utilizzando