yashsingh1/xdaforums huggingface dataset:
[ZenFone 2 Android Development] cangcan:
latest release is awesome.. and i love conservativex governor, eventho running on lower cpu clocm all the time, device is still snappy and doesnt lag or stuttered.. wondering if this device support hotplug governor such as pegasusq or zzmove as in i9300.. :p but i think all cores are alway activated and never seen even 1 core deactivated, maybe zf2 does not support hotplug features.
[ZenFone 2 Android Development] crpalmer:
Well, you'd also need to add a touchboost driver to every governor that you have added to your kernel.

Frankly, though, there is absolutely nothing wrong with how ASUS has implemented this. They provide software that doesn't give you root access and doesn't allow you to change governors. They provided a power HAL that works with the only governor that you are able to run on stock software. It is the simplest and safest design you can have and one that doesn't add extra code, extra cost to develop and QA to provide functionality that they wouldn't even use.

If you really want it to work, you can always write your own touchboost driver in the kernel and then write your own power hal to use it.
[ZenFone 2 Android Development] TheSSJ:
Yeah, been there already: http://xdaforums.com/showpost.php?p=61973780&postcount=326

I am fully aware that encountering problems while using functions exclusively available to root users shouldn't be reported to Asus and that the stock design is sufficient. Still one has always the freedom to ask politely if there is something that can be done.
[ZenFone 2 Android Development] ansebovi:
waiting for your kernel for CM12.1 :) ,hope u will do for it
[ZenFone 2 Android Development] TheSSJ:
Well, there's that - first I want to pull the kernel out of Beta status. Honestly I have a small to do list, too, which I want to have implemented for the stock users. Then, with some luck, I want to try my kernel on the CM build (of course I would need to edit some init files for insmodding all modules). Maybe I am extremely lucky and just the ramdisk needs to be replaced.
[ZenFone 2 Android Development] Techronico:
So, just for clarification, because I'm learning, and want to see this device thrive...

1. They are treating touchboost as a device with proprietary drivers just like if they came out with some special fancy microscope or finger print scanner hardware on the phone?

2. Is touchboost a super important thing that if I don't have it, will make me feel like I have an EVO 3D with out 3D, due to having a custom kernel (I know they have 3D with custom kernels now, but I was one of the dums who waited for someone to hack it way back in 2011).

Thanks for all your hard work guys! Still excited for this devices possibilities! I hope this post isn't hijacky, it's not meant to be. It's about this kernel...
[ZenFone 2 Android Development] aziz07:
Here is some Geekbench scores in addition to the previous Antutu and Vellamo Browser benchmarks:

p.s: CM12.1 scored much lower as you can see on xda homepage. Screenshot is reddish because I run Chainfire Lumen eye strain app set at 5500K.
[ZenFone 2 Android Development] crpalmer:
ASUS implemented touchboost as a feature of the interactive governor. The fact that it doesn't work or other governors is irrelevant to them because they do not offer any other governors. That does make their code crappy or make them stupid though.

One alternatige way to implement it is as a separate driver (like a fancy microscope) and if theSSJ wants to make it work for all governors, that's the path he needs to take. It is still irrelevant to ASUS. Ditto the fact that permissions don't work when you switch back and forth between governors. That's not something they support and they have no reason to do so (or even to have noticed that it doesn't work for that matter).
[ZenFone 2 Android Development] Techronico:
So TheSSJ can do it but what kind of money do we need to throw at him? (Joking...unless he wants it)

Maybe he is still looking for a method to do it that makes him comfortable with the quality.
[ZenFone 2 Android Development] aziz07:
+1 :good: I tried to aggressively force 3 cores off with a script and screen would flash from time to time. Give him time and money to work on some quality coding xD p.s: I already donated small amounts.
[ZenFone 2 Android Development] TheSSJ:
And of course I'm grateful for that :)

I found maybe a good workaround. I'll patch the touchboost path of the .so file to a unified location (let's say /system/.touchboost or /cache/.touchboost and will modify interactive and yankactive to check that file instead :) this implies that the user needs to install the patched file though..

