yashsingh1/xdaforums huggingface dataset:
[Sony Xperia L] corphish:
This kernel targets to bring new features to kernel for this device, but it is limited to screen wake up gestures only. I plan to remove this limitation.
[Sony Xperia L] Lazynestor:
Does this kernel override the main thunderzap kernel ,settings?
[Sony Xperia L] cascabel:
I'm not sure i understand, but if you're asking if this has all the features of the latest tz kernel, i don't think so (no oc, for example). I haven't used this kernel for a while now since it gives me bootloops on the rom i'm using, so i may be mistaken.
[Sony Xperia L] SdtBarbarossa:
this kernel is CAF based.... not TZ based.... so yes it overrided TZ
[Sony Xperia L] corphish:
It does, however, it does have some of its goodness ;).

Like OC to 1.5Ghz, I/O Scheds etc.

I am planning to bring even more new features to it.

Bootloop? Which ROM?
[Sony Xperia L] cojocar.andrei:
Overclock, undervolt and wake gestures and it would be perfect...
[Sony Xperia L] corphish:
It has OC, upto 1.5Ghz

Uses Voltage Table of TZ. So if TZ is Undervolted, this one is too.
[Sony Xperia L] cascabel:
SlimLP and Glade Rom. [emoji4]

Thinking of switching back to a different rom since stock/default kernel has too few features (no oc, limited io scheds, limited tcp algorithm, etc).
[Sony Xperia L] corphish:
I think those ROMs are not CM based.

I have tested on CM and RR/

Maybe devs of those ROMs, make additional changes to kernel or ramdisk, but their threads' kernel source points to varun's repo. So it is hard for me to find what changes they make.

I will see to it.

And updating thread that this kernel is only for 'CM based roms'

Thanks for pointing :)
[Sony Xperia L] adil089:
Hey guys, so I think the reason why this or the thunderzap kernel will not work with slim LP or glade ROM is because they are AOSP based. While all other ROMs are cm based. So I think you have to make changes to the ram disk so that the ROM and kernel are compatible. Hope I helped guys and have a good day.
[Sony Xperia L] corphish:
Update

Changelog

Compatible with CM12.1 Beta 3 only.

Merged latest bug fixes.

Uses boot.img ramdisk of latest beta, does not uses AnyKernel for recovery key combo.

Added Music Mode.

Updated Philz Recovery to v6.59. (Thanks to SdtBarbarossa).

Better battery management. Keeping wake toggles off will now drain battery normally as it should have.

Some more under the hood stuff, which I dont remember as I had added them a lot earlier.

--CyanogenMod 12 will not support this--

Download Link Updated in OP.

Introducing my own app to control wake gestures. Music Mode toggle can only be controlled by my app unless you prefer coding. Head over here - Gesture Control 1.0

Please Rate or give your feedback for this app.
[Sony Xperia L] Luncer:
Hey corphish

Thanks alot for this kernel you rocked like always

But after I reboot my phone when I turn double tap to wake on my touch screen doesn't work

And just hard keys working

I try thunderzap controller and you gesture control app

What should I do?

Thanks again [MENTION=5822936]corphish[/MENTION]
[Sony Xperia L] ileeba7:
Hey, first thanks for your hard work. But after using this kernel for few days I must say that my phone does not go in deep sleep. That is best heard when I make phone call, the phone constantly make lock /unlock sound. Double tap to wake works as expected

Keep up the good work, cheers
[Sony Xperia L] corphish:
Its a known side-effect of this kind of drivers. Happens when dt2w is enabled on boot and the phone is let to lock after it boots.

To prevent it from getting non=-working touchscreen, just after it boots, make sure you unlock your device and keep the phone unlocked unless you see the set on boot notification.

What to do when you got screwed? Simply connect your phone to pc, run adb and then these commands -

adb shell <enter>
su <enter>
echo 0 > sys/android_touch/doubletap2wake <enter>
echo 0 > sys/android_touch/music_mode <enter>

Then again enable it from app and lead a normal life.

Yeah, it does not. However, phone battery consumption returns to normal when dt2w turned off.

