yashsingh1/xdaforums huggingface dataset:
[HTC Butterfly] davidjumani:
I had that governor on my old Motorola Atrix 2 and i could squeeze seven and half hours of screen on time with wifi on after tweeking it. Also I've noticed that when i set the ondemand parameters like sync_freq and optimal_freq and powersavebias they don't stay but revert back to their original values after a while. Also only the first core can get underclocked while the rest when active go mostly at 1.7Ghz like i mentioned before. Otherwise its a really awesome kernel and super smooth even better than the one i had before. I'm using greenify and its working pretty well but i think that a ktoonservative kernel will be a major boost to this kernel as it can increase the battery life a lot. I'm still really grateful for your kernel and really appreciate your work :)
[HTC Butterfly] praveen7682:
it would be great if we can have some donations for kairi for his efforts and contribution...
[HTC Butterfly] kairi_zeroblade:
its because of Variable OC implementation..it will stick that ways..i will just remove an OC version for next release as we all seem to agree about the same thing to get more battery life..i will try your reference for ktoonservative..no promises but i will just try..also regarding ondemand settings i got them worked out already..at the same time..those issues arise because of the closed source binaries mpdecision and thermald..

here is the case..if you disable mpdecision..hotplug goes crazy..if you disable thermald powersaver and other frequency locking functions also go wacky..if you disable both, expect large drains..also if you try disabling pnpmgr and adaptive all goes hell.. :D

[MENTION=429421]praveen[/MENTION]

Thanks for the concern.. :D
[HTC Butterfly] davidjumani:
Alright kinda understand now. Thanks for everything :) Expecting good news :fingers-crossed:
[HTC Butterfly] kairi_zeroblade:
yup no worries will test it later on..just updating my github after that i will merge that and test..

update 1-14-2014:

unfortunately compiling it gives errors as it was based on an old version of ondemand which is already deprecated and has been patched/updated on the Google 4.3 source..many parameters has been added and changed thats why conflicts occur when compiling..i tried using the newer version and sad to say ktoonsez added many "hooks" that are specific to Touchwiz ROMS either way that are specific for Samsung devices..so in short no ktoonservative..will try to do something on my free time..

update 1-18-2014

will release an update in a few hours time..updates to ondemand..dynamic writeback and cache management features(test WIP..gives me a bit more juice now especially when idle..)..revert OC as we all agree on getting more battery life..cleaned a few misprints on log..kinda feel lazy as no-one reports HERE on xda but on other sites i see reports..well unfortunately i wont support any activity outside XDA..i'm thinking of getting a new device instead..i see 30+ downloads in all but not a single soul yet no-one is reporting here yet no-one is grateful enough to have a custom kernel..as i would like to share about porting any other 4.3 ROM's from the HTC One well i think i won't even be thanked for that contribution either..

BTW been using this build on Viper One so far it has the best battery life and customizations..Maximus HD is also fair but lacks in what i need..

update 1-22-2014

- someone has been "kanging" me in github.. :D you know who you are.. :D

- Need testers for x920e models..if you need help what i need is your cooperation..

update 1-23-2014

- yesterday, i contacted [MENTION=1331268]santod040[/MENTION] and asked him regarding the sweep2wake for our touchpanels..since i am having issues on my s2w port..well good things turned out..hopefully we get it working..

- i will try to release something within the next few days..and will introduce a new cpu governor..it is a workaround against the pnpmgr and mpdecision from setting values automatically to ondemand..
[HTC Butterfly] kairi_zeroblade:
New builds up!!

- new governor

- exfat updates from Samsung

- some LMK updates/fixes/enhancements(if you experience battery drains do report this is a test commit to LMK(both 4.3 and 4.2.2 builds))

- cache maintenance routines that save up more juice..

- some wakelock fixing..

tuning script for Smartdemand:

#!/system/bin/sh
# AIO init script by me(kairi_zeroblade)

# Smartdemand tuning
echo 95 > /sys/devices/system/cpu/cpufreq/smartdemand/up_threshold
echo 50000 > /sys/devices/system/cpu/cpufreq/smartdemand/sampling_rate
echo 0 > /sys/devices/system/cpu/cpufreq/smartdemand/io_is_busy
echo 4 > /sys/devices/system/cpu/cpufreq/smartdemand/sampling_down_factor
echo 10 > /sys/devices/system/cpu/cpufreq/smartdemand/down_differential
echo 70 > /sys/devices/system/cpu/cpufreq/smartdemand/up_threshold_multi_core
echo 3 > /sys/devices/system/cpu/cpufreq/smartdemand/down_differential_multi_core
echo 1026000 > /sys/devices/system/cpu/cpufreq/smartdemand/optimal_freq
echo 810000 > /sys/devices/system/cpu/cpufreq/smartdemand/sync_freq
echo 85 > /sys/devices/system/cpu/cpufreq/smartdemand/up_threshold_any_cpu_load

