yashsingh1/xdaforums huggingface dataset:
[One (M7) Original Android Development] tbalden:
Flick2Wake and Pick2Wake Sense 4.3/Sense 4.2.2 beta test installers

BETA INSTALLERS for Sense 4.3/4.2.2, 2.2.0-betas

Performance Edition 2.2.0-beta-2 Sense 4.3:

http://d-h.st/oBX

Stable Edition 2.2.0-beta-1 Sense 4.3:

http://d-h.st/ZVc

Performance Edition 2.2.0-beta-1 Sense 4.2.2:

http://d-h.st/FhF

Stable Edition 2.2.0-beta-1 Sense 4.2.2:

http://d-h.st/fFy

You can select the F2W or P2W options in the recovery installer.

Changes:

f2w/f2s and p2w added for Sense 4.3/Sense 4.2.2 beta installers

Sense4.3 beta2 - fix p2w issue

- Flick2Wake/Sleep - flick the phone, with a good strength, and the phone screen will wake or get to sleep. (It might look a bit awkward on the video, but i already am in love with this feature, it's comfortable :)) Phone should be held in portrait mode, and flip the phone in a way that the top is flipping around the middle line of the phone...try it and you'll get used to it.

- Pick2Wake - when your phone is laying around on e.g.a desk horizontally on its back, and you pick it up in a short motion and turn it to stay vertically still for a moment (like you would generally be looking at it), it will wake up.

Regarding Pick2Wake I must let you know that, if you'll want to use that specific feature (pick2wake), it will certainly keep the phone's CPU more busy, less deepsleep, especially when the phone is not sitting still, but being moved (gyroscope sensor being active), when it will keep the CPU up for more time than normally. Unfortunately, that cannot be circumvented, so pick2wake feature will come at a price of battery juice. It won't eat up the juice like mad, but certainly, i've measured that it WILL eat more.

Fiddling around with the Flick2Wake/Sleep, if you only use that, and leave the P2W off, deepsleep should be normal.

[youtube]R8Z5_guUESw[/youtube]

Manual setting is possible as well:

f2w on:

echo "1" > /sys/devices/virtual/htc_g_sensor/g_sensor/flick2wake

f2w off:

echo "0" > /sys/devices/virtual/htc_g_sensor/g_sensor/flick2wake

p2w on:

echo "1" > /sys/devices/virtual/htc_g_sensor/g_sensor/pick2wake

p2w off:

echo "0" > /sys/devices/virtual/htc_g_sensor/g_sensor/pick2wake

Switch screen on/off again to let the settings work if you change them from shell.
[One (M7) Original Android Development] DSC05:
Tyvm, stable 4.2.2 beta version works perfectly on venom rom. I love the flick2wake option. I never used any other wake options by touching the screen, because I always got huge suspend_backoff wakelocks.
[One (M7) Original Android Development] Crowned-star:
i just tried the stable version for the GPe 4.3 and i seem to lose root every time I flash it, even if i retry to install Super SU it doesn't work at all
[One (M7) Original Android Development] guyd:
Flash the newest version of TWRP 2.6.3.0 and then the newest version of SuperSU v1.65 and that should cure your problem.
[One (M7) Original Android Development] Crowned-star:
currently flashing, but will enabling on screen nav with this kernel work?

Edit: worked i got root now, however editing the build prop doesn't enable on screen navigation, i'm using root explorer
[One (M7) Original Android Development] MrGriffdude:
Working perfectly on android revolution hd 21.0!
[One (M7) Original Android Development] tbalden:
Great! thanks for testing and reporting.

That's true, the touch wake options are using the touchscreen irq being left on, which can happen easier e.g. when phone is in your pocket and the capacitive surface is shorted.
[One (M7) Original Android Development] miten_sheth:
Using the latest beta for 4.2.2.. F2w and p2w activated.. Sweep to wake double tap to wake and everything off.. Phone has been in deep sleep only for 7 mins in 5 hours.. N 4 hours of suspend back off... :what:
[One (M7) Original Android Development] nyteblayde:
Flick2wake works great but flick2sleep doesn't work most of the time. Still a great kernel. :)

Sent from my HTC One*(≧∇≦)/
[One (M7) Original Android Development] Techno Sapien:
same here,flick2sleep works only on lockscreen.
[One (M7) Original Android Development] tbalden:
Read the description, that's why i put it in every beta release post, p2w will keep the phone awake a lot more! Switch off p2w if you don't want less deepsleep. I've detailed what's the price of using p2w regarding deepsleep. Switch it off, if you move a lot around with the phone. For now that's the best it can get.

On the other hand, Flick2Wake alone without Pick2Wake will be deepsleeping fine.

When i'll release the stable update, i'll put a big red warning in the post, that Yeah, P2W is keeping the CPU a lot more off of deepsleep.
[One (M7) Original Android Development] tbalden:
i should put up some kind of guide how to do the Flick2Sleep, because it's ONLY working in one direction intentionally, one certain flick around the y axis.

Flick2Wake is easier to do, because it doesnt restrict the flicking to one certain direction, while Flick2Sleep is intentionally ONLY working when the phone being flicked from vertical portrait mode, phones bottom (usb slot) looking more or less downwards the ground (gravity force direction :)), and you do the rotational motion around the y axis (which crosses the HTC sign on the back). it's quite easy, and not just works in locked mode, but all the time, and when you get it once, you will get it all the time, like a few users already reported that it works just fine :)
[One (M7) Original Android Development] Techno Sapien:
plz,can you put a guide? couldnt figure how to use it... :( thanks
[One (M7) Original Android Development] tbalden:
ok, i'll make a video later. :)
[One (M7) Original Android Development] Nekromantik:
Quick question, would F2W cause more battery drain then standard T2W? without F2W?
[One (M7) Original Android Development] tbalden:
If you only select Flick2Wake and NO pick2wake, than it won't cause any more battery drain than touchscreen wake options, maybe will do less. Hardly noticeable.

While P2W is surely keeping the CPU much more on, so that will add more drain.
[One (M7) Original Android Development] randykzc:
Hi [MENTION=3088420]tbalden[/MENTION]

i just had a random reboot. Using latest kernel with insertcoin.

Not sure if this is the file i should attach.

Could you help to take a look? Thanks
[One (M7) Original Android Development] shrinkhead:
f2w works like a charm & very naturally, s2w too if I make an abrupt stop to the movement which needs some practise. using trickdroid 11.0.0
[One (M7) Original Android Development] tbalden:
which version? stable or performance edition?

EDIT: ok, i see its on Performance..

Are you using UV?
[One (M7) Original Android Development] geo0889:
Tbalden you made headlines on my BlinkFeed today.

Android Headlines

Wake Your HTC One without Using Buttons with Pick2Wake and Flick2Wake.

http://www.androidheadlines.com/2013/09/wake-htc-one-without-using-buttons-pick2wake-flick2wake.html
[One (M7) Original Android Development] tbalden:
Neat :)

