yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace S5830 Original Android Development] consegregate:
I'm not a codeslinger I just need to say, for Ace voltage is displayed as ****ed up values. Discharged 3mV, charged 4mV.

Correct values should be 3800 to 4200, if battery percentage is to be more accurate I'm thinking there would be a link to voltage too.
[Galaxy Ace S5830 Original Android Development] redlag:
I think it shows V instead of mV..
[Galaxy Ace S5830 Original Android Development] LibiSC:
In source values are correct...normally for most devices it's neccesary to divide it by 1000 but not for ace....most scripts and the battery calibrator does it....i will upload an script that shows mV correctly later

I only change the way the device calculate percentage given a certain mV charge in the battery.
[Galaxy Ace S5830 Original Android Development] iandol:
Wow, so much negativity in the first page of this thread. Good luck in your project!

an0n: thanks for your constructive feedback in this thread!
[Galaxy Ace S5830 Original Android Development] consegregate:
But it's waaaay too inaccurate. Plus other phones display it in mV.

Our battery percentages hop too. I've tried changing values in init.goldfish.rc but apparently it has no link to it.
[Galaxy Ace S5830 Original Android Development] subscope:
I am following this thread but i dont understand one thing :S It works in CM Roms or just for stock roms?
[Galaxy Ace S5830 Original Android Development] LibiSC:
I dont think that works that way...level are just a way to transform the battery ac readings to voltage used to calculate percentage....if you check the xls file in second post all values are there....maybe it's the screen that doesnt show it right away... Tell me the name.of a device that shows it accurately and i can try to do the same for ace
[Galaxy Ace S5830 Original Android Development] LibiSC:
Just for stock roms and custom based on stock
[Galaxy Ace S5830 Original Android Development] LibiSC:
I don think oc helps extending battery duration xD..interactivex is ok i will add it
[Galaxy Ace S5830 Original Android Development] side_effect:
Yes but I think it will be good to see if Battery lasts longer than usual on OC.Infact there are many users who will like the idea of oc+battery..!!
[Galaxy Ace S5830 Original Android Development] wizarcl:
Where i find this file? The Battery config file?
[Galaxy Ace S5830 Original Android Development] LibiSC:
beta 1 in OP... just a quick fix xD... also the source i uploaded was old i didnt realize... new one there

Edit: actually i think i used the old source when compiling for custom rom based on stock... so if you used it download it again!
[Galaxy Ace S5830 Original Android Development] encik_racun:
sorry to ask noob question, but this for stock after install cf-root or just flash it over stock after root it?

Edit: in op screenshoot u use it over 1 day, that with 3G always on? And u use it for online or just leave it on idle?
[Galaxy Ace S5830 Original Android Development] LibiSC:
I have compiled it for my custom rom that came with cf root (ext4 filesystem)... so if you have a clean stock you can try flash it... if fails then you flash cf root first and then my kernel :p

This is how i used it... Activated wifi when checking 9gag.com...when checking facebook, gmail, other mail, xda... 3g... always on.... during the night (when i was sleeping) it went deep sleep i think... the point is that i've always used my phone in the same way and i had only gotten 1 day of battery with some luck
[Galaxy Ace S5830 Original Android Development] wizarcl:
Sorry man, I may be wrong, but not good for the battery and make these waves, disable battery charging immediately after reaching 4200mV, wait a while so he can disable battery charging. I know a lot of electronics, working in the industry but do not own the truth. It might be the creator of this kernel you or someone tell me how do I edit these configurations? This kernel is good, but I think I can get better.
[Galaxy Ace S5830 Original Android Development] LibiSC:
I didnt understand... The battery 'config' is in source if you wanna cange anything go there
[Galaxy Ace S5830 Original Android Development] wizarcl:
Ok, i have this kernel but i need to have the source for change this kernel? If i have this source how i change this? What software i need? (Tks to answer..!)
[Galaxy Ace S5830 Original Android Development] LibiSC:
lol

