yashsingh1/xdaforums huggingface dataset:
[ZenFone 2 Android Development] helroz:
If you fix density before, you don't have any problem with ze550ml.

Use terminal emulator:

su

wm density 290

After flash the kernel and it boot at 290.

(I use 250).

It's possible to use init.d script to fix dpi with the same command? I have tried but not really sure if it work....

I used:

#!/system/bin/sh

su

vm density 290

exit
[ZenFone 2 Android Development] omnikai:
Aha, many thanks!
[ZenFone 2 Android Development] cieffe54:
the density of 550 is 320. If you issue the command from the terminal, wm density provides two density: Phisical density: 480 (which is 551) and Override density that you have set. The Phisical density is set in the file that is in the root default.prop. Even changing it and putting it to 320 (the value set in the file 550) and giving the autorizzaziioni 664 to restart back to 480. This difference leads to some changes in the graphic down the quick setting. Does anyone know how to change the 480 to 320?
[ZenFone 2 Android Development] TheSSJ:
I'll just leave this screenshot of the benchmark with the fixed interactive governor here :D

BTW: also fixed FINALLY init.d directory creation (just needed to mount system as rw before beginning...)

Will upload v38 in a while
[ZenFone 2 Android Development] Ntrasme:
What did you fix about the interactive governor, the switching back bug where it goes to always on max freq?
[ZenFone 2 Android Development] TheSSJ:
Yes, exactly that bug that is also affecting stock kernel users

Onto ondemand plus and yankactive!
[ZenFone 2 Android Development] omnikai:
That explains why I couldn't find the folder :) Thanks!
[ZenFone 2 Android Development] GrandpaaOvekill:
Can anyone here comfirnnif this kernel is working on 550ml ..2 gb ram version?
[ZenFone 2 Android Development] TheSSJ:
I don't own this device, but cieffe said it would be sufficient to set the screen density to 295 to make it suitable.

I'd suggest to set this via init.d
[ZenFone 2 Android Development] aziz07:
After searching around, the best way to disable modem power is with an automatic script, but sadly, it shows pie security error. I even tried disabling pie security check by replacing link file but bootlooped. I only use VoiP.

Zenfone 2 uses Intel XMM 7262 modem.

I followed xda wakelocks guide and now down to 800/5h. How do I disable *alarm*? Is it safe?
[ZenFone 2 Android Development] cangcan:
on my previous s3 device, *alarm* can be stopped by using built in wakelock blocker, but can only be found on cm12.. but sometimes i also found out apps that has push notification such as whatsapp also cause *alarm* wakelock to trigger, and sometimes google play service worsen it too.. dont know whats exactly the cause..

anyway did you tried to block the wakelock using amplify?

and about android OS drain, i suspect its related to network or modem too, i already tried every possible tweak to reduce android OS but no success, sometimes android OS running and sometimes its not.. wish that we can try other modem version that can be flash like in s3 device..
[ZenFone 2 Android Development] gambit1091:
how can i use the governors?

I was able to flash the v38 successfully via TWRP but I can't seem to find a way on how to activate different governors. Can someone teach me how to do it? Thanks!
[ZenFone 2 Android Development] cangcan:
you need to install cpu tweaking apps like kernel adiutor or trickster mod, just search it on google play store and try to explore and play with the app..
[ZenFone 2 Android Development] gambit1091:
thanks! i've installed kernel aduitor and enabled conservativex in the cpu section and apply it on boot. the only difference that i can see is there's a hiccup now with the same battery consumption. i'm using the 2gb variant:(
[ZenFone 2 Android Development] john_petrucci:
[MENTION=2388665]TheSSJ[/MENTION]

Now "interactive" work ok, but when select "adaptive" system freeze and reboot!
[ZenFone 2 Android Development] cieffe54:
I try unpack your kernel with tool "Boot Recovery RePacker", change un default prop ro.sf.lcd_density=480 to 320, repack flash but don't boot stop on splashscreen. Perhaps the wrong tool? :confused: I'm om Win 8.1