Thanks for the link, haven't noticed it tho I'm checking too regularly
[One (M7) Original Android Development] randykzc:
Yes..I did uv.. so maybe I should increase the voltage right?
[One (M7) Original Android Development] miten_sheth:
Will there in the future be an option to change the amount of force you need to f2s. Coz f2w works fine.. But on my phone f2s is quite sensitive..
[One (M7) Original Android Development] Denpech:
For me Pick2Wake on Viper 2.6.0 works but it is not correct! Flick2Wake I did not include. When I lift phone from horizontal position in vertical - the screen wakes up, and here the second part of a roller when stirring translates phone in a dream, does not work.
[One (M7) Original Android Development] tbalden:
As you didn't select flick2wake that means flick2sleep is not on either, so that's the correct behavior.

You need to enable flick2wake/sleep for that.
[One (M7) Original Android Development] tbalden:
Yes, please try that
[One (M7) Original Android Development] thatnitai:
I've been trying to tweak battery life using this excellent kernel :) . The OP says Intellidemand, lagfree, lionheart and smartassv2 CPU governors are available, but other than the typical governors (ondemand, powersave, etc.) I can only see Intellidemand, using Trickster MOD. Were the others taken down? Or is there some special way to activate them?

If there aren't any alternatives to ondemand and intellidemand using this kernel, could someone please recommend a battery friendly ondemand or intellidemand configuration? I'm looking for a good balance between performance and battery life. Like most everyone I suppose :)
[One (M7) Original Android Development] tbalden:
The OP doesnt say that "Intellidemand, lagfree, lionheart and smartassv2 CPU governors are available,"