source is in post number 2 in a zipfile... good luck with it
[Galaxy Ace S5830 Original Android Development] wizarcl:
Sorry...
[Galaxy Ace S5830 Original Android Development] LibiSC:
I got a weird bug today after the battery drained...got stuck in a value while.charging if happens to you wipe dalvik cache to fix it
[Galaxy Ace S5830 Original Android Development] consegregate:
My old Sony Ericsson x10 mini pro has more accurate battery readings. I suggested levels because for Ace it seems as if it can only return to some percentage values, jumping over other values. That's why you see staircase-like graphs for the battery use graph. If there were 100 levels for each and every voltage converted into percentage I think it's totally possible to have correct battery readings.
[Galaxy Ace S5830 Original Android Development] LibiSC:
Levels are just to calculate voltage...Voltage is ok..percentages are not...battery consumption behaves like and exponential function....no linear.

I checked the code of sony ericsson and it's the same as galaxy...except for percentage calculation they used 3 values....i figured out two (before and current percentage) of them but i dont know where the last one comes... and they also get the mV directly from hardware... so they make the conversion there
[Galaxy Ace S5830 Original Android Development] consegregate:
So could it be hardware fault that the battery reading is inconsistent?

As a matter of fact the Ace is put together with obsolete hardware and lack many things, like light sensor for example.

If so there may be no solution to the jumping percentages.
[Galaxy Ace S5830 Original Android Development] LibiSC:
They had to make an equation to balance it. The maximum charge any li ion battery get its 3700mv

....they have to make the percentages accotding to the consumption they expect....the sensor reads the mv but the conversion is wrong.... Maybe in sony ericsson they made the converaion in a library i have not checked that much..
[Galaxy Ace S5830 Original Android Development] svabhijeet:
am totally noob in this kinda things....but someone please tell me ,,,how to use this kernel.....????

please provide installation procedure.....

:confused:
[Galaxy Ace S5830 Original Android Development] kandarpck:
I cant charge my phone at all. Tried wiping cache! :(
[Galaxy Ace S5830 Original Android Development] LibiSC:
fear no more my friend new version in OP. :D

and sorry for not fixing it before or publishing the fix before... i forgot... Was something related to a new variable i created
[Galaxy Ace S5830 Original Android Development] LibiSC:
Look in stickies in android development forum... the part where says kernel something something
[Galaxy Ace S5830 Original Android Development] kandarpck:
Thank yu for the update! :)

Testing now!

PS: Would like to give a suggestion. I have always noticed that the cooler the phone is, the more juice we can get from the battery. And the rfs file system is definitely cooler than ext. Just a suggestion. Hope yu can find other ways!
[Galaxy Ace S5830 Original Android Development] dragonnn:
LibiSC can you post the newest source of the RC version (cooper_battery.c).
[Galaxy Ace S5830 Original Android Development] LibiSC:
I dont know what it is... ill check it
[Galaxy Ace S5830 Original Android Development] LibiSC:
Ok... in a couple of hours when i get home.... i think i will return the counter so maybe ill change it
[Galaxy Ace S5830 Original Android Development] shakkall:
Im giving this badboy a try as we speak. Funny thing is that ive seen a drop from 100 percent to 99 for the first time ;). Ace's battery is a joke. Will test for a charge cycle and report back. Keep up the good work mate!

Edit: Is it possible to add frequencies between 480 and 800mhz as in latest cm nightly? I used to uc to 614 but i wasnt sure if it did anything actually ;)
[Galaxy Ace S5830 Original Android Development] LibiSC:
New version in OP.. RC1.1... please try that one... last one had a bug.

