[KERNEL] [GPL] [N5] [DT2W/S2W] franco.Kernel - r57 [4.4.4] [Phantom]

Search This thread

PhantomGamers

Senior Member
Jun 27, 2011
919
920
NY
sundergaming.com
Hey guys, this is just a version of @franciscofranco's kernel built with DoubleTap2Wake and Sweep2Wake from Bricked Kernel merged in.

(By downloading and installing the kernel you assume all responsibility for any damage to your device, but I don't post images with the intention of this occurrence and test them to the best of my abilities.)
Download:

r57
boot image - https://sundergaming.com/downloads/hammerhead/franco.Kernel/boot-franco.Kernel-r57-dt2w.img
md5 - 9ba11b4c3f5cd963c69d54bbfd919fe1
zip - https://sundergaming.com/downloads/hammerhead/franco.Kernel/zips/boot-franco.Kernel-r57-dt2w.zip
*Color tweak is integrated since r30, check 2nd post for information on how to enable.
Want a dedicated build for color tweaks because your boot animation isn't pretty enough? Build it yourself. Sources below.
**Test builds posted throughout the thread.


Kernel is for 4.4.1/2 since r19

Installation:
fastboot flash boot boot_name_img
or
flash the .zip in recovery

Sources
Kernel - https://github.com/PhantomGamers/hammerhead
Ramdisk - https://github.com/PhantomGamers/ramdisk_hammerhead

Credits
@franciscofranco for his kernel - http://xdaforums.com/showthread.php?t=2508284
@show-p1984 for the dt2w and s2w additions - http://xdaforums.com/showthread.php?t=2524557
@flar2 for his on-the-fly color tweak, power key touch to wake suspend, and other general dt2w improvements. - http://xdaforums.com/showthread.php?t=2519607
I do accept and appreciate any donations but I urge you to first donate to the amazing developers listed above for their work because my contributions are minimal and without them this kernel variant would not exist.


Franco's original thread for reference only:
Hi all.

Currently does not work with recent CyanogenMod nightlies or any rom has uses CM sources as a base because they made underlying changes that are now incompatible with Kernels that don't follow their path.

Installation:
fastboot flash boot boot_name_img
or
flash the .zip in the recovery

Changelog:
http://kernels.franco-lnx.net/Nexus5/4.4/appfiles/changelog.xml

franco.Kernel updater Free apk: http://xdaforums.com/showthread.php?t=1867127
Nexus Display Control Free apk: http://xdaforums.com/showthread.php?t=2424467

Got any questions that you couldn't find after searching?
FAQ: http://xdaforums.com/showthread.php?t=2532422

Disclaimer to moderators:
Slight OT is fine, but when users decide to act stupid they should be dealt with with the appropriate means - its really annoying for me when OT turns crazy. Please put the warning/ban hammer anytime any of you think there's lack of respect and/or too much unwanted OT crap - but if it doesn't meet this criteria let the OT posts alone. Thank you.

Cheers!

XDA:DevDB Information
franco.Kernel+DT2W/S2W, a Kernel for the Google Nexus 5

Contributors
PhantomGamers, franciscofranco, show-p1984, flar2
Kernel Special Features:

Version Information
Status: Stable

Created 2014-02-06
Last Updated 2014-02-06
 
Last edited:

PhantomGamers

Senior Member
Jun 27, 2011
919
920
NY
sundergaming.com
Kernel Settings

Disabled by default. To enable execute the code next to terminal in adb shell or terminal emulator as root.
If you wish for it to be automatically enabled on boot you can create the file named in the boot section.
After creating this file you can still execute the terminal code to enable it immediately or you can just reboot and have the kernel enable it for you.

[DT2W/S2W]

S2W
terminal -
Code:
echo 1 > /sys/android_touch/sweep2wake
boot - Create /sdcard/fkSettings/fks2w

DT2W
terminal -
Code:
echo 1 > /sys/android_touch/doubletap2wake
boot - Create /sdcard/fkSettings/fkdt2w

Bottom Half Screen DT2W (Only allows you to double tap bottom half to turn screen on, instead of above.)
terminal -
Code:
echo 2 > /sys/android_touch/doubletap2wake
boot - Create /sdcard/fkSettings/fkdt2wps

S2Sleep
terminal -
Code:
echo 1 > /sys/android_touch/s2w_s2s
boot - Create /sdcard/fkSettings/fks2s

PWRKEY_SUSPEND (Turns off touch to wake when display is turned off with power button, reenables when turned on, useful for long idle periods, unaffected by sweep to sleep)
terminal -
Code:
echo 1 > /sys/module/qpnp_power_on/parameters/pwrkey_suspend
boot - Create /sdcard/fkSettings/fkpwrks

Touch Wake Timeout
terminal -
Code:
echo 15 > /sys/android_touch/wake_timeout
(15 is an example, include the number of minutes you prefer)
boot - Create /sdcard/fkSettings/fkwt with number of minutes to delay timeout (IE: text file with "15" inside)

[COLOR]
*This tweak is experimental and you use it at your own risk.
**Breaks gamma calibration apps.


terminal -
Code:
echo 1 > /sys/module/mdss_dsi/parameters/color_preset
boot - Create /sdcard/fkSettings/fkcolor

[WIDGETS]
*Thanks to @JsChiSurf

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

[App]
*Thanks to @casperpas

http://xdaforums.com/showpost.php?p=51682981&postcount=839
 
Last edited:

kashix

Senior Member
Mar 20, 2010
551
82
just giving my 2 cents, franco's kernel intention is to deliver a stable, optimized and battery efficient kernel for the n5, by baking in these S2W/DT2W features into the kernel, aren't you defeating the purpose? If I would want those features built in, I could have flashed Elementalx, Bricked etc. No offense but that's what occur to me, to others, it may be godsend. :good:
 
  • Like
Reactions: stanciuvlad11

PhantomGamers

Senior Member
Jun 27, 2011
919
920
NY
sundergaming.com
just giving my 2 cents, franco's kernel intention is to deliver a stable, optimized and battery efficient kernel for the n5, by baking in these S2W/DT2W features into the kernel, aren't you defeating the purpose? If I would want those features built in, I could have flashed Elementalx, Bricked etc. No offense but that's what occur to me, to others, it may be godsend. :good:

Elementalx and Bricked don't have Franco's custom hotplug driver, personally that's the main selling point of his kernel to me.
I don't particularly care for these features anyway though and just used this as a learning experience to build kernels.
(I am currently running this build though to play around with it, haven't noticed a huge difference in battery life myself)
 
  • Like
Reactions: NewNickker

durhamite

Senior Member
Jun 27, 2009
328
41
Durham, NC
I am used to flashing zips, I guess I am not advanced enough to flash img files. Can I get more detailed instructions on how to flash this?
 

tyrellcorpnexus

Senior Member
Jul 23, 2012
178
25
This is very tempting to try out.

Thank you!

---------- Post added at 07:57 PM ---------- Previous post was at 07:57 PM ----------

I am used to flashing zips, I guess I am not advanced enough to flash img files. Can I get more detailed instructions on how to flash this?

Flashify seems like it'd do the trick, if original Franco kernels are any indication.
 
  • Like
Reactions: durhamite

PhantomGamers

Senior Member
Jun 27, 2011
919
920
NY
sundergaming.com
I am used to flashing zips, I guess I am not advanced enough to flash img files. Can I get more detailed instructions on how to flash this?

Yeah Flashify seems like your best bet if you're rooted.
I might try and include zip releases in the future, sorry for the inconvenience.

Well, I tried it, and it works!
Thanks OP!

Tip: if u have FKU, put the img in the franco.kernel_updater bkp folder and restore if it were bkp. Most easy!

Sent from N5

Thanks for the confirmation! :)
 

Nastybutler

Senior Member
Nov 18, 2012
500
216
Anchorage
Welp. I'm having trouble getting the dt2w working. Here's what I'm entering in terminal emulator (after "su" of course) without the quotation marks: "echo 1> /sys/android_touch/doubletap2wake"

Nothing happens in the terminal after I hit enter, it just goes to a new command line, and if I turn the screen off it won't wake back up with a double tap. Did I enter the command in wrong?
 

PhantomGamers

Senior Member
Jun 27, 2011
919
920
NY
sundergaming.com
Welp. I'm having trouble getting the dt2w working. Here's what I'm entering in terminal emulator (after "su" of course) without the quotation marks: "echo 1> /sys/android_touch/doubletap2wake"

Nothing happens in the terminal after I hit enter, it just goes to a new command line, and if I turn the screen off it won't wake back up with a double tap. Did I enter the command in wrong?

The space between the 1 and the > is essential.
 
  • Like
Reactions: Nastybutler

tyrellcorpnexus

Senior Member
Jul 23, 2012
178
25
Gonna give this a whirl

edit: works great thanks so much! for subsequent kernels you release, will one have to put in that command every time?

Also so glad you carried over francos screen calibration too! you rule! And so glad you'll be supporting until (if) franco implements it.

What are you guys doing to put the device to sleep without hitting that button? I'd like to do without it all together :)
 
Last edited:

PhantomGamers

Senior Member
Jun 27, 2011
919
920
NY
sundergaming.com
edit: works great thanks so much! for subsequent kernels you release, will one have to put in that command every time?

Currently you need to do it every time you reboot but you can put a file in /etc/init.d to do it automatically.

Also so glad you carried over francos screen calibration too! you rule!

Yeah it's essentially a straight franco build so anything he implements will be included as long as he pushes it to github :D

What are you guys doing to put the device to sleep without hitting that button? I'd like to do without it all together :)

This isn't currently a feature of the kernel but I do agree that doubletap2screenoff and sweep2screenoff would be really neat.
I'm going to TRY to implement this myself but I wouldn't hold my breath because I'm not really experienced with this level of coding.
 

tyrellcorpnexus

Senior Member
Jul 23, 2012
178
25
Currently you need to do it every time you reboot but you can put a file in /etc/init.d to do it automatically.



Yeah it's essentially a straight franco build so anything he implements will be included as long as he pushes it to github :D



This isn't currently a feature of the kernel but I do agree that doubletap2screenoff and sweep2screenoff would be really neat.
I'm going to TRY to implement this myself but I wouldn't hold my breath because I'm not really experienced with this level of coding.

I see I see. Thanks again! Hitting that button one time to go to sleep is better than waking every time as well that is for sure!

I'm used to putting my device to sleep with a gesture on Activator with my JB'en iPhone 5. But I still have to wake it using home or lock button so I guess its still needed on that as well..

I don't think double tap to sleep would be the best, what about when getting text to fit the screen on Chrome and such? Double tap is a relatively common gesture once the device is awake.

Also, any way you can walk me through how to make sure it automatically kicks in on a reboot?

This is too good :)
 
