yashsingh1/xdaforums huggingface dataset:
[ZenFone 2 Android Development] TheSSJ:
Nope, stock based only...Only if the ROMs begin to be stable I will see to adapt my kernel to the other ROMs (my phone is not only used for dev purposes ;) )

_________________________________

Ladies and Gentlemen, v83 is out:

- Sioplus set to default at boot already

- random number generator "frandom" used everywhere (10-50 times faster than normal random)

- Removed power efficient work queue for block devices

- Turning power efficient work queues on and off works now :)

- Added Google's new and fast compression algorithm "Snappy" (this is only patch 1 of 2). Next step (=v84) will be to modify ZRAM to use Snappy instead of LZO, it's too late now...
[ZenFone 2 Android Development] whynottoday:
You are the best?
[ZenFone 2 Android Development] TenchiMasaki:
I am having problems compiling a booting kernel, currently using compiler from Slim 5.1 in prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9 and also tried 4.8 as well but it just hangs on boot-up. I used the unpack of existing ProjectT boot image and pack intel tools with new bzImage to generate boot.img.
[ZenFone 2 Android Development] cangcan:
Added Google's new and fast compression algorithm "Snappy" (this is only patch 1 of 2). Next step (=v84) will be to modify ZRAM to use Snappy instead of LZO

omg, [MENTION=2388665]TheSSJ[/MENTION], you are awesome!

http://blog.erdemagaoglu.com/post/4605524309/lzo-vs-snappy-vs-lzf-vs-zlib-a-comparison-of

hopefully v84 comes out successfully!

waiting patiently :fingers-crossed:
[ZenFone 2 Android Development] Ntrasme:
What ZRAM size and swappiness do you guys recommend for the 2gb version? I've been using 40mb at 70 swappiness. Seems good, but I'm not sure what are the optimal settings.
[ZenFone 2 Android Development] TheSSJ:
Which source tree did you clone? Mine or deadman's? My kernel still uses some .ko modules while the others use crpalmer's all in one kernel.

If you use another ramdisk than stock with my kernel you need to make sure that you insmod the modules in the right order
[ZenFone 2 Android Development] Emblema:
Can you add, in a future step, the kernel modules for usb to lan adaptor?
[ZenFone 2 Android Development] TheSSJ:
I need a volunteer with 2GB RAM whom I can PM a link to my snappy zram image as my device refuses to swap (4GB RAM b*tch :D )

Just post into this thread and I will PM the friendly user :)

Will see which flag needs to be activated
[ZenFone 2 Android Development] AL_IRAQI:
in latest ota 40.90 Asus added zram back

#!/system/bin/sh

MemTotalStr=`cat /proc/meminfo | grep MemTotal`
MemTotal=${MemTotalStr:16:8}
ZRAM_THRESHOLD=3000000
IsLowMemory=0
((IsLowMemory=MemTotal<ZRAM_THRESHOLD?1:0))
if [ $IsLowMemory -eq 1 ]; then
setprop ro.config.zram true
fi
[ZenFone 2 Android Development] 2300:
+ 1 for test, Zen 2Gb Ram
[ZenFone 2 Android Development] TheSSJ:
My request has nothing to do with the

activation

of ZRAM. I changed the compression from LZO to Snappy (by Google) and I need a volunteer as my phone doesn't swap

PM sent, thanks!