I will look for it.
[Galaxy Ace S5830 Original Android Development] LibiSC:
Newest source in second post
[Galaxy Ace S5830 Original Android Development] shakkall:
Thanks, giving a second try :)
[Galaxy Ace S5830 Original Android Development] delhipeoplecool:
so we have to mount system before installing?
[Galaxy Ace S5830 Original Android Development] LibiSC:
No
[Galaxy Ace S5830 Original Android Development] kandarpck:
Perhaps you could under-volt some frequencies?
[Galaxy Ace S5830 Original Android Development] LibiSC:
New version up!
[Galaxy Ace S5830 Original Android Development] dragonnn:
Sources up to date?

Wysłane z mojego GT-S5830 za pomocą Tapatalk
[Galaxy Ace S5830 Original Android Development] LibiSC:
You were right they were up to date but the are not many commit descriptions or not verbose :p
[Galaxy Ace S5830 Original Android Development] nihilista:
Can we use this kernel for cm7 or only stock ROM?
[Galaxy Ace S5830 Original Android Development] mawnstermew:
its only for stock roms. its been indicated in the first page and was included in the title
[Galaxy Ace S5830 Original Android Development] nihilista:
Sorry,I've seen this,but there is one alpha for custom in list, so I thought maybe there will be a chance to get kernel for both :D

Any plans for porting it to cm?
[Galaxy Ace S5830 Original Android Development] sergini:
Anynone that is using this kernel can give us some feedback?
[Galaxy Ace S5830 Original Android Development] dragonnn:
Please by patient, firekernel (for CM) for Ace is coming ;D, it will have this battery driver too.

Wysłane z mojego GT-S5830 za pomocą Tapatalk
[Galaxy Ace S5830 Original Android Development] amrith.28:
hi, i faced reboots on the RC2.0 kernel.

I am using Cheetah v2 (base DDKQ8) . Well i have applied 14 toggles mod.

reboots occurred while wifi is on and trying to access play store.
[Galaxy Ace S5830 Original Android Development] Teflon_:
Same here with Meizu ROM. Only with v2.0 it's stable with RC1
[Galaxy Ace S5830 Original Android Development] LibiSC:
Im usig cheetah 2.0 and dint face that problem....it occurs always or randomly....what governor do you use.... what i/o scheduler....logcat might help too... PM it
[Galaxy Ace S5830 Original Android Development] diegoxcore12:
thank u! one request:

can you make a variation of your kernel with OC please? thanks u
[Galaxy Ace S5830 Original Android Development] pyronia:
Shame on this post :p

[sent from my haramjadah ace via free netwotk]
[Galaxy Ace S5830 Original Android Development] LibiSC:
Found a bug... Reboots when screen off when battery is low...working on a fix
[Galaxy Ace S5830 Original Android Development] amrith.28:
also the reboot issue ? yes i faced it everytime and not rarely.. i will try ur next release again :)

(sorry i dont know how to provide logcat :p )
[Galaxy Ace S5830 Original Android Development] LibiSC:
New version up... fixed it for me hope works for you too.
[Galaxy Ace S5830 Original Android Development] amrith.28:
using for last half an hour :) no problems yet :) thanks! I hope this gives me better battery life :p will report again if anything comes up. good work :)
[Galaxy Ace S5830 Original Android Development] amrith.28:
Hmm. LITTLE bit of touchscreen sensitivity issue.. its a little annoying. i get random key presses sometimes. (similar to what i face in cf-root b83 and b84)
[Galaxy Ace S5830 Original Android Development] koolguy366:
batteryExtenderRC2.1.zip works on stock DDKQ8?
[Galaxy Ace S5830 Original Android Development] amrith.28:
yes it should. i am using on Cheetah v2 which is based on DDKQ8. take a backup just in case :p
[Galaxy Ace S5830 Original Android Development] LibiSC:
It should work... if doesnt flash cf root first and then my kernel...
[Galaxy Ace S5830 Original Android Development] LibiSC:
Might be some of the stuff from skynet's kernel but i think he fixed it.. i'll check it
[Galaxy Ace S5830 Original Android Development] koolguy366:
thnkzz bro.. gonna flash it nw
[Galaxy Ace S5830 Original Android Development] amrith.28:
i remember using skynet's kernel and dont think i had touch screen issue :) well i used the NON OC kernel.
[Galaxy Ace S5830 Original Android Development] LibiSC:
well depends on what version u used... It could be also that i'm using cf root ram disk... I don't feel it but i will check it anyway.
[Galaxy Ace S5830 Original Android Development] blackguitar79:
RC2.1 .. anyone test it on miracle v4? is it work well?

