yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Original Android Development] cooooooop:
Thanks for the great work, I love the swipe to wake feature!

To get it working with KControl app from app store:

Probably already mentioned in this thread but it can't hurt repeating.

Have to go to settings and turn on "Apply settings on boot" and "Apply Sweep2Wake settings"

After that, you need to actually turn the feature on.

Swipe from main screen (or tap top left corner), scroll down to Sweep2Wake and set it to enabled!

Reboot.

Hurray!
[Nexus 5 Original Android Development] Cyberz22:
All stock here...

Gonna wait for a stable version with knock knock future.
[Nexus 5 Original Android Development] KingBeike:
Latest beta works very good with cataclysm...and all settings can be set with trickster :)
[Nexus 5 Original Android Development] show-p1984:
Just pushed a KControl update to the playstore, adding dt2w functionality:

I/de.bricked.kcontrol.BootupHandler( 2360): Sweep2wake is supported
I/de.bricked.kcontrol.BootupHandler( 2360): Sweep2wake version 1 found.
I/de.bricked.kcontrol.BootupHandler( 2360): Enabling Sweep2wake.
I/de.bricked.kcontrol.BootupHandler( 2360): DoubleTap2wake is supported
I/de.bricked.kcontrol.BootupHandler( 2360): DoubleTap2wake version 1 found.
I/de.bricked.kcontrol.BootupHandler( 2360): Enabling DoubleTap2wake.

http://bricked.de/kcontrol_changelogs.php
[Nexus 5 Original Android Development] show-p1984:
S2W and DT2W just made it stable. Merging done, kernel should be up in a jiff.

Merge made by the 'recursive' strategy.
arch/arm/configs/bricked_defconfig | 5 +-
drivers/input/touchscreen/Kconfig | 17 +++
drivers/input/touchscreen/Makefile | 5 +
drivers/input/touchscreen/doubletap2wake.c | 447 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
drivers/input/touchscreen/sweep2wake.c | 472 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
drivers/input/touchscreen/touch_synaptics.c | 72 +++++++++++--
drivers/input/touchscreen/touch_synaptics_ds5.c | 69 +++++++++++--
drivers/video/msm/mdss/mdss_dsi_panel.c | 65 ++++++++++--
include/linux/input/doubletap2wake.h | 26 +++++
include/linux/input/sweep2wake.h | 26 +++++
10 files changed, 1177 insertions(+), 27 deletions(-)
create mode 100644 drivers/input/touchscreen/doubletap2wake.c
create mode 100644 drivers/input/touchscreen/sweep2wake.c
create mode 100644 include/linux/input/doubletap2wake.h
create mode 100644 include/linux/input/sweep2wake.h
[Nexus 5 Original Android Development] cc16177:
Awesome!
[Nexus 5 Original Android Development] wilflare:
strange that I'm posting here.. but I found out about you through faux's tweets.

using a Galaxy Note 3.. sure hope these features come to the Note 3 too

(i know i know this is for Nexus 5 but I do hope the collaborative spirit will spillover with these ^^)
[Nexus 5 Original Android Development] jlsesler:
Do you plan to release a double tap to sleep too? Sorry if you already answered this.

Great work BTW! I bought your kcontrol. Very nice app.
[Nexus 5 Original Android Development] fwers:
stable means fix for idle battery drain when using these features ?
[Nexus 5 Original Android Development] Citizen_Snips:
You're awesome show. Can't wait!

Sent from my Nexus 5
[Nexus 5 Original Android Development] ethantarheels123:
he already answered this, and said it would be almost impossible to implement without generating a billion false positives.
[Nexus 5 Original Android Development] LPT:
I saw a new one on the download (stable) already but I guess we should wait for the confirm from show-p1984?
[Nexus 5 Original Android Development] Citizen_Snips:
Oh duh... yeah that's probably it... He did say the features were stable! Downloading. Thanks

Sent from my Nexus 5
[Nexus 5 Original Android Development] lbroksle:
I can confirm the latest stable is working awesome so smooth and d2w is working perfectly. Thanks show!
[Nexus 5 Original Android Development] jlevy73:
IMO there's always going to be a battery penalty for S2W and dt2w. I get about 0.5%/hr without those features and about 2%/hr with them. So it just depends on what your priorities are, battery life or extended functionality.
[Nexus 5 Original Android Development] Starymari:
So in theory, if you turned one of the two off - let's say s2w - you would get slightly less battery drain, correct?
[Nexus 5 Original Android Development] ZenithHammerhead:
I get into a bootloop every time I flash the latest "stable" kernel. Then, I go ahead and flash the bricked kernel uninstaller...which still puts me in a boot loop. The only way I can get out is flashing another stock kernel myself...is there a way I can get some kind of error report out of this? I've gone through these problems twice...and yes, i waited for the entire process to complete before rebooting.