Edit: v84 is out, ZRAM now compresses with Snappy!
[ZenFone 2 Android Development] TenchiMasaki:
I used your kernel unmodified and your ramdisk with stock asus rom, not sure what I am missing to make it boot.
[ZenFone 2 Android Development] tuilalnvinh:
I hope u could raise min brightness back to 5% as before, because 2% is really low even it is still readable :(
[ZenFone 2 Android Development] TheSSJ:
If you guys want I can add a sysfs flag which will influence the min-brightness. You would need to manipulate it via init.d though, as Kernel Adiutor offers no support for this kind of brightness driver...
[ZenFone 2 Android Development] marcof93:
I would like this feature, I have some problems with auto brightness levels, too low also outdoor :( (i'm using velis to fix this)

[MENTION=2388665]TheSSJ[/MENTION] I don't know if this can help you, but there is an xposed module called "Vibration Tuner" in which you can control vibration strenght and it works good on our Zenfone 2 (i succesfully reducd soft-touch buttons vibration) ..http://xdaforums.com/xposed/modules/xposed-vibration-tuner-v1-0-0-31-07-15-t3169254
[ZenFone 2 Android Development] Zetsubou Sensei:
[MENTION=2388665]TheSSJ[/MENTION], thanks for all your hard work man. This phone is running buttery smooth. This community is awesome :D
[ZenFone 2 Android Development] TheSSJ:
Good idea though, this module just increases the vibration time,which is perceived as stronger vibration...could try to implement this too,thanks!
[ZenFone 2 Android Development] S#@DY:
I've no idea what are those new features from v82...

:p :p will give it a read
[ZenFone 2 Android Development] marcof93:
My problem was that it was too strong in user interactions so this module solved my problem, I personally think that for notifications is already very strong :)
[ZenFone 2 Android Development] glock24:
I'm on v83, and the change I noticed from previous v81 that I used is that auto brightness curves seem different. It's brighter overall, which is good, as I felt it to be too dim on most situations, but still goes all the way down when it needs to, e.g. at night with dim lights.
[ZenFone 2 Android Development] ImjuzCY:
There is an option to manually set preset brightness for auto brightness levels in gravitybox. Need xposed though
[ZenFone 2 Android Development] marcof93:
I tried, but sincerely there are 20 values and I don't understand the parameters they are referring :rolleyes:
[ZenFone 2 Android Development] ImjuzCY:
It's really not something user-friendly. But the concept is quite clear.

There are 20 levels of auto brightness, each with a maximum lux value (brightness value detected by the sensor) and each level have a preset brightness level. So when the lux value detected by the light sensor is in group level 5, then the brightness will be set to the preset brightness of level 5.

For me, I've set the brightness for level 2, 3, and 4 to higher value than stock because stock auto brightness is too dim for me. (luckily the max lux value is already preset so I don't need to change it)
[ZenFone 2 Android Development] marcof93:
Thanks man, now is more clear, I will try :)
[ZenFone 2 Android Development] Ritik17:
hey

which is the best combination of governer and i/o scheduler for performance and also for battery saving?
[ZenFone 2 Android Development] S#@DY:
Lionheart working awesome for me for performance n battery along with sioplus
[ZenFone 2 Android Development] Dan_Jacques:
You notice the world makes no sense when the wakelock that consumes more CPU cycles is the Power Manager service lol (see attachment).
[ZenFone 2 Android Development] Recl@imer:
Tried to flash in TWRP

Hey Guys,

I'm on the latesr prism barebone rom,. I tried to flash v82 (I downloaded a few days ago) in TWRP, it flashed in 2 secs and said completed successfully, but when I checked the kernel info using cpuz it still says version that was on the stock rom. Am I supposed to wipe anything? cuz I didn't.

thanks. :o
[ZenFone 2 Android Development] TheSSJ:
Well, then my job here is done :highfive:

Hi,

could you tell me if you flashed OC UC or normal version? could be maybe that I named the img file wrong and the script has nothing to flash...

Thanks!

___________

Tomorrow v85 will come out which will enable you guys to set the minimum brightness between 2 and 15% via init.d. Also I increased memory management performance with a new caching method (vmacache), see the benchmarks and be happy on what's to come :)

https://github.com/TheSSJ/android_k...mmit/735a3c89a9ba88d412b397ecc965e7300280235c

Also please note I started a poll in the general section, which will influence if OC will be included in future builds or not!
[ZenFone 2 Android Development] Dan_Jacques:
Damn Asus lol