thx b4
[Galaxy Ace S5830 Original Android Development] Pseudonym:
Is Miracle v4 a stock rom? Read the title 1st.
[Galaxy Ace S5830 Original Android Development] kandarpck:
Kernel isn't usable below 10%. Sudden switch off if I try to call or use data. :(
[Galaxy Ace S5830 Original Android Development] LibiSC:
Ill check it later...probably the lower limit is too low... maybe loses power faster in that range... its not hard to fix
[Galaxy Ace S5830 Original Android Development] LibiSC:
New version with a hotfix
[Galaxy Ace S5830 Original Android Development] LibiSC:
I managed to make a call but i went down too fast anyway... I increased the lower bound value.
[Galaxy Ace S5830 Original Android Development] amrith.28:
u think u could add BLN support ? :p (or does that defeat the purpose of this kernel? :p )
[Galaxy Ace S5830 Original Android Development] vinay0708:
after flashing ver 2.2 on XperiaTized V10 rom, my ace stuck at boot. (mounted system before flashing)

did not work for me.

had to reflash my cwm backup.

whats wrong? :confused::confused::confused:
[Galaxy Ace S5830 Original Android Development] LibiSC:
There is no need to mount system... if still fails flash cf root.first and then my kernel
[Galaxy Ace S5830 Original Android Development] xarcom:
I have the same problem, i did a post in general section , just flash the version 2.1 y boot normal
[Galaxy Ace S5830 Original Android Development] LibiSC:
Ok that's weird...
[Galaxy Ace S5830 Original Android Development] Fizztone:
me too.....flashed v2.2 over v2.1 on stock ddkq8....bt stuck at galaxy ace logo...
[Galaxy Ace S5830 Original Android Development] LibiSC:
You 3 must have spmething in common...what things have you added... governor. Something....how you flaSh it?
[Galaxy Ace S5830 Original Android Development] Fizztone:
well just pure stock ddkq8 ..flashed adreline script bt v2.1 works with it...flashed v2.2 both ways i.e mounting n widout mounting
[Galaxy Ace S5830 Original Android Development] vinay0708:
in xperiatized (based on ddkq8), there in no option to select governor. there was no other kernel/script flashed except dt ap2sd.

in case of this kernel, mounted system and flashed throu' cmw. :confused::confused::confused:

what did i do wrong?
[Galaxy Ace S5830 Original Android Development] djenis:
@LibiSC does this kernel support swap ?
[Galaxy Ace S5830 Original Android Development] LibiSC:
Im not sure.....i think is activated in config but why would you swap in a cellphone?
[Galaxy Ace S5830 Original Android Development] xarcom:
I have apps2sd y adrenaline 3.1 rom meizu2
[Galaxy Ace S5830 Original Android Development] LibiSC:
Might be one of them....but doestn make sense if 2.1 worked
[Galaxy Ace S5830 Original Android Development] xarcom:
I unistall adrnaline 3.1 flash the v 2.2 without mount system/data and boot normal .... Governor always smartass v2 and freq. 122 min and max 612 idk if the adrenaline cause the problem the firsr time.
[Galaxy Ace S5830 Original Android Development] LibiSC:
Cool
[Galaxy Ace S5830 Original Android Development] LibiSC:
The rom comes with adrenaline,...uninstall it
[Galaxy Ace S5830 Original Android Development] xarcom:
Whit rc2.1, and tomorrow try.the.rc 2.2 because a just flash now whitout stuck in boot logo
[Galaxy Ace S5830 Original Android Development] LibiSC:
Creo que mejor cambias de rom... ni siquiera sale el porcentaje... no se que le habran puesto pero los scripts en general no sirven...