Can you help me master?:D:D
[ZenFone 2 Android Development] TheSSJ:
One governor fixing at a time. At the moment I'm on yankactive, but thanks for letting me know :)

I use https://github.com/xiaolu/mkbootimg_tools
[ZenFone 2 Android Development] cieffe54:
But work on Windows?

Inviato dal mio ASUS_Z008D con Tapatalk 2
[ZenFone 2 Android Development] mapre64:
now interactive uses much more different frequencies...

On stock i had only 500, 1500 & 2333.

... with "OS.Monitor" tab div. CPU -> more ... i can change gov. & frequencies on my Nexus 5 (M.prev2).

On ZF2 min. frequ. is changed automatic to max.frequ. when i enter the more tab ... and can not be changed any more.

Kernel Adiutor workes fine.

Gesendet von meinem ASUS_Z00AD mit Tapatalk
[ZenFone 2 Android Development] TheSSJ:
Sorry, didn't get the question exactly, so does interactive work or does it stay at max the whole time on your phone?

No, you would need a linux vm to make it work
[ZenFone 2 Android Development] mapre64:
... [MENTION=2388665]TheSSJ[/MENTION] ... interaktive gov. works fine...

... OS.Monitor doesn't work correct with your kernel...

... on my stock S5 with root OS.Monitor can change interactive parameters.

Gesendet von meinem ASUS_Z00AD mit Tapatalk

---------- Post added at 12:45 PM ---------- Previous post was at 12:00 PM ----------

The Android OS percentage is now about the half. compared to stock. Is my observation correct?

I am since 16 hours on this kernel, with interactive - one time charged.

Same usage since before.

SOT shold be the same like on stock.

Gesendet von meinem ASUS_Z00AD mit Tapatalk
[ZenFone 2 Android Development] TheSSJ:
Could be - the aim of this kernel is to maximize the energy <-> performance ratio :D

I also have been pleasantly surprised. Also I maybe succeeded in fixing yankactive governor, too. But I won't count my chicken before they hatch, so I will monitor the phone for some more hours before publishing wrong info

/EDIT: v40 out now, featuring working yankactive governor
[ZenFone 2 Android Development] NoobNeutralizer:
Should I now change the governor to Yankactive from Interactive to squeeze out a bit more battery?
[ZenFone 2 Android Development] ansebovi:
Using v38 zram enabled auto,

Interactive now works perfectly

Adaptive the best for battery i guess always at low frequency so sweet

And android os decreased a lot... Before it will be always more than my screen on time, but now it is half of my screen on time... 5hrs screen on time and android os have only 2 to 2.30hrs.. So happy now thanks...

And i have a doubt in latest version of yours, did u mean 1.8ghz cpu can go upto 2.3ghz?
[ZenFone 2 Android Development] TheSSJ:
Well, I have tested the behavior of interactive and yankactive and can confirm that yankactive scales down more aggressively, putting the cpu faster and longer to 500MHz. 2 or 3 simple tunables were modified and the result is pretty astonishing

Previous yankactive governor had the highspeed frequency hardcoded (I have put 2,3GHz, which works on the 4GB models, but I had a doubt about the 1,8GHz models, as the cpu wouldn't ever use this high frequency). The new version now recognizes dynamically the highest cpu freq and thus makes it compatible for both processor types :)

For all:

Regarding smartass2 and smartassh3: I won't include these governors as they are way too old (2.6.x kernel base, we have 3.10.x) and adapting them would take a lot of time and I don't even know if they would work. But I included sioplus IO scheduler [MENTION=5299788]29y6145[/MENTION] :)

Will come in v42
[ZenFone 2 Android Development] NoobNeutralizer:
Switched it over to Yankactive...

Anxious to see how it performs...
[ZenFone 2 Android Development] Lorka.Tinou:
Thanks to [MENTION=2388665]TheSSJ[/MENTION] and all people testing this kernel, will be glad to try it when considered stable.
[ZenFone 2 Android Development] NoobNeutralizer:
Yankactive is running great...