Intellidemand, interactive, ondemand, Smartmax, DanceDance are available in the Performance Edition.

You should see them there
[One (M7) Original Android Development] tbalden:
So here comes the new Flick2Wake and Pick2Wake to the GPe 4.3 kernels! :) :)

Enjoy!

Flick2Wake and Pick2Wake beta test installers

BETA INSTALLERS for Sense 4.3/4.2.2 and GPe 4.3, 2.2.0-betas

GPe Performance Edition 2.2.0-beta-1 GPe 4.3:

http://d-h.st/fdj

GPe Stable Edition 2.2.0-beta-1 GPe 4.3:

http://d-h.st/2Pv

======

Performance Edition 2.2.0-beta-2 Sense 4.3:

http://d-h.st/oBX

Stable Edition 2.2.0-beta-1 Sense 4.3:

http://d-h.st/ZVc

======

Performance Edition 2.2.0-beta-1 Sense 4.2.2:

http://d-h.st/FhF

Stable Edition 2.2.0-beta-1 Sense 4.2.2:

http://d-h.st/fFy

You can select the F2W or P2W options in the recovery installer.

Changes:

f2w/f2s and p2w added for GPe 4.3 beta installers

- Flick2Wake/Sleep - flick the phone, with a good strength, and the phone screen will wake or get to sleep. (It might look a bit awkward on the video, but i already am in love with this feature, it's comfortable :)) Phone should be held in portrait mode, and flip the phone in a way that the top is flipping around the middle line of the phone...try it and you'll get used to it.

- Pick2Wake - when your phone is laying around on e.g.a desk horizontally on its back, and you pick it up in a short motion and turn it to stay vertically still for a moment (like you would generally be looking at it), it will wake up.

Regarding Pick2Wake I must let you know that, if you'll want to use that specific feature (pick2wake), it will certainly keep the phone's CPU more busy, less deepsleep, especially when the phone is not sitting still, but being moved (gyroscope sensor being active), when it will keep the CPU up for more time than normally. Unfortunately, that cannot be circumvented, so pick2wake feature will come at a price of battery juice. It won't eat up the juice like mad, but certainly, i've measured that it WILL eat more.

Fiddling around with the Flick2Wake/Sleep, if you only use that, and leave the P2W off, deepsleep should be normal.

[youtube]R8Z5_guUESw[/youtube]
[One (M7) Original Android Development] elloar:
Hi tbalden,

F2w works well but f2s works so lala ;-'(. Sometimes yes and sometimes not . When I try f2w and after that f2s , sometimes it doesn't work.

I am on Hd 21.0 and performance edition of your kernel

Thx
[One (M7) Original Android Development] bpdev:
[MENTION=3088420]tbalden[/MENTION] Flick 2 Wake and Flick 2 Sleep are awesome! At first I coudn't get F2S to work consistently but after playing around with it for 10 mins I can get it to work every time. I don't think I'll ever go back to using the power button lol:laugh:.
[One (M7) Original Android Development] tbalden:
Thanks for the feedback. I'm gonna create a tutorial video about how to flick, what's the way it's meant to work. Some of you already got the hang of it, so I'm sure a video will help.
[One (M7) Original Android Development] tbalden:
Great that you got used to it. It's really convenient,once you get the hang of it. :)
[One (M7) Original Android Development] n3ocort3x:
[MENTION=3088420]tbalden[/MENTION]

I know u are busy with awesome flick n wake stuff but u should have a look by chance on my cpuquiet branch on git. I merged yesterday maxwens stuff and it's simply amazing how battery friendly and snappy it is. It does an nice job. Catch me on gtalk on evening then I explain further

noNeedForAsig
[One (M7) Original Android Development] tbalden:
So here is a tutorial video shot from another angle while Flip2Wake is in action.

Note the axis of the rotation, and also know that the trick is to stop it suddenly, like a whip, so the gyroscope gets a steady boost for detection of the flick...hope this helps!

[youtube]TdzRHaovyYY[/youtube]

Also with the final stable releases, i'll add the possibility to choose a new more sensible setting for Flick2Wake, which needs less snappy flicking to let it work, and leaving the previously introduced less sensitive setting available in the aroma installer.
[One (M7) Original Android Development] miten_sheth:
Yours happens very well.. Doesn't work that ways with my phone.. :what:

I do no its beta.. Just reporting.. :)
[One (M7) Original Android Development] tbalden:
There might come well, that i'll add a more sensitive f2w option. :good:
[One (M7) Original Android Development] tbalden:
As dev-host is flakey, had to upload stuff to another site for now.. anyway, here's 2.2.1 version, with added two sensitivity options in installer for Flick2Wake.

