yashsingh1/xdaforums huggingface dataset:
[Elephone P8000] Damoedge:
Am I the only one that does not have this drop at all? I have never experienced this at all....but when it gets to like 4/3% it does drop a little faster than usual...but I've always noticed that with all my phones I had....and when it reaches 1% it stays there for ages...

When I got this phone one of the first things I did was calibrate the battery using "battery shutdown manage" and I wrote a guide here somewhere before...maybe that's why....I do not get the massive drop that everyone seems to be talking about...
[Elephone P8000] wit.cz:
I would say You are wrong. It won't be weaker. According to voltage 85% is equal to 100% (cca 4,37V). But it is true only when charging from 0%
[Elephone P8000] kivulallo:
yes but nobody charges from 0 :( except me. xD i love to discharge it to absolute zero (with bootloader menu)
[Elephone P8000] Stefan Gündhör:
Well, this time a picture by myself

I'm using the latest kernel with the battery "fix", and I have had a drop from 35% to 20% and then from 5% to 0%.

Which seems to be an alternative behavior to the people that are erperiencing only a single drop from 40% to 20%.

(Before the main drop I was using the phone extensively, which is why the curve is is steep before as well, but this is not part of the drop).

However, in between (< 20%) my phone lasted the whole day today, so I'm happy. For me this is a better alternative than the drop 15-20% -> 0%.
[Elephone P8000] Trashware:
Same opinion here. The early drop gives us the opportunity to intentionally decide on our further behavior instead of running in panic when 15% are achieved.
[Elephone P8000] kivulallo:
i noticed something. maybe it can help you Stefan...

i'm using eragon 9.8 with gueste 2.2.1 nobatfix, so my battery drops at 18-20% to 0%. i waited for 17% and charged a bit to 21%. after that the drop didn't appear again. now i'm at 10% and it discharges in normal speed.

maybe the bug is not (only) in the battery tables or xmls... or it is not in connection with voltages.

you can see the little charge on my screenshot in the last day. (don't watch the others before... i had busy days...)
[Elephone P8000] Stefan Gündhör:
Thank you, it is known, that the problem might not occur, if you don't charge to 100% - but I don't know what to conclude from it.

I wonder, what will happen, if we charge only to 80-85% - will there be a drop and how huge will it be?

I just took my own phone off the charger at 85% - let's see what will happen.

If it helps, maybe we could use some kind of app to prevent charging further than 80%.

Edit: apparently there is an app that prevents charging further than a certain percentage:

Edit2: the app's current version does not seem to have this functionality any more.
[Elephone P8000] Damoedge:
Use better shutdown manager from play store and you will certainly reach absolute zero...;)
[Elephone P8000] boka18:
give us the tutorial. i didnt seem to find it. I installed the app, but there is no option for battery calibration.
[Elephone P8000] Damoedge:
You also need xposed installed and you check the box that says "disable critical battery shutdown" when your phone gets to "0%" it will stay there for about an extra 20 mins and you will get a notification saying "android tried to shut down your phone "x" amount of times....mine went up to about 400 times...therefore getting absolute zero...the phone turns off plug in your charger and it will take ten mins for it to respond to charge...turn it on asap and wipe battery stats and charge to 100% with no disturbance...all of this process is calibrating the battery in my opinion...and I'm sure that's why I don't get the big drop everyone is talking about....

Hope that helps you...;)
[Elephone P8000] boka18:
U need the pro version for that?
[Elephone P8000] Damoedge:
Yes you do actually...but it's worth it...
[Elephone P8000] Stefan Gündhör:
Follow-up to my last posting:

Loading the battery up to 85% resulted in a drop of 5% from 25% -> 20%, using the kernel with the "fix".

So I'm assuming that loading the phone to 80% would result in no drop at all.
[Elephone P8000] Trashware:
Really strange. This would mean in turn that loading above 80% would be completely useless.