Can't promise the implementation of touchboost in other governors though,my skillset for that is rather limited
[ZenFone 2 Android Development] Ntrasme:
I believe only Interactive and yankactive use touchboost atm.
[ZenFone 2 Android Development] levizx:
Is v45 and v46 identical? They look the same except for missing test_nx.ko in v46.
[ZenFone 2 Android Development] ansebovi:
hmm,then i will pray that,..u find everything u need for stock stable very soon and easily make one for CM12.1 :) all the best
[ZenFone 2 Android Development] TheSSJ:
Look at post 3,there is a Changelog
[ZenFone 2 Android Development] levizx:
Yeah, just found out BCompare had wrong settings. Sorry.
[ZenFone 2 Android Development] allasca:
*support this thread for all my life becouse iam already using cm12*
[ZenFone 2 Android Development] aziz07:
Huh?:confused:
[ZenFone 2 Android Development] crpalmer:
FYI, if you want to fix the permissions for the touchboost flies when you change back to interactive, you need to fix the kernel to generate uevents for governor changes:

https://github.com/CM-zenfone2/andr...mmit/ea97e93f1068e78eb00b94c15d91e74a5bbfc117

https://github.com/CM-zenfone2/andr...mmit/f75f27570b08980a2c97d5215b3f0321ba7dc728

and then update your ramdisk to handle the uevent

https://github.com/CM-zenfone2/andr...mmit/11fd45b9c6014df315b91a3df2b63d7d8d02b9a8

Note, that the stock may or may not have all the other governor paths in the uevent files. You may find that you want to add other paths for other sysfs tunables to the uevent file as well. For CM, that's all we need.
[ZenFone 2 Android Development] TheSSJ:
Some update on the work I am accomplishing right now:

I have created my own implementation of yankactive governor with hotplugging techniques. At the moment the cores seem to be shut down and turned on correctly. I have installed early suspend and late resume handlers to trigger the offline/online work when the screen turns off/on (just like the screen off/on script which is also lurking around these forums :) ).

If my tests go well, I will push my new governor out (named cpufreq_thessjactive).

Of course I will tune the governor a bit as some values are hardcoded at the moment (number of cores, minimum cores to left enabled, etc).

Ondemandplus, adaptive and zzmove governors are halted at the moment. They all lead to screen of death as soon as deep sleep is entered and I need to find out what these governors are doing that others aren't.

Next item on my roadmap is the touchboost issue. Then the kernel can be declared stable
[ZenFone 2 Android Development] Ntrasme:
Don't forget to dynamically change frequency. Previous versions make touchboost 1833 mhz instead of 1333 (for 1.8ghz version). Thank you for making this phone a beast!
[ZenFone 2 Android Development] Abd121:
Can someone tell me why would I want zRam on a 4GB device?
[ZenFone 2 Android Development] Ntrasme:
ZRAM is implemented and you activate it through Init.d script in download section. If you have 4gb, then you do not need ZRAM. Just don't install the script.
[ZenFone 2 Android Development] TheSSJ:
In the OP there is everything relevant explained:
[ZenFone 2 Android Development] aziz07:
[MENTION=2388665]TheSSJ[/MENTION], do you think its possible to cache files e.g. 500-1000Mb PDF in ZRAM or any other Workaround? They take more than 30s to open so if they are cached in ZRAM, they will open instantaneously. Then we can flush them via terminal maybe. RAM has ~100 000x faster access time in the order of a couple of nanoseconds.

I know its easily possible on PC with RAMDisk software and I get about 25 000 Mbps Read/Write on an i7 4770K.

At least, if this can be achieved, we could reach 800+Mbps R/W on a cellphone. Faster than a regular desktop SSD and saving eMMC write cycles. Its also better for battery life since the phone is less busy.
[ZenFone 2 Android Development] TheSSJ:
Well, I read somewhere (while banging my head why ZRAM wasn't working back then), that you can mount and format the ZRAM partition to ext4 and mount it as normal device. If you then place a PDF file (copy, don't move it !!!) the chances should be high to speed up the loading by a good amount of time.

assuming swap isn't activated on /dev/block/zram0 at the moment

Like:

mkfs.ext4 /dev/block/zram0
mount -t ext4 /dev/block/zram0 /somedir

Then copy the pdf to /somedir and test

If I find the article, I'll send it to you
[ZenFone 2 Android Development] aziz07:
Thanks, sounds good but I tried the command and it says mkfs.ext4 is not found.
[ZenFone 2 Android Development] TheSSJ:
Ooops, used the linux os command :P

make_ext4fs is the correct one
[ZenFone 2 Android Development] crpalmer:
Suspend and resume are going to be triggered for entering and exiting "deep sleep". To do things in screen on/off in the kernel, you would need to change the display driver to notify other drivers on state change.