i dont think it should matter, but i flashed with the latest official CWM.
[Nexus 5 Original Android Development] JesusFreak316:
No, because the drain comes from the device having to leave some of the touch hardware on in sleep, not due to increased CPU use. If you disable one, the hardware still has to stay enabled.
[Nexus 5 Original Android Development] jlevy73:
In theory yes, but I have never tried so not completely sure.
[Nexus 5 Original Android Development] thejonesyboy:
Why not use tasker to set the sys variable to 1 when charging, and 0 otherwise? It takes effect immediately.
[Nexus 5 Original Android Development] Deegan87:
Seconded. I set tasker to activate dt2w on boot by using the script action and writing the terminal commands there. This will work. We could even use the tasker app factory to duplicate this functionality for everyone else on this thread that doesn't have tasker.
[Nexus 5 Original Android Development] NineInchNails:
Use twrp
[Nexus 5 Original Android Development] thejonesyboy:
So no one is having this issue? I have managed to hang up on two people with my face so far... :silly:
[Nexus 5 Original Android Development] Emilius:
Latest stable from 21st give me strange problem. Sometimes when pressing power button nothing happens and the 4 seconds lather screen is going on and off again. Latest beta from 20th dues not have that problem. Anyone else experiencing this?
[Nexus 5 Original Android Development] pepdavies:
Thanks for this awesome kernel. I've set it to sts and dttw but stw still works. Is there a setting I need to change?

Sent from my Nexus 5
[Nexus 5 Original Android Development] NuxMortis:
Awesome Kernel, bought your app too!

I'd like one feature though:

It was said no knockknock to sleep because of false positives.

Would it be possible to make swipe to sleep standalone?

(=no s2w, no drain)
[Nexus 5 Original Android Development] Apolyxon:
Is there any noticable drain from the Sweep or Knock Knock feature?

EDIT: Don't answer, I used the thread search and the answer is: Yes, about 1.5 %/h more drain from the enabled touch hardware.
[Nexus 5 Original Android Development] PippoX3:
In the app KControl, is it possible to change startup delay for apply kernel settings (like Trickster). I cant find nothing similar... thanks.
[Nexus 5 Original Android Development] KingBeike:
I had a huge drain...~20% in 7 hours...normally i geht 1 or 2 percent...i love the feature but i need The battery...30% less battery on a normal day of usage is too much for me
[Nexus 5 Original Android Development] spica123:
Or newest unofficial swipe cwm. It works perfectly and the slow wipe bug is fixed as well.
[Nexus 5 Original Android Development] IharpI:
Are you sure that this is D/S2W related and not some software wakelock?

I can confirm this issue!

D2W keeps the touch on, when proximity disables screen in call.
[Nexus 5 Original Android Development] akaHardison:
Kcontrol still crash after boot up.So I have to downgrade the kernel.
[Nexus 5 Original Android Development] keda51:
Also have this issue.
[Nexus 5 Original Android Development] setspeed:
Hi, I'm sorry to post this question but I've searched the thread and not found what I need to know. I've read several times that Bricked-Kernel is compatible with CM-based ROMs, but I'm not sure what procedure I need to follow to install it.

I read that I needed to flash the stock Nexus boot.img followed by the latest stable Bricked-Kernel, which I did. This just sent me into a bootloop with the CM boot animation for about 10mins, after which I tried again but got the same result.

I've nandroided back to how I was, but really need guidance on what to do next, please?

EDIT: my rom is DroidKang v5, I used Flashify to flash the stock boot.img and TWRP to flash Bricked-Kernel
[Nexus 5 Original Android Development] IharpI:
Do not flash the Stock Kernel on any CM Rom. ;)

Option A) Just install your rom and directly after that the bricked Kernel. (both in TWRP)

Option B) Directly Install CM11 with bricked integrated: http://xdaforums.com/showpost.php?p=47685207&postcount=472
[Nexus 5 Original Android Development] lexxa83:
The latest version rocks. I've lost only 3% overnight with my LTE on and Google sync on
[Nexus 5 Original Android Development] jaco1975:
good as I can get for the work I knock knock? great kernel thanks and keep well

Enviado desde mi Nexus 5 mediante Tapatalk
[Nexus 5 Original Android Development] KingBeike:
Yes, drain stops after if deactivated the dttw
[Nexus 5 Original Android Development] Alfonso87:
Could you pls post some battery life screen shots and explain your phone usage?