I have another question about the I/O Schedulers...

Should I use a certain one or is the default one preferred?
[ZenFone 2 Android Development] TheSSJ:
New version 42 is out with sioplus and fiops IO schedulers and ondemandplus removed for now!

Yeah, I think when I have completed debugging ondemandplus and adaptive governors I will declare it stable

Running yankactive too, I like it a lot.

Well, you can try every scheduler out in antutu to see which performs best.
[ZenFone 2 Android Development] tuilalnvinh:
Try zen io scheduler, it works very well with yankactive :)
[ZenFone 2 Android Development] NoobNeutralizer:
I'll give it a shot...

I'll let you know how it works out...

---------- Post added at 11:57 AM ---------- Previous post was at 11:28 AM ----------

Performance is great so far with Yankactive (governor) and Zen (i/o scheduler)...

Little bug with Kernel Adiutor though...

When I turn on "Apply on Boot" for the CPU and I/O Scheduler settings, it doesn't apply them on boot...

I did a reboot as a test and it went back to "Interactive" and "Cfq"...
[ZenFone 2 Android Development] gmanhad:
So far, so good

Thanks for sharing your work with us. Kernel running great so far. Getting good results with yankactive , and fiops combination. Keep up the good work .
[ZenFone 2 Android Development] aziz07:
[MENTION=5010777]ansebovi[/MENTION] How did you manage to get 700/24H wakelocks? Did you disable activity manager, time_tick, and gms wakelocks?

I see this on github dfrgx/df_rgx.c:

This driver currently only allows frequencies between 200MHz and
* 533 MHz.

Directly editing the freq files to 640Mhz on phone fails as they are reset everytime.
[ZenFone 2 Android Development] TheSSJ:
Well, i have tested a bit and found out,that the 200MHz work,but won't reach the 640...I even patched the thermal throttling out,so I assume this is a HW constraint...odd is,that the phone runs super hot with max_freq set to 640 (even though current freq never exceeds 533), and with max_freq set to 533 it is running cool and easy...
[ZenFone 2 Android Development] Aceofzeroz:
Many thanks for your superb work so far, just flashed the latest version and will see how I like it. :D Keep it up! :cool::thumbup:

Sent from the Ace's Zenfone 2 using Tapatalk 4
[ZenFone 2 Android Development] Ntrasme:
I'm running bioshock governor atm, it's the smoothest IMO. The phone is much snappier! And I'm getting a projected 8hr SoT (25% for ~2hrs on). Completely awesome!!!!
[ZenFone 2 Android Development] aziz07:
Ok, after changing to 640Mhz and running your script with 640 000, I get close to 48300 Antutu points and 4050 Vellamo Browser performance :p

p.s: Asus browser is the fastest, even much faster than Chrome Dev, plus you have integrated full screen pie controls.

The 60ms touch response Asus LCD is also faster than other phones so Benchs are not the only thing to consider.
[ZenFone 2 Android Development] TheSSJ:
If you use another io scheduler maybe you can squeeze out some points
[ZenFone 2 Android Development] aziz07:
I am using noop, which one would be faster?
[ZenFone 2 Android Development] cangcan:
using yankasus for awhile just now and received 3 calls, when calls off screen stay black and took a while to display.. still early observation though.. gonna try it more the whole day..
[ZenFone 2 Android Development] aziz07:
There an option to fix this bug in L Speed mode, did not try it though.
[ZenFone 2 Android Development] ansebovi:
I disable many Google play services, Android Os but not the time click, otherwise time won't changed until you turn on screen and wait for few secs..

---------- Post added at 10:06 AM ---------- Previous post was at 10:03 AM ----------

8 hrs omg ? Can you give the screenshot of the battery graph and screen on time ?
[ZenFone 2 Android Development] Ntrasme:
It was a day where I was mostly just browsing. Let me see if I can find something. I found some screens from that day in my pushbullet folder. I was using it at varying brightness and at 15% ultra savings kicked in and saved my ass for like another hour. I don't have screens at the end though.