Could you tell the kernel to report "battery full" to the rest of the system on level 80?
[Elephone P8000] Stefan Gündhör:
Exactly.
[Elephone P8000] Trashware:
Could you tell the kernel to report "battery full" to the rest of the system on level 80?
[Elephone P8000] Stefan Gündhör:
Starting another fix attempt in the kernel. Will send you a test build via PM.
[Elephone P8000] wit.cz:
It is not strange, look at the voltage during charging (3,4V is min, 4,37V is max). But when you start charging NOT from 0%, the voltage increases even over 80% shown.
[Elephone P8000] kivulallo:
maybe that's the result of our battery is 4165mAh and it has a "maximum capacity" of 4200mAh. i suppose the whole kernel or rom is based on 4200 values.
[Elephone P8000] boka18:
weird, i never flashed the battery fix kernel.. i have v2.2.0 .. and i get the drop from 35 to 20.. how? :D
[Elephone P8000] BlueFlame4:
Do you have some testing branch or something so I can see what you're doing and also contribute?
[Elephone P8000] pat7:
Hello, :)

BigTHANK to Stefans and Skeleton911 ENNORME to work !!!!

I expect my pay, you pay for a small beer to them both.

Without you, our P8000 would be in our drawers ! :good:
[Elephone P8000] Damoedge:
If the led can be made brighter I'll be paying them for a night out....lol...but I will soon
[Elephone P8000] Stefan Gündhör:
Next time, the attempt failed anyway ;) 15% -> 0 drop though I altered multiple things in the battery driver :laugh:
[Elephone P8000] pat7:
Hello Stefans :o,

I can not find a Paypal link to pay you a beer ? :D
[Elephone P8000] panjalgmk1panjalgmk1:
Error while flashing guestekrnl_v2.2.1_noBatFix.zip
[Elephone P8000] bjbirch:
Are you using a custom recovery or stock recovery
[Elephone P8000] panjalgmk1panjalgmk1:
I am using cynigen recovery
[Elephone P8000] kivulallo:
as i see you have signature problem. i don't know cyanogen recovery but if you have option to turn off signature verification then turn it off and try again.

if not then you can use twrp https://www.androidfilehost.com/?fid=24411628330025558

or philz recovery https://www.androidfilehost.com/?fid=24052804347838441
[Elephone P8000] BlueFlame4:
This also drives me crazy! Still I have multiple approaches on my TODO list but no time to test them yet. Have you tried rewriting the voltage tables already?

BTW Thank you for keeping the kernel in sync with the upstream - that takes a lot of work from my shoulders ;)

[MENTION=5556662]panjalgmk1panjalgmk1[/MENTION] CyanogenRecovery is completely screwed. That was my very first approach with MediaTek devices. Better do not use it ;)
[Elephone P8000] vaadeggg:
battery drop

Hi! I have installed 2.2.1 with battery fix, and now battery has drops from 32% to 20% and from 3% to 1%. You just replaced drops? I suppose that maximum voltage of fully charded battery is not correctly defined, it shold be about 4,38V. Please, see screenshots
[Elephone P8000] Stefan Gündhör:
I feel you :)

I tried rewriting the battery tables (with the rewrites from dr_root), I set the CUST_TRACKING_POINT to 80, I altered the general mediatek battery meter (because I thought I discovered some wrong numbers for when the battery is empty) and I changed some other things I don't remember.

In the end, the same drop from 15 (or 20) to 0 :)

Weird!
[Elephone P8000] Rizera:
This battery drop is crazy, and by far my biggest issue with this pretty nice phone.

I am by no means any specialist of course, but I have one idea/question:

Is it possible to try and get the battery tables from other MT6753 mainstream devices, and derive them by a 'rule of three' to our P8000? As specific examples, I am mentioning great MT6753 devices such as the Meizu M2 Note, Lenovo K3 Note and Lenovo K4 Note? If not, why not?

Just an idea!
[Elephone P8000] BlueFlame4:
The thing is we need a specific table for our exact battery. I will invest some time into this again! Thanks for the suggestion, if you have more, tell us! :)
[Elephone P8000] kivulallo:
i found something while i was exploring my device's folders...