Thank you guys :p
[Nexus 5 Original Android Development] AndroidKills:
I'm gonna have to agree with most statements that maybe dt2w is draining battery hard. I usually don't lose 20 percent sitting through class

Curious if sweeptowake also drains?

Sent from my Nexus5 ?
[Nexus 5 Original Android Development] Alfonso87:
It drains the same. Above all, they drain for even more than twice if they re On together xD Lost 8% of my battery last night, while in airplane mode :s
[Nexus 5 Original Android Development] tyea:
Rastakat 11/15 + 11/21 Bricked hammerhead: I have sw2w and dt2w both enabled on boot with all other kernel settings stock Bricked status. I'm having a good experience with no significant increase in battery consumption. I don't recall if I originally installed Bricked with the ROM or flashed it after running the ROM stock. I did flash the 11/21 Bricked over the 11/20 Bricked beta using TWRP and no manual wipe operation.
[Nexus 5 Original Android Development] AndroidKills:
yeahi actually disabled em the second i posted before, and my battery hasnt moved at all even with use.
[Nexus 5 Original Android Development] FlolB:
11/21? Where can find this new version?

Gesendet von meinem Nexus 5 mit Tapatalk
[Nexus 5 Original Android Development] helloworld1:
drain battery

Tested 2 nights.

It drains 18% battery over night with airplane mode on.

When turned s2w off, it only comsume 3% battery overnight.

This is huge!
[Nexus 5 Original Android Development] tyea:
http://bricked.de/index.php?action=kdownload&device=hammerhead&release=stable&type=aosp
[Nexus 5 Original Android Development] FlolB:
Oohh I looked under the beta realises. lol

Gesendet von meinem Nexus 5 mit Tapatalk
[Nexus 5 Original Android Development] Alfonso87:
A developer added a "switch off/on" function to dt2w and s2s via power button, but i haven't tested the battery drain yet. Seems better. Maybe this could be the solution. Or if we take a look to the other hand we have Franco, that as decided to skip this feature at all... :s

[MENTION=4195844]show-p1984[/MENTION] Any idea in mind to reduce the battery drain of these 2 features? :o Why we haven't a 3000mAh battery ç_ç

EDIT: OT: have you got any app to switch data On/Off when you wake your phone?O.o
[Nexus 5 Original Android Development] magnamentis:
good enough i'd say :)

some settings don't stick upon reboot albeit all is set to "ON BOOT ( ON )

what didn't stick till now that i found out was s2w, dt2w and the vibration setting.

perhaps there are others which i didn't see, however the cpu settings stick properly.

battery life has been 3% in 9h 45' during the night with juice defender helping also.

all functions on with cataclysm on auto 2G with screen off and location on high accuracy

as well as full sync, all sync functions on except dropsync.

however i compared this kernel with franco's and can say that battery life is similar,

other factors play a bigger role in the battery performance than the difference between these two.

would be nice to have an update function and hope that gamma + sound tweaks are pending :)

overall the kernel is great and and the app as well.

here a little candy to enjoy:

EDIT: the setting do stick now on the 21st of november stable release and i suspect it was

more a problem of flashing supersu 1.69 again, albeit the rom comes rooted. so this ended

up with the superuser app being entirely gone which i did not see since the icon was still there :)

so i'd say sorry for the probably false alarm
[Nexus 5 Original Android Development] FlolB:
When I have enable doubletap2wakeup, I have a Battery problem. When I disable it, is the Battery live ok. With beta 11/20. S2w is enabled too.

Gesendet von meinem Nexus 5 mit Tapatalk
[Nexus 5 Original Android Development] Alfonso87:
Could u guys post some more battery life and SoT screenshots? Thank you
[Nexus 5 Original Android Development] AndroidKills:
I can't post any atm, but if you want a feel of assurance. I can guarantee this kernel definitely improves battery life (when sweeptowake and dt2w are turned off )

But I had sweep2w & dt2w on at 8:30am drained my battery from 93%to 70% within 2 hrs.

From 12pm to now im at 59%. (With the sweep2w and dt2w off)

Moderate use = whatsapp,SMS, browsing social networks and web. Also playing music between my travels.