Flick2Wake and Pick2Wake installers

RELEASE CANDIDATE INSTALLERS for Sense 4.3/4.2.2 and GPe 4.3, 2.2.1

GPe Performance Edition 2.2.1 GPe 4.3:

http://www.solidfiles.com/d/bfed11af7a/

GPe Stable Edition 2.2.1 GPe 4.3:

http://www.solidfiles.com/d/a99adc027b/

======

Performance Edition 2.2.1 Sense 4.3:

http://www.solidfiles.com/d/b3306a73d9/

Stable Edition 2.2.1 Sense 4.3:

http://www.solidfiles.com/d/7f52708b34/

======

Performance Edition 2.2.1 Sense 4.2.2:

http://www.solidfiles.com/d/a6911ad21f/

Stable Edition 2.2.1 Sense 4.2.2:

http://www.solidfiles.com/d/5a03cdf9f8/

Changes:

- Added F2W Sensitivity option to Installer

- Flick2Wake/Sleep - flick the phone, with a good strength, and the phone screen will wake or get to sleep. (It might look a bit awkward on the video, but i already am in love with this feature, it's comfortable :)) Phone should be held in portrait mode, and flip the phone in a way that the top is flipping around the middle line of the phone...try it and you'll get used to it.

- Pick2Wake - when your phone is laying around on e.g.a desk horizontally on its back, and you pick it up in a short motion and turn it to stay vertically still for a moment (like you would generally be looking at it), it will wake up.

Regarding Pick2Wake I must let you know that, if you'll want to use that specific feature (pick2wake), it will certainly keep the phone's CPU more busy, less deepsleep, especially when the phone is not sitting still, but being moved (gyroscope sensor being active), when it will keep the CPU up for more time than normally. Unfortunately, that cannot be circumvented, so pick2wake feature will come at a price of battery juice. It won't eat up the juice like mad, but certainly, i've measured that it WILL eat more.

Fiddling around with the Flick2Wake/Sleep, if you only use that, and leave the P2W off, deepsleep should be normal.

[youtube]R8Z5_guUESw[/youtube]
[One (M7) Original Android Development] tiny4579:
tbalden, you get a thanks just for having the interesting feature called Flick2wake. I actually decided to switch to GPE tonight just so I could try it out.

Pick2wake sounds really neat but considering the current issues with battery drain as I've read through, I might not use it. It's still a novel idea. Maybe you'll figure out a way to improve battery life with it.

Anyways, great work.
[One (M7) Original Android Development] pewpewbangbang:
Been trying to download the performance edition of GPE. Get a failed network error each time I try to download after it starts up. Seems like there may be something wrong with the hosting site?

Essentially, download fails.

finally got it
[One (M7) Original Android Development] fallenangel408:
same here 4.3 performance network error?!:(
[One (M7) Original Android Development] farang4u:
F2W normal sensitivity is perfect for me. After a day of use it's become almost natural way to wake up phone. Would like an option to have only F2W but no F2S. Excellent work, much appreciated from this user.

Edit: Here's a token of my appreciation: 19B232995F906804V
[One (M7) Original Android Development] DSC05:
Yes, an option to disable just F2S would be nice.

Gesendet von meinem HTC One mit Tapatalk 4
[One (M7) Original Android Development] tbalden:
Thank you, much appreciated!

I'll have a look at separating the flick2wake and sleep options, it's useful.
[One (M7) Original Android Development] tbalden:
Yesterday dev-host had some issues here, but I'll upload to it if it's sorted out
[One (M7) Original Android Development] poczynek:
Hi Tbalden - ok finally got to do a video of me being unable to flick to sleep! See:

http://tinypic.com/r/nwd6vs/5

This is after downloading the most recent kernel with the extra sensitivity too - what am i doing wrong? (oh and pardon the 7 week old crying in the background!)
[One (M7) Original Android Development] tbalden:
Hehe, i've the same 'background noise "issues"' with my kids, i wish never bigger issues! :)

Well, now i think i see what the problem might be!

Try this:

First raise the phone into a more vertical position, like it's facing you in portrait mode. Wait a bit there, and then try the flick. So you must start it from a vertically aligned position, phone's usb port side facing more or less the ground.
[One (M7) Original Android Development] poczynek:
Thanks but still no go! I have the phone where USB outlet is facing down to floor and then flick down and nothing! Strange thing is that I can 'feel' it working when I flick to wake ie you can feel the gyro but flick to sleep - nothing! Blergh! Let me see if I can do another vid...

Thanks again. Really appreciate your help and patience.
[One (M7) Original Android Development] tbalden:
Hmm, if you're playing around with it, could you please do it with adb shell, and when you're trying to get it to sleep, after failures type:

adb shell dmesg > DMESG

and upload it to pastebin or some other site. Maybe the kernel logs will help. Thanks!!
[One (M7) Original Android Development] tbalden:
OP updated
[One (M7) Original Android Development] poczynek:
Yes thanks again and please find dmesg:

http://pastebin.com/Be1fRZgv
[One (M7) Original Android Development] tbalden:
What Rom are you using, which version? Seems like it's not logging anything, like it's not even being checked.
[One (M7) Original Android Development] poczynek:
Yes latest ARHD.
[One (M7) Original Android Development] tbalden:
Are you using any apps that might be interfering with such stuff? I am out of ideas yet, because I'm testing this stuff on the same base, and others reported it works fine on that Rom. :(

Seems like the sensor is not active when your screen is on. Maybe an app is blocking it?

Try e.g. GPS status app to check if the gyroscope is working when screen is on
[One (M7) Original Android Development] shrinkhead:
+1 f2w and logo2sleep be a phone dream come true :)

thanks so much for this. after turning of doubletap2w battery improved and only dropped phone once practicing f2s.....;)
[One (M7) Original Android Development] tbalden:
Good to know, thanks for the feedback! :)
[One (M7) Original Android Development] yxtl:
F2W &F2S work verry well here Insertcoin 3.4-2 base 3.17 ,i choose more sensitive,and my phone respond at every flick Thx alot for this great option
[One (M7) Original Android Development] miten_sheth:
Can there be a way to decrease the amount of pressing time of the logo to switch the screen on or off?
[One (M7) Original Android Development] tbalden:
Choose the logo2menu off, logo2wake/sleep with short time out for a shorter time, but you will lose the logo2menu feature obviously. Otherwise no way to let it be quicker.
[One (M7) Original Android Development] geo0889:
Does the f2w feature need the pocket detection enabled? I don't use the s2w. F2w feels so responsive with the new settings btw. Thanks
[One (M7) Original Android Development] tbalden:
No, you don't need to enable it, it's using proximity sensor pocket detection by default for f2w, regardless you set it or not for the screen wake options, because I found it too risky to not add it, because shakes can happen even in a leather or other case or bag
[One (M7) Original Android Development] tbalden:
Thread updated to new stable 2.2.2 version. Enjoy!