EDIT: This was before I installed the kernel. Hoping it will get even better!
[ZenFone 2 Android Development] cangcan:
may I ask if you using any messaging apps like like whatsapp?
[ZenFone 2 Android Development] ansebovi:
Did u said 8hrs screen on time with the time left in Battery graph? If yes then Sry.. It is not showing battery left for screen on time.. It is showing by the usage of your phone till the time which includes the screen off time like 1 to 2hrs by seeing your graph .. But calculate like this,.. 2.20hrs screen on time and it reduced nearly 33%..

So now max is 3x ur screen on time... Max 7 hrs screen on time.... And all this considering the drain is not there when screen is off.. If you have screen off time drain, then it will decrease SOT more than that.. But i must say 7hrs is really great.. In mine max is 6hrs

What i noticed is SOT is great (6hrs to 8hrs) when watching videos than others... Any try this..
[ZenFone 2 Android Development] cieffe54:
I was able to modify the kernel (the last V42), with the help of the great master [MENTION=2388665]TheSSJ[/MENTION] to modify the kernel to make it with the native DPI of 550 (320 DPI). Works perfectly.

I ask the great master if he wants to publish it

I am very happy !!:D:D:D
[ZenFone 2 Android Development] TheSSJ:
Feel free to open a new thread for this :) I will link over to yours for the ze550 users. As I know my kind of laziness I would most likely forget to build 2 boot images.

I would wait though, as I am about to publish v43 (with more optimization flags enabled) ;)

EDIT: Out now
[ZenFone 2 Android Development] Ntrasme:
My screen off drain is negligible since I use Power Nap. I have 0.2%/hr. And you're right, I ended the day with about 7 hr 40 mins with 5% left. Ultra savings helps a lot.

No, just google's "Messenger" instead of ASUS's.
[ZenFone 2 Android Development] lyeith:
oo nice! i see SSE :D
[ZenFone 2 Android Development] cieffe54:
thread open:http://xdaforums.com/zenfone2/development/kernel-project-t-zenfone-2-ze550ml-t3160785 :o
[ZenFone 2 Android Development] TheSSJ:
OP updated, that's teamwork :)
[ZenFone 2 Android Development] aziz07:
Got your v43 kernel working with ZE550 40.23 light Rom, striped down to 516Mb for voip use but the resolution is still 1920x1080. I was looking for a rom with 1280x720 to increase performance and battery especially that I can't tell the difference with 720p and 1080p movies on a 5.5'' screen. I use my desktop 27'' 4K bezel-less screen for that.

p.s: Can Android take advantage of SSE and Intel Toolchain?
[ZenFone 2 Android Development] cieffe54:
With modified kernel for 550 its normal

Inviato dal mio ASUS_Z008D con Tapatalk 2
[ZenFone 2 Android Development] aziz07:
hmm ... Can it be changed?
[ZenFone 2 Android Development] cieffe54:
Yes, unpack kernel, modified, repack. Look OP

Inviato dal mio ASUS_Z008D con Tapatalk 2
[ZenFone 2 Android Development] aziz07:
Ok, found xda thread with adb shell wm size 720x1280. Note, if you put 1280x720, you will end up with 1/3 screen, I was like wth then realised that I had to inverse it lol :D Should break 50K Antutu soon. Hardware keys will be out of range but I use LMT pie from xda as it has much more functions and can easily launch apps. I always used pie controls since my g2 (no hw keys) so you might not be used to it if its the 1st time lol

Phone heats less and more responsive, RAM usage is also less! Battery will improve for sure.

Grazie My cousin-in-law is Italian xD How can I unpack the kernel? Do I need linux? :confused:
[ZenFone 2 Android Development] TheSSJ:
Correct, this is an agreement that cieffe54 deploys my kernel made for ZE550ML devices while I am doing it for 551ML.