basically its the same as ondemand tunables..its based on an upstream version with some enhancements..so nothing new..this is to prevent mpdecision and pnpmgr locking down ondemand parameters causing an unlikeable drain..

4.2.2 kernel

4.3 kernel

enjoy and give feedback..
[HTC Butterfly] kairi_zeroblade:
I am opening the x920e test kernel to the public..unfortunately Bassie cannot assist since he is having some driver issues on win8..i need to gather feedback if you x920e guys want a custom kernel..once feedback becomes acceptable i will push it upstream on par with the x920d builds that i release..

grab the x920e test kernel from here

TIA..

edit: can someone report regarding the latest build's performance/battery life??how's the new CPU Governor doing to you??
[HTC Butterfly] Bassie39:
It is the European x920e
[HTC Butterfly] doki_93:
testing it right now,

phone is booting properly, everything seems to work.

reporting performance and batterylife later.
[HTC Butterfly] bluheart:
Good work buddy. Its a nice kernel. Working fine even on my ROM! :D

Thanks
[HTC Butterfly] webdepp:
This build is very smooth as long screen is in. But when I wake phone from standby it gives me reboot. Going back to build3.

FYI, I'm on BOA V7.1 rom
[HTC Butterfly] praveen7682:
dude as usual its working fine on my miui rom...thanks for your continuous support...
[HTC Butterfly] kairi_zeroblade:
ok thanks good to know it works..kindly report any issues if there will be one..also can you dump me a last_kmsg so i can check if there's a need for a few adjustments..TIA

i will now OFFICIALLY SUPPORT x920e aka Deluxe_U and Deluxe_UL(european and chinese) variants

Thanks..

Delete all the scripts under /system/etc/init.d and reinstall my kernel..there are scrips that disrupts my suspend/resume functionality..my kernel will do its own job in maintaining all parameters set properly..

i have been using my builds on just stock odexed ROM w/o a single hick-up and been getting splendid battery life..like 2% drain overnight, more than 4 hours screen time with powersaver on Smartdemand..

no prob..as long as there will be good people like you i will never get tired..

will post a new build for all the supported devices later tonight or early tomorrow so keep posted.. :D
[HTC Butterfly] doki_93:
Performance and Batterylife is pretty much the same as on stock kernel.

how do i get this dump?
[HTC Butterfly] kairi_zeroblade:
Minor update:

- reverted a single/small commit for the 4.3..

- Official upstream builds for the the Deluxe_U/UL..welcome to my build list.. :D

- add 64bit capabilites to Krait..

- some voltage logic tuning..

x920e update

x920d update

op updated as well..

will build a 4.2.2 kernel later on as i am merging it to my Samsung Galaxy Mega kernel.. :D

just a heads up to x920e users..please read OP before complaining..this is not a world-record breaking phone smashing kernel..so before you whine, i suggest you use your eyes and also your brains to absorb my message in the OP..(no sarcasm..)

Thank you very much!!
[HTC Butterfly] davidjumani:
I did what you said but even in the 5th build it reboots when i turn the screen off. Seems like only the 3rd build is stable. I'm running stock 4.3
[HTC Butterfly] juginkrebs:
Can you upload for x920e 4.2.2 please :D
[HTC Butterfly] kairi_zeroblade:
i think you are the only one experiencing it..is anyone experiencing the same issue??build 3 and beyond uses dynamic cache management through the screen on/off action..so if you have scripts that can interfere with the said function then please delete them..

let me think about it..

edit: GPE is rebooting randomly..will just post the ViperOne how to..

edit: ok so upon hearing from a source..our 4.4.2 kitkat updates are almost done..and ETA for roll-out is early march..so i won't spoil anything til those dates..kernel source is ready and patched will just wait till we have our OTA's droppin.. :D lets just enjoy our 4.3 update til it last.. :D
[HTC Butterfly] praveen7682:
GPE Rom

I am still having issues with newroots GPE Rom..there is no sound..But otherwise the rom is pretty smooth..Any help is highly appreciated..
[HTC Butterfly] Deadly Sto(R)m:
unfortunately x920d has random reboots after last build.
[HTC Butterfly] kairi_zeroblade:
the GPE unit has a different audio chip than the ordinary HTC One..it also has a different Panel used..that makes things difficult same goes for my port of the 4.3..random reboots and no sound as well..

