yashsingh1/xdaforums huggingface dataset:
[ZenFone 2 Android Development] S#@DY:
No idea really.. Phone goes to dee sleep,but whenever screen is on, it shows wifi is running.

Also how can I solve the Blx problem?
[ZenFone 2 Android Development] allasca:
On stock 90 with this kernel my camera show yellow.... back to stock kernel no yellow... thx
[ZenFone 2 Android Development] TheSSJ:
I am just using stock ROM, without any modifications

Also no idea...well, I will inspect the battery code to see where the charging should be ended, too. To which value did you set the BLX limit?

Changelog of .90 ROM states that the yellow color is removed. I am still using the 2.20.40 source code as Asus didn't release the new version. This is why you see yellow
[ZenFone 2 Android Development] allasca:
Will you update to new source??? [MENTION=2388665]TheSSJ[/MENTION]
[ZenFone 2 Android Development] pac213:
Will wait for the new version. v85 just turns off the backlight on my screen.
[ZenFone 2 Android Development] Bastaerd:
If Asus releases it, I think there will be a 99,9999999% probability of that happening.
[ZenFone 2 Android Development] S#@DY:
The one in the pic... 96% actually
[ZenFone 2 Android Development] TheSSJ:
Hotfix for BLX published
[ZenFone 2 Android Development] ImjuzCY:
Auto brightness problem is still there for me.
[ZenFone 2 Android Development] TheSSJ:
Well, as I am using only manual brightness I never checked that...well, back to the code :(
[ZenFone 2 Android Development] allasca:
Dear master.... [MENTION=2388665]TheSSJ[/MENTION]

May you add stock kernel 90 build, with governor, I/O scheduler and tcp algorytm?

Thankyou very much.
[ZenFone 2 Android Development] Jonno12345:
Stated a few times in the thread - can't unless Asus release the source.
[ZenFone 2 Android Development] TheSSJ:
See attachment, do you have the link to the newest source? Don't think so :p
[ZenFone 2 Android Development] allasca:
LOL LOL LOL LOLLOLOLOL.... my bad... XD
[ZenFone 2 Android Development] TheSSJ:
Hotfix 85c rolls back the backlight changes for now - everything works as before as I need to go now. Will continue to fix this tomorrow
[ZenFone 2 Android Development] Nyks45:
I think you kernel makes the device more fast
[ZenFone 2 Android Development] TheSSJ:
Definitely ;) with the better mem caching i gained roughly 500 antutu points
[ZenFone 2 Android Development] nicopi:
What are best gov and scheduler for battery?
[ZenFone 2 Android Development] S#@DY:
Is v84 still the last stable release?
[ZenFone 2 Android Development] ImjuzCY:
v85c. v85 and v85b have autobrightness problem. v85c is stable without autobrightness problem like v84 with additional vmacache
[ZenFone 2 Android Development] S#@DY:
I thought he removed the auto brightness making it same as v84
[ZenFone 2 Android Development] ImjuzCY:
v85 including v85c have vmacache
[ZenFone 2 Android Development] S#@DY:
As i said earlier, bbs is still saying wifi running whole time, no matter if screen is on or off...

Losing a lot of battery because of this...

Does tcp congestions has to do anything for this?
[ZenFone 2 Android Development] Bastaerd:
Did you disable Wi-Fi scanning?
[ZenFone 2 Android Development] mrfaggio:
Hi,

which rom do you use to test your kernel?

and which rom uses your kernel?

thanks
[ZenFone 2 Android Development] TheSSJ:
I am running on pure stock, just froze some apps. No ROM uses my kernel as standard, too...

____________

v86 is out:

- Min_brightness is working now without f*cking up the brightness

- Versioning implemented (check kernel info in kernel adiutor if you are curious :p )
[ZenFone 2 Android Development] TenchiMasaki:
What do the ARCH and SUBARCH environment variables need to be set as to compile a working kernel?
[ZenFone 2 Android Development] Tiongkia:
Thanks so much!

Ram is indicated 3G since v84. Correct?
[ZenFone 2 Android Development] allasca:
Bioshock hang after reboot, did everyone experient this?

