yashsingh1/xdaforums huggingface dataset:
[XPERIA X1 Android Development] zargloub:
It's seems there is crappy value in your accum register (ACR) ! :)

You can continue to use the last kernel gc1c1691 and let battery completly discharge some times.

Temperature bug normally won't cause problem when actualizing ACR

"Battery : Correct bug about temperature value, fake value was read when changing ACR and Android was shutting down, and so, could update low power ACR correction."

1st discharge :

accum 4294964093 max accum value 4294964093

low value correction ->4294964093/20 max 4294964093

reboot (in order to re-compute max accum value, you can briefly use alim cable if current is too low)

accum 4294964093/20 max accum value 4294964093/20

low value correction ->4294964093/400 max 4294964093/20

reboot ...

etc ...
[XPERIA X1 Android Development] yuyamin901002:
OK, got what u mean. Several more question:

Does correction mean the wipe battery in recovery mode?

1.after discharge, do i have to operate the "low value correction ->4294964093/20 max 4294964093"?

2.after the first reboot, what do i need to do with "accum 4294964093/20 max accum value 4294964093/20

low value correction ->4294964093/400 max 4294964093/20" u metioned?
[XPERIA X1 Android Development] zargloub:
I was just explaining what will appen :)

The only thing you have to do is let battery discharge until shut down.

Then plug phone, wait until linux start booting (no need to wait android), then unplug, and let it shutdown.

Do this some times.

That's all.
[XPERIA X1 Android Development] yuyamin901002:
Oh, i see. u just explained the principle to me. i will try when it shut down. Can i just understand that the correction runs automatically?

By the way, for the kernel[gc1c1691], i downloaded and flashed this boot today and i still saw it indicates[g392f03a] in information...
[XPERIA X1 Android Development] zargloub:
So you didn't updated, you're using g392f03a kernel ...
[XPERIA X1 Android Development] yuyamin901002:
i may check the link again. In the morning, i try the link twice, both indicate g392f03a, have u upload the wrong boot.img?:)
[XPERIA X1 Android Development] Elibl:
info does show the same for me but i think it must be the latest kernel cause bias works and the level is that real... maybe the info is just not updated...
[XPERIA X1 Android Development] yuyamin901002:
it seems u got the same problem as me, so i agree with u or he upload the same kernel by mistake~:)
[XPERIA X1 Android Development] Elibl:
okay battery died just at the moment after 6,5h very strong usage (music all the time)

5h battery level went normally down the last 1,5h it was showing 1%

now recharging maybe the next cycle is right...

my fault bias was already in g392f03a so it could also be the same by mistake...
[XPERIA X1 Android Development] yuyamin901002:
u just take the way that zargloud metioned to discharge the phone and reboot to correct than full charge the phone to make the battery correct?
[XPERIA X1 Android Development] Elibl:
right but for me it was already nearly correct...

btw the phone died again immediately and did not shut down...
[XPERIA X1 Android Development] yuyamin901002:
i may first correct my battery first
[XPERIA X1 Android Development] ryo2456:
I have reflashed the gc1c1691 and started test it.

I'm using the Sony Ericsson Launcher and tweaked ROM.(the 10/2/12 one.)
[XPERIA X1 Android Development] Elibl:
if you're still stucked at 100% after the reboots you can still try this way:

but i think zargloubs explanation should work
[XPERIA X1 Android Development] ryo2456:
I've flashed the gc1c1691 But I found that it show g392f03a in About phone.
[XPERIA X1 Android Development] yuyamin901002:
OMG! My battery status still show 100 after discharge...

---------- Post added at 12:05 AM ---------- Previous post was at 12:04 AM ----------

How does ur battery percentage show? My battery percentage keep the 100%...
[XPERIA X1 Android Development] ryo2456:
Have not sucked at 100%. now is 97%.
[XPERIA X1 Android Development] yuyamin901002:
what is ur voltage while 97%?
[XPERIA X1 Android Development] neoofoox:
after some battery calibrations, my status is still 100% before that it was very good, but now it stucks at 100%
[XPERIA X1 Android Development] ryo2456:
39XX

my battery is a little lower than your i think because it's too old and it's not the SE one.
[XPERIA X1 Android Development] yuyamin901002:
估计我的也差不多吧。。:)
[XPERIA X1 Android Development] Elibl:
ok all of you with stucked percentage at 100% try this: (worked for me)

look at the percentage behaviour if its between 80% and 100% do

one