I am working on a feature in my app to do the same automatically at night.
[Sony Xperia L] Luncer:
Are you fix this problem in next beta? [MENTION=5822936]corphish[/MENTION]
[Sony Xperia L] corphish:
Not really, I dont yet know its cause, but lets see.
[Sony Xperia L] cojocar.andrei:
Any news about the prox sensor wake up? This method would let the cpu go to sleep...
[Sony Xperia L] corphish:
No.

I am working on new gestures though.

Like Draw 'L' to unlock Xperia L
[Sony Xperia L] cojocar.andrei:
Thanks for working on it, but a method to wake the phone which doesn't let the cpu to sleep and that drains the battery isn't very appealing, I'm just saying... Thanks
[Sony Xperia L] corphish:
We got no choice, but will see still.
[Sony Xperia L] corphish:
Swipe gestures are done. Along with some other gestures, for example, signature 'Draw L' gesture.
[Sony Xperia L] corphish:
In the next update, compatibility with KitKat and AOSP based Android 5.1 ROMs will be added (see attachment). Along with CM12.

Currently, we are trying to make it as AnyKernel, if not, there will be 4 separate builds.

Edit : It will be anykernel.
[Sony Xperia L] SdtBarbarossa:
if you also use anykernel....will it work with philz? varuns tz doesnt work on cm11 and i cant the hell find out why not (no error messages) may you know wich compression method he uses?

btw: wich toolchain u use? ^^
[Sony Xperia L] corphish:
He uses XZ, to which I have recently switched to.

And its pretty mysterious how TZ4.16 gets flashed, but if I use the same zip, just replace the zImage, it does not flash (no errors from recovery).

One thing to understand whether its getting flashed or not while in recovery is -

If its getting flashed, it will take more time to complete.

If not, it will complete quickly.

I did fix that, by changing flash-kernel.sh

It now looks like

cd /tmp/
/sbin/busybox dd if=/dev/block/platform/msm_sdcc.1/by-name/boot of=./boot.img
./unpackbootimg -i /tmp/boot.img
./mkbootimg --kernel /tmp/zImage --ramdisk /tmp/boot.img-ramdisk.gz --cmdline "console=ttyHSL0,115200,n8 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x3F ehci-hcd.park=3 maxcpus=2" --base 0x80200000 --pagesize 2048 --ramdisk_offset 0x02000000 -o /tmp/newboot.img
/sbin/busybox dd if=/tmp/newboot.img of=/dev/block/platform/msm_sdcc.1/by-name/boot

Try this and hope it gets flashed.
[Sony Xperia L] SdtBarbarossa:
so basically instead of bootdevice you targeting platform directly? interesting....i will test that change ! thank you much (i will have a look on philz and look if i can make changes to get that fixed....you helped me mucb :) thx and keep up the goid work! )

btw wich toolchain you use?^^
[Sony Xperia L] corphish:
Linaro 4.9.3 with cortex A-15 optimizations (optimizations does not matter for us, we use krait)
[Sony Xperia L] SdtBarbarossa:
btw get this into your fstab:

/dev/block/platform/msm_sdcc.1/by-name/System /system f2fs ro,fastboot wait

as SECOND system entry...dont override the first or place it before the first....

for future purpose ;)
[Sony Xperia L] adil089:
Great to see you guys still pushing the boundaries of our beloved xperia L. Keep up the good work.:thumbup:
[Sony Xperia L] corphish:
Update B3

Changelog

Switched to AnyKernel configuration (thanks to thewisenerd for his help in the power key hax).

Compatibility with kitkat and all lollipop based ROMs.

8 new gestures, wholly written by me -

Swipe Up

Swipe Down

Swipe Left

Swipe Right

Swipe Forward Diagonally

Swipe Backward Diagonally

Draw 'L'

Draw 'V'

Fixed Music Mode to some extent, it now needs doubletap2wake on for functioning.

Switched to XZ Kernel Compression.

Added Dynamic Fsync v2 by faux123

Download link updated in OP

Important Note - You need to have the latest version of Gesture Control App to toggle this gestures, which can be found in this thread.

There is glitch in the app or kernel which I realized after uploading, when the app is run for first time after boot or install, the toggles done to special gesture don't stick. Just run the app next time and it will work flawlessly.
[Sony Xperia L] Luncer:
Do you fix that bug??