Sent from my Nexus5 ?
[Nexus 5 Original Android Development] Citizen_Snips:
Ok I just have to weigh in on battery here. Maybe a little biased, but whatever. For me it's amazing. I came from a Verizon CDMA galaxy nexus. Everyday at work I stream Pandora from the minute I walk in until the minute I leave. On that nexus I had 2 different OEM batteries. One standard (1850mah) and one extended (2100mah). I would go through the entire extended battery by like 2/3 out of the day. Normal 8 hour shift. This was also on Wi-Fi, lol. Then on the commute home (also streaming Pandora 4Glte) I would get the standard battery down to about 20 percent. With the same deal on this phone with this kernel installed I made it through the day and I'm back home with 37%. Not bad. Also on the old phone I would turn off GPS, NFC, OK google/now, sync, keep the brightness set to like 35%, etc. Now I leave everything on with auto brightness. I was also using s2w/s2s because, well, it's awesome. So if I turned that off I would get even better battery life, that's awesome... I'm about to flash the last beergang update then let this settle in for a day or two and do some battery idle drain tests with and without those features enabled

Sent from my Nexus 5
[Nexus 5 Original Android Development] DowntownJeffBrown:
Flashed your kernel today and so far so good. Not sure about battery yet but smooth as oiled butter :thumbup:

>^.^< Sent From Meow nexus5
[Nexus 5 Original Android Development] shri_chanakya:
Can you include smartmax governor?
[Nexus 5 Original Android Development] ahfunaki:
So I bought KControl, and for some reason it says that GPU Memory Usage fail. I have seen where it passes though, so is this a fluke? What should it say there?

I also seem to be getting lower AnTuTu benchmarks over what some others are posting. Around the 25-27k mark. Could these things be related or is this how it's supposed to be?

Also any recommended settings in KControl?
[Nexus 5 Original Android Development] thejonesyboy:
OK thanks for the heads up! I'm sticking to turning it off when it's not charging for now, as I really only seem to use it when the phone is sitting down and I haven't got my hand wrapped around it and on the power button (and usually charging).

I've attached my tasker profile that turns s2w and dt2w on while charging and off otherwise. You could change this to disable when in the dialer and enable otherwise.
[Nexus 5 Original Android Development] akaHardison:
Reported.Wow,long reply.You can check your Google play
[Nexus 5 Original Android Development] xlife86:
I love this kernel

I have been trying out different kernels and each gives me different advantage over certain things but this kernel does all I ever wanted in a kernel > Battery life + Performance. I don't use sw2w or any similar function so all the complains I saw about the battery drain relate to that issue is not relevant to me.