Well, I've started some research about these wakelocks. I wanna find a way to solve the battery drain. 2~3%/h when idle is awful.

EDIT:

Asus customer service replied my message about release kernel source of last update. They fwd to the internal area,
[ZenFone 2 Android Development] ImjuzCY:
Maybe it flashed successfully but the kernel info didn't mention it's Project T so you thought it isn't flashed. See the compilation date of the kernel, if successfully flashed, the date should be very recent. So by request, [MENTION=2388665]TheSSJ[/MENTION] can you please add your signature into the kernel info to differentiate between Project T and stock kernel?
[ZenFone 2 Android Development] Recl@imer:
That makes sense and I think that's what happened. I have a date of Sep 8, which makes sense since its v82. Thanks man.

---------- Post added at 06:13 PM ---------- Previous post was at 06:04 PM ----------
[ZenFone 2 Android Development] ligu:
+1
[ZenFone 2 Android Development] ligu:
[MENTION=2388665]TheSSJ[/MENTION], I wonder if it's possible to include the version number into the Kernel version info. Back with my old S3, the custom kernels usually carried it, so it's very helpful for those of us who live on the bleeding edge.
[ZenFone 2 Android Development] Dan_Jacques:
[MENTION=2388665]TheSSJ[/MENTION], apparently I found a way to kick the high consuption when idle. With Project T and last Prism Barebone ZF2 gave me 0,5%/hour of battery consumption.

My post here: http://xdaforums.com/showpost.php?p=62770568&postcount=28

The guide: http://xdaforums.com/android/general/guide-extreme-battery-life-t3095884

TheSSJactive is responsible for the part of this great consuption.
[ZenFone 2 Android Development] TheSSJ:
Will implement in future versions then, although it is written, that the kernel is compiled with Linaro :p But yeah, makes sense :)

Okay, but neither your post, nor the guide say anything about CPU governors? I just read Greenify and Amplify and Power Nap, etc. :P I am struggling with the fact that you need to install a sh*tload of apps to reduce the wakelocks...

Also there are other governors to see if the power consumption is reduced, I'd try with lionheart or BioShock
[ZenFone 2 Android Development] Dan_Jacques:
Using three apps to control wakelocks is bad. But it was the only solution for now. Before it, the consuption when idle is around 2,5~3% when using stock kernel, and around 2~2,5% with ProjectT with a balanced setup (TheSSJactive gov + sioplus). Comparising, yes, Project T reduces the battery consuption when idle. But doesnt make much difference if the wakelocks are crazy.