I mean that bug wich happens when we turn set on boot on screen doesnt work? [MENTION=5822936]corphish[/MENTION]
[Sony Xperia L] corphish:
No not yet. And its pretty common bug, seen in all devices with this dt2w.
[Sony Xperia L] cojocar.andrei:
Hi,

Can we have undervolt support in the kernel? It would help minimize the impact of the deep sleep... Also maybe a lower freq than the minimal one (384MHz) like 270MHz ... Thanks.
[Sony Xperia L] corphish:
Will try that
[Sony Xperia L] cojocar.andrei:
Also I want to report that the second core stays at 1.5GHz, disregarding the settings from trickster... Probably it's reported already... Thanks
[Sony Xperia L] SdtBarbarossa:
this behavior was seen at varuns TZ kernel also before TZ4.15 .... may you can have a look there corphish
[Sony Xperia L] corphish:
Can you or anybody else confirm whether the same happens on TZ4.16 or not.

Note- TZ4.16 only.

The thing here is, there is a 00sysinit init.d script bundled in TZ.

As for TZ4.15 and below, it came as regular boot.img package. Enabling init.d is nothing but ramdisk change, so the TZ boot.img must have init.d support for various scripts to work.

However, TZ4.16 comes as AnyKernel package, which changes the kernel without harming ramdisk.

Now beta 3 ramdisk does not support init.d. So according to this, those scripts shouldn't not be executed.

If the frequency is Normal in TZ 4.16, then Varun has done something really magical.
[Sony Xperia L] cascabel:
I can confirm tz 4.16 does NOT have the issue of the 2nd core not sticking to the set frequency.
[Sony Xperia L] Retrial:
btw which theme you use? :)
[Sony Xperia L] cascabel:
I'll pm you since this isn't related to the topic. [emoji4]
[Sony Xperia L] corphish:
OK, underclocking enters experimental stage. Check ss
[Sony Xperia L] corphish:
Okay!

I think 2nd core frequency over-riding is solved. Still testing though.

And the kernel will be updated today or tomorrow itself with the changes.
[Sony Xperia L] Luncer:
Sounds good bro

but what about Dt2w problem?
[Sony Xperia L] rostifaner:
yeah

love your kernel:good:
[Sony Xperia L] Agent_fabulous:
This is brilliant!

Great work! Double tap to wake works flawlessly. However, when a special gesture is active along with dt2w, the screen turns on with a single tap too (sometimes).

Suggestion - Is it possible to make the action of the gesture customizable? Something like the OnePlus One. As in, Draw a circle to launch camera, V for flashlight, etc. That'd be amazing!

Keep up the great work and stay fabulous :D
[Sony Xperia L] Luncer:
Any news about kernle update? [MENTION=5822936]corphish[/MENTION]
[Sony Xperia L] corphish:
I am very busy atm. So no words.

And about the 2nd Core frequency overriding issue - Not yet fixed.

I implemented intelliplug, it did look good initially, but after a long time, back to bad.
[Sony Xperia L] corphish:
Update 4.0

Changelog

Underclock to 286Mhz with undervolting.

Removed old governors.

Added new governors - i) Intellimm ii) Smartmax

Added IntelliThermal

Added MSM Auto-Hotplug

Download updated in download page as always.

This update should fix, if not, definitely improve 2nd core frequency over-riding case.

Let me know if it is fixed or not.
[Sony Xperia L] Luncer:
Good job brother

But what about double tap to wake bug?
[MENTION=5822936]corphish[/MENTION]
[Sony Xperia L] rostifaner:
Thank for the update bro)) I install it 2nd core frequency is fixed but i cant applied 286 mhz i install this fr-cy but its go back to 384:confused:
[Sony Xperia L] fancccc:
what is music mode?
[Sony Xperia L] corphish:
Set minimum frequency to 286Mhz.
[Sony Xperia L] rostifaner:
what programm you are using? coz i use TZcontrol
[Sony Xperia L] corphish:
Kernel Auditor.