in /sys/bus/platform/devices/battery there are interesting files... maybe you already know these or they're unusable i don't know... just an idea..:silly:
[Elephone P8000] boka18:
I think you are gonna love me after this:

http://xdaforums.com/showthread.php?t=2596271

Its an MTK PHONE with the same fu*king problem, but it got fixed :)

There is github, so I think u will be able to find the problem :D
[Elephone P8000] skeleton1911:
Thank you!

Gesendet von meinem Elephone P8000 mit Tapatalk
[Elephone P8000] boka18:
No problem! Just respond ASAP if it was from any help! :)
[Elephone P8000] Stefan Gündhör:
Interesting.

The kernel is Linux 3.4.x, we have 3.10.x

The commits I can find in relation to battery is (in hierarchical order)

Added new battery drivers https://github.com/kashifmin/KashKernel_4.2/commit/4beaa754f8c7ee2e3c0057d66f5ebf82341da7a8

Fix battery drop: almost fixed https://github.com/kashifmin/KashKernel_4.2/commit/64ff740380d3e29688977f660968f536d9999c96

Restore battery drop fix https://github.com/kashifmin/KashKernel_4.2/commit/0d6ff3b2e24db3d5c0944f524bc9ae5d4b7be35a

However, I don't see anything instantly helpful on first sight, partially because it is a different battery/hw as well.
[Elephone P8000] Stefan Gündhör:
:good: We need a hero :fingers-crossed:

https://www.youtube.com/watch?v=bWcASV2sey0

Fixing the last remaining and most annoying huge bug for this phone. A nice challenge!
[Elephone P8000] BlueFlame4:
Yeah... Thank you for the song :D I have a free day today again and try to fix as much as possible ;) This als included battery. The problem is it's hard to test as the phone is my daily driver now :>
[Elephone P8000] BlueFlame4:
[MENTION=4311614]Stefan Gündhör[/MENTION] I wrote another experimental fix, this one looks promising so far: https://github.com/visi0nary/androi...mmit/07fe8c77367aef98bb3df1fd6f27a14d937f9c79

First charging cycle went well from 100% to 0% without any drops! Could you compile a testing kernel and spread it here to testers? Don't want to screw my CM 12.1 thread with posts regarding kernel.
[Elephone P8000] boka18:
Sh*t just got real!!
[Elephone P8000] Stefan Gündhör:
Sure, will make a test build now!
[Elephone P8000] Stefan Gündhör:
Well here we go,

the following test build contains the latest experimental battery fix by [MENTION=3784300]BlueFlame4[/MENTION] which hopefully will fix the problem with the battery percentage drop, we all came to know and hate :good:

Please test this kernel build, and reply with the experiences you made.

You can use this build with either any stock-based ROM or the latest Cyanogenmod Build (I'm using build #6 myself).

Please wipe dalvik & cache, along with installing the kernel.
[Elephone P8000] thundermuppet:
Flashed above, went from 50 percent to zero in ten mins.
[Elephone P8000] pat7:
hello, after flashing this kernel last test in 20 minutes (start, received two mails and played 10 minutes) I still have 94% charge.

Before the flash:

100% charged,

wipe cache,

wipe dalvik,

flash the kernel

wipe cache,

wipe dalvik

and startup.

New report tomorrow.

A big thank you for your work! ;)
[Elephone P8000] Stefan Gündhör:
My advice: charge it fully once, before you use it. This is the only way to get proper results for this specific build.
[Elephone P8000] Satbeginner:
Downloading now.

Now at 44%, will charge overnight and flash tomorrowmorning when at 100%.

Report back tomorrow.

Thanks all,

Satbeginner
[Elephone P8000] BlueFlame4:
This is also the reason why my "internal" tests take that long. I always need a full cycle. Some testers also reported me that the drop is gone, so I'm really excited to see how the "public testing" will turn out! :) :) :)
[Elephone P8000] ardrift:
Haha, this is the only disadvantage if you have a monster battery :D I've flashed the kernel too, will report soon about the (non existing) drop.
[Elephone P8000] boka18:
+1 Tester.