Last edited:

Nastybutler

Senior Member
Nov 18, 2012
500
216
Anchorage
What are you guys doing to put the device to sleep without hitting that button? I'd like to do without it all together :)

I have the LMT Pie controls and one of buttons on my second row is a key that turns the screen off. So now, in theory, I'll hardly ever have to use the power button. :good:

---------- Post added at 11:47 AM ---------- Previous post was at 11:40 AM ----------

Currently you need to do it every time you reboot but you can put a file in /etc/init.d to do it automatically.

Would you be kind enough to walk noobs like me through how to set up that file? Right now I've got a note saved with the command that I copy & paste into the terminal each time now, but I can tell that's going to get old pretty quick.
 

PhantomGamers

Senior Member
Jun 27, 2011
919
920
NY
sundergaming.com
I don't think double tap to sleep would be the best, what about when getting text to fit the screen on Chrome and such? Double tap is a relatively common gesture once the device is awake.

I meant like the G2 does it, where it's only when you double tap on the notification or nav bar in certain apps etc

Also, any way you can walk me through how to make sure it automatically kicks in on a reboot?
Would you be kind enough to walk noobs like me through how to set up that file? Right now I've got a note saved with the command that I copy & paste into the terminal each time now, but I can tell that's going to get old pretty quick.

Trying to figure this out now, it would appear that the kernel doesn't actually have init.d support as my script isn't working... maybe I'm doing something wrong here.
 