i never had any issues on my side..i am just using stock OTA ROM..delete init.d scripts as they might interfere with the dynamic cache management feature..i won't revert that as it is very helpful and useful..also be more specific in reporting issues i suggest you state what ROM are you using..dump me a last_kmsg from the reboot so i can check if its kernel or ROM related..so far using this on ported ViperOne and Stock OTA ROM..and never gave me hickups..

can anyone else report the same incident??@bluheart do you experience the same issue??AFAIK this will only occur on boa rom..
[HTC Butterfly] bluheart:
No no, I never got any reboots, even on the slim ROM I made.

This kernel is giving fantastic off-screen and standby battery life.

On Pure stock, overnight battery drain has been 12-14% on 3G, while this kernel the drain is only 5% overnight, thats amazing!
[HTC Butterfly] praveen7682:
Sorry to report I too have continuous reboot in build 4&5..I switched back build 3...
[HTC Butterfly] kairi_zeroblade:
what rom are you using??Bluheart's ROM as stated never gave a reboot..i too on just plain OTA never had issues..

IF you are using other ROMS aside from the mentioned like BOA then do delete the contents of the init.d folder..my kernel will now hence-forth use dynamic parameter management based on screen activity..so if there are stuff thats been changed due to init.d scripts then you will for SURE have issues..those features are part of the power saving feats and will stay with my build..i am adding up a few stuff so the best is to check you ROM for those scripts that could possible mess the kernel activity up..

i will release a new build tonight with dynamic LMK management feature..

edit: Finally got sweep to wake to work!!!!!! just fixing a few minor things..
[HTC Butterfly] praveen7682:
[MENTION=1371975]kairi[/MENTION] today I flashed the wwe version of 4.3 stock Rom and flashed the latest 4.3 build but still I got random reboots...I will give a try again tomorrow...I am not sure what's the issue...
[HTC Butterfly] Deadly Sto(R)m:
I had had reboot when screen was off. Then i returned back to old kernel.
[HTC Butterfly] kairi_zeroblade:
how much do you undervolt??do you have any other tweaks??how come you guys have issues as i do not have any and has been sitting stable with those cache management features..

can you give me a last_kmsg so i can check if kernel panicked due to the cache management or due to excessive undervolt..i will release a build later on with Sweep2wake..finished some minor locking issues yesterday and as expected s2w+s2s is working perfectly for our panels..next is the dt2w.. :D
[HTC Butterfly] kairi_zeroblade:
Updates:

- Fixed the random reboot issues..(My apologies)

- Added a few patches from ARM..

- Added a few more stuff to SmartDemand made it even better to coexist with Ondemand..

- A few enhancement to writeback..

- Fixed a small derp from Code Aurora..

- Most of all SWEEP TO WAKE/SLEEP.. :D i included a few fixes of my own and Great Thanks to Zarboz for the help for the coding..

- This is a release for 4.3 only..

to Enable Sweep to wake/sleep:

# s2w+s2s control
echo 1 > /sys/android_touch/sweep2wake;

Note: control values are just 1 and 0..

You are aware of the fact that there is a bit of overhead by using Sweep2Wake therefore do not come here and complain about your battery life..

DLXUB1

DLXU
[HTC Butterfly] juginkrebs:
when came it to 4.2.2 ?
[HTC Butterfly] davidjumani:
I've noticed that even when s2w is disabled the battery life is a little less than before :( Any way to fix that or release a build without it???
[HTC Butterfly] praveen7682:
I have been using the latest build on my stock 4.3 and it's really good..no random reboots so far...as usual smooth like butter....battery drains little faster compared to last build but that's ok for me...WiFi connects well...I tried to enable s2w using the above instruction but I got an error while saving...I am not sure what I am doing wrong...keep up the good work dude...you rock....
[HTC Butterfly] davidjumani:
install trickster mod. go to specific-> screen wake. you can change it there
[HTC Butterfly] kairi_zeroblade:
i use script to enable it..never had issues..

My reply:

even if you turn s2w off the screen irq is still awake..unless i really remove the whole s2w code things will get back to usual..i am using a build without s2w(no sweep2wake codes included on the build) and things are normal as before..
[HTC Butterfly] kairi_zeroblade:
no asking for ETA's please..please do understand the rules for development..

EDIT: Initial support for Deluxe_J variant(AUkddi/HTL21)..

grab your test kernel here..