battery stats wipe in cwm while fully charged: advanced -> wipe battery stats

and always give the android a full cycle for fitting percentage (always let completly die till phone shuts down itself and not only recharge to 100% but 2 or 3 hours)

EDIT: recharged from 1% -> 100% in an hour -> looks a bit to fast?!
[XPERIA X1 Android Development] yuyamin901002:
i do as u told to flash the boot of nov.20, however, the battery indicates 100%.
[XPERIA X1 Android Development] Elibl:
and you let it discharge with the old kernel so that the percentage went down?

EDIT: the point is to get a lower percentage than 100% with the old kernel...
[XPERIA X1 Android Development] yuyamin901002:
yepp~do i need to flash the latest boot now?

---------- Post added at 12:48 AM ---------- Previous post was at 12:42 AM ----------

new kernel has come out
[XPERIA X1 Android Development] zargloub:
But with no change from previous on low power ACR correction.
[XPERIA X1 Android Development] Elibl:
don't know what exactly changed because it was working well for me with bias...

Edit: only the recharge of only an hour was to fast i think -> would say not fully recharged...
[XPERIA X1 Android Development] yuyamin901002:
actually too fast
[XPERIA X1 Android Development] zargloub:
Exactly.

BIAS is a value modifying the incrementation of ACR.

But should be recalcultated, updated, on each case, and is not very usable.
[XPERIA X1 Android Development] yuyamin901002:
another problem:after running out of one battery, is there any way for changing a fully-charged battery with correct battery indicator?
[XPERIA X1 Android Development] Elibl:
:D zargloub you're so right with stop using bias :D flashed latest boot.img with 100% booted and right before boot animation android displayed something like: value updated[...]not yet charged... :p

but it stops again shortly with correcting...

EDIT: but now it never reaches 100% only 99%...

EDIT2: had again the black screen of death it happens when i minimize a call and the phone goes to sleep mode during the call. i still can hear the other person but the phone is completely dead also after the other person hung up because i can't, even not with endcall button -> need to pull battery/softreset

also the battery monitor widget has missing data for that time...

and again even with not minimized call...
[XPERIA X1 Android Development] yuyamin901002:
same as u. can charge to 99% but not 100%.
[XPERIA X1 Android Development] neoofoox:
I flashed latest version yesterday. Since then batery shows allways 1%. After reboot too. Will make a batterz stats reset now.
[XPERIA X1 Android Development] Elibl:
@neoofoox was the same for me at first cycle just give it some time let battery completely run down till phone turns off

i charged over night an i can see in battery monitor history, in block charge i think it switched all the time between 99% and 100% pretty nice ;)
[XPERIA X1 Android Development] zargloub:
It should not, i'm testing a new version with better detection of "pluged and not charging anymore". Otherwise, ACR battery counter continue to grow, and when decrease it will not be linear and not represent battery level.

If it's better, i'll post this new version today, and i hope it will be ok, so i will work on others subjects.
[XPERIA X1 Android Development] Elibl:
yes sure not okay but better than before :)

i'm curious to test the new version later...

and to have gps :p

thx again zargloub

BTW and OT in wm i can remember the block charge for charging a long time was between 94% and 100%...^^
[XPERIA X1 Android Development] ashwin1234:
My kernel version is gs3435d04. I didn't change any files from the original fastboot. I believe this kernel is old but I can still wake up without having to touch the screen.

Going to try playing music using ADW + Default music app + Agile Lock .
[XPERIA X1 Android Development] zargloub:
Maybe the battery driver wasn't as well calibrated as Linux one is now :)

I remember things like when rebooting WM battery shut down from 50 to 5%, and other things like that.
[XPERIA X1 Android Development] Elibl:
exactly where i wanted to point at :)

EDIT:

@ashwin1234: i updated to magic locker with sense 3.0 theme it looks nearly the same but is smoother and after reboot i've no double locks and wake up with music is also fine...

i highly recommend you to flash the latest kernel cause waking up is also improved...

EDIT2: you can even use pattern or pin (security lock) with this app
[XPERIA X1 Android Development] ashwin1234:
Thanks zargloub for the excellent work. Now my screen wakes up perfectly with the default lock screen.

I just flashed the latest kernel and now my battery shows 1%. I am charging it now to see if the percentage changes. Might do a battery wipe in CWM.
[XPERIA X1 Android Development] skas_2002:
Get strange(100% and than dropping rather rapidly) battery percentages if the phone reboots (missed calls lol).