P.s: it's spanish if you wanna translate it lol
[Galaxy Ace S5830 Original Android Development] xarcom:
Lol... Yo hablo español es la rom de meizu2 y es un bug que tiene que no se ha corregido
[Galaxy Ace S5830 Original Android Development] LibiSC:
I realized the ps was for the other readers... ifnyour rom is buggy i cant give you support :p
[Galaxy Ace S5830 Original Android Development] vinay0708:
how to? thanks for ur help. :)
[Galaxy Ace S5830 Original Android Development] michiuco:
I have Imaginary ICS v. 4 and I have the same problem with 2.2 version. All others worked just fine...
[Galaxy Ace S5830 Original Android Development] djenis:
check out

http://xdaforums.com/showthread.php?t=1680822
[Galaxy Ace S5830 Original Android Development] LibiSC:
I know what is swap i just dont see the need for it on an smartphone....at least not in ace
[Galaxy Ace S5830 Original Android Development] SuperAce609:
Hey guys, I'm new to this kernel. I'm looking for a new kernel to use with Stocklite V6. I'm downloading the latest RC2.2 version. Any issues or problems I should know about before installing?
[Galaxy Ace S5830 Original Android Development] LibiSC:
Just make a backup... i recommend cheetah 2.0...its like stocklite but without the scripts
[Galaxy Ace S5830 Original Android Development] SuperAce609:
Yeah, I'm using stocklite without scripts. Just A2SD.

EDIT: Flashed it and found my very first issue. NO BLN SUPPORT. Oh god why? Its so perfect too. :'(

EDIT 2: Never mind, going back. Get some random reboots when the phone is idle.
[Galaxy Ace S5830 Original Android Development] LibiSC:
Never happened to me sorry
[Galaxy Ace S5830 Original Android Development] LibiSC:
New version!
[Galaxy Ace S5830 Original Android Development] SuperAce609:
Hope the reboot problem is fixed in this one :/

Oh, I don't know if this helps but the reboot happened while the phone was charging and running on intellidemand 122-614.
[Galaxy Ace S5830 Original Android Development] LibiSC:
Don't use 122... It might unstable and consumes more power than 245... I don't have reboots.... Reboots happened in a previous version but it was fixed.
[Galaxy Ace S5830 Original Android Development] SuperAce609:
But won't it consume more battery having 200 as minimum frequency?
[Galaxy Ace S5830 Original Android Development] LibiSC:
No... In deep sleep frequency goes to the lowest possible anyway...

245 can do a task faster than 122... So the cpu will go idle faster with not much power consumed difference if you take all the variables in the calculation.

Just set 245 helps battery life too and is still stable
[Galaxy Ace S5830 Original Android Development] SuperAce609:
Oh I didn't know that. Thanks for the tip. I'll be running 200-614 SavageZen. Is that good? Or 245-614?
[Galaxy Ace S5830 Original Android Development] LibiSC:
If you want battery life you should use Smartass v2 or intellidemand.... i have it in 245-800
[Galaxy Ace S5830 Original Android Development] SuperAce609:
Kk. I'll leave it on 200-614 Smartass V2. I don't use my phone much for heavy stuff so I don't really have a need of using 800Mhz.
[Galaxy Ace S5830 Original Android Development] LibiSC:
I just realized that 200 mhz was included lol.... Cpu won't go till 800 with those governors if there is no need anyway.
[Galaxy Ace S5830 Original Android Development] SuperAce609:
I have a question. Is the battery finally decreased by 1%? I just fully charged my phone and my phone dropped to 84% in 2 mins. Or do I need to re-calibrate my battery again?
[Galaxy Ace S5830 Original Android Development] dragonnn:
LibiSC did you changed something in the battery driver or only update the kernel in last build? If yes is the source in second post up-to-date?
[Galaxy Ace S5830 Original Android Development] shakkall:
Does this kernel support init.d scripts? Im testing the latest adrenaline engine but im not really sure if it Does anything actually :-). Thanks!

