yashsingh1/xdaforums huggingface dataset:
[ZenFone 2 Android Development] TheSSJ:
Mh, the fact that the phone is crashing even with the stock governor and scheduler (interactive and cfq) seems to be a problem of kernel adiutor...

Did you try to set JUST the CPU governor on boot and leave the IO scheduler like it is? Because this works flawlessly on my phone, so I'd say setting the IO Scheduler on boot gets the device to crash

How's about the readahead settings? What did you set there?

I will try to reproduce the error and then try to just turn off async fsync to see if it works. If not, then I will set sioplus as standard IO scheduler to see if this works. Then we can be sure that this is a problem of kernel adiutor

/EDIT: Setting CPU gov and Sweep2Sleep for example works flawlessly, so at least we can downsize the problem of being the IO scheduler setting at boot. Will check if setting another IO sched at compile time will get the phone to crash (later this day)
[ZenFone 2 Android Development] mapre64:
[MENTION=2388665]TheSSJ[/MENTION]

... readahead was default 512...

Now turned off scheduler apply ... & everything ist fine :)

Govener & wake2sleep was in.

Ps: sweep2sleep ist fine ... is there the same sensor aktive as for tap2wake ore only touch?

... sweep2wake ???

Gesendet von meinem ASUS_Z00AD mit Tapatalk
[ZenFone 2 Android Development] TheSSJ:
Well, basically the touchscreen area comprises not only the surface where you can touch the Android UI, but also the capacitive buttons are just part of the touchscreen, so technically we don't have a 5.5 inch screen, but 5.6' or so. So my event handler is just checking for that specific area of the touchscreen if the user presses the finger against it.

So yeah, it should be the same sensor than tap2wake

Currently my event handler turns off when the screen turns off. I think it is possible to wake the device also up when sweeping, but it depends of whom is actually liking such a feature (even if coding is fun, it still takes some time to implement new features)
[ZenFone 2 Android Development] mapre64:
[MENTION=2388665]TheSSJ[/MENTION] ... no problem ... I don't really nead this features.

I use tap2wake & LMT longpress to poweroff.

Gesendet von meinem ASUS_Z00AD mit Tapatalk
[ZenFone 2 Android Development] ImjuzCY:
Maybe it's too much to ask, but is there any possibility to fix the randomly faulty doubletap2wake? (or implement another replacement for it ?)
[ZenFone 2 Android Development] TheSSJ:
If you tell me what you mean by randomly faulty double tap2wake?? Mine works flawlessly and always did up to now, if I don't see errors I can't try to fix them ^^
[ZenFone 2 Android Development] ImjuzCY:
Don't know if you're lucky or some of us are unlucky, but for me, dt2w won't work sometimes.
[ZenFone 2 Android Development] mapre64:
... on my zf2 double tap2wake works always - never had a problem with it ...

using "SuperZen - 2.19.40.22 Full"
[ZenFone 2 Android Development] ImjuzCY:
Maybe it's just that I'm unlucky. Sometimes it won't work for me then I need to use power button to wake
[ZenFone 2 Android Development] malatama:
[MENTION=2388665]TheSSJ[/MENTION]

Flashed the kernel and been using over few charge cycle. However Android OS still consumed over 50% of the battery usage.

Been using yankactive and sioplus as recommended. Only got ard 3hrs SOT.

Any possible setting that is wrong that prevent me from experiencing the full potential of this kernel?

And do I need to wipe cache/dalvik after flashing?
[ZenFone 2 Android Development] TheSSJ:
Wipe cache could never harm to be honest...

I also have Android OS consuming a lot of battery, this is nothing that a kernel can fix, just mitigate to some degree. If you have already set the governor and IO scheduler there is nothing else which really could influence that (most of the things are situated "under the hood")...

Cheers
[ZenFone 2 Android Development] malatama:
Ahhh I see. Guess I got to live with it or trial and error with more configurations! Other than that the kernel is working well! Looking forward to further development!
[ZenFone 2 Android Development] corrsea:
It could be more to do with your Telco than anything you are doing. Try avoiding auto switching, use 2g most of the time and only switch on 3g, 4g when you actually need it.

You can do this automatically with apps like intelli3g or smart network.
[ZenFone 2 Android Development] ImjuzCY:
Sad to tell that I'm still having the touch freeze problem with v65 together with Prism Barebone v3 based on latest update 2.20.40.59. Didn't face it with 2.20.40.58 based rom. Not sure if it's the ROM or the kernel
[ZenFone 2 Android Development] TheSSJ:
Didn't you answer this yourself with above quotation?