On another note, have you considered that ASUS works with Intel and Intel might know whether or hotplugging cores saves battery and if it did then they might have implemented that themselves?
[ZenFone 2 Android Development] aziz07:
Yes, you should get in touch with them (ASUS&Intel). Its the only way for us to have a better, more stable and more supported phone. I already joined ASUS-Intel Beta program and they sometimes do Zenfone 2 drafts etc xD Intel give huge discounts on their products for testers and developers ; even if you simply work at a computer store like BestBuy. I got the 4770K CPU for 199$CA while it was 349$CA in stores back in Jan 2014, I just had to fill BestBuy's store info and work ID etc on Intel website. Asus will ask you if you are able to develop Android systems and apps (I ticked no, sight) and to provide proof or earlier work in this area. You can still join without this knowledge thought as beta a tester.

http://www.asus.com/zentalk/forum.php?mod=viewthread&tid=11202

http://www.asus.com/zentalk/forum.php?mod=forumdisplay&fid=39

http://www.asus.com/zentalk/forum.php?mod=viewthread&tid=13350&extra=page=1
[ZenFone 2 Android Development] TheSSJ:
Not quite correct. I read out dmesg continuously for testing if the phone was calling my es/lr handlers even if a wake lock was keeping the phone awake(cable wakelock). Answer is: yes, they get called as soon as the screen turns off (might change to the "stop input" level to get it called a little earlier). Also while hearing music or calling this should be the case(haven't tested,will do tomorrow).

So your statement could refer to a previous Implementation of early suspend handling, but I got the proof that the cores are shutdown even if a wakelock is active while the screen is turned off meaning no deep sleep

Fortunately people are subject to errors or not thinking about all cases which can occur while using a Smartphone. Why not switching off two cores when calling or listening to music (while screen is off)? There is thread at xda discussing if hotplugging really helps. One of the outcomes was,that in some cases less energy is consumed when keeping 2 cores active to accomplish tasks instead of using only cpu0. Also our phone model implements a hotplugging mechanism right before going to deep sleep,still this can be optimized.

I got the impression that you seem to try to diminish the work the community has achieved with this kernel?

Of course this will

never

reach a level a la boype or faux123, but still it offers more options than the stock Implementation.

We will see if my governor will help saving some juice-if not,then sh*t happens,but at least I tried and learned a lot (especially that not every kernel method is documented :) )
[ZenFone 2 Android Development] aziz07:
Push, Push, Push :D

I never had a single freeze or reboot with Stock ROM since this awesome phone was released except when using Amplify (Also delayed incoming calls and notifications) that I paid and removed soon after. For sure, I won't be the one typing a 2000 word text document on a CM based rom after the many times it deceived me.
[ZenFone 2 Android Development] TheSSJ:
New build v47 is out with my new hotplugging governor based on interactive (thessjactive).

When the screen turns off, 2 of the 4 cores are automatically disabled. When turning the screen on all cores are activated again. This could be especially useful when having music or FM radio activated and the screen turns off. Also when calling you don't need quadcore power for some background tasks. Inspired by this guide, thanks to [MENTION=5929281]bloof[/MENTION] : http://xdaforums.com/lg-g2/help/test-t3032171

tests on the field will prove or disprove my setup, also everyone if free to choose from one of the other governors of course.

Edit: Hm, will just leave this image here in order to await v50 (have a look at the compiler info, not the sleep states ) :)
[ZenFone 2 Android Development] mr_gourav2000:
There is also v 50 available for download.

Why you mention only v 47?
[ZenFone 2 Android Development] ImjuzCY:
What about hotpluging when screen on?
[ZenFone 2 Android Development] Ntrasme:
Does touchboost work for you? TheSSJactive's touchboost isn't working.

Edit: The phone freezed when I switched from SSJactive to Yankactive to Interactive.
[ZenFone 2 Android Development] aziz07:
Found this about Intel and ARM lol U.S Federal Trade Commission (FTC):

"Intel has agreed to provisions that will open the door to renewed competition and prevent Intel from suppressing competition in the future."

ARM is at Intel's mercy now and soon google :laugh: Look how 14nm and 10nm will make it to the next Zenfones. ARM is still at the old 28nm tech.

He uploaded v50 later. Really? You complain because there is a new version lol
[ZenFone 2 Android Development] TheSSJ:
Because you were too fast...I have updated the changelog with the newest version now

Uhhh, maybe I am still new to this hotplugging thing? :p

I will work on the governor a little to analyze the load on the CPUs and turn on/off CPU cores accordingly.