Thanks [MENTION=2632943]Whiskey103[/MENTION] for the hosting! :)
[One (M7) Original Android Development] Whiskey103:
Will update venom HUB asap with these latest releases, thanks ;)
[One (M7) Original Android Development] timf808:
Awesome sauce! Loving the new f2w option. Umm just wondering for the performance version (sense4.3) is ondemand still best for battery life? Anyone wanna post some governor settings for max battery life. Would thermal settings affect battery life as well?

Also I've used trickster and fauxclock, any other good apps for kernel settings?
[One (M7) Original Android Development] osmosizzz:
Testing out pick2wake and in my device has not deep slept at all. I've been on for 5 hours. 2 minutes deep sleep only. Will just keep on f2w.
[One (M7) Original Android Development] elloar:
F2s doesn't work here ;( f2w work's perfect. Under sys/device ........... G_sensor flick2sleep ,I have a "1"

In there .it means I should work, maybe some apps block it?
[One (M7) Original Android Development] tbalden:
Smartmax, and try to uv as much as it stays stable. Try to use 81mhz cpu min freq.

Thermal setting will hold back the horses a bit in heat dissipation, so might affect battery life a bit, but rather the health of the battery on the long run.
[One (M7) Original Android Development] tbalden:
Yeah,that's what I think, some app switching the sensor off maybe. Do you have any app that is related to battery saving/hardware settings?is play store app gps status showing it working?
[One (M7) Original Android Development] elloar:
It's crazy, I just installed GPS status test & fix from playstore and with this app open f2s works.after I close the app ,f2s doesn't work ;(

Edit: I have a solution. When I set the display to go off after xx seconds.I can not use f2s. When I set it to auto, I am able to use f2s without any problems juhuuuuuu ;)
[One (M7) Original Android Development] tbalden:
Oh, dear, thanks for this information! Gonna have to look at this, i 'll try to prevent this behavior in the kernel driver later, it seems fixable. HUGE Thanks for reporting!! [MENTION=4732713]poczynek[/MENTION], i guess you have the same settings! check the above
[One (M7) Original Android Development] elloar:
No problem ;) Thx a lot for your really nice kernel .

F2w/f2s I'm coming ;)
[One (M7) Original Android Development] tbalden:
Strange, i try to reproduce this issue, but can't reproduce it on the rom i test currently for 4.3 , MaximusHD.

I set the Display sleep timeout to 15 seconds or other values, but it still works..

Maybe it's related to the ARHD base somehow, which maybe different?
[One (M7) Original Android Development] elloar:
Maybe ;( I'm on revolution HD 21.0 . Related to ARHD? Hm . I just tryed again with changing it in setting, and after i set it to 15s or higher,I can not use f2s .with auto I can nicely use it.
[One (M7) Original Android Development] LorD ClockaN:
I have it set to go off after 1 min of inactivity (default aosp) and to turn ON lockscreen after a minute when the screen goes off and f2w and f2s are working fine, but p2w doesn't work. I commented this also in your github
[One (M7) Original Android Development] n3ocort3x:
For me p2w works on our latest aokp build. Just tested 3 times. Will check again now after some minutes (1to5 mins tested so far)

Hm... Now it suddenly stopped working. I disabled pocket detection then enabled it again and since then only flick is working.

noNeedForAsig
[One (M7) Original Android Development] j1po:
thanks for the information :good:

Im using ViperOne 2.x

must set display go off = auto for f2s working