Working well now
[ZenFone 2 Android Development] S#@DY:
Stock rom..
[ZenFone 2 Android Development] kriegschluesser:
Ram shows 3G??
[ZenFone 2 Android Development] TheSSJ:
https://github.com/TheSSJ/device_asus_zenfone2/blob/master/BoardConfig.mk

True, but typing free in cmd line shows the whole RAM. If I knew where Android takes the RAM Info in the properties window I could fix this, but without knowledge that's not so easy :/
[ZenFone 2 Android Development] Bastaerd:
About the RAM, doesn't Android get that value from the build.prop?
[ZenFone 2 Android Development] Dan_Jacques:
I'm downloading the Asus source to compare some things.

First: after reading it Intel for Android* Developers Learning Series #8: Building the Android* OS for Intel Processors, see that's a possible optimization to Atom, editing Arch/x86/Makefile_32.cpu:

To enable Intel-specific optimizations for Intel® Atom™ you need to modify the arch/x86/Makefile_32.cpu file:

· remove the line configuring cflags-$(CONFIG_X86_GENERIC);

· add the line cflags-$(CONFIG_MCORE2) += $(call cc-option,-xSSSE3_ATOM).

We cannot simply add -xSSSE3_ATOM to the remaining options, because they would be overridden by GNU* compiler options like –march=i686.

Second: (it can be a dumb question)

But a thing spotted my attention: Did you test using -DUSE_SSE4 in TARGET_GLOBAL_CFLAGS?
[ZenFone 2 Android Development] TheSSJ:
These optimizations apply only to ICC compiler, not GNU GCC :)

I will add the flag to the target_global_cflags variable to see if it has any effect

Dunno, I never change the build.prop items though :(

What was slow? Recovery or the ROM? Recovery needs some additional patches for x86, otherwise it should work without errors. Link to Hyper Linaro toolchain (all credits to [MENTION=5051294]frap129[/MENTION]): https://github.com/hyper-toolchains/x86_64-linux-linaro4.9
[ZenFone 2 Android Development] TenchiMasaki:
Everything was very slow booting up of initial logo stayed on for several minutes without progressing to booting ROM logo and adb would login but was very unresponsive. So there must be something wrong with the way I am building it... I am not building recovery, but just boot.img for regular boot into ASUS ROM. I tried your latest kernel source and v86 boot.img both overclocked and regular for it.

Which boot.img extraction and build tool do you use?

UPDATE: Using linaro compiler didn't seem to help things at all unfortunately still stuck at initial Asus logo and adb shell doesn't even login now.

What are your make parameters maybe those are affecting the build?
[ZenFone 2 Android Development] Dan_Jacques:
I'm downloading the INDE Professional (wow, It's free!) to learn someting :fingers-crossed:

Well, according the GCC Documentation, the most closer -march to use is -march=silvermont

GCC Documentation - x86 options

EDIT:

-march=atom optimizes the code for past Atom with HT (in-order processor with HyperThreading, without SSE4). -march=silvermont recognizes the new features of the lastest models (and the lack of HT, it's unnecessary at all).
[ZenFone 2 Android Development] HydrogenCyanide:
This kernel works on 1.8Ghtz model?
[ZenFone 2 Android Development] TheSSJ:
I just use the same instructions as Asus is explaining them in their readme. If you use another repo (like deadman's kernel), then the procedure might differ.

I think the Asus buildfile already defines march as silvermont

ifeq ($(BOARD_USE_64BIT_USERSPACE),true)
TARGET_ARCH := x86_64
TARGET_CPU_ABI := x86_64
TARGET_ARCH_VARIANT := silvermont

TARGET_2ND_CPU_ABI := x86
TARGET_2ND_ARCH := x86
TARGET_2ND_ARCH_VARIANT := silvermont
else
TARGET_ARCH := x86
TARGET_ARCH_VARIANT := x86-atom
TARGET_CPU_VARIANT := x86
TARGET_CPU_ABI := x86
endif
TARGET_CPU_SMP := true
TARGET_NO_BOOTLOADER := false
TARGET_NO_RADIOIMAGE := true
TARGET_NO_RECOVERY := false
TARGET_PRELINK_MODULE := false
TARGET_PROVIDES_INIT_RC := true
TARGET_USERIMAGES_USE_EXT4 := true
TARGET_RIL_DISABLE_STATUS_POLLING := true

Read the first 3 lines of the very first post - ZE550ML => cieffe's thread, ZE551ML => my thread. The clocking of your CPU is not important, you just need to know the model number
[ZenFone 2 Android Development] EViollet:
Hi.

I'm very new to this kernel (and this phone), and can't seem to understand how to change the governor and IO. Whenever I try to change the governor via SetCPU and NoFrills, the phone freezes.

I'm using the latest kernel v86. I tried the OC/UC and the normal versions. They both give the same results.

Which app do others use to change the governor?

In advance, thanks.

Regards,
[ZenFone 2 Android Development] allasca:
Go playstore find kernel adiutor
[ZenFone 2 Android Development] EViollet:
Thanks. That seems to work.

Cheers.
[ZenFone 2 Android Development] TenchiMasaki:
I used the Asus instructions from README to build kernel with the same results... can you let me know the steps to build the boot.img properly I think that is where it is messing up?
[ZenFone 2 Android Development] S#@DY:
Dont know why the kernel is not fitting with my use since last few release...

'keep scanning on' automatically starts in many occasions... Battery backup has also decreased.
[ZenFone 2 Android Development] TheSSJ:
Last piece of the puzzle (although I doubt that this is the reason):

https://github.com/xiaolu/mkbootimg_tools

Unpack and repack just the "kernel" binary using this tool. Just use my ramdisk, but you need to replace the .ko files with the ones you have built
[ZenFone 2 Android Development] TenchiMasaki:
Thanks alot for all your help!

This was the key to making a booting kernel all the other packers didn't work properly.
[ZenFone 2 Android Development] TheSSJ:
V88 is out

- Upgraded F2FS driver to latest sources (3.10. kernel backport)

- Fixed F2FS mounting problems

The path is now clear to create the first ROMs with F2FS formatted partitions (system, data and cache) :)
[ZenFone 2 Android Development] Dan_Jacques:
How can I say "Thanks" 10 times? :highfive:

Great! :good:
[ZenFone 2 Android Development] eoghan2t7:
Nice will you be adding f2fs support into both the ramdisks for the kernel and twrp?
[ZenFone 2 Android Development] whynottoday:
Home key is not working anymore with v88. Strange ?
[ZenFone 2 Android Development] eoghan2t7:
It's working fine for me.
[ZenFone 2 Android Development] TheSSJ:
My TWRP already supports F2FS (an earlier version, though, will upgrade it soon). Also I need to check the fstab file if just mentioning "auto" as type is enough or not. Mounting a F2FS formatted stick only works manually by using the mount command. The Android OS doesn't recognize the filesystem...maybe it is just a code line which would be needed to be patched, who knows :)
[ZenFone 2 Android Development] mrfaggio:
YUPPIIIEEEE!!!!!

You are the best! :)
[ZenFone 2 Android Development] eoghan2t7:
Twrp will format the partitions to f2fs but will fail to read the new partition format due to the fstab not being able to read it if you look at the link in one of my previous posts you will see what way the data and cache partitions can be read using f2fs.
[ZenFone 2 Android Development] TheSSJ:
Big big news guys,

I removed as much modules as possible and integrated them into the kernel directly, except the camera driver (which was the reason why the stock ROM never went into deep sleep). I reduced the module count from 19 to 5, which speeds up the boot process by a lot (while still guaranteeing deep sleep :) ).

Expect better boot times with v90!
[ZenFone 2 Android Development] Ahmed Momtaz:
link t the Stock Kernel please ?
[ZenFone 2 Android Development] TheSSJ:
Still need to finish testing it, later today I'll publish it
[ZenFone 2 Android Development] AdOS16:
I have take the V88 for my brother with his zenfone 2 ze551ml based on stock ROM with 2.20.90 update. This kernel run perfectly, but I have a question, this modified kernel solve the problem of Android plateform drain battery?
[ZenFone 2 Android Development] shyamSGY:
Installed this kernel today .. booted up fine for the first time .. after that I rooted it with twrp .. and now it doesnt boot up .. What might be the reason? :confused:
[ZenFone 2 Android Development] allasca:
How to use f2fs? Sorry newbie
[ZenFone 2 Android Development] wifestealer:
Nope cause that's 5.0

