Hey guys, welcome to this thread. I know there are many fans of franco.Kernel and many fans of wake gestures. This combines the best of both.
This kernel is simply a modified version of the official franco.kernel with added wake gestures developed by flar2
Features:
- Always sourced from the latest franco kernel build
- Only added feature is wake gestures
Downloads:
- Boot IMG: http://1drv.ms/1ExnFf5
Installation:
- Flash in TWRP (using the img flash option)
- Flash Manually: fastboot flash boot boot.img
Credits:
@franciscofranco /@amjc14/ @flar2 / @Cl3Kener / @DespairFactor
Source: https://github.com/alan94jimenez/modified-shamu
Enjoy!
Latest Version Base: r28
--
Manual Values:
Sweep2wake:
disable = 0
sweep right = 1
sweep left = 2
sweep up = 4
sweep down = 8
Add them together. For example, to enable sweep2wake in every direction:
echo 15 > /sys/android_touch/sweep2wake
Sweep2sleep:
disable = 0
sweep right = 1
sweep left = 2
sweep left or right = 3
eg: enable sweep2sleep left
echo 2 > /sys/android_touch/sweep2sleep
Doubletap2wake:
enable = 1
disable = 0
eg: enable doubletap2wake:
echo 1 > /sys/android_touch/doubletap2wake
For the noob, what is wake gestures? Double tap to wake is considered a wake gesture?
Nice job bro :thumbup: :thumbup:
JManekia said:
For the noob, what is wake gestures? Double tap to wake is considered a wake gesture?
Click to expand...
Click to collapse
I added it to the OP, but it is stock double tap to wake, sweep2wake, sweep2sleep, and flar2's DT2W
JManekia said:
For the noob, what is wake gestures? Double tap to wake is considered a wake gesture?
Click to expand...
Click to collapse
Sweep 2 wake, sweep 2 sleep and double tap to wake
What is the chance of getting Multirom compatability.
Would you be willing to make a zip? Not to be a pain in the a**!
iainaaldrich said:
Would you be willing to make a zip? Not to be a pain in the a**!
Click to expand...
Click to collapse
I can look into it, but if you are on the latest TWRP you can flash .img files now. So you should be all good to go
gamewarden234 said:
What is the chance of getting Multirom compatability.
Click to expand...
Click to collapse
Don't ask for features that aren't finished
Cannot get sweep to sleep working and tried kernel adiuator but that does not work.
What needs to be done to activate it?
daleski75 said:
Cannot get sweep to sleep working and tried kernel adiuator but that does not work.
What needs to be done to activate it?
Click to expand...
Click to collapse
I'm using the elementalx app to set wake gestures and it is working fine. Let me try kernel adiuator real quick
DespairFactor said:
Don't ask for features that aren't finished
Click to expand...
Click to collapse
my bad. Had no idea. Works great on the kernel I'm using curently. Sorry about that.
Excellent! Is the kernel compatible with flar2's Wake Gestures implementation?
Sorry, I thought you meant the regular wake gestures. I would have to look into it for you.
Phamwich said:
Excellent! Is the kernel compatible with flar2's Wake Gestures implementation?
Click to expand...
Click to collapse
Just installed the apk and I can confirm it is working :highfive:
Thanks! flar2's Wake Gestures implementation and app would be fantastic. Swiping to activate the flashlight is pretty convenient possibility with flar2's implementation.
EDIT: I'll give it a shot!
Phamwich said:
Thanks! flar2's Wake Gestures implementation and app would be fantastic. Swiping to activate the flashlight is pretty convenient possibility with flar2's implementation.
EDIT: I'll give it a shot!
Click to expand...
Click to collapse
I had never tried it, but it is pretty sweet! I like how you can set shortcuts for the gesture from the app.
flar2's Wake Gestures seems to work perfectly. On previous ROMs, I did have issues of ear touches while in calls, so I did have to install flar2's S2W Phone Call Disabler and that seemed to solve the problem.
Right now, I'm pretty happy running stock 5.1 rooted with FK r21, and the Wake Gestures support was a nice addition to keep me satisfied until custom ROMs iron out things out with 5.1. Great work!
Phamwich said:
flar2's Wake Gestures seems to work perfectly. On previous ROMs, I did have issues of ear touches while in calls, so I did have to install flar2's S2W Phone Call Disabler and that seemed to solve the problem.
Right now, I'm pretty happy running stock 5.1 rooted with FK r21, and the Wake Gestures support was a nice addition to keep me satisfied until custom ROMs iron out things out with 5.1. Great work!
Click to expand...
Click to collapse
Glad to hear it! And thanks for pointing me to his app.
Hi could you please make a flashable zip of this ? The reason I'm asking is that I have installed Rastapop (based on Android 5.1) as a secondary ROm and I would prefer to flash a kernel there. I've tried Flashify,but all it does is it flashes boot.img to the primaryROM thus making me lose MULTIROM access. Thanks
Related
Sweep2sleep
This is a kernel module for sweep2sleep. The new motion gestures are nice, but there is no way to put the phone to sleep with gestures. To make it worse, the power button placement is awkward. It bothered me so much, I've built this module. It is based on @show-p1984's sweep2wake2.
Swipe your finger from right to left over the navbar and your phone will go to sleep.
I will update this soon, with some improvements and also to work with GPE ROMs.
Download:
Sweep2sleep module for Sense 4.4.4 stock kernel (thanks @lyapota)
http://forum.xda-developers.com/attachment.php?attachmentid=2970798&d=1413289508
Sweep2sleep module for Sense 4.4.3 stock kernel (2.22 base)
Sweep2sleep module
Older version:
s2w_mod
Installation:
Flash zip in recovery
Un-installation:
While in recovery, do:
Code:
adb shell rm /system/lib/modules/s2w_mod.ko /system/etc/init.d/40s2w
Requirements:
In order to load automatically at boot, you need init.d support and busybox. If you have a custom ROM it should work.
For stock users, you'll need to insert the module manually:
Code:
su
insmod /system/lib/modules/s2w_mod.ko
Source:
Module was compiled against Nexus 5 kernel source with m8_defconfig. Some symbol CRC checks had to be hexedited in the compiled module.
s2w_mod.c
Thanks for mod
Out of interest, has it changed since the previous version? Will keyboard swipe still turn screen off?
Nice mod! Downloading now. Will test shortly
Basil3 said:
Out of interest, has it changed since the previous version? Will keyboard swipe still turn screen off?
Click to expand...
Click to collapse
I changed it, now it's only active directly over the navbar. Before it was almost the whole bottom third of the screen.
flar2 said:
I changed it, now it's only active directly over the navbar. Before it was almost the whole bottom third of the screen.
Click to expand...
Click to collapse
Great. Thanks for this, awesome mod!
Nice work flar, thank you.
Did you have any luck with RW protection?
Hell yes, glad to see you here flar :good:
Sent from my HTC One_M8 using XDA Premium 4 mobile app
Great work as always mate!
Looking forward to getting this loaded up tomorrow when I get my m8!
Sent from my HTC One using XDA Premium 4 mobile app
My issue with swipe to sleep on the m7 was that the home button minimised the app you had open. And I didn't always want to do that. This has basically increased my love for this handset 10x over. No need to touch that damn stupidly placed power button... AT ALL.
Thanks!!
Sent from my HTC One_M8 using XDA Premium 4 mobile app
Ah man that's awesome it works still on the nav bar! Was just wondering if there would be a good option for shuttin off the screen. Get mine tomorrow! This should work on sprint m8 right? OneXL kernel still working great btw haha
~S-Off LTEvo; Always Solid Viper4G Latest;
cpu0/1: 1.5ghz ¦ 384mhz
Just want to say the Google play edition kernel has released on HTCDev a few moments ago
Let the development rocks!
I know on the N5 this slide/tap to wake features drained the battery? Does this implementation drain the battery as well. But the way, Love your work.
Sent from my Nexus 5 using XDA Premium 4 mobile app
Curious about that too, since NiN was saying he didn't like it in n5 because of that, but said n5 handles it different in some way.
~m8whl modded stock
2.265 Max ¦ 300 Min
ondemand
row
This doesn't drain battery, the gesture is used when the screen is on.
The N5 has bad drain from sweep2wake, not sweep2sleep. The lcd panel has to stay powered on to recognize touches when the phone is sleeping.
Thanks, makes sense.
Sent from my Nexus 5 using XDA Premium 4 mobile app
flar2 said:
This doesn't drain battery, the gesture is used when the screen is on.
The N5 has bad drain from sweep2wake, not sweep2sleep. The lcd panel has to stay powered on to recognize touches when the phone is sleeping.
Click to expand...
Click to collapse
So how does HTC's implementation of dt2w work, screen off, moves, like at all, in pocket even, the screen is on to respond to tap or gestures?
MassStash said:
So how does HTC's implementation of dt2w work, screen off, moves, like at all, in pocket even, the screen is on to respond to tap or gestures?
Click to expand...
Click to collapse
That seems to be it. You have to move the phone before the gestures work.
I actually don't like that, because I can't doubletap when it's sitting on my desk. That's how I'm used to checking my phone.
flar2 said:
That seems to be it. You have to move the phone before the gestures work.
I actually don't like that, because I can't doubletap when it's sitting on my desk. That's how I'm used to checking my phone.
Click to expand...
Click to collapse
Yea, I like the idea.... But not sure if it works out. Cuz then it's on anyway when moving around in your pocket wasting battery life yea? and could be turned on by your leg if you have some thinner workout shorts on, or in a breast pocket of your favorite flannel tee haha. I've heard that complaint already, I just grab from sides, raise a lil/giggle, then dt2w
Should this work on the Gpe version? Just tried it but nothing happened.
Sent from my HTC One_M8 using Tapatalk
Code:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
For TouchWiz 4.2.2 only, based on SGH-I257M_NA_JB_Opensource_Update1
Features:
- SELinux permissive mode
- Undervolt (default on for lower frequencies)
- Fast charge
- Max screen off frequency (default on @ 702mhz)
- Sweep2sleep (default on, swipe from right-to-left at the bottom of the screen to turn off)
Download here (Flash in recovery)
Configuration:
Fast charge:
(can also use Trickster Mod or other apps)
Code:
echo 1 > /sys/kernel/fast_charge/force_fast_charge to turn on
echo 0 > /sys/kernel/fast_charge/force_fast_charge to turn off
Undervolt:
Use Trickster Mod or look in /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
Max screen off frequency:
Code:
echo 1 > /sys/kernel/screen_limit/enable to turn on
echo 0 > /sys/kernel/screen_limit/enable to turn off
echo FREQUENCY > /sys/kernel/screen_limit/max_frequency
Valid frequencies for S4 Mini:
384000 486000 594000 702000 810000 918000 1026000 1134000 1242000 1350000 1458000 1566000 1674000 1728000
Sweep2sleep:
Code:
echo 1 > /sys/power_actions/mode to turn on
echo 0 > /sys/power_actions/mode to turn off
Sweep2wake, doubletap2wake (experimental!)
Code:
echo 2 > /sys/power_actions/mode (sweep2wake only)
echo 3 > /sys/power_actions/mode (sweep2sleep, sweep2wake)
echo 4 > /sys/power_actions/mode (doubletap2wake only)
echo 5 > /sys/power_actions/mode (sweep2sleep, doubletap2wake)
Source: Github
..
Flashed successfully on MJ7 and seems to work just fine. :thumbup:
Sent from my GT-I9195 using xda app-developers app
Really looking forward to this kernel...
Mitko said:
Flashed successfully on MJ7 and seems to work just fine. :thumbup:
Sent from my GT-I9195 using xda app-developers app
Click to expand...
Click to collapse
All the features works ok? How's battey life?
Very nice features, i will definitely try this kernel!
I would love to see bln though since samsung is still not convinced notification leds are a good thing...
Should we use the same zip for both supported s4 mini variants?
Thanks for your work!
Doubletap2wake? OMG! Is it working?
lipalok said:
Doubletap2wake? OMG! Is it working?
Click to expand...
Click to collapse
on a big smartphone, which has no physical home button and where it's not that easy to reach the power button (for example htc one)
I can understand the benefit of this feature.
But why would you like to sacrifice battery for something that could be also done by just pressing the home button (or power button) ONCE?
junkyde said:
on a big smartphone, which has no physical home button and where it's not that easy to reach the power button (for example htc one)
I can understand the benefit of this feature.
But why would you like to sacrifice battery for something that could be also done by just pressing the home button (or power button) ONCE?
Click to expand...
Click to collapse
Yes, you're right, it sounds good if there would be an ability to enable/disable this feature in settings. For me it's only a memorial of my times with Nokia.
Initial post updated, kernel #2 is up, stock undervolt + fast charge fixes.
junkyde said:
on a big smartphone, which has no physical home button and where it's not that easy to reach the power button (for example htc one)
I can understand the benefit of this feature.
But why would you like to sacrifice battery for something that could be also done by just pressing the home button (or power button) ONCE?
Click to expand...
Click to collapse
Not sure why you felt the need to post this haha. First of all, I agree, which is why only sweep2sleep is enabled by default. However, everybody's usecase is different and to be blunt, it's none of your business how anybody uses their phone. I could mention broken hardware keys, or about my close friend who is unable to put pressure on his right hand to press down on physical keys. I also enjoyed porting and rewriting parts of the code and simply decided to share my work.
Tried flashing minikernel-2.zip Status 7 installation aborted gt-i9195L
EDIT: nevermind.. tried 2 more time, flashed succesfully! testing now
EDIT2: sweep to sleep works great! but double tap 2 wake doesn't work after typing in terminal with su
echo 4 > /sys/power_actions/mode
or
echo 5 > /sys/power_actions/mode
rob43 said:
Not sure why you felt the need to post this haha.
Click to expand...
Click to collapse
I just quoted a user who seemed to be very excited about this feature, so I asked him why this is so important for him. He gave me an answer and everything is fine. I just wanted to understand why he would like to use this feature.
rob43 said:
However, everybody's usecase is different and to be blunt, it's none of your business how anybody uses their phone.
Click to expand...
Click to collapse
Okay sir, I will never ask someone about how they use their phone, because I understand that this is something very private and intimate
very interesting kernel
how about battery life with new features?
App for kernel features
Because i don't like to use the terminal I created a quick app to enable/disable kernel features.
Supported atm:
Fastcharge & Sleep/Wake options
Apply settings on boot
Not supported (use other apps for this):
Undervolting, frequencies,...
All credits for these functions go to rob43, I only made the interface.
Have fun!
If someone is interested in the source just ask and I will put it on github.
@rob43 Is OTG possible? I mean without external power. Sorry for asking it on almost every thread, but no developer has answered to my request. BTW, are you going to release an AOSP based kernel?
Here's my OTG issue related thread :
http://forum.xda-developers.com/showthread.php?t=2661580&page=4
Hi Rob!
Thanks for sharing your work with us! I'm using this kernel with stock ML4 for a full day now and here's what I experienced:
1) sweep2sleep: works absolutely fine.
2) sweep2wake and doubletap2wake: these features only work for a short while after the screen is off. I'm guessing this is while the device is no in deep sleep.
3) performance: compared to stock kernel it feels a bit laggy. What governors are supported and which one is default?
4) wifi: there is an issue with turning on wifi when coming from stock. Maybe a different driver? Don't know, but I experienced the same with f4ktion kernel last week.
superkoal said:
Hi Rob!
Thanks for sharing your work with us! I'm using this kernel with stock ML4 for a full day now and here's what I experienced:
1) sweep2sleep: works absolutely fine.
2) sweep2wake and doubletap2wake: these features only work for a short while after the screen is off. I'm guessing this is while the device is no in deep sleep.
3) performance: compared to stock kernel it feels a bit laggy. What governors are supported and which one is default?
4) wifi: there is an issue with turning on wifi when coming from stock. Maybe a different driver? Don't know, but I experienced the same with f4ktion kernel last week.
Click to expand...
Click to collapse
Is there a stock kernel anywhere that I could go back to if things were to go wacky, want to do this to the gf phone but if the wireless acts up she will freak haha
Can you mod it for i9192. Thanks for your helps.
What about GT-I9192?
sajid0786 said:
What about GT-I9192?
Click to expand...
Click to collapse
I9192 is version 2 sim of s4 mini. I hope it has OTG, MHL and fast charge.
does it include the Battery drain patches present in SilviuMik kernel? does baseband and compilation number change? i alredy have a flagged knox because i flashed CWM (i dont really know what are the issues with having knox flagged) my baseband is I9192UBUCOC2 and my compilation number is KOT49H.I9192UBUCOC2.
can i use this kernel?
So I've tried several versions of Radon and Agni as well as several custom roms and I can't seem to get consistent double tap 2 wake or sweep gestures. I have tried using Kernel Adiutor, Ex Kernel Manager and flar2 wake gestures app. I've verified that the gestures are enabled on each boot. Sometimes it will work but most of the time it doesn't. I checked my hardware and my kenzo has a focaltech touchscreen with a tianma panel. Any tips, help or insight would be greatly appreciated.
Update: so i read on the wake gestures app forum here on xda to not have any other apps control the wake gestures. After turning them off in kernel adiutor and just using the wake gestures app everything seems to be working as intended.
Are you setting dt2w or sweep to wake on full or half? It only worked on half for mine.
governmentissuejoe said:
So I've tried several versions of Radon and Agni as well as several custom roms and I can't seem to get consistent double tap 2 wake or sweep gestures. I have tried using Kernel Adiutor, Ex Kernel Manager and flar2 wake gestures app. I've verified that the gestures are enabled on each boot. Sometimes it will work but most of the time it doesn't. I checked my hardware and my kenzo has a focaltech touchscreen with a tianma panel. Any tips, help or insight would be greatly appreciated.
Click to expand...
Click to collapse
Use sweep up to wake, it works consistently, doesnt' interfere with phone calls and is much less likely to accidentally wake up the phone in your pocket.
Double tap is the worst gesture imaginable.
I have them both set and even sweep is inconsistent
A Sad Napkin said:
Are you setting dt2w or sweep to wake on full or half? It only worked on half for mine.
Click to expand...
Click to collapse
Set to half but issue persists
flar2 said:
Use sweep up to wake, it works consistently, doesnt' interfere with phone calls and is much less likely to accidentally wake up the phone in your pocket.
Double tap is the worst gesture imaginable.
Click to expand...
Click to collapse
Tried setting just sweep up to wake and same issue sometimes it works but mostly it doesn't
Hi everyone, I'm looking for a rom with at least these 3 functions combined: the double tap on the screen off to wake the device, screenshot with 3 fingers, and the traffic indicator . I tried several roms, like RR, Viper, pure Nexus, but none has the 3 functions. If anyone could tell me if that exists ...
Thx very much ?
you can get double tap to wake by tweaking kernel.
Three finger screenshot is already present in these roms.
Traffic indicator is also there.
dean [email protected]# said:
you can get double tap to wake by tweaking kernel.
Three finger screenshot is already present in these roms.
Traffic indicator is also there.
Click to expand...
Click to collapse
Do you know whitch kernel to take and how to activate this function?
dominator or guvyer
vikman53 said:
Do you know whitch kernel to take and how to activate this function?
Click to expand...
Click to collapse
RR + Radon kernel works best.
Well, I'll try one of those
thx guys
RR and kernel Radon and Kernel Adiutor works fine
Hi
Anybody knows if is it possible to have this feature ? maybe installing some apk mod ....
Tks
m0sett1 said:
Hi
Anybody knows if is it possible to have this feature ? maybe installing some apk mod ....
Tks
Click to expand...
Click to collapse
Check this, go to Motion control => Pick up => Wake up device
If available in your device then might be similar.
Using third-party app is not recommended, can cause battery drain.
kilroystyx said:
Check this, go to Motion control => Pick up => Wake up device
If available in your device then might be similar.
Using third-party app is not recommended, can cause battery drain.
Click to expand...
Click to collapse
tks for your reply, but the p20 lite seems to be not include this feature
mine does have the feature... under motion control
SeerePetrova said:
mine does have the feature... under motion control
Click to expand...
Click to collapse
he's asking for the tap to wake up feature and not the pick to wake up feature
touns_j said:
he's asking for the tap to wake up feature and not the pick to wake up feature
Click to expand...
Click to collapse
He replied that his phone seems do not has the feature pick up to wake up device.
And yours, does it have this feature?
kilroystyx said:
He replied that his phone seems do not has the feature pick up to wake up device.
And yours, does it have this feature?
Click to expand...
Click to collapse
sorry but no , seems you didn't read the OP, he's asking for the tap to wake up feature which the p20 lite doesn't have instead he got referred to the pick up the wake feature which again wasn't what he asked about in the first place and so when he replied his phone doesn't have that feature he was referring to the tap to wake up feature
m0sett1 said:
Hi
Anybody knows if is it possible to have this feature ? maybe installing some apk mod ....
Tks
Click to expand...
Click to collapse
The only one I used a long time ago was KnockOn (you can find it on XDA) but I don't know if it would work on this device.
Or perhaps going for Tasker, maybe it has something to allow wake on tap.
Just for the kick, is the feature important for your daily use? I personally find the raise to wake more functional
There is no DT2W option. Just FP sensor for that.
P20 Lite does not have touch to wake. Only stock alternative is pickup to wake.
i find this, https://www.xda-developers.com/enable-double-tap-to-wake-on-huawei-and-honor-devices/ . anyone try it?