Info: I had to pause the governor fixing as this really pi**es me off sometimes - debugging is difficult if the phone is connected to USB and thus not going to deep sleep, where the crashes occur :(

At the moment I am HEAVILY trying to compile the whole kernel using the Intel compiler v15. Unfortunately it throws out errors, which are hard for me to fix.

Still, not giving up though
[ZenFone 2 Android Development] Ntrasme:
Thanks for your hard work man. Do you have a dogecoin address? I have some coins I've been saving up that I can give you.
[ZenFone 2 Android Development] aziz07:
Go, Go, Go :highfive:
[ZenFone 2 Android Development] TheSSJ:
Don't even know what dogecoin is :D bad sign :D

No problem, doin' this for all of us, not for rewards :highfive:
[ZenFone 2 Android Development] Ntrasme:
Really? That's surprising considering you have a shiba inu as your profile. Dogecoin is a cryptocurrency, or "Magic Internet Moneyz". Learn more here: https://bitcoin.org/en/.
[ZenFone 2 Android Development] omnikai:
Hi,

Thanks for this wonderful kernel! I'm seeing improved battery life and I love the extra tweaking options!

Since v42 though every time I set my governor to anything but interactive, my phone locks up and eventually restarts. Any idea why?

I am using the zram init.d script if that matters.
[ZenFone 2 Android Development] aziz07:
Your using 3C Toolbox? Try No-frill CPU, it worked with performance governor 4 me.
[ZenFone 2 Android Development] omnikai:
I'm using CPU Master by Antutu. WOrked up until around 42 (was working on 35, stopped working when I upgraded).
[ZenFone 2 Android Development] Ntrasme:
I've been using Kernel Auditor. It has CPU Governor Control and I/O scheduler control. It's also really convenient to reboot to recovery. No problems with it.
[ZenFone 2 Android Development] aziz07:
GPU now shows 200-640Mhz range in AIDA64. After L Speed boost and ASUS Boost, I get 3.3Gb free RAM xD
[ZenFone 2 Android Development] TheSSJ:
Hah, yeah, my rascal dog is a source of motivation :D

I'm using setcpu and kernel adiutor and both work perfectly..I just fixed interactive and yankactive govs :-\
[ZenFone 2 Android Development] TheSSJ:
Did you change anything particular?
[ZenFone 2 Android Development] Ntrasme:
Will games use the unlocked GPU clock? Or will they continue only using the OEM's set clock? AIDA64 tells me GPU clock is 200.
[ZenFone 2 Android Development] TheSSJ:
The gpu (not cpu) governor is set to use the lowest frequency possible,when not running anything graphics demanding. If you are running a game or so, it will increase the speed automatically until the maximum freq has been reached. So by the time you check with AIDA the gpu is running at cool 200mhz
[ZenFone 2 Android Development] Ntrasme:
Oh, thanks. Assumed as such. Is there a way to check ingame?
[ZenFone 2 Android Development] aziz07:
What I did was modifying min and max to 640 000 , change the 533 000 to 640 000 in script before applying it ; current freq will default to 533 000 and thats what AIDA64 shows after 640Mhz script, here are the results [MENTION=4856547]1280[/MENTION]x720@2.33GhzCPU@533MhzGPU with fiops I/O without amplify (Its messing up with my voip app) **fiops gave the best results, better than siops for 2048K caching.

Note the ~20% increase in browsing performance vs stock:
[ZenFone 2 Android Development] omnikai:
Kernel Auditor seems to work great, so I'll use that instead of CPU Master. Thanks all!
[ZenFone 2 Android Development] AL_IRAQI:
Hi Guys

how to set GPU to 533Mhz with init.d ? ?

I'm sorry if it's already answered before

And thanks for awesome kernel ?
[ZenFone 2 Android Development] aziz07:
Change freq of min,max and target in /sys/class/devfreq/dfrgx/. Also change gpu governor to performance there, take note of changing permissions 1st.

Then run TheSSJ's script found here in Dowload section with SManager or you can place it in init.d and use kernel adiutor with init.d option.
[ZenFone 2 Android Development] Ntrasme:
The script by itself isn't enough? Also, the kernel has native init.d support. Is running GPU always at 533 mhz OK? Seems like the gpu should not be in Performance mode at all times.
[ZenFone 2 Android Development] AL_IRAQI:
thanks i used kernel auditor

That's right ? ?
[ZenFone 2 Android Development] LostSoulFly:
Can this be modified to allow reduced brightness? The screen is ridiculously bright, and lux doesn't seem too work well.. I want to save battery by using lower brightness setting!

Otherwise, no kernel issues thus far. Thanks!
[ZenFone 2 Android Development] aziz07:
+1 Be sure to set permissions for these though. Use AIDA64 to see if 533Mhz is applied.

If you don't game in a hot area, its fine, you can make a script with lower frequency for that. Just run it with SManager explorer. Personally, I run performance all time but don't game, just high-res PDFs. Xposed DS Battery saver will force performance governor to sleep and shut off 3 cores when screen is off.

High-Res PDFs still take about 30s to open but rendering is pretty smooth and fast after that ; slow opening is due to eMMC internal storage being inferior and slower versus SSD. I hope that next phones will take advantage of SSD tech e.g. iSSD is smaller than an SD card.

*For more performance, force GPU acceleration in developer section and disable hw overlays with script (will reset after reboot otherwise). [MENTION=243864]xda[/MENTION] post #11 http://xdaforums.com/showthread.php?t=1913144&page=2

[MENTION=3466024]LostSoulFly[/MENTION] I use screenfilter 90Kb app for reducing brightness along with Chainfire CF.lumen for eye strain (color temp autoadjust according to your location) ; its more customizable than Splendid.
[ZenFone 2 Android Development] AL_IRAQI:
it works fine after reboot and i checked governer also set to performance

right now I don't any HD games, but i always try new games, and i don't care about battery life [emoji14]

Thanks again
[ZenFone 2 Android Development] TheSSJ:
Hi,

the script is enough - there is no need to change the gov to performance as simple_ondemand just scales up/down as needed. AIDA64 shows 200MHz, because the GPU doesn't have to do anything at that moment. If you want to check how the scaling works, try this:

COnnect the phone with USB debugging enabled to your PC and start adb shell

Type

su
cd /sys/class/devfreq/dfrgx
while true;do cat cur_freq;done

It will continuously print out the current GPU frequency

Then start a graphics demanding game and watch the adb output ;)