Wysyłane z mojego GT-S5830 za pomocą Tapatalk 2
[Galaxy Ace S5830 Original Android Development] amrith.28:
any hope of getting BLN on this kernel (the latest v1.0 Final) ? coz i absolutely love the battery life i'm getting. would be a shame to change to any other kernel..
[Galaxy Ace S5830 Original Android Development] LibiSC:
Wait until full battery notication.... after that i should remain in 100% for a while.... if it doesnt well there is not much else to do.... sorry
[Galaxy Ace S5830 Original Android Development] LibiSC:
Yup... update time when is suspended.... also it's using average... i'll post it later
[Galaxy Ace S5830 Original Android Development] LibiSC:
I'm using link2sd...and i see its script there so i would say yes...also i'm using cf root ramdisk and it's included in his config
[Galaxy Ace S5830 Original Android Development] LibiSC:
I don't know how to enable that i thought that came with the custom roms
[Galaxy Ace S5830 Original Android Development] side_effect:
It is done by modifying lights.msm7k.so file under lib/hw.

Compare default lights.msm7k.so with cf-root one.

Although it requires more changes in kernel itself
[Galaxy Ace S5830 Original Android Development] amrith.28:
cf root b82 ex onwards has BLN mod.. maybe u could incorporate it from there.. but I'm gonna use the kernel anyway :D
[Galaxy Ace S5830 Original Android Development] SuperAce609:
Yeah, I was going to ask the same thing. The Kernel is working great but I really need the BLN notifications :/
[Galaxy Ace S5830 Original Android Development] LibiSC:
I created a github repo... link in OP

Also a hotfix v1.1 cause the lower bound was too low in the battery driver.

Also the library was included cause i used cf root ramdisk so i just have to find out what to add to the kernel to enable BLN
[Galaxy Ace S5830 Original Android Development] SuperAce609:
Hey, I had to revert back to the old kernel. Instead of having better battery, I actually had worse. Really bad actually. After fully charging phone, and 24 mins of use the battery was down 25% and I was just browsing the web and some texting.
[Galaxy Ace S5830 Original Android Development] LibiSC:
You had to wait for full batt notification when charging....and still that doesnt mean the battery life is less
[Galaxy Ace S5830 Original Android Development] amrith.28:
the full charge would take approximately how long ?

also, i read the link u posted on 1st page (the original mod done for nexus)

so we need to charge the battery optimally ? by that i mean not wait till it becomes very low ?

what is the optimal range, if any ?
[Galaxy Ace S5830 Original Android Development] LibiSC:
It takes like 20 min... appears a notification saying its full....people say it is not a good thing to let it discharge till zero but im not sure
[Galaxy Ace S5830 Original Android Development] sergini:
Im testing this kernel on new adrenaline Rom v3 but Im experiencing lots of sudden lags!
[Galaxy Ace S5830 Original Android Development] LibiSC:
Give more info like the governor you are using... a logcat cause maybe the ram script has conflict with lowmemory killer....too many possibilities
[Galaxy Ace S5830 Original Android Development] sergini:
Smartassv2 800-245. I'll test a bit more and if this continues I'll give u logcat.
[Galaxy Ace S5830 Original Android Development] SuperAce609:
This kernel has its own ram optimizer? How do I remove it? I'm already using Ram Manager. And yeah, I guess I need to calibrate the battery after installing this kernel. This info should be on the first post - IMO.
[Galaxy Ace S5830 Original Android Development] LibiSC:
Low memory killer is a class that "cleans" ram memory...scripts modify it somehiw i think.... ram manager just closes applications it doesnt even use it