tyrellcorpnexus

Senior Member
Jul 23, 2012
178
25
I meant like the G2 does it, where it's only when you double tap on the notification or nav bar in certain apps etc




Trying to figure this out now, it would appear that the kernel doesn't actually have init.d support as my script isn't working... maybe I'm doing something wrong here.

Ah, in that case, that'd be awesome!

No worries, appreciate your work thus far.

This is so great :highfive:
 

Top Liked Posts

  • There are no posts matching your filters.
  • 106
    Hey guys, this is just a version of @franciscofranco's kernel built with DoubleTap2Wake and Sweep2Wake from Bricked Kernel merged in.

    (By downloading and installing the kernel you assume all responsibility for any damage to your device, but I don't post images with the intention of this occurrence and test them to the best of my abilities.)
    Download:

    r57
    boot image - https://sundergaming.com/downloads/hammerhead/franco.Kernel/boot-franco.Kernel-r57-dt2w.img
    md5 - 9ba11b4c3f5cd963c69d54bbfd919fe1
    zip - https://sundergaming.com/downloads/hammerhead/franco.Kernel/zips/boot-franco.Kernel-r57-dt2w.zip
    *Color tweak is integrated since r30, check 2nd post for information on how to enable.
    Want a dedicated build for color tweaks because your boot animation isn't pretty enough? Build it yourself. Sources below.
    **Test builds posted throughout the thread.


    Kernel is for 4.4.1/2 since r19

    Installation:
    fastboot flash boot boot_name_img
    or
    flash the .zip in recovery

    Sources
    Kernel - https://github.com/PhantomGamers/hammerhead
    Ramdisk - https://github.com/PhantomGamers/ramdisk_hammerhead

    Credits
    @franciscofranco for his kernel - http://xdaforums.com/showthread.php?t=2508284
    @show-p1984 for the dt2w and s2w additions - http://xdaforums.com/showthread.php?t=2524557
    @flar2 for his on-the-fly color tweak, power key touch to wake suspend, and other general dt2w improvements. - http://xdaforums.com/showthread.php?t=2519607
    I do accept and appreciate any donations but I urge you to first donate to the amazing developers listed above for their work because my contributions are minimal and without them this kernel variant would not exist.


    Franco's original thread for reference only:
    Hi all.

    Currently does not work with recent CyanogenMod nightlies or any rom has uses CM sources as a base because they made underlying changes that are now incompatible with Kernels that don't follow their path.

    Installation:
    fastboot flash boot boot_name_img
    or
    flash the .zip in the recovery

    Changelog:
    http://kernels.franco-lnx.net/Nexus5/4.4/appfiles/changelog.xml

    franco.Kernel updater Free apk: http://xdaforums.com/showthread.php?t=1867127
    Nexus Display Control Free apk: http://xdaforums.com/showthread.php?t=2424467

    Got any questions that you couldn't find after searching?
    FAQ: http://xdaforums.com/showthread.php?t=2532422

    Disclaimer to moderators:
    Slight OT is fine, but when users decide to act stupid they should be dealt with with the appropriate means - its really annoying for me when OT turns crazy. Please put the warning/ban hammer anytime any of you think there's lack of respect and/or too much unwanted OT crap - but if it doesn't meet this criteria let the OT posts alone. Thank you.

    Cheers!

    XDA:DevDB Information
    franco.Kernel+DT2W/S2W, a Kernel for the Google Nexus 5

    Contributors
    PhantomGamers, franciscofranco, show-p1984, flar2
    Kernel Special Features:

    Version Information
    Status: Stable

    Created 2014-02-06
    Last Updated 2014-02-06
    26
    Kernel Settings

    Disabled by default. To enable execute the code next to terminal in adb shell or terminal emulator as root.
    If you wish for it to be automatically enabled on boot you can create the file named in the boot section.
    After creating this file you can still execute the terminal code to enable it immediately or you can just reboot and have the kernel enable it for you.

    [DT2W/S2W]

    S2W
    terminal -
    Code:
    echo 1 > /sys/android_touch/sweep2wake
    boot - Create /sdcard/fkSettings/fks2w

    DT2W
    terminal -
    Code:
    echo 1 > /sys/android_touch/doubletap2wake
    boot - Create /sdcard/fkSettings/fkdt2w

    Bottom Half Screen DT2W (Only allows you to double tap bottom half to turn screen on, instead of above.)
    terminal -
    Code:
    echo 2 > /sys/android_touch/doubletap2wake
    boot - Create /sdcard/fkSettings/fkdt2wps

    S2Sleep
    terminal -
    Code:
    echo 1 > /sys/android_touch/s2w_s2s
    boot - Create /sdcard/fkSettings/fks2s

    PWRKEY_SUSPEND (Turns off touch to wake when display is turned off with power button, reenables when turned on, useful for long idle periods, unaffected by sweep to sleep)
    terminal -
    Code:
    echo 1 > /sys/module/qpnp_power_on/parameters/pwrkey_suspend
    boot - Create /sdcard/fkSettings/fkpwrks

    Touch Wake Timeout
    terminal -
    Code:
    echo 15 > /sys/android_touch/wake_timeout
    (15 is an example, include the number of minutes you prefer)
    boot - Create /sdcard/fkSettings/fkwt with number of minutes to delay timeout (IE: text file with "15" inside)

    [COLOR]
    *This tweak is experimental and you use it at your own risk.
    **Breaks gamma calibration apps.


    terminal -
    Code:
    echo 1 > /sys/module/mdss_dsi/parameters/color_preset
    boot - Create /sdcard/fkSettings/fkcolor

    [WIDGETS]
    *Thanks to @JsChiSurf

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

    [App]
    *Thanks to @casperpas

    http://xdaforums.com/showpost.php?p=51682981&postcount=839
    16
    r23 out.

    Original build in OP, experimental color build here: https://sundergaming.com/downloads/hammerhead/franco.Kernel/boot-franco.Kernel-r23-dt2w-color.img
    md5 - 4cb1c1fadfb4f240465fb079484945ed
    16
    slide2wake / doubletap2wake widget(s)

    So, since I switched to using this version of franco kernel, since it allows me to get rid of another app, and module loads, etc, (thanks @PhantomGamers), to enable slide2wake (my preferred method), I figured I'd share a quick / simple little widget I put together for myself, to quickly enable / disable the slide to wake feature directly from my home screen.

    For those that don't like to mess with shell scripts, etc, and want quick / easy control of the feature, you might find the attached widget useful as well.

    I like to be able to quickly toggle this feature off when I know I'm off the charger for a while (over night for example, but won't be using the phone), so as to save battery life. Since I do this at random intervals as necessary, scripting or using Tasker/Locale doesn't quite meet my needs either.

    At any rate, wanted to share in case anyone else might find it of use as well :)

    Widget Icon Indicators:

    s2w_on.png
    s2w_off.png


    After initial install and adding to your screen, you will need to supply root privileges, and from that point forward, you should be good to go.

    EDIT: Added second widget for those who use "doubletap2wake" instead of slide/sweep. Same exact widget, just updated echos and toasts.
    11
    r20 released, color tweak build incoming.

    also included in r20 is a fix for sweep2sleep_only so it'll work if you have doubletap2wake enabled so if you have dt2w+s2w+s2s_only enabled you'll only be able to double tap to turn the screen on and sweep to sleep without it checking for sweep to wake.
    kinda confusing but hopefully i worded that right haha

    color tweak'd build - https://sundergaming.com/downloads/hammerhead/franco.Kernel/boot-franco.Kernel-r20-dt2w-color.img
    md5 - 506adc556c85e47a268eaf37e7f23268