As I don't have the newest ROM installed and the newest kernel source is not available nothing can be done on my side. I assume some scripts on Asus side are causing this

Maybe i will realize the touchboost as i did the sweep2sleep part,could fix it :)
[ZenFone 2 Android Development] AL_IRAQI:
I don't have any touch problems with .59 :)
[ZenFone 2 Android Development] rlaw:
3G radios are more power efficient than 2G and 4G radios more power efficient than 3G. Plus race to idle with faster data speeds results in more power savings.

The only time you should lock radios to 2G is if you only want/need voice and SMS and have autosync and data use for apps turned off. The only time you'd want 4G off is if you're in a poor reception area and you see your phone constantly switching from between network modes.
[ZenFone 2 Android Development] BTiwari:
can any one help me i am using stock ROM 2.19.40.18 and this kernel v65 my zenfone is able to turn on blutooth please help
[ZenFone 2 Android Development] TheSSJ:
Hi,

http://xdaforums.com/zenfone2/help/qa-project-t-custom-kernel-zenfone-2-t3152043/page6

start with post 54 onwards. BT and WiFi seem to get out of sync sometimes, then you need to reflash stock and retry flashing the kernel
[ZenFone 2 Android Development] BTiwari:
try it but no luck thanks for help hope next update will fix this
[ZenFone 2 Android Development] ImjuzCY:
So is there any conclusion about the proc files? What causes it? Other than using a script to remove it as a workaround is there any fix?
[ZenFone 2 Android Development] cangcan:
many users stated that L Speed mod cause this files to appear..if you installed it, try to uninstall it and see if its reduced or stop producing the proc files..
[ZenFone 2 Android Development] mapre64:
[MENTION=2388665]TheSSJ[/MENTION]

is there a possibility to influence the system brightness in the kernel?

I want to dim the min brightness lets say by 50%?

... I did the build.prop hack

ro.lcd_min_brightness=3

... but the result is unsatisfying ... it dimms only a little bit :(

...but better then nothing.

tapatalked
[ZenFone 2 Android Development] TheSSJ:
http://xdaforums.com/zenfone2/orig-...-1-nightly-t3164144/post62323746#post62323746

Here is the proof that it is NOT kernel related, it would be better to report that to the L-Speed developer to get this finally out of our forums

Need to check where the brightness is controlled and which component (kernel or android system) determines the minimum brightness
[ZenFone 2 Android Development] AL_IRAQI:
I don't use L Speed and i have proc files ?

And it doesn't bother me :)
[ZenFone 2 Android Development] TheSSJ:
Guys and girls :)

I'm really sorry i've been inactive for such a long time. To make it up to you I exported the whole touchboost code to sweep2sleep and implemented tb as switch so that you can decide if you want to switch tb on or off.

Will edit this post and the Changelog when done of course

Next build will feature minimum brightness set to 10% instead of 15% (found the code)

EDIT: UP!

Well, maybe it's related to other mods (xposed maybe)
[ZenFone 2 Android Development] mapre64:
... minimum brightness works great!!!

This will be the best battery saving mod!!!

You are the best!

tapatalked
[ZenFone 2 Android Development] TheSSJ:
Ooops, maybe I didn't formulate it better :( v67 will introduce minumum brightness, which is uploaded now - sorry for the confusion (screen should be even darker with v67. I will try lower values in the future though to optimize it more)
[ZenFone 2 Android Development] mapre64:
disable sweep2sleep and no touch boost ... works also :)

What's different with your exFat implementation?

With the stock kernel it's not possible to read files & directories generated with yours on the MicroSD-Card :(

First I thought ASUS broke exFat support, because TWRP could read this files/dirs. from my Kingston 64GB SD class10.

Also filesystem-check with card reader was ok.

Now I installed v65 and ...

all files / dirs are back & ok:)

Why??

tapatalked
[ZenFone 2 Android Development] TheSSJ:
[MENTION=221266]mapre64[/MENTION]