EDIT: Currently re-writing sweeptowake to make it a bit less aggressive and more responsive..hope to release a new update in a few days time..i am gonna scrape the double tap to wake since it requires the proximity sensor to be always ON check for nearness and darkness thresholds..in short will require more power..but who knows..i will see what i can do if i get more free time..as much as possible i would like to simplify the sweep to wake rather than bulking it up..
[HTC Butterfly] bluheart:
Wow kairi u r too active buddy
[HTC Butterfly] kairi_zeroblade:
I love guys who are also working hard for a release on our phone..like you.. :D at quite some time i feel lazy but WTH.. :D

will release a build today with DOUBLE TAP TO WAKE..yes..no joke..i re-created DT2W since i don't want to be the last one inline for the development who does not even know how to create/implement it.. :D

it can work together with S2W+S2S..i rewrote the whole S2W code so that excessive drains can be prevented and also so that we are not obliged to use the pocket wake protection(logic thanks to Zarboz) only DT2W needs PWP feature and i have tested it to be perfect(traveled with my phone in pocket with PWP and DT2W on and had no issues with accidental waking-up).. :D also i am exposing some parameters so that you can fully take advantage of these features..currently writing the Home2Wake if i can still squeeze it.. :D

here's a teaser..they work together unlike on the DNA which they just pick one to work.. :D i just used the same variables(naming convention) so that apps can see the option to trigger them on/off(to make stuff easier to tweak instead of me asking for app support which in my dreams will not happen as i am not even a recognized dev(seniority))..currently working on Home to wake and Fixing Double Tap to sleep.. :D

here's my overnight drain..

if you are not getting the same then you, your phone, and your settings must have a problem..

By using the "extra" features i baked in..you AGREE that you are to have an extra drain and i am not responsible for those..you are not to run here and complain like a baby..you asked for some extra stuff and i tried to get it for you..i am doing this for FREE and i am not in any contract to you device owners that's why you do not own me, my time and what my mind has..

edit: a bit of literature.. :D
[HTC Butterfly] praveen7682:
Awesome kairi...untill you are there we feel life for our device...Thanks for your awesome support...
[HTC Butterfly] vithudu:
[MENTION=1371975]kairi[/MENTION]

Thank you for s2w+s2s function in your kernnel production 7 for 4.3. I used TricksterMOD to activate s2w+s2s, it run smoothly until rebooting, I have to active it again with tricksterMOD. I understand that you can activate s2w+s2s by editing script with 0 and 1.

My problem is that I can not locate this script .

Can you help??? :crying::crying::crying:

---------- Post added at 11:19 PM ---------- Previous post was at 11:13 PM ----------

Sory for stupid question, I found that script.

Thank you again kairi:laugh::laugh::laugh::laugh:
[HTC Butterfly] kairi_zeroblade:
you can add it in the script that i provided in /system/etc/init.d or you can activate it using apps..

My apologies guys..i overslept.. :silly:

Will release the builds in a few hours time..

edit:

Updates are here!!!

- re-wrote S2W and DT2W..no joke!! its only a single kernel release no variants or what ever..:D

- DLX_J: Fixed Vibrator hardware initialization..

- DLX_U, DLXUB1, DLX_J: HSIC Patches..

- This is a 4.3 release only..will build the 4.2.2 later on for DLXUB1 only since noone from the other device wants to cooperate..

Grab 'em on the next post..

Consider the effort spent in bringing you the extra features you want..i do not want anybody whining about this and that..i have been seeing 30+ downloads for every build and not a single user wants to report or even thank me here..its like i am always talking to myself..

Read OP regarding support..i will not repeat it once more..if i ever see my builds on other sites its the END..i do not like people who always take credit for other people's work..

About DT2W:

- Simple implementation and most likely straight forward to use..though you need to keep the PWP to be always ON to prevent accidental wakeups..moreover you are expecting more battery overhead..i scraped Double tap to sleep since i have issues when playing games..when you need to tap screen it turns off..lolz..bummer..

Tunables:

- double_tap_barrier_y = these are coordinates of the screen at which you can trigger DT2W by default i set it 2200 which is the scope is about an inch above the the capacitive keys..(capacitive key part also triggers DT2W..i have to fix the x coordinates as well in the future)..values less than default will have more scope in the screen..

- double_tap_duration = rate at which the TS will start accepting the 1st tap input..default is 150..lesser the value of course faster response

- double_tap_threshold = rate at which how fast the second tap be will be accepted..default is 200..lesser the value the faster you have to tap to get the screen triggered on.

Kindly give feedback regarding the release(OP Updated as well..)