/EDIT: To end the while loop just press Ctrl+C

You should care about overheating your unit though - by accident I patched out the thermal throttling during the unlocking of the GPU, so that the device would continue to use 640MHz when already exceeding a healthy temperature...That's why I uploaded the GPU init.d script with max_freq set to 533MHz. I will re-enable the GPU thermal throttling at some point in time
[ZenFone 2 Android Development] SBFarooq:
Hi,

For the first time since getting this phone am I witnessing a slow drain of battery... Couldn't be happier... BTW where is the sweet spot for scheduling and CPU gov? Which combination is advisable for let's say best battery or best performance or even both... Also can someone share links to resources where people like me can go and study rather than disturbing you lot?

Have a great day and Eid Mubarak..
[ZenFone 2 Android Development] TheSSJ:
Happy to see happy users :)

I'm using Yankactive and sioplus, scaling frequencies down is much faster with YA compared to interactive

Here is the most up to date guide: http://xdaforums.com/general/general/ref-to-date-guide-cpu-governors-o-t3048957 (all credits to [MENTION=5811506]gsstudios[/MENTION])
[ZenFone 2 Android Development] john_petrucci:
When select "sioplus" with Kernel Manager (ROOT) the chosen does not remain fixed!

With the governors selection I don't have problem!
[ZenFone 2 Android Development] helroz:
+1 Same problem with triscker mod.
[ZenFone 2 Android Development] TheSSJ:
I use kernel adiutor and it remains selected and works? Do FIOPS and the likes work?

Also please note that I can't support any addons installed besides the Kernel which might affect its functionality.
[ZenFone 2 Android Development] helroz:
No problem with fiops, i don't use any addon.

I go try with kernel auditor

Edit: same problem with sioplus.