I think there was an issue with async rsync maybe...exfat support comes from a leaked version from Samsung,dunno where Asus got it (also I'd love to have their ntfs.ko source,then we could be independent from fuse system)
[ZenFone 2 Android Development] mapre64:
... this was not the only case ... I have 100's of dirs & Gigs of jpg's & orf's(raw-files from Olympus)

Created over the last month.

With different ip-schedulers & ra-buffer.

And all this dirs are not visible in stock!

Some of them are found as files with size 0 and 1970...

At the PC everything is here ...

And with your last kernel everything is back & ok on my ad-card.

tapatalked
[ZenFone 2 Android Development] S#@DY:
After flashing in the new updated build, com.ASUS.services has stopped working. .

How to use sweep2sleepn
[ZenFone 2 Android Development] TheSSJ:
Wipe cache and flash again pls

See the downloads tab or look at kernel adiutor ;)
[ZenFone 2 Android Development] ck007:
What is your firmware version? If it's the latest the problem is the asus app energy saver. I freeze it and now I haven't this error at startup
[ZenFone 2 Android Development] S#@DY:
You mean the power saver app? If yes then thats why I'm asking why is it happening.

Also does sweep2sleep work on latest build for you?
[ZenFone 2 Android Development] ck007:
Yes I mean power saver app. I don't know why it happens. Sweep2sleep works great with kernel adiutor.
[ZenFone 2 Android Development] S#@DY:
Oh sorry, i forgot, [MENTION=2388665]TheSSJ[/MENTION] has already stated that it works for ze551ml,not on ze550ml (display area are different)
[ZenFone 2 Android Development] TheSSJ:
New items added to roadmap:

BLX (Battery Life eXtender)

Sweep2wake (hopefully possible)
[ZenFone 2 Android Development] S#@DY:
For ze550ml?
[ZenFone 2 Android Development] TheSSJ:
Sorry, but as my OP describes: Please note that I do my testing on a ZE551ML 4GB 2,3GHz

I don't own the ze550ml and I don't plan to buy one as I am not developping full time - this is just fun and learning for me and I cannot afford to buy a device only to create custom kernels and stuff on this one, too (I know there are some devs out there that get appropriate devices to do so, but unfortunately I am not being sponsored by such companies :) ).

You need to rely on the possibility that anyone with a 550ML will do the same development stuff and implement the desired features in his/her kernel. We have reached a point now, where it is most likely not sufficient anymore to just change the dpi and be happy.
[ZenFone 2 Android Development] S#@DY:
Is there any boot. Img packing tool for windows? Ive used many, but only our phone's boot.img doesnt repack.

Also are you on the latest verison of stock?
[ZenFone 2 Android Development] TheSSJ:
[MENTION=2085303]cieffe54[/MENTION] is using a Windows tool to repack the kernel, but if you want to do serious development (compilation of source code etc.) you need to have a Linux machine/VM. I think you won't be coming around this fact.

I just tried to open the Asus Download section to see if the newest version is available, unfortunately the page doesn't open ATM
[ZenFone 2 Android Development] S#@DY:
Na na, I'm not totally into this. Just wanted to make the changes to 551 boot.img to make them work for 550,projecT as well as deathly. I'll be asking [MENTION=2085303]cieffe54[/MENTION].

Will try the hardcore development later on.

Also I can confirm that the latest version (2.20.40.59) of your device has been available on asus website.

And hey, is BLX available in your v67?
[ZenFone 2 Android Development] TheSSJ:
Don't understand why I am getting a blank page :(

BLX is on the roadmap - not implemented yet, check the OP :p

Edit: Found the code piece, so BLX should be possible: https://github.com/TheSSJ/android_k...power/ASUS_BATTERY/asus_battery_power.c#L1124
[ZenFone 2 Android Development] S#@DY:
Check your inbox.
[ZenFone 2 Android Development] cieffe54:
You have PM
[ZenFone 2 Android Development] TheSSJ:
Guys, got a humble request, can anybody upload the latest boot.img? At the moment downloading the image (1.1GB) fails and I need to copy the newest ramdisk. Copied already the newest kernel source over my base, so I wanted to check before publishing the new version

EDIT: Nevermind :)

v70 is up!

- newest base source from Asus

- set minimum brighness to 2% now
[ZenFone 2 Android Development] ImjuzCY:
Follow up for the proc_auxv files when using LS: uninstall busybox and reinstall busybox. This will help. The files are created by our default faulty version of busybox
[ZenFone 2 Android Development] TheSSJ:
Nice, how did you find out? Busybox isn't installed in the stock ROM so from where does this faulty version come from?
[ZenFone 2 Android Development] ImjuzCY:
I read the LS file from /system/bin and I noticed that busybox is the most called command, so I suspected busybox it is. Then I ran "busybox" in terminal emulator then here it is, a proc_auxv file in /sdcard. The LS script is full of busybox in every line so it means everytime busybox is called, one file is created.