Yep, the guide doesnt speak about govs. I'll continue the tests. Is lionheart a performance focused gov?
[ZenFone 2 Android Development] S#@DY:
How to change tcp congestions?
[ZenFone 2 Android Development] marcof93:
Kernel Adiutor is your friend :) I dont' know the exact translation but it should be "Various controls", the menu between entropy and plugins.
[ZenFone 2 Android Development] S#@DY:
What tcp congestion can actually do? In non technical terms?
[ZenFone 2 Android Development] ImjuzCY:
Misc control to be exact
[ZenFone 2 Android Development] tuilalnvinh:
It somehow gain a little speed in internet connection :)
[ZenFone 2 Android Development] TheSSJ:
I would let it set to westwood as it is the most performing (it's pre-set). Otherwise cubic (stock setting)
[ZenFone 2 Android Development] S#@DY:
I dont know why but, in v84,

BetterBatteryStats shows my wifi is always running.. Even though it is not.
[ZenFone 2 Android Development] TheSSJ:
Another big update:

Minimum brightness is changeable by the user (via init.d, see script in download tab)

Introduced VMAcaching (big performance improvements in memory handling)

But I forgot to include the version in the kernel string...
[ZenFone 2 Android Development] Tiongkia:
Ram shows 3G. Correct?

Anyway thanks Master for the great work and updates
[ZenFone 2 Android Development] whynottoday:
And maximum brigthness ? ?
[ZenFone 2 Android Development] ImjuzCY:
Flashed latest v85 OC UC version but [MENTION=2388665]TheSSJ[/MENTION] have you set minimum brightness to 1%? I didn't use any script but the minimum brightness just turns off the backlight of the screen. Just like how it happened with the 1% brightness you've sent me to test.

Edit: checked min_brightness file, it's set to 2 but brightness=2 in the brightness slider isn't the leftmost. If I slide the slider to the leftmost the screen backlight turns off. Then I slide it the the right a bit until it light up, then I checked the brightness file and the value is 2. So I assume if I slide the slider to the leftmost it sets the brightness to 1 or less although min_brightness is 2. This happens on auto brightness slider.

Edit 2: I used adb to check the brightness file, when in auto brightness, I can only use the middle to the right. If I slide the slider to the left, the brightness is -3, the middle is 2. Manual brightness is ok, just auto brightness.
[ZenFone 2 Android Development] adilsh:
How can i enable the new features like vmacaching?

Or the other functions? Because i see nothing in the plugin neither the script
[ZenFone 2 Android Development] glock24:
Same problem with brightness here. Besides the v85 kernel also updated to SuperZen 20v2, maybe it's related?
[ZenFone 2 Android Development] ImjuzCY:
It's the kernel as I'm using Prism Barebone and I did not update the ROM. Problem didn't happen with older version of Project T
[ZenFone 2 Android Development] S#@DY:
Here is what i get in v84.

It shows wifi is always on even though i never use wifi... may be it is draining my battery to huge extent...

Any solution?

And blx? Still goin to 100%
[ZenFone 2 Android Development] allasca:
There are diferent size on stock kernel v63 and v90. Any idea? [MENTION=2388665]TheSSJ[/MENTION]
[ZenFone 2 Android Development] soto2080:
[MENTION=2388665]TheSSJ[/MENTION]

Why you not choose lz4 but snappy?
[ZenFone 2 Android Development] adilsh:
Anyone can help?
[ZenFone 2 Android Development] ImjuzCY:
You don't have to enable them. They're built into the kernel and you can't enable or disable them
[ZenFone 2 Android Development] dam1974:
Sorry, where is download section?

Inviato dal mio ASUS_Z00AD utilizzando Tapatalk
[ZenFone 2 Android Development] ansebovi:
Great thanks, cpu core gone offline, not automatically, but manually in kernel auditor. ..

Using lionheart for now...

Will report later.. :).. Btw don't we need zram? It is stock but not in this... Seen in trickster mod...
[ZenFone 2 Android Development] TheSSJ:
Sure, will try to compile the governors into the kernel. Concerning undervolting GPU it seems to be rather easily achievable - the driver uses for every frequency 0.95V, maybe I could try to set 0.9V for the lower frequencies and 0.95V for the higher ones (with the time I think these values can be lowered even more, who knows - but this topic will be dealt with when I gathered much more knowledge about over/under clocking/volting)

Will test my modifications at home and check if the chip uses the higher voltages - I applied the changes already to my github, just need to pull them locally and compile :)

Yeah, I am also a fan of the conservativeX governor - it is really helping in reducing battery drain - the OS drain is nothing a governor can fix efficiently, though. I hope to add more govs today (see above), thanks for testing this over a long period of time, really appreciated!