Got my phone to 0%. Put on Charger, Flashed, Wiped Dalivk, Charged till 100%, will report when it gets to 0%.
[Elephone P8000] arnicika:
Hope

Gesendet von meinem Elephone P8000 mit Tapatalk
[Elephone P8000] Stefan Gündhör:
... will die last

....

....

.... but it WILL die :cyclops: :laugh: :silly:

Sorry, just kidding :o :o :o
[Elephone P8000] Stefan Gündhör:
don't forget to post screenshots of the consumption from 100 to 0 - it will be really good to see the first flawless consumptions. :fingers-crossed: :highfive:
[Elephone P8000] Satbeginner:
Flashed the new kernel after the 40-20% drop in 2.2.1batfix kernel.

Then charged to 100%, followed by reboot to make sure I started clean.

Charging looked OK, now discharging.

Will post screenprint when close to zero% ;)

Un saludo and thanks,

Satbeginner
[Elephone P8000] pat7:
Hello.

19h last night, the battery charged to 100%.

14h today, I still have 25% charge. I expect a landfill to 5% and explain his behavior.
[Elephone P8000] boka18:
Till now, perfect:

sent from my ELE P8k
[Elephone P8000] pat7:
3:03 p.m. remaining 15% charge.

3:49 p.m. remaining 14% charge.

Games until 4:03 p.m. remaining 9%.

4:22 p.m. remaining 6% while in 4G and receiving mails and playing.

For me, the test is successful!:good:

I also find that the wifi wins less at home with the new kernel.

Congratulations guys ;)
[Elephone P8000] BlueFlame4:
****, yeah! Seems like I have finally found a proper fix :D

Thanks :highfive:
[Elephone P8000] Stefan Gündhör:
Do you have any screenshot of your consumption?

It would be good to see some pictures for the final fix :good:
[Elephone P8000] Satbeginner:
So far, so good!

No intermittent drop on the way down, going great!

Let's see how the relation battery-voltage versus percentage will develop.

Un saludo,

Satbeginner
[Elephone P8000] pat7:
Sorry I come home from work.

I try to post the images in the right order and refer to my previous posts.

I put my P8000 loading, once at remaining 6%.

Again thank you for your work !! :highfive:

Good night
[Elephone P8000] Trashware:
Looks really good! No drop visible at all. Stefan, what do you think about a release version?
[Elephone P8000] BlueFlame4:
In the end it is just nomenclature. If Stefan builds the same version again and calls it release, it would not make a difference ;)
[Elephone P8000] Trashware:
Great! You guys fixed it. Unbelievable.
[Elephone P8000] pat7:
Still other screens, if that can help the ... :o

Good to go, I'm going to eat now.

Good evening. :p
[Elephone P8000] Stefan Gündhör:
Actually, it was [MENTION=3784300]BlueFlame4[/MENTION] alone who fixed it :good:

Thanks at [MENTION=4121441]pat7[/MENTION] for the great screenshots (satbeginner as well!) :highfive: - let's wait one-two more day(s) for more feedback and if everything stays alright, I will release the same version (testing kernel) again as the next release version of the kernel (so kernel will stay the same, only the label changes).
[Elephone P8000] Satbeginner:
I' lovin' it!! :highfive::highfive::highfive:

Un saludo,

Satbeginner
[Elephone P8000] Trashware:
European Quality. Isn't it? ☺
[Elephone P8000] Satbeginner:
Don't shoot me, I 'm just the messenger .... Drop is still there, but

Hi all,

As far as I can see the drop is still there, but now it is only at 5% when discharging, and it will step-up during charge from 95% to 100%.

I was using the phone yesterday when it slowly went through percentages 8, 7, 6, 5, and from there it shut down within 1 minute ending at 1%....

This drop started when the 5% exclamation mark appeared.

See the attached screenprints. (The second has a streched time-scale)

Is somebody else seeing the same behaviour?

Un saludo,