The busybox is from LS and it's the arm version. I told [MENTION=5514152]Paget96[/MENTION] about it and he replaced it with the x86 version in the latest LS test version. It's solved
[ZenFone 2 Android Development] ai3gtmc:
Good work man, Can't wait for BLX! :) thanks!
[ZenFone 2 Android Development] S#@DY:
After BLX is out, it will be time to go back on stock
[ZenFone 2 Android Development] TheSSJ:
Didn't know that this feature is so popular? Anyways, found the piece of code which needs to be patched, shouldn't be too hard now
[ZenFone 2 Android Development] mapre64:
2% is fine :)

...this time I did the test indoor (and not beyond the beach umbrella ;) )

tapatalked
[ZenFone 2 Android Development] Paget96:
Thanks for that, I was updated x86 version with another busybox..

Feel free to use the latest test version ;)

Thank you again for contribution ;)
[ZenFone 2 Android Development] TheSSJ:
Coming back to topic!

I will test if the charging stops at the displayed limit, but at least it compiled, so I declare it has half a victory :)

Some words about the BLX implementation though:

I have built in a fail safe, that a user can't set the charging limit below 80% (in the original version 1% was an allowed value :confused: )

/EDIT: works a charm!!! Tomorrow v71 will be uploaded
[ZenFone 2 Android Development] eoghan2t7:
Nice to see blx added if you need it tested before release just pm me ;)
[ZenFone 2 Android Development] Status_Errorv1:
Whats the best Gov to use for a balance for Battery and Performance?

just flashed V70 current on TheSSJactive.
[ZenFone 2 Android Development] AlanRoot:
What is BLX?

I ask it because never see on this topic
[ZenFone 2 Android Development] Devhux:
I'm curious if others have had issues with auto rotation when "sweep2sleep" is enabled. It seems I have to toggle the auto rotation mode every now and then.

Disabling sweep2sleep seemed to fix it

Sent from my Golden Zenfone 2
[ZenFone 2 Android Development] samteeee:
@OP

Thank you for this project and your efforts.

I was wondering if you can implement "Vibrator Intensity Control" ?!

We all know how strong the vibrator is on ZF2, or at least I think so.

Thank you.
[ZenFone 2 Android Development] Okazakee:
What about adding row scheduler? It would be great!
[ZenFone 2 Android Development] TheSSJ:
So much feedback :)

I'd say bioShock or lionheart

BLX stands for Batterylife eXtender, read the first post here: http://xdaforums.com/nexus-s/development/mod-battery-life-extender-blx-t1257497

Cannot confirm, works as it should. Do you have a ZE550 or 551ML? Please note that sweep2sleep doesn't work on ZE550ML (display resoultion is different)! Touchboost works for both, though

If I find the source code piece where vibration intensity can be controllen, then maybe. It's always difficult to find the right spot with 400k files

Will check!
[ZenFone 2 Android Development] Devhux:
Using the 551ML.

Sent from my Golden Zenfone 2
[ZenFone 2 Android Development] TheSSJ:
New version v72 is up now! Only with BLX (Battery Life eXtender) though as I have some troubles implementing the ROW-IO-scheduler...will hopefully come in the next release

You can manipulate the charge limit via init.d, I prepared a little script for you :)

http://xdaforums.com/devdb/project/dl/?id=14128

It's in the download tab

HAVE FUN and thanks for the donation [MENTION=6804049]Lorka.Tinou[/MENTION] :)
[ZenFone 2 Android Development] Lorka.Tinou:
You're welcome [MENTION=2388665]TheSSJ[/MENTION]

I'm not using your kernel since I'm using Euphoria but you seem so dedicated to help getting the best of our phone I wanted to thank you.
[ZenFone 2 Android Development] ImjuzCY:
Minimum brightness is still quite bright imo
[ZenFone 2 Android Development] GGL-Daz:
I have the option to change the BLX value in kernel auditor however when I connect my device to the wall it still charges even when its higher then the specified value. Do I need to use the init.d script?
[ZenFone 2 Android Development] S#@DY:
Can you provide a hint for sweep2sleep on 550ml?Changes to be made.
[ZenFone 2 Android Development] Techronico:
[MENTION=2388665]TheSSJ[/MENTION] Do you plan to merge the recent version of the KVM code or is there no difference as that kernel was just updated to match the newest version of the Asus kernel?
[ZenFone 2 Android Development] TheSSJ:
Well, I have only the dmesg output to confirm and it at least says that the brightness is set to 2%

Man, why don't I see the batterlife option in Kernel adiutor? :/ would make things easier to test.