TZ App should work as well.
[Sony Xperia L] cojocar.andrei:
I cannot set the voltages for different frequencies in trickster and also in kernel adiutor ... The option is not available ... Thanks.
[Sony Xperia L] cojocar.andrei:
Double tap active takes 20% of the battery in 10h. Can the deep sleep period be increased further? 10% in 10h would be acceptable... 20 is a little bit too much... Thanks
[Sony Xperia L] corphish:
It is not supported

I don't know. Further UC may improve things a lil bit, but don't expect decent battery life with wake gestures.
[Sony Xperia L] corphish:
Can anyone tell me about the screen freeze bug you were telling?

Was it that, screen would freeze after reboot and the screen was let to go off just after reboot? If that is so, its fixed probably. Need testers though for confirmation.
[Sony Xperia L] SdtBarbarossa:
Testing atm... Seems good so far... Will report back in a day
[Sony Xperia L] corphish:
I haven't yet released latest fixes :eek:
[Sony Xperia L] piyushkashyap216:
Battery drain issue with d2w
[Sony Xperia L] luqman@dr:
No network in rom primexperia 2.5
[Sony Xperia L] Luncer:
Yes Screen was freeze after reboot ansd didnt work

if you have any fix i like to test it
[Sony Xperia L] corphish:
Update 4.1

Changelog

1. Fix screen freeze issue.

2. Fully stable wake gestures.

3. Improvements in underclocked frequency scaling.

Thanks to [MENTION=5849326]Luncer[/MENTION] for testing

*Battery performance does not fall under wake gesture stability.

**Download updated in necessary place(s) as always.

***If you like my work, kindly use Gesture Control App to install/update kernel. Thanks.
[Sony Xperia L] Dr Grato:
hi [MENTION=2553665]corpish[/MENTION] im testing your kernel. its awesome the wake gesture. and smooth too. anyhow, im sorry if im at wrong thread, but since im using your kernel, wifi is not functioning. i didnt sure to attach logcat or not. but tell me if needed. i thought i mistakely flash it or anything. thanx btw.
[Sony Xperia L] therishabh:
works great with cm11 fxp......Recommended for cm11 over any other kernel
[Sony Xperia L] Shujath:
Hey bro! Does ur Zapdos kernel support fast charging like tz?
[Sony Xperia L] cojocar.andrei:
Hi corphish,

One question: can you add voltage settings for different frequencies? (meaning voltage adjust feature) to this kernel? Thanks.
[Sony Xperia L] corphish:
'Old' 4.2 update

Changelog

-Charger Control (It uses necessary driver hooks, originally added by Varun, the control driver is however coded by me). Supports USB fast charging only.

About this update

I had made this build long ago, but due to studies, I could not make a proper release. Hence this kernel is based off old kernel sources. Right now I am trying to make kernel from updated sources, but for some reasons, system does not boot. While I get over with it, enjoy this update, it has charger control which many of you wanted. To control it, use the latest Zapdos Kernel Control App (v2.0), if you already use it, no worries, just flash the kernel, open the app and under device specific section you will find it. I may have added some more things which I don't remember.

Notes

Everything seems to work when this kernel is flashed ( I was on 1st CM-12.1 nightly for testing), only thing is after flashing, it takes time to boot, like first boot after clean install (even app installation dialog will be shown). I however could not test what happens on 2nd and subsequent boots when on this kernel.

Downloads mentioned in OP as always
[Sony Xperia L] adil089:
Hey great job man. Just a suggestion for the next release, could you compile this kernel using the UBER toolchain. And thanks for your work.:thumbup::cool:
[Sony Xperia L] cojocar.andrei:
Thanks a lot. Can you please add voltage control as well for the next release? It would help a lot for increasing battery time....
[Sony Xperia L] kennyFF92:
Is it reasonable to flash it over cm12.1 beta 4?
[Sony Xperia L] newguyknowsnothing:
Tried and it works like a charm.
[Sony Xperia L] kennyFF92:
But does it delete all improvements made to ROM's kernel?
[Sony Xperia L] Lorenz15:
Yes coz its an own kernel.
[Sony Xperia L] lybxlpsv:
any plans for 1.7ghz like thunderzap?