Satbeginner
[Elephone P8000] boka18:
Working flawlessly
[Elephone P8000] BlueFlame4:
;) Sure!

BTW the drop still appears if you reboot the phone between two charges. So once it is rebooted, you have to charge it to 100% again to avoid the drop. That's at least what I experienced yesterday. Anyways, IMHO it's way better than before :) Thanks for all your reports!
[Elephone P8000] pat7:
Hello.

I have not seen this fall view that yesterday I put the phone on charge remaining 6%, despite a restart in the crossbred.

Today I'll watch and would make a report.

This discharge bothers me less, I view that avoids the discharge of the battery.
[Elephone P8000] vaadeggg:
BlueFlame bat fix works great. See screenshots
[Elephone P8000] Stefan Gündhör:
What if we combine your current solution with the previous "fix"? https://github.com/gueste/android_k...mmit/5d921a054b564f6a66b95f7140f8ce1968d32e0b

So maybe the 5% drop or whatever drop that happens if you reboot between charges would happen somewhere in de middle (p.ex. at 30 %) and not at the end?
[Elephone P8000] ardrift:
For me the drop from 15-0 is gone, I was on 9% and didn't experienced any kinds of drop. Thank you for your good work as always :P
[Elephone P8000] Rizera:
Again, I am no specialist or anything, but if you managed to fix the 15%-5% battery drop, isn't the 5%-1% battery drop fixable on the same criteria/methodology?

And once again, congrats Blueflame and Stefan on the awesome work. Testing the kernel right now :)
[Elephone P8000] pat7:
Report of the day, after eating my battery with Videotapes and games .... :cyclops:

11 am, phone turned off for more or less 10 minutes.

Arrived at 1% the phone is several minutes.

The last eight percent, the consomation is fast, by what I had six applications back plans.
[Elephone P8000] Trashware:
This is my result:

Looks really awesome. Thank you guys. Great job.

Edit: It took another 20 minutes to come from 7% to 3%. No drop at all.
[Elephone P8000] Satbeginner:
Thanks! Will do another complete cycle without a reboot.

And yes: It's really great now!
[Elephone P8000] pat7:
Phone on again, the charge is 100%.:good::good:

Yes, very big and beautiful work, thank you! :highfive:
[Elephone P8000] Trashware:
Stefan, I didn't have any drop until 3%, when I decided to do a recharge. However, if the drop returns after a reboot, as posted by BlueFlame4, it would be a really good idea if the drop would occur in the middle and not unforseen at the end.
[Elephone P8000] arnicika:
it didn't!!!!

so thankful!!

unbelievable it is solved!!

thank you Stefan and of course big thank [MENTION=3784300]BlueFlame4[/MENTION]

jungs, unglaublich, dass das ein Ende hat, ich hab damit nicht mehr gerechnet.

never seen the message from the camera that the flashlight is not usable due to low battery [emoji41]

Gesendet von meinem Nexus 7 mit Tapatalk
[Elephone P8000] Stefan Gündhör:
New kernel v2.3.0 is out

v2.3.0

finally working battery drop fix by [MENTION=3784300]BlueFlame4[/MENTION] (confirmed working by community). the battery drop might still occur, if you rebooted between charging cycles, but if you use the phone starting with a full battery until it's empty, you should no longer experience a noticeable drop.