EDIT: If you are experiencing reboots just make sure you set Smartdemand as default CPU Governor..this getting crappier by the second..
[HTC Butterfly] praveen7682:
[MENTION=3637908]kairi_zeroblade[/MENTION] dude This is awesome....i just flashed the kernel and changed the governor to smartdemand....everything looking great...i activated s2w+s2s and dt2w function using trickstermod and its working like a charm...you are rocking..the forum is likely to have you....thanks....
[HTC Butterfly] ricky886:
Nice kernel for htl21

Try it later

Thanks:good:
[HTC Butterfly] kairi_zeroblade:
currently uploading cleaner builds..for the 3 devices..darn..well thanks to you people who i enjoy serving and who appreciate the effort.. :D

so does the DT2W look sexy?? :D

Long time no hear!!! uploading new builds for all the devices..vibration is now fixed for japanese variants.. :D

tip: for those people who use sense 5 toolbox..you can use the gesture mod to assign the horizontal swipe to turn-off screen when using DT2W.. :D

New Builds here:

DLXUB1

DLXU

DLXJ

Enjoy the release!!!! i hope you like the s2w+s2s+dt2w all in one package.. :D
[HTC Butterfly] vithudu:
Thanks kairi,

New production 9 gives better antutu benchmark scores than production 7. Hope for better. :laugh::laugh::laugh::laugh:
[HTC Butterfly] bluheart:
I agree with praveen7682, this version is super smooth.
[HTC Butterfly] Bassie39:
Running oke on my e version today test battery usage still can't get stw and dt2w etc to work on stock Rom

21137

On antutu benchmark
[HTC Butterfly] davidjumani:
The new build is super smooth and awesome :D :D Best build yet and I'm sure it can only get better :D :D :D Just one doubt i have is to what values to set the ondemand governor parameters to, to get more juice??? Thanks

And also kairi you can remove the question in the faq about why no s2w ;)
[HTC Butterfly] ricky886:
hi~

This is my undervolt setting

Hope can help

(192-702) - 700

756 - 725

810 - 737

864 - 750

918 - 762

972 - 787

1026 - 800

1080 - 850

1134 - 875

1242 - 900

1296 -925

1350 - 937

1404 - 962

1458 - 987

1512 - 1012

1566 - 1037(<testing on this freq)
[HTC Butterfly] kairi_zeroblade:
that's way too low..do not go overboard -150mv for undervolt..instability may occur..

use trickster mod app..
[HTC Butterfly] Bassie39:
Sow must be rooted to get it working working on it now
[HTC Butterfly] Deadly Sto(R)m:
These settings forced device to reboot :confused:

What is best choice to save more battery? Undervolt or underclock?
[HTC Butterfly] Deadly Sto(R)m:
Thank you for s2w, s2s and dt2w features. I can use them clearly...
[HTC Butterfly] kairi_zeroblade:
because that's way too low..i only undervolt as much as -125mv..else too much will make your phone unstable..hard to wake up and GPS is finicky..

I removed Smartdemand for a while and will try again at my free time..also an advice to get more battery switch to WCDMA signal..my battery is much better with WCDMA than on GSM

Edit:

- i am testing a new Wifi driver from Broadcom..if it does not have issues at all i will include it on next build..

- will introduce the in-kernel mpdecision by showp1984 with a few modifications to make all stock related stuff still work..(it looks like i am leaving my comfort zone..lolz)-- this cannot be achieved without downgrading the ondemand governor..

- when you report issues please follow this format..report ROM in use..drop me a last_kmgs/logcat/dmesg depending on the case..and can you tell me what were you doing when the issue occured(particularly what apps are you running)..

- i will be more focusing right now on AOSP so i will be rarely seeing through this thread..things are already stable so far..i am just improving it little by little..
[HTC Butterfly] Deadly Sto(R)m:
I will give a chance to wcdma. Maybe it helps to save battery more.
[HTC Butterfly] ricky886:
all +50mv and try again
[HTC Butterfly] Deadly Sto(R)m:
I am trying +50 mv from your frequences. How can i measure how much volt my device uses?
[HTC Butterfly] ricky886:
Different CPU different volt

So you should try more

or try now stable volt-25mv

if unstable

918 775

1026 825

1134 875

1242 912

1350 937

and try

Hi kairi~

Can you add fastcharge in next version

NFC may be have some bug, i don't sure is the kernel problem or rom problem

I am trying to flash android 4.4 with sense 5.5:silly:

android 4.4 can't boot with this kernel

4.3 is no problem:fingers-crossed:
[HTC Butterfly] juginkrebs:
hello kairi can you add the follow futures in the next update

-More RAM

-Better Performance

-Better Battery save

-More Governors and schedules

:cowboy:
[HTC Butterfly] Bassie39:
Fast charge and volume wake would also be great