having 1.7ghz really helps especially in PPSSPP and RetroArch.
[Sony Xperia L] corphish:
4.3

Changelog

1. Switched to Linaro 4.9.4.

2. Further UC to 188Mhz.

3. Userspace CPU Voltage control support.

4. Set SELinux to permissive permanently.
[Sony Xperia L] agentskywalker:
Working with 12.1 nightlies ?!!

Sorry for asking here as I didn't find a separate QA thread.

Does this Kernel work with latest official 12.1 nightlies ? :rolleyes:
[Sony Xperia L] cojocar.andrei:
Second core stays at 1512MHz whatever I set for cpu freq ... I'm on candy3.4. Thanks! And a suggestion and a question. Can you implement in the application that sets the wake parameter a time scheduler so the phone automatically switches to no wake gesture during a time period (night time). And the question would be how can I disable/enable double tap to wake through terminal console (which files do I need to change). Thanks a lot!
[Sony Xperia L] corphish:
Well init.d support is required to control 2nd core over-riding issue.

And to enable/disable dt2w via term, echo 1/0 respectively to

sys/android_touch/doubletap2wake
[Sony Xperia L] cojocar.andrei:
I have enabled the init.d support in your kernel. You need to modify the third line on which you construct the boot.img image file like this:

mkbootimg --kernel /tmp/zImage --ramdisk /tmp/boot.img-ramdisk.gz --cmdline "console=ttyHSL0,115200,n8 androidboot.hardware=qcom androidboot.bootdevice=msm_sdcc.1 user_debug=31 msm_rtb.filter=0x3F ehci-hcd.park=3 maxcpus=2 android.boot=permissive" --base 0x80200000 --pagesize 2048 --ramdisk_offset 0x02000000 -o /tmp/newboot.img

adding android.boot=permissive to the boot parameters ... What do I need to have in the /etc/init.d so the second core would take the freq parameter?

Thanks
[Sony Xperia L] corphish:
The necessary file is already added to etc/init.d

And there is no need of passing android.boot=permissive androidboot.selinux=permissive because selinux is already permissive in kernel.
[Sony Xperia L] cojocar.andrei:
Well I see in the 00sysinit script that a freq is pushed for cpu1 at line:

echo "1026000" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq

but the fact is that scaling_max_freq file for cpu1 does not exist. In the /sys/devices/system/cpu/cpu1/ directory I only have:

cpuidle

online

power

subsystem

uevent

files/directories...
[Sony Xperia L] corphish:
The cpufreq folder for cpu1 will appear only when cpu1 is online, you were trying probably when cpu1 was offline.
[Sony Xperia L] cojocar.andrei:
I have the kernel right now installed on my phone. Deep sleep is better I think with the doubletap2wake active, battery consumption while sleeping remained the same (~2%/hour). I guess there's nothing that can be done more. Probably this consumption comes from the display being active. With this kernel the rom that I'm on (candy34) seems to be a little jerky even if I'm on 1458MHz overclocked. With the default kernel from candy40 the rom seemed more fluid (and the default kernel has a default freq of 1188MHz). Do you have the latest sources of the kernels used by the cyanogenmod branch? Thanks a lot for the kernel.

A and it would be nice to have prox sensor wake up as well. With the doubletap2wake the consumtion of the battery while screen is off is ~38mA/hour, with only the prox sensor active this would be of 7-8mA/hour ... Anyway thanks again!
[Sony Xperia L] cojocar.andrei:
The jerkiness could come from the number of freq steps, I don't know. There are two many... I think they should be reduced at least in half... Thanks
[Sony Xperia L] corphish:
Pocket Mode integration into tap/swipe to wake has been started. Infact, initial bringup has been done, and its functional already.

Here's how it will work

: When pocket mode is enabled, it will use the proximity sensor to detect if its covered or not, i.e whether proximity sensor detects something within its proximity. If it is covered, it will disable the touchscreen, which should put the device to deep sleep and hence promoting battery life. If it does not, it will enable the touchscreen to listen for touches and usual routine for tap2wake will follow.

Note that Proximity sensor will keep on running all time when screen is off (and ofcourse when only pocket mode is enabled).

If enabled, this should be in favour of the following situations :