Concerning touchboost - I will explicitely mention this when I got it to work on all interactive based governors - it's not easy as you have to deal with a hardcoded string in surfaceflinger.

Hm, tried the switching governor thing and everything worked for me...

Sometimes people are faster than one's Internet bandwidth allows :D
[ZenFone 2 Android Development] aaronoh:
Does anyone know if this kernel fixes the battery jump issue (randomly jumping from a certain % to 100% when charging)?
[ZenFone 2 Android Development] ansebovi:
awesomeeee :) thanks

well samsung already using 14nm in exynos 7420,Snapdragon 810 is using 20 nm,..snapdragon 820 may use 14nm as rumors...maybe u just read some oldest news
[ZenFone 2 Android Development] TheSSJ:
I assume this is a problem with your device? Something with the production charge which went terribly wrong or so? To be honest the only posts speaking about this issue came only from you (or maybe I just overread others).

Why not sending the device to Asus and request a repair? My device doesn't have this jump problem...
[ZenFone 2 Android Development] ansebovi:
well there are bunch of ppl with his problem :)

most recovered by recalibration of battery
[ZenFone 2 Android Development] aziz07:
Intel already had 14nm Tablet CPUs since last year: http://ark.intel.com/products/83610/Intel-Core-M-5Y10-Processor-4M-Cache-up-to-2_00-GHz & http://www.theregister.co.uk/2013/09/10/intel_reveals_14nm_pc_declares_moores_law_alive_and_well/

Intel's X86_64 SSE4.2 Architecture is superior to ARM and Exynos LoL It can run any OS threw KVM at near native speed :) Remember, Intel was founded in 1968 and built the world's 1st CPU in 1971 ; the Intel 4004.

Small CPU companies with no past experience can simply not compete lol It will only get worse for ARM in the future. ASUS & Intel are working together for more than 26 years so they know better how to design CPUs and build Compilers for coding them.
[ZenFone 2 Android Development] tacitapproval:
I had the issue (battery monitor jumping to 100% and phone shutting off @20%). Nothing I tried fixed it (calibration, going back to early stock builds, running CM12.1, nor SuperZen ROM with this kernel). I exchanged the phone and the problem is solved. If you look at the Asus forum, you will see this seems to be a fairly common fault. I am satisfied that swapping phones, if possible, is the way to go.
[ZenFone 2 Android Development] ansebovi:
i dont want to fight you that too on a kernel thread..

i just said the fact,..i never said intel is crap..did i?? why are you defending intel? love any brand,but dont be blind :)

you said arm are in old generation ,reality says that they are the one which presently using 14nm in market..

and i hope intel pick up the phase to fight with top guns..and for another info we are talking about android not windows..in Android even if u hate the ARM....they are the KINGS in android....for now atleast..

have a gud nit :)
[ZenFone 2 Android Development] aziz07:
I have been working with Asus motherboards for over 16 years and they have excellent service. Warranty was expired by a couple of months, yet they sent me a new one even before that I send them the defective motherboard. They mainly use Asus products in Oveclocking Tournaments for a reason.

I had the battery jumping from 40% to 100% with an LG G2, phone died later as it was out of warranty and LG's response was pathetic: We are no responsible of the device after the warranty expired, I even tried to pay for a repair without luck. Its a hardware problem as opposed to what people believed to be a software issue. Any electronic device is prone to this.

IMHO This phone is the coldest phone I have ever owned; thanks to Intel's 3D Tri-Gate transistor technology.

Much less problems than samsung and apple's burning/exploding batteries reported on the media's lol Out of curiosity, which battery version you had? Its in settings, hardware details.

---------- Post added at 06:48 PM ---------- Previous post was at 06:35 PM ----------

lols How much did they pay you to say that? Which ARM company has sold a 14nm CPU ?

Intel is basically emulating ARM codes yet wrecking any ARM device clock-to-clock. It will only expand exponentionally as Intel just got in the cellphone market recently.
[ZenFone 2 Android Development] AL_IRAQI:
Galaxy S6 and later note 4 & S6+

And remember this is development thread [emoji12]
[ZenFone 2 Android Development] aziz07:
xD nm says nothing lol You can have a 7nm CPU much slower than a 32nm CPU. Its about architecture and experience in building processors. A badly designed 14nm CPU can produce more heat than a well optimized 28nm one. Try running Windows or Linux with an ARM device like the Galaxy S6 Edge or maybe Note 5 :laugh: Its been done here with Intel's KVM long time ago, if you guys really love ARM that much, why are you here then lol