You could use cpu reloaded
[ZenFone 2 Android Development] krasCGQ:
You need a recovery that capable for formatting partition as f2fs (TheSSJ's TWRP is able to do this). Also you need a ROM and a kernel that have support for mounting f2fs partitions.

Sent from my ASUS_Z00AD
[ZenFone 2 Android Development] wifestealer:
Jajaja, I'm newbie too and I don't know how to use this feature also xD
[ZenFone 2 Android Development] TheSSJ:
Nope, it just mitigates the OS drain, though. I read somewhere that you need Xposed and a certain module combo to reduce the drain to 1-2 %. Basically it let's wake up the device much rarer than before, as far as I read

Good question! Otherwise just wipe the cache & dalvik and retry. If this doesn't work, then you would need to wipe the data, too.

It's just a file system like ext4 or exFat. It is called "flash friendly", which means it increases I/O performance. As this driver is relatively new you just find it in some Google Nexus custom ROMs or some kernels as ROM cooks need to create their custom builds around F2FS. My kernel is just able to read/write to such partitions, so at the moment consider it as "nice to have"
[ZenFone 2 Android Development] mrfaggio:
Have you already entered, or may you insert this module in your kernel?

http://xdaforums.com/xposed/modules/xposed-mobileradioactivefix-t3189393
[ZenFone 2 Android Development] AdOS16:
you'd have the list of applications to take with Xposed please?

Thank's
[ZenFone 2 Android Development] wifestealer:
A. I don't have any kernel.

B. It's module so you need xposed

C. I'm using cpu spy reloaded app and testing it cause I've used that app before also.

D. I'm on stock particularly so I have no desire to flash xposed
[ZenFone 2 Android Development] mrfaggio:
there is a misunderstood.

A. i ask to TheSSJ if he can insert this module inside his kernel

B. i know it is a xposed module, but i'm not a developer so i asked if it is possible insert this code into the TheSSJ's kernel

C & D. No answer. my post wasn't direct to you.

bye

PS: sorry for my english
[ZenFone 2 Android Development] wifestealer:
Lol you quoted me man so I replied
[ZenFone 2 Android Development] mrfaggio:
yeaahhh you are right :)

i see it later

i wrong the quote.

sorry :p
[ZenFone 2 Android Development] TheSSJ:
This is nothing kernel related, Android ROM needs to be patched
[ZenFone 2 Android Development] Dan_Jacques:
Apparently this bug doesnt affect ZF2. Mobile radio doesnt appears to be comsuming much battery on battery stats.
[ZenFone 2 Android Development] mrfaggio:
ok. A friend of mine tried it and told me that lengthened the battery life of a half-hour , that is better than nothing.

But he did it with an older version of the original ROM.

Perhaps with new versions of the patch has already been applied or like you said; Apparently this bug doesnt affect ZF2.

good.
[ZenFone 2 Android Development] Dan_Jacques:
Half hour can be directly affected by the user behaviour. A "placebo" effect over the phone usage.
[ZenFone 2 Android Development] gaetanolip:
Hi,

may you add ntfs for microdsd support please?
[ZenFone 2 Android Development] wifestealer:
you're right. Its only 2%
[ZenFone 2 Android Development] TheSSJ:
Read access is possible, write support only possible with fuse driver ntfs-3g. Won't work for micro SD as there is no kernel driver able to read/write to NTFS formatted drives. Please use exFat

_________________

v90 is out, less modules, more performance
[ZenFone 2 Android Development] prc.kailas:
which zip do i need to flash to oc ?
[ZenFone 2 Android Development] ligu:
Just a bit confused, do you mean the camera driver is causing the kernel not going into deep sleep?
[ZenFone 2 Android Development] prc.kailas:
[XPOSED] MODULES - SMARTBOOSTER and DS BATTERY , both of them works fine.
[ZenFone 2 Android Development] Dan_Jacques:
integrating to the kernel (not module) causes issues with deep sleep.
[ZenFone 2 Android Development] TheSSJ:
You seem to learn fast ;)