re-enabled the old battery drop fix as well (which shifted the drop from 15->0% to 35->20%. So if a drop occurs after a reboot (as mentioned above), it should happen somewhere above 20% battery and not drop directly to 0%.

CIFS support enabled

performance improvements:

some debugging disabled (mostly cherry-picked from visi0nary upstream)

disabled FRAME_POINTER (makes the kernel smaller and a bit faster)

Increase the buffer-head per-CPU LRU size to allow efficient filesystem operations that access many blocks for each transaction.

mm/slub: don't wait for high-order page allocation

sched/fair: Stop searching for tasks in newidle balance if there are runnable tasks

double-tap 2 wake is still enabled, so if you are on Cyanogenmod and use a build without dt2w, you can just flash this kernel and it will work again

Please upgrade from the batteryFix-test-build to this build, as the test-build neither includes the performance-related changes, nor the old drop fix, nor cifs or the other stuff mentioned in the changelog apart from the new battery drop fix.

You may use the kernel with any stock-based ROM or Cyanogenmod. Wipe Dalvik and Cache along with kernel install - enjoy :good:

Download is attached to the first posting of this thread!
[Elephone P8000] anibalcezar:
Installing kernel..

Updater process ended with ERROR: 1 Error installing zip file 'sdcard/Download/guestekrnl_v2.3.0.zip'

Running cyanogenmod 7
[Elephone P8000] Stefan Gündhör:
please redownload the zip and retry - maybe your downloaded file is corrupt

checksum of the zip on XDA is correct, and I have installed it myself on cyanogenmod build #7
[Elephone P8000] arnicika:
install complete cache dalvik cleared, rebooted, vibration doesn't stop. hard reset, no vibration but freezes, can't input code, hard reset, vibration again, doesn't stop, hard reseted again! what's going on? should have waited till tomorrow with it....

Gesendet von meinem Nexus 7 mit Tapatalk
[Elephone P8000] Stefan Gündhör:
nothing comes to mind :( - you can enter boot menu and from there recovery if you hold volume down + power button upon reboot I believe.
[Elephone P8000] arnicika:
I think it was volume up. Nevertheless, reinstalled the fix kernel, works like before, I don't know what was the problem, because installation went well, but there is an issue. I'm sure I will not be the only one. Should get some sleep now, I'm curious what I will read here in the morning!

Gesendet von meinem Elephone P8000 mit Tapatalk
[Elephone P8000] anibalcezar:
I installed with success but now my phone keeps freezing and I cant use.

When I lock the screen, it freezes
[Elephone P8000] BlueFlame4:
[MENTION=4311614]Stefan Gündhör[/MENTION] you have to revert this in order to boot the phone on stock ROM: https://github.com/gueste/android_k...mmit/21c4450a091a6ed106939a6ce57881546f7c415a This likely causes the bootloop people are having with 2.3.0.

AEE can only be disabled if using CM - stock ROM still needs it. We have now arrived at a point where we will need two branches for CM and stock.
[Elephone P8000] thundermuppet:
Same here, had to reinstall Rom to fix.
[Elephone P8000] Stefan Gündhör:
Thanks, I will revert it and provide a fixed build today in the evening.

@ all: I'm sorry for the inconveniences the latest kernel build caused. I tested it on Cyanogenmod and didn't know the compatibility with stock ROM was broken.

If your phone keeps rebooting, please enter the boot manager by pressing volume up + power I believe, then enter recovery and then flash an older kernel again - you don't need to reflash the whole ROM.

You will get a fixed build today. The download link for the broken build has been removed.
[Elephone P8000] BlueFlame4:
You do a great job here, no need to be sorry! :highfive:

I will redesign my kernel repo a bit so there is a clearer distinction between CM and stock.
[Elephone P8000] thundermuppet:
I was using CM when problem occurred. The reboot and lock were random. Phone was charging at the time, not sure if this played a part in or not.
[Elephone P8000] Stefan Gündhör:
I will just revert everything since the batteryFix-test-kernel that could possibly cause trouble, then I will upload the fixed build only in a posting in this thread (with a warning), and if I get posivite feedback, I will link it in the main posting of this thread, like always.
[Elephone P8000] Snul9:
2.3.0 working perfectly for my (Nexus).
[Elephone P8000] kivulallo:
i'm a bit late but here is my screenshot with no drop... but the phone is discharging as hell in standby too. it lasted two days but i'm in school during the day and i don't use the phone there. but it not seem on the graph as you can see...

the first day the standby powersaving was off and on the second it was on.

using eragon 9.9, freshly calibrated battery, wiped cache/dalvik

should i update to 2.3?

anyway, a very big thank you for blueflame and stefan to finally got this solved!! i suppose the whole p8000 community appreciates it.