Look at Antutu Single-Thread Floating-Point & Integer, our zenfone already beats the S6 Edge and Snapdragon 810 by a great margin yet its emulating arm codes which is a disadvantage for Intel at the moment. They just got in the cellphone business and its only a small section of their products, others being IT and big business companies. Samsung has been producing CPUs for 5 years wheres Intel did for more than 45 years ;)

Anyway, what happened to your nice looking modded black menus theme for Asus Stock ROM? Release it A.S.A.P :highfive:

It looked better than all cm themes like dark material I previously purchased lol
[ZenFone 2 Android Development] aaronoh:
I've been trying to convince myself it's software. There are a number of people talking about this issue though. I have requested a replacement from amazon. Thanks :)
[ZenFone 2 Android Development] aziz07:
TheSSJ is right. Its hardware, it happened to my old g2 too. Get an exchange for it. Never happened to my Zenfone 2 though.

I think there are different battery versions and comparing them might help us find the cause. Its 100% sure that its not Kernel related.

Really? I answer people's questions, he steps in and says Galaxy S6 in an Intel x86_64 base Kernel?
[ZenFone 2 Android Development] :
This ^^^

Please keep the talk about this kernel. This is the development section. Create a thread in a more appropriate section for unrelated talk.

Thanks,

Darth

Forum Moderator
[ZenFone 2 Android Development] lyeith:
[MENTION=2388665]TheSSJ[/MENTION]

is the kernel currently being compiled with any O flags?
[ZenFone 2 Android Development] ansebovi:
Ssj, awesome man, the img you gave combined with powernap, amplify, lspeed, greenify and on-demand powerbias made my phone to reach 7 hrs SOT at last :)
[ZenFone 2 Android Development] TheSSJ:
O2 at the moment, will switch to O3 as soon as I got that nasty touchboost thing worked out

Out of curiosity, which governor do you use ?

____general info for all____

I think I found a viable solution for the touchboost issue - tomorrow I will build a kernel and test if it works (then I don't need to patch anything)
[ZenFone 2 Android Development] Status_Errorv1:
trying out SSJactive w/ hotplugging <3 will report if there is random reboots or screen wont respond :)

---------- Post added at 02:55 PM ---------- Previous post was at 02:46 PM ----------

holy sht which governor are you using I already got all those other apps installed still trying to see which governor is good for battery life and performance.

currently on V50 using SSJactive with L Speed MOD of course
[ZenFone 2 Android Development] ansebovi:
I already mentioned it..

On demand governor with powerbias enabled as 1.. :)
[ZenFone 2 Android Development] Ntrasme:
Doesn't that mean it won't go to 1833 0.01% of the time? IIRC powerbias is out of 1000. With 1000 meaning it will never hit 1833 mhz.
[ZenFone 2 Android Development] ansebovi:
it goes but very rarely, upthreshold at 95 and i am using noop scheduler ,actually i put that at powerbias as 10 ,..0 is missed there somehow,...

this is what powerbias will do i guess

poewrbias setting higher will "bias" the governor toward lower frequencies. This is a percentage, where 1000 is 100%, 100 is 10%, and 0 is 0%. The ondemand governor will scale the CPU to a frequency lower than its "target" speed according to this value.
[ZenFone 2 Android Development] tuilalnvinh:
Hi, i see touchboost is not working with new gov ssjactive. Isnt it?
[ZenFone 2 Android Development] TheSSJ:
As I said before, I will explicitely mention it, when the touchboost will work. I have a solution in mind, which I will test in the course of this day.

Basically it involved finding the correct spot of the touchscreen driver where touch events are registered and adding a call to the currently deployed touchboost function (if touchboost handling is supported by the current governor of course).

This should enable yankactive and thessjactive to register touch events equally (if not better) as interactive is getting these events.

This will of course imply that PowerHAL will still throw out "file not found" events, but you should see the cores being set to "max-freq"-500MHz after touching the screen (as I thought that getting a core to maximum frequency upon touch is a bit too much).
[ZenFone 2 Android Development] karmacoma7:
Would you be so kind to post your Amplify settings ? (screenshot of limited wls/alarms/services)

Since there are a lot of asus/lollipop specific wakelocks, general guides are mostly useless.
[ZenFone 2 Android Development] TheSSJ:
Could you please discuss this via PM or another thread? So we could keep the discussion about the kernel here.

Cheers