When device is in pocket.

When the phone faced is upside down.

If flip covers is used, it is probably the best add-on to the existing tapwake feature.

It would be great if I could get some testers to test this thing. Interested ones may PM me. Thanks.

Try using a higher minimum frequency (like 384Mhz).
[Sony Xperia L] Dr Grato:
Do u upload the latest version or i need to PM u to get it?
[Sony Xperia L] SdtBarbarossa:
see op :-O
[Sony Xperia L] Dr Grato:
Hahaha. Yeah of course. ?
[Sony Xperia L] Oscarm99:
Is it available in the current version? If it is, how to enable it?

BTW awesome kernel!!
[Sony Xperia L] corphish:
Update 4.5

Changelog

1. Compatibility with Android 6.0.

2. Updated sources to first latest CM12.1 and then CM13.0 sources.

3. Switched to GCC 4.8 to fix various issues with newer sources (like App installation would fail when compiled with Linaro 4.9.4).

4. Initial bringup for Pocket Mode.

Use ZD Kernel Control app to control pocket mode, which is updated too.
[Sony Xperia L] adil089:
Very nice to see this kernel update. Good job bro
[Sony Xperia L] AndreiSant:
Great kernel , my XL made 29k on antutu , with my config
[Sony Xperia L] Snp Mania2:
AMAZING KERNEL FOR HD GAMING

for me this kernel are so great, . I have test to playing some a HD game online on MM, cm12.1, KK with enjoy, little a laging face.. all about it i'm always use this kernel.. thank you :) :) (Y)
[Sony Xperia L] thedemon786:
i be grateful if you can give us a JB version too :D
[Sony Xperia L] Agent_fabulous:
Amazing work mate! Often, triple tap launches camera on CM13. Is there anyway to avoid that?
[Sony Xperia L] Aenadon:
Love the kernel, love the many settings! However, just a small (cosmetic) problem: I'm on ZD4.5 and the app tells me I don't have ZD and wants to download ZD4.1. Now that doesn't affect me in any way ? just reporting that little bug here
[Sony Xperia L] kennyFF92:
Hi, i installed this kernel on cm12.1 official and found that the maximum CPU frequency is set only for the first core, i'm using zapdos app
[Sony Xperia L] Muhammad amine:
Amazing work... Good job bro:laugh:
[Sony Xperia L] Muhammad amine:
When I restart my phone The ZD app is resetting all the applied sitting ???????? what can I do
[Sony Xperia L] Aenadon:
Go to the ZD app settings and enable "Set on boot", shortly after boot the ZD will re-apply all the settings.
[Sony Xperia L] Muhammad amine:
I have enabled 'set on boot' but the problem didn't solve
[Sony Xperia L] Aenadon:
Hmm...then try and flash ZD in recovery again
[Sony Xperia L] Muhammad amine:
Nothing solved :(:(
[Sony Xperia L] Muhammad amine:
Why when I tap on Zapdos updater it shows this?
[Sony Xperia L] Lorenz15:
Which ROM are you using?
[Sony Xperia L] Aenadon:
I am using CM12.1 and experience the same problem, see my post above:
[Sony Xperia L] Muhammad amine:
I'm using stryflex v4.0 ROM... And the problem just came back again :(:(
[Sony Xperia L] corphish:
That is because ZD Kernel got 'rebranded' in its latest update, which the app does not identify.

So it thinks you are on a different kernel, and shows that option, even if you are on ZD Kernel.

Updater needs to be updated.
[Sony Xperia L] kennyFF92:
And what about the max frequency not working on the second core? Is it a known bug?
[Sony Xperia L] Ru Morton:
This is nice kernel with ZD Control App,

But is there any code terminal emulator for custom charger control ?

Like TZ something like this echo 1 > sys/kernel/charger_control/enabled

Bcause i want to change it to 1600ma.

Thanks ..
[Sony Xperia L] eddiebigmouth:
I am experiencing audio stuttering/skipping during playback from my bluetooth headphones, the. Headphones work fine through my other devices. The skipping stops for some time after a reboot but reoccurs again after some time. Anybody else having the same issue? ( i am running RR 5.6.4 with ZD version 4.5)