Indeed, as soon as I integrate the cam driver into the kernel, the camera is not able to be used anymore and the phone never goes to sleep. When I switch back to modules, everything is fine...I think there is a timing problem (race condition?)
[ZenFone 2 Android Development] crpalmer:
It works fine in CM with no modules. There are at least one commit fixing a typo in the original and one to set the module parameters correctly and to configure it for delayed loading.

Try finding those commits and it should fix things for you.
[ZenFone 2 Android Development] TheSSJ:
I already used late_initcall instead of module_init (used all camera related commits in the CM_zenfone2 repo to be honest, including setting the camera parameters directly in the source, which were normally supplied using insmod), still no luck. It seems the stock ROM seems to work differently compared to CM based ones...
[ZenFone 2 Android Development] whynottoday:
V90 is really really great ?
[ZenFone 2 Android Development] crpalmer:
You really should include your defconfig in the kernel in arch/x86/configs. Everything else you did in the kernel for the camera seems reasonable, but I couldn't check that part of it...

I think you need to also have:

CONFIG_VIDEOBUF_GEN=y

CONFIG_VIDEOBUF_VMALLOC=y

if you don't already.

The user-space changes we made were purely to cleanup dead configuration (e.g. insmod for modules that don't exist) and I don't expect CM to be doing anything different that would magically allow the camera to get initialized properly.
[ZenFone 2 Android Development] tasar:
Where can i download the orig. stock kernel from last update as flashable Zip?

Edit: Really no one can help? I search on XDA but found no flashable stock kernel (latest)
[ZenFone 2 Android Development] tuilalnvinh:
You can get stock boot.img and flash it directly in twrp
[ZenFone 2 Android Development] ck007:
You have to go to https://mega.nz/#F!k4MHiAgL!dVuOKeH3eokcwPSNI79ffw Next download boot.img from your latest version of stock rom folder. Enter in bootloader mode and flash boot.img with fastboot command (fastboot flash boot boot.img). That's it!
[ZenFone 2 Android Development] meciu99:
waiting for new version with KVM support!
[ZenFone 2 Android Development] kriegschluesser:
Yes where can i get it? :confused:
[ZenFone 2 Android Development] ImjuzCY:
There's a link two post above yours
[ZenFone 2 Android Development] Xda909:
On V90, my Display Backlight shuts off completely when on Automatic, dark environment, no charger plugged. It took 2 days to recognize the source of the problem - I thought my Display is broken ;)

Has anybody else this issue?
[ZenFone 2 Android Development] TheSSJ:
24-09-2015 v91

- Speed up I/O operations on file systems

- Algorithm changes to use faster multiplication by shifting

It's just a small changeset as I am held off with my real life work at the momen :silly:

Try rising your min_brightness to 5 or 10, I don't have this issue and already checked the correct functioning with the auto brightness so I can't reproduce the error :eek:

Soon I will make a special KVM edition
[ZenFone 2 Android Development] krypt0:
Does the ASUS power saver app conflict?

As the title asks, I am wondering if the stock rom's power saver app conflicts with this kernel? I am wondering if I should freeze the app, but if it actually works in tandem with the kernel than I think I will keep it. Please advise.
[ZenFone 2 Android Development] TheSSJ:
I froze it because the app is useless if you take care of everything manually (freezing apps, using greenify, etc)
[ZenFone 2 Android Development] Xda909:
Backlight-Problem solved: the ASUS PowerSaver App switched to balanced mode and set my display to 80%. Thats why it shuts off with low ambient light and the low minimum brightness in the kernel.
[ZenFone 2 Android Development] Emblema:
I was going crazy about this
[ZenFone 2 Android Development] TheSSJ:
Man, not every Asus app hamonizes well with a custom kernel :) I updated to 2.40.90 and noticed that the system just generates a dark overlay when selecting the lowest brightness...:silly:

I'd honestly call this a workaround, it works, but doesn't look like a pretty fix......
[ZenFone 2 Android Development] Emblema:
Now it's better, of course it's a workaround but works ? if anybody aren't satisfied can try lux it's an app that works fine.

Sent from my Asus Z00A
[ZenFone 2 Android Development] glock24:
Lux also uses an overlay, but you can select various "brightness" levels according to ambient light and set profiles.
[ZenFone 2 Android Development] S#@DY:
Is there anything else to include in the kernel :p
[ZenFone 2 Android Development] Emblema:
Amazing [emoji106] [emoji106]

Sent from my Asus Z00A
[ZenFone 2 Android Development] Jonog:
What file do I download please to use with Superzen ? OC desireable. Thank you.

EDIT

I have the 4gb model. It appears I only have the Intel Atom Z3560 1.8ghz processor though.

I installed the project T kernel and Kernel auditor and set it to 2.ghz. Is this the max I can get out of it?

EDIT EDIT

Kept turing off at 2.GHZ. Back on Kernel that came with Superzen.
[ZenFone 2 Android Development] allasca:
Use the latest stock .97

And latest kernel 91.

When i see white (messeging) and not white (wallpaper at home)

Why autobrigness feel like on... the screen go dark and bright... thx... [MENTION=2388665]TheSSJ[/MENTION]
[ZenFone 2 Android Development] gaetanolip:
hI

here my dump overnight ( asus zenfone 2 551ML root, kernel v90, rom superzen)

LOST 1% per hour , 4g on and wifi on ( wifi on but not connected to any router, always scan disabled ) sync off when screen off, gps off, location off.

used greenify, apmplify and appops exposed. i think the culript is wifi ( kernel), in fact i notice much more drain in standby using wifi than 4g.

any help please?
[ZenFone 2 Android Development] lyeith:
its caused by asus powersave.

either set it to performance, or the brightness setting to high
[ZenFone 2 Android Development] TheSSJ:
Another user had the same problem. Wiping the cache and dalvik solved it
[ZenFone 2 Android Development] allasca:
Already set to perfomance... but still go bright... if i see the white background.... :(
[ZenFone 2 Android Development] TheSSJ:
Sorry if I do not respond very often these days - have a lot of personal things to work out...

My next release will set the minimum brightness to the ASUS default value and people who want to lower it will need to set this via init.d, maybe this will work for everyone then :)

Cheers
[ZenFone 2 Android Development] Emblema:
Nice Idea!!

Sent from my Asus Z00A
[ZenFone 2 Android Development] lolwatpear:
can you allow higher overclocking on the lower clocked model? I think it could handle it. I'm pretty sure the only difference between the CPUs are the clocks themselves.
[ZenFone 2 Android Development] S#@DY:
I think they don't, a 1.8ghz cant be overclocked to 2.5ghz...

I think 2.0ghz might be the limit, you may have a melted phone in your hand...

Overclocking has a limit which might be 2.0 for us
[ZenFone 2 Android Development] Xda909:
It doesn't matter because OC doesn't work at all ;)
[ZenFone 2 Android Development] Abd121:
This works with CM based roms?

Update: there is a note in black but my xda app were set to dark.... Nvm this
[ZenFone 2 Android Development] lolwatpear:
Howso? I have mine overcooked to 2.0ghz. Kernel auditor is reporting it as such.
[ZenFone 2 Android Development] hcarrega:
gonna give a try to this kernel
[ZenFone 2 Android Development] Dan_Jacques:
But performance doesnt change.
[ZenFone 2 Android Development] hcarrega:
so can anyone post the best settings for this kernel ?
[ZenFone 2 Android Development] ImjuzCY:
I used all default except CPU underclocked to 300-1250mhz and yankactive. You should also try TheSSJactive
[ZenFone 2 Android Development] tuilalnvinh:
Stock kernel in fw 40.97 has more free Ram than v91, anyone notice this ?
[ZenFone 2 Android Development] Bastaerd:
Unused ram is wasted ram, except if it causes the LMK to kick in.