Thank you sir [MENTION=4195844]show-p1984[/MENTION] for this kernel and I just bought your Kcontrol from play store. I am loving your hard work and a big salute to you :highfive:
[Nexus 5 Original Android Development] show-p1984:
Thank you, fixed. ( http://pastebin.com/raw.php?i=w6J15Ghn )

Update coming to you as soon as the playstore pushes it.
[Nexus 5 Original Android Development] george241312:
Double tap to wake ain't staying after reboot the option stays unchecked...
[Nexus 5 Original Android Development] akaHardison:
BTW,the settings wouldn't save after reboot.But I don't know get the log.I want to report this,too.
[Nexus 5 Original Android Development] show-p1984:
Ofc not.

The bootuphandler crashed while applying mpdecision, so everything after that couldn't be applied anymore.

The issue was a strange fragmentation of the build.prop value I use to identify your device architecture, which caused KControl's bootuphandler to think you run it on an 'unknown' device.

I fixed this before for KControl, but for some reason I didn't use that function in the bootuphandler, which I now corrected.

(the function now uses a fallback by asking the kernel for it's scaling driver, which usually is just the arch name. Except on some exotic archs, which are not to be found in smartphones, but even then it at least contains the arch name and we can grep it.)
[Nexus 5 Original Android Development] shri_chanakya:
Elemental x has the smart max governor.

His repository is here https://github.com/flar2/ElementalX-N5
[Nexus 5 Original Android Development] show-p1984:
I must be blind:

https://github.com/flar2/ElementalX-N5/tree/master/drivers/cpufreq

There is no cpufreq_smartmax.c there.
[Nexus 5 Original Android Development] flar2:
??

I don't add any weird governors for the same reason showp mentioned above.
[Nexus 5 Original Android Development] ks2332:
I believe he meant this kernel [MENTION=4195844]show-p1984[/MENTION]

http://xdaforums.com/showthread.php?t=2524422

I'd like to see as well :):):):):):)
[Nexus 5 Original Android Development] show-p1984:
Where should I begin?

Its not being maintained there, it was imported. Once.

It wasn't adapted for the n5.

The source itself is out of date, at least that's what Google told me.

If I see a repo where a governor is actively developed I will be more than happy to pull in changes regularly, but I won't merge a governor just to have it in here and which is probably causing more trouble than good in that condition.
[Nexus 5 Original Android Development] ks2332:
Gotcha I apologize for not taking the time to check Google or github for it :( just for that I'll donate:) and in that case I'll order some intellidemand :)
[Nexus 5 Original Android Development] NuxMortis:
Are you talking about this explanation?

Then I don't understand:

When having swipe to sleep only, the touchscreen is already on and could get deactivated for sleep like it does by locking the device.

Or do you mean the whole s2whatever mechanism keeps touchscreen on forever?
[Nexus 5 Original Android Development] Alfonso87:
Didn't know, i just saw tons of battery life drained when i had them both up. Thanks for the explanation
[Nexus 5 Original Android Development] erpalma:
I ALWAYS send Google report on crash! There might be some problems with your G dev account because I'm sure I've sent at least one report per update.
[Nexus 5 Original Android Development] IharpI:
What about activating swipe to wake only if proximity does not trigger?

That way the "drain" of S2W is reduced to zero except the drain of the proximity sensor.

If we now only check the sensor every 500ms or so, the total drain woul be really low if the phone is in the pocket.

In addition to that we would overcome the android bug with the phone app.
[Nexus 5 Original Android Development] Das IceDice:
I think proximity sensor is controlled by android system and not the kernel. So if you use that sensor, android won't get any sleep cause it's listening proximity sensor = more battery drain.

---------- Post added at 12:36 PM ---------- Previous post was at 12:16 PM ----------

Am I missing something, cause I can't go any GPU pages in kcontrol?

It says error #-20 "I couldn't find stuff needed. Blunts."
[Nexus 5 Original Android Development] qpop:
Hi [MENTION=4195844]show-p1984[/MENTION] - Been using Bricked since release, and it's looking good.

Just wanted to report a crash on latest Kcontrol (and every subsequent one) when going to the "Scheduler" screen.

I have reported it through Google Play as well.

Cheers,
[Nexus 5 Original Android Development] rogem_kk:
Pretty much on forever and thus the extra power consumption.
[Nexus 5 Original Android Development] PippoX3:
I was thinking about. Great idea.

Will be very useful. Saves battery and often prevents accidentally power-ups while is into pocket.

Is the same feature that I use in my One X+. Here is the commit:

https://github.com/STELIX/android_kernel_htc_enrc2b/commit/4a9f37e08d5a1f17cc743d9a5a9c22c5a8bac8bd
[Nexus 5 Original Android Development] mbwsutherland:
Is double tap to wake available in both stable and beta. Just curious read through op yesterday. I thought it said just betas. But now can't find where it said that.

Thanks for any info
[Nexus 5 Original Android Development] nobnut:
Hi all,

If people only want to use S2W and DT2W whilst their device is being charged/on power and disable it at other times, I have created three Tasker tasks and a profile which will allow you to do the following:

1/ Have S2W and DT2W work only while the device is being charged and turn off automatically when it is not.

2/ Have the option to manually override this via a screen widget which changes its label and icon.

Screenshots of the widget are attached in its three states.

If you use this Tasker setup, you should disable the S2W and DT2W options in KControl.

In its current form, it enables/disables both S2W and DT2W. If you want only one, or the other, just edit the tasks as required.

Have fun and please customise as you wish.

Download, extract and import to Tasker

To get the widget, create a Tasker widget using the 'S2wDt2w' task.

EDIT: Attached two nicer looking icons for the widget (just place them in a sub-folder inside /.icn and attach them in the 'set widget icon' element.
[Nexus 5 Original Android Development] Deegan87:
That's totally possible with tasker. Write one profile that uses a shell script action with root to activate and deactivate s2w and/or dt2w according to the proximity sensor state.
[Nexus 5 Original Android Development] noonecanhide:
I posted this one to the cm11 thread, but because i am not sure if that is a kernel issue i post it here, too.

http://pastebin.com/QfcJ5inB

Phone did not wake up from sleep when i pressed the power Button. After waiting for a minute i did a hardreset. The phone booted as usual, but after one minute with screen off it rebooted from self. This happened a few times in a row, but stopped then.

First i thought IT might be UV related (-50mV on a PVS 3), but changing the voltages to default after the second reboot didn't help.
[Nexus 5 Original Android Development] KBanause:
Create job. Thanks. I modified the profile to be active as well when my phone is connected to my car stereo (via bluetooth)

But even though I have activated sweep2wake, I always caught myself still using the power button :D
[Nexus 5 Original Android Development] nobnut:
Nice one :)

I've thrown up a couple of better looking icons as well. If you come up with any other useful applications for it, give me a shout!