ZRAM is a compression mechanism in RAM used for RAM space savings (previously known as compcache...good ol' days ) - do we really need ZRAM with 4GB? This reduces precious CPU time and there is no real benefit (even with a full bloated Zenfone the 4GB would never really get full)
[ZenFone 2 Android Development] ansebovi:
Not for 4gb, but 2gb, asus already have crap bugs and low free ram.. Please add it for 2gb users...

Btw just opinion, can you add hotplug governor or some hotplug mechanism to make auto offline of cores. . Or is it possible now itself??
[ZenFone 2 Android Development] ligu:
About ZE550ML... I was about to try it on mine, then I saw on the Taiwanese ZenTalk forum a user has already done so. Based on the report, things appeared to run ok for the most part, but the resolution of the kernel has apparently been set to that of full HD, causing the apps looked zoomed in. Is there a way to work around this? Or it has to be compiled in.
[ZenFone 2 Android Development] TheSSJ:
Will try to activate swap based on the total memory the device has, saw on the device config that ZRAM is not mentioned anywhere, it seems ASUS uses their own special config :D

Well, I see in the logs that the cores are turned off (see dmesg output), but I was thinking about trying to see what happens

Maybe at a later point in time I can compile your graphics config into the 551 config as a module or built in, but for now I need to see if this kernel is suitable for daily use before I can expand. But will add this to my to do list :)
[ZenFone 2 Android Development] chobztopz:
can I use this command to init.d for auto on off cpu core on your kernel?

or must be edited?
[ZenFone 2 Android Development] taylor.fowler:
IF you post up the zip, I can probably update it using the binaries that work with x86
[ZenFone 2 Android Development] TheSSJ:
Hi,

the script wouldn't run the whole time in background, as they are run only once. If you would run it in an infinite loop maybe the device won't work as long as the scripts do not exit - dunno exactly, just a guess.

Attention: V27 is on my Google Drive, but I have difficulties in unlocking the whole frequency range. At the moment it is set up to run from 457MHz to 640MHz. I assume it has something to do with the thermal debug thing, I need to understand these override functions before I know what's to do. Desired state is that the driver goes from 200MHz to 640MHz, almost there though :)

Also I tried enabling ZRAM and provided all config flags I could find, but the device refuses to create a zram block device, need to keep digging here (it is currently not available on v27, even if the filename says so)
[ZenFone 2 Android Development] aziz07:
Perfect, will try it now ;) p.s: I sent you a very small donation for the moment until I graduate and open my own clinic -.- , the paypal page was all german so I had to use google translate lol I have yet to learn german. It shows up as unclaimed and I can't modify my account until you accept it as it shows pending transaction, so please accept it. :D

May I know whats the advantage of ZRAM? Is it the RAMdrive equivalent from PCs?

Does the ZRAM block get flushed or it is written to internal storage when rebooting? If we can directly run apps in RAM instead of internal storage, performance increases will be huge especially that Android apps are much smaller in size than Windows or Linux. Writing the block back into the internal storage will prevent data loss when rebooting or device power off.
[ZenFone 2 Android Development] TheSSJ:
Many thanks for this, mentioned you in the special thanks section :)

Basically ZRAM is a compression mechanism in RAM used for RAM space savings (previously known as compcache...good ol' days ).

It's faster compared to swap on flash/hdd,but useless on a 551ml with 3 or 4gb...as soon as i'll succeed including this,it can be turned on via init.d.

First things first: the gpu unlock needs to be fixed properly :)
[ZenFone 2 Android Development] aziz07:
Its better to include two versions, e.g. one with higher clocks and one with lower clocks or maybe there is a way to change the range in terminal app?
[ZenFone 2 Android Development] ansebovi:
Guys I am seeing this alarm wakelock in my phone, which I didn't seen in Stock..

But can any other confirm me that you too having it in Stock or this kernel

See the attached pic for alarm, I even reset the wakelock and seen, it is coming again

Now changed to on-demand with powerbias enabled , standby is awesome no drain like stock standby.. .using only 2 cores at 1500mhz, no lag in most apps, small games

I will report after some 2 or 3 whole cycle of charge..

Just now flashed v27
[ZenFone 2 Android Development] TheSSJ:
I plan to make it changeable by an init.d script, default will set max_freq to 533MHz, then you can edit the script to unlock to 640MHz.

Have the alarm wakelock, too, BetterBatteryStats shows no extensive wakelock here (I have my alarm activated on the phone and it works )

