Tap2Unlock - a new screen wake feature similar to d2w and s2w
Tap2Unlock - a new screen wake feature similar to d2w and s2w

Divide your screen vertically and horizontally
They are numbered as
          1 | 2
          -----
          3 | 4
The pattern is stored in sysfs file sys/android_touch/tap2unlock_pattern
You tap the right combination to open your screen
Pressing the power button will turn your display on but not the touch
sensor.

version 1.0
-Ability - 4 number pattern (will be improved)
-Currently the pattern gets rstored to 1234 after every boot
(This can only be fixed if a kernel mod app provides support for it in
the future.)

All copyrights of t2u is reserved with goutamniwas
<goutamniwas@gmail.com>
Many credits to showp-1984 for his D2w which made this possible.

Note: This was ported from the original commits listed at
http://forum.xda-developers.com/android/software-hacking/kernel-tap2unlo
ck-tap2wake-feature-t2965344 but is poorly written and will most likely
break. This is only an attempt to salvage the concept

t2u : fix screen freeze after wakeup during call

t2u : Improve t2u detect algorithm much much better
The bad algorithm due to import from dt2w and some bad implementations by me
Improve it to the best possible , by simplifying the algorithm
removing unwanted stuffs

fix loopback problem
touch count : 1 2 3 4
input value : 2 3 4 1

now its more accurate and works after a single pattern input after deepsleep

enable check time gap between every two touches
if long then clear previous touch and consider the 2nd as the first

t2u : Make t2u secure
this means that you will need to know the old pattern , to change the new pattern
also the sysfs file tap2unlock_pattern will not show the pattern

It is now used to authenticate pattern change for the t2u app

inputdata for tap2unlock_pattern = xxxxyyyy (x=old pin y = new pin)
if success output : 1 or else 0

t2u : Fix previous commit - make t2u secure

Bump t2u version to 2.0
This is not an unwanted commit -do not neglect it
It differs from v1 in some critical ways
Inorder for the t2u app above v0.1 support t2u u will need this commit

T2U : Prevent touch freeze during phonecalls

The screen eventhough will not freeze when powered off by proximity
sensor which was due to a previous commmit .
But incase when the screen powers off due to timeout , which happens
when you speak in loudspeaker , the wake up doesnt resume your touch
sensor.
So this commit solves the issue , v2.0 allows the variable t2u_allow to
be controlled with sysfs (only when u know the pattern)
with that the t2u application is able to make the touch sensor wake or
freeze during calls ,we make use of it to set a new state variable
incall_active which sets to true if t2u_allow is set to 1 by the
application .
And when its set to 0 , the screen freezes .
So when call active the application controls the touch sensor , this
commit enables or allows the app to do so.

Also the commit also has elements to allow freeze even during call
active , when the power off is due to proximity , as ther is no use of
proximity if the touch can never freeze during call.

t2u: relies on other custom components not included

This “feature” depends on a very erratic form of Power Suspend in the
touchscreen that forces an override of the sleep functionality (?) and
a proximity sensor check that should be disabled while in a call (?)
Revert "Tap2Unlock - a new screen wake feature similar to d2w and s2w"

This reverts commit 406bc66676303cdda8f293db64438a2d34a27e2c.
cpufreq_intellimm: intelliminmax (squashed commit)

intelliminmax (intellimm) governor is designed to work with the newer
SOCs with fixed voltage rails (ie MSM8974+ SOCs).  It is designed to
work within those
fixed voltage ranges in order to maximize battery performance while
creating a
smooth UI operations.

Copyright 2014 Paul Reioux <aka faux123>

Signed-off-by: Paul Reioux <reioux@gmail.com>

WIP: Intellimm: remove unused code and change tblmap algorithm

tblmap: add power-save frequencies for the first 5 entries

Signed-off-by: Paul Reioux <reioux@gmail.com>

WIP: intellimm: more tweaks and table clean up

Signed-off-by: Paul Reioux <reioux@gmail.com>

WIP: intellimm: more tweaks

Signed-off-by: Paul Reioux <reioux@gmail.com>

WIP: intellimm: clean up derpy logic

Signed-off-by: Paul Reioux <reioux@gmail.com>

WIP: intellimm: final clean up and algorithm tweaks

Signed-off-by: Paul Reioux <reioux@gmail.com>

WIP: intellimm: finalizing part 2

Signed-off-by: Paul Reioux <reioux@gmail.com>

WIP: intellimm: finalizing part 3

add back burst for smoother UI

Signed-off-by: Paul Reioux <reioux@gmail.com>

intellimm: fix div by zero derp

Signed-off-by: Paul Reioux <reioux@gmail.com>

Get the squashed version to avoid the overwhelming number of incremental updates typically associated with any one modification by this author.