Other bugs: phone hangs often if I turn off the screen with wifi turned on.

Camera focus is off(dunno why).
[XPERIA X1 Android Development] wallaceff:
Confirm hanging when turning screen back on with wifi on. Also, any chance of a new governor? I know theres smartass2 which seems to work well on the s2, wondering if its simple enough to add? Just wondering if it might improve battery life a tad?
[XPERIA X1 Android Development] Elibl:
i think lower end voltage is to low :(

my battery drained down at night and now my phone doesn't boot any more can't get it past the Vibration only green/red led and screen blinking. put it in bootloader now for charging.

EDIT: now it booted after 1 or 2 min. so its only a little bit..

at the end of boot battery showed 8%

hmm... it looks like i had a black screen of death last night because of missing data in battery monitor widget maybe its related to this? but i also pulled battery an phone didn't boot anyway

maybe the phone didn't shut down because of the BSOD and got under the lower end voltage?!

EDIT2: can't manage a full battery cycle to linear fit the percentages. i fully charged. while letting it discharge i had again a BSOD at 77% but this time without any reason the phone just went to sleep and i couldn't wake it up anymore. after reboot the battery level is 100% at approx 3,8V. while recharging again it shows now 99%^^
[XPERIA X1 Android Development] neoofoox:
oO I just remembered that I have not my 4GB SD card inside my mobile, it is my secondary SD card. So maybe some models are working, some not?

I have 2GB SD card with FAT32 (primary) from Samsung
[XPERIA X1 Android Development] fauntelroy:
my SD is Sandisk 4GB and it works just fine

don`t really know why the other have problem
[XPERIA X1 Android Development] wallaceff:
What program/version did you use to format/partition it with?
[XPERIA X1 Android Development] fauntelroy:
i'm using mini tool partition wizard 7

edit: just trying my 2nd sd card,it stuck at boot

will do some experiment now,i'll tell you later if i found something
[XPERIA X1 Android Development] Elibl:
had a full cycle with the latest battery driver an a very strange lower end voltage behaviour. at 1% it suddenly jumped up to 97%, 94%, etc. (something between 90% and 99%) and back again several times. Voltage went lower than 3400mV. then phone went immediately off without shutting down and now it doesn't boot again because of battery to low. needed to put in bootloader to get some recharge for booting... -> 1min was enough

batter level was 99% after plugged reboot

so something is still wrong with lower end voltage...

has someone the same experiences?
[XPERIA X1 Android Development] neoofoox:
Yes same behavior
[XPERIA X1 Android Development] Elibl:
when this is solved the driver would be perfekt i think :)
[XPERIA X1 Android Development] yuyamin901002:
would this rom kernel keep updating?
[XPERIA X1 Android Development] aseteo:
Yes it would be updated as fast as zargloub fixes some thing
[XPERIA X1 Android Development] wallaceff:
hey zargloub,

Just wondering if you can drip feed us with what you're working on?
[XPERIA X1 Android Development] neoofoox:
here you can see via gitorious.org what he is working on etc. You can subscribte it via RSS
[XPERIA X1 Android Development] aseteo:
Hey Elibl, my phone started giving that 1% issue when i flashed over to IceDroid, how did you fix it?
[XPERIA X1 Android Development] Elibl:
thx for pointing me to the new thread didn't recognize it yet!

the 1% appeared for me by using immediately after battery drain down a fully external charged battery. so the level in system was at 1% with fully charged battery.

it was solved for me after one full drain down. after reboot level was updated

or did you already fully drain down?

then maybe wipe battery stats in cwm with fully recharged...

sorry my english isn't the best...:p
[XPERIA X1 Android Development] aseteo:
No i haven't drained the battery fully yet, will do so now, thank you! :D
[XPERIA X1 Android Development] Elibl:
battery driver works now perfectly in my opinion thx zargloub

just to report a bug (had it several times now) sometimes the phone goes to a deepsleep or something like that (it's totally dead) then the phone runs hot and battery drains down very very fast. it's annoying when the alarm in the morning doesn't work when normally there should still be battery remaining;) and i think it's also not that good for the accu.

and another thing: zargloub i wanted to ask kindly if you could also take a look at the usb driver if you've got time and the motivation to do so. if it's kernel related and not rom. there're still some bugs like debugging notification or mass storage (both not woking for me)
[XPERIA X1 Android Development] zargloub:
For the battery, i think too it's ok now. I will work on the rest of list (when i'll have some time free).

I had one time the hot phone and battery drain. Don't know what is cause and don't know how to reproduce ... impossible to correct.

For the usb, works perfectly for me. Maybe a problem with your device ?
[XPERIA X1 Android Development] neoofoox:
I recently tried it out with my device (I normaly don't use mass storage etc)

When I connect to my PC I can access the phone via adb.

On the Phones Screen, when I open the status bar, there is the common message "USB Connection" normaly with other devices I have to press this and activate Mass storage. But when I press it I get the home screen.

I have no mass storage connection on pc (doesn't show in Explorer)
[XPERIA X1 Android Development] Elibl:
i can reproduce it by making a call for a longer time (more than 15mins) then it always happens but weird is that the call remains while everything is dead

but i understand nearly impossible to correct you're right

for the usb it drives me insane (adb is also not working for me) i had/have the problem on 2 phones but if it works perfectly for you it must be something what i am doing wrong

sorry for the annoyance with this:)

EDIT: the same for me like fauntelroy and neoofoox
[XPERIA X1 Android Development] fauntelroy:
i tried that too,,

sometimes when i choose the usb mass storage mode after plug in the usb it work flawlessly but sometimes it just don`t work and i got back to home screen.:D
[XPERIA X1 Android Development] zargloub:
Great, i can try to reproduce (i have a illimited phone bill).

Works with phone pluged ?
[XPERIA X1 Android Development] Elibl:
:Di have the stay awake option enabled to avoid the deepsleep don't know if it appears with disabled and plugged

---------- Post added at 11:05 AM ---------- Previous post was at 11:01 AM ----------

it also nearly everytime happened for me after charging fully and wiping battery stats in cwm what was really annoying because i couldn't reach a full cycle for calibrating (again at the moment after flashing your latest kernel) :p
[XPERIA X1 Android Development] zargloub:
The problem appears while running cwm or android ?
[XPERIA X1 Android Development] Elibl:
it happens afterwards in android... cwm is working flawless! beside upside down :p
[XPERIA X1 Android Development] zargloub:
So :

* You charge fully

* You boot to cwm

* You "wipe battery stats"

* Reboot Android

And then it start to be hot and battery drain

Just a question : why do you "wipe battery stats" ?
[XPERIA X1 Android Development] Elibl:
i always did "it" after flashing a new kernel but as i see it's not necessary?!:p

and after installing the new icedroid v2...

android runs normally first after that but at not certain percentage between 70% and 99% battery level it happens but not every time...

usb/ac: it is also sometimes not right detected if it charges via usb or a/c
[XPERIA X1 Android Development] Elibl:
another notice just to report (don't know if it could be useful):

sometimes when the phone is in sleep mode and the 4 leds at the sides are on the brightness of them varies in weird randomly way as if something is working in background
[XPERIA X1 Android Development] ryo2456:
In my case, the battery was fall very fast, but the voltage was not.
[XPERIA X1 Android Development] ady_95:
The indicator was OK, but the battery drain was FAST (full drain ~6h). Can you fix this??

EDIT: btw How many colors the GPU must render with this kernel... If there are more than 64k colors then this must be the problem for battery drain. While the screen has just 64k colours, there is useless for the gpu to render more colours than needed. If it's changeable, think about doing this

This needs to be checked but I don't know how to develop a kernel because I am just 16 yrs old and I just started to learn C++ so I can't do it. sorry.
[XPERIA X1 Android Development] Elibl:
with my daily use phone i suddenly got a stucked battery level at 1% with this kernel after 1 full drain down for afterwards 2 full cycles in the third it was updated again to 100%

life was also not that long

with the other it's unbelievable i did a clean install. and with almost all the time standby without wifi, data and sim card the battery life was approx 1d20h couldn't believe my eyes:D

i had 4 cycles with the daily use phone and the other is still running :D

with this modfied lower value low end voltage could possibly switched back to 3350mV?

just an idea don't know if it makes sense...
[XPERIA X1 Android Development] zargloub:
Could you indicate wich kernel version (by his ID) is extra long life, in order to revert last modifications ?

I have lot of problem too with actual version and have no time this week to debug, and need my phone working ...
[XPERIA X1 Android Development] freemini:
Stupid question probably, but how can I use fastboot again to reflash the kernel?

Got it, was on 2nd page ;)
[XPERIA X1 Android Development] Elibl:
it was the last: gb3f6c5b and that's the strange on my daily use phone i've got the short battery life with exactly the same kernel

so it must has to do something with simcard, data or wifi i think...

or anything else i don't know...

http://xdaforums.com/showpost.php?p=22509076&postcount=58
[XPERIA X1 Android Development] freemini:
thanks, you posted that the moment I edited my post saying I found it. Thanks anyway.
[XPERIA X1 Android Development] Elibl:
the only difference is that i didn't make a fresh install of the rom at the daily use phone
[XPERIA X1 Android Development] zargloub:
Ok, same. Seem that after few days that medium voltage correction is not working well. Didn't shearch why. I reverted to previous, waiting to have some time to fix.
[XPERIA X1 Android Development] Elibl:
now even "mount usb storage" in cwm doesn't work for me anymore

EDIT: solved by uninstalling windows driver
[XPERIA X1 Android Development] skas_2002:
Ran some tests regarding battery life.

So here we go:

Power consumption levels. LCD on - 200mAh. CPU at max 200 mAh more(btw cpu at factory 512 consumes considerably less). Wifi 50-60 mAh more, backlight at full 150 mAh more(!!!!!!!). Standby without Edge and lights - 28 mAh(that is a lot!!!), with Edge - always jumps to 150 (CPU usage!!!) so if you want to run sync + messanger in backgroud SetCPU is a must.

And finally. New battery is 1500 mA so you can count how much time you can use max backlight max processor and wifi - 2.5 hours basically.

Other drains to battery - there are processes that bypass governor - Titanium backup for example - don't leave it in background, it will kill your battery in 2 hours))).

Charging - phone charges just fine - tested and confirmed. It accepts 0.732 mAh than gradually drops to zero(no heating etc as it used to do on first kernels). So battery at the moment is just an indication issue.

For every day use the important thing is reducing standby consumption. I am too lazy to flash back to windows, but I think setting screen off to 128 should do the trick since it is not edge that eats up the battery, but CPU.
[XPERIA X1 Android Development] zargloub:
I noticed that scaling_min_freq is set at maximum by android.

So added this file to set min value at minimum at startup.

/data/local/userinit.sh :

#!/bin/sh

echo "128000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

echo "128000" > /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq

For the backlight i'm currently watching why value is not correctly set by kernel (i also corrected yesterday some issue on battery indicator :) , but will release corrections togethers)
[XPERIA X1 Android Development] fauntelroy:
that was fast:eek::eek:

what a really lucky guy i am:D

just PM you a couple minute ago and it`s ready now,

thanks zargloub,will try it now (downloading):)
[XPERIA X1 Android Development] neoofoox:
I get reboots... it reboots after the white lines, there is a kernel panic. Unable to mount root fs on unkown...

I just flashed the 28th boot.img

Edit: I redownloaded it and now it works...
[XPERIA X1 Android Development] Pete Rask:
I was trying to set CPU scaling directly from Cyanogen options in Settings to adjust CPU Max and Min frequency (with kernel from Feb 28'th and IceDroid v3). However, my set values (128 min, 528 max) keeps resetting back to 614Mhz.

Are the governors supposed to work in this kernel?
[XPERIA X1 Android Development] neoofoox:
I tried that before but it seems that it doesn't work. You can use SetCPU
[XPERIA X1 Android Development] Pete Rask:
Yea, just tried it. Works fine!
[XPERIA X1 Android Development] Elibl:
for me it worked (min 128, max 614 and set at boot) without problems all the time...

EDIT: i set this options after every new rom installation

btw: the screen isn't as bright now as before or? was the high brightness affecting the screen in some way? i liked it and for battery saving it could just easily be set lower or am i wrong?
[XPERIA X1 Android Development] zargloub:
Brightness correction was approximative. Maybe maximum value is too low ?
[XPERIA X1 Android Development] Elibl:
don't really understand. do you mean it should be as high as before? because that it's definitely not for me...

with maximum value you mean normally via display settings? there i set it

EDIT: ah i think i got it you asked if it appears too low for me?

yes a bit it's quite a difference too before

for now i think why not keep the high brightness? for battery saving it still can be turned down

it'll be more interesting when the sensor is working some day

for battery level: from fully charge it went 3.5 hours normally down then it was 9 hours at around 12% (strong usage) after shutdown and plugged reboot it was shortly at 100% then between 99% and 100% all plugged

btw: cwm mass storage is working again flawless and even adb now:) (needed to unistall google driver in windows and autodetect driver)
[XPERIA X1 Android Development] skas_2002:
It would be nice if we could configure leds, somehow. They do eat up the battery.