Will add new governors as soon as this frequency thing is working as intended, adaptive governor uses hotplugging techniques if I read correctly, turning off CPU cores is done programmatically then
[ZenFone 2 Android Development] ansebovi:
http://xdaforums.com/general/genera...overnors-o-t3048957/post59289777#post59289777

The cpu governors I seen the most is covered by this guide... If you have time, just go through it..

Btw I never touch the clock or alarm..

And it drain my battery so much in idle and screen on... But I limited it using amplify , after that only I have great standby, which I mention in my last comment. .
[ZenFone 2 Android Development] S#@DY:
Can anyone please confirm it on ZE550ML model ?
[ZenFone 2 Android Development] 29y6145:
Can you [MENTION=2388665]TheSSJ[/MENTION] add cpu yankactive ???

Because my use s5 lteA battery very good

S5 lteA pin 2800 screen 2k snap 805.

Gửi từ SM-G906L của tôi bằng cách sử dụng Tapatalk

---------- Post added at 04:51 PM ---------- Previous post was at 04:50 PM ----------

Sr english my bad

Gửi từ SM-G906L của tôi bằng cách sử dụng Tapatalk
[ZenFone 2 Android Development] aziz07:
I got it working using script manager app but having a flashable zip is much faster and especially that it is optimized more frequently than the script (v2.3 for flashable and v2.2 for script). The original thread I got the L Speed mod zip from:

http://xdaforums.com/android/software-hacking/tweak-l-speed-v1-0-02-02-2015-t3020138
[ZenFone 2 Android Development] TheSSJ:
Does it have anything to do with my kernel ? If not, could you please open a new Thread to discuss this?
[ZenFone 2 Android Development] taylor.fowler:
[MENTION=5510605]aziz07[/MENTION] Pop it up in Q&A.

Sorry for the noise!
[ZenFone 2 Android Development] TheSSJ:
Many thanks for not cluttering this thread :)

As a reward I can confirm now that everything works as intended! GPU clock is unlocked (not overclocked): min_freq is 200MHz and max_freq 640MHz

Get it on my G-drive while I am updating my OP a little :)

On a sidenote: My wife asked me why I upload the img AND the zip...honestly she has a point, as either you can flash via recovery directly, or you just extract the img and flash it in userspace...

So don't wonder if I delete the img files once in a while, the zips will remain of course
[ZenFone 2 Android Development] Zetsubou Sensei:
First post on first page. Just search for "download"
[ZenFone 2 Android Development] MironV:
Awesome work!

I've been using the OC to create a gaming profile in Kernel Auditor with a higher min freq and a higher max freq - that enables itself via Tasker whenever I launch a game :D I've been using this kernel since the early builds...but I've always experienced an issue with it and SuperZen ROM. My phone gets stuck on the boot animation very often. Anyone else experiencing this? Thanks..
[ZenFone 2 Android Development] TheSSJ:
I know what the issue is, next build fixes this, thx for the feedback

Everything is enabled, kernel adiutor doesn't show this value

Does it drain your battery? Mine still has awesome deep sleep times, don't know why bbs shows this, but as long as the battery is good, everything is ok, isn't it?

BLX is working on mine - the phone ends the charging procedure properly on mine

Google it :) Snappy is faster in compression and decompression. LZ4 compression speed is slower than LZO, but faster in decompressing compared to LZO

http://blog.erdemagaoglu.com/post/4605524309/lzo-vs-snappy-vs-lzf-vs-zlib-a-comparison-of

Maybe it's touchboost related, do you touch the screen when it is showing the boot animation? Don't know if anyone else is experiencing this, but it could be also related to OC ?
[ZenFone 2 Android Development] MironV:
No..I'm not touching the screen :( Though I do have a screen glass protector and a front dbrand skin. I had this issue before the OC feature was available and it was still there after clean installing the SuperZen ROM. I may try PRISM Barebone now..Btw..what ROM do you use?