Could you provide me more data? To which value did you set BLX? At least by using it via init.d it stopped charging at the set limit (please note that you can't go lower than 80%, this is a lower bound that I have implemented

It's a simple resolution change...551 has 1080x1920, 550 has 720 x 1280. In the source code you would need to change this line:

https://github.com/TheSSJ/android_k...vers/input/touchscreen/sweep2sleepplus.c#L258

from

if(touch_y >= 1920 && touch_y <= 2500)

to

if(touch_y >= 1280 && touch_y <= 1700)

KVM won't be implemented anymore. If you want a kernel with KVM, either use v51 (I think) or switch to ycavans kernel as it impacts performance, sorry!
[ZenFone 2 Android Development] GGL-Daz:
551ML, Stock rom. Upgraded from kernel ver 67 and even when I set in to a higher value then 80 it still doesn't work...
[ZenFone 2 Android Development] manoj36:
Can the steps be modified to simpler ways??
[ZenFone 2 Android Development] TheSSJ:
Could you please wipe the cache and disable mods which you might have installed? Also I need the dmesg output

Sure: install kernel adiutor, go to battery and you should see the blx gauge
[ZenFone 2 Android Development] TheSSJ:
V73 is up for all ZE550ML users, sweep2sleep can be configured to work on ze550ml now, just use the init.d script or add this line to any other startup script you might want to use:

echo 1 > /sys/android_touch/is_ze550ml

S2S is of course pre-set for ZE551ML users, so they do not need to edit any scripts
[ZenFone 2 Android Development] AL_IRAQI:
Hi buddy

is there anyway to check charging current ?

Ampere doesn't work right with zf2

Edit:

Found it

/sys/module/asus_battery_power/parameters/battery_current

Or

/sys/bus/i2c/drivers/smb1357_charger/8-006a/power_supply/

there's many infos in second path
[ZenFone 2 Android Development] BTiwari:
i have having this issues after flashing this kernel

1. No blutooth

2. hotspot in any form like wifi or usb not working

plses help how to fix this
[ZenFone 2 Android Development] TheSSJ:
System is out of sync with your devices. Backup data, wipe data + cache + system, reflash system, boot, restore data and then flash the kernel again

EDIT: For the records - I never had these problems, could you tell me how you did flash? Do you wipe cache before flashing the kernel?

By the way: V75 is out featuring REALLY lower brightness than the default! Now I am working on the vibrator to see if I can influence something there
[ZenFone 2 Android Development] Tiongkia:
Thanks Master. V75 booted with NO issues.

I am eager waiting for the vibrator.

And another wishlist. Volume tweaks?

Thanks again.
[ZenFone 2 Android Development] corrsea:
Low brightness is excellent. No need for third party apps now.
[ZenFone 2 Android Development] pac213:
What schedulers do your guys usually use?

Also, I'm using kernel auditor and after reboot, the settings doesn't stick. Even used fauxclock and still doesn't. ANy help?
[ZenFone 2 Android Development] ai3gtmc:
Can anyone upload the stock .59 kernel? I just need it for an OTA.

Thanks!
[ZenFone 2 Android Development] BTiwari:
i try both the ways wipe cache before and after but problem is presented

i will try ur method and tell the results
[ZenFone 2 Android Development] TheSSJ:
Unfortunately I didn't find a way to set the vibration strength, it seems to be just an on/off component :(

Also volume tweaks are already on the dev roadmap (tentatively) ;)
[ZenFone 2 Android Development] Shafwan7:
love ya the low brightness ? i use it everydamn night.
[ZenFone 2 Android Development] TheSSJ:
Happy to see this! Also this should impact battery life positively compared to screenfilter apps, as the latter just create an overlay which makes the screen darker, but the power consumption is not reduced (I recall that chainfire did some research on that). Also my mod is not detected as tapjacking
[ZenFone 2 Android Development] S#@DY:
It seems as projectT is getting nightly updates. Too happy to see this. I'm back on 2.19.40.12 just to stay with this kernel (as asus.service doesn't work when using the latest build with this kernel).

The brightness control is too good, can save battery anytime..

Only doubt I'm getting is, how actually can I use Blx.
[ZenFone 2 Android Development] ImjuzCY:
I guess you're using custom ROM? If yes then install Asus Calender then Asus service will work. It's not the kernel that cause it since I'm using Prism Barebone v3 and even Project T uses kernel base from v2.20 stock
[ZenFone 2 Android Development] marcof93:
Perfect v75! Sad for vibration, but waiting volume tweaks :D You're great!