FloydQ_Reports icon indicating copy to clipboard operation
FloydQ_Reports copied to clipboard

[BUG] Possible workaround to fix battery levels TWRP

Open samuraikid0 opened this issue 3 years ago • 9 comments

Hi there ! I'm much surprised has you :) Using TWRP Recovery 3.5.0_9-MoRo-1.6 https://www.androidfilehost.com/?fid=17248734326145716182 And Floyd V4

Well this is what i did for fix battery % in TWRP

I installed last bootloader and 8.0 rom from alexndr https://forum.xda-developers.com/t/rom-g930f-fd-alexndr-u8eti2-devbase-v7-3-encryption-support-oct-20.3592914/unread https://www.androidfilehost.com/?w=files&flid=251537

I then reboot on TWRP used format factory option, and then install floyd v4 with aroma wipe option and boom % level was fixed

So my guess is that some file from 8.0 was retained ? TWRP system

(Ignore twrp is orange it is blue screenshot made it orange)

samuraikid0 avatar Feb 10 '21 16:02 samuraikid0

TWRP does not report battery percentage the same as ROM since galaxy S6. This is because roms use many more nodes to measure estimated % based on battery wear etc. Twrp only reads an old node which will only give the same reading if you calibrate on oreo (because twrp kernel is oreo)

The only battery levels you worry about is the ROM and the offline charge mode.

Your values are identical for now but The more you use the phone the more mismatch they will get untill they stabilize. Usually ~5 to 10% gap. Unless you use twrp kernel that matches the rom for multiple battery cycles

Aside from that this is not related to our #196 bug. That bug is about mismatch from booted rom and offline mode. Which are the actual usable % reported by the kenrel. This bug should be fixed in TWRP

ananjaser1211 avatar Feb 11 '21 02:02 ananjaser1211

Ok i understand but look 24h after 13h, 14h of moderated use

Screenshot_20210211-153523_Bromite

Screenshot_2021-02-11-09-36-05

samuraikid0 avatar Feb 11 '21 15:02 samuraikid0

Still same levels %

20210220_115453 Screenshot_2021-02-20-05-50-32

Cheers !

samuraikid0 avatar Feb 20 '21 11:02 samuraikid0

What happens when you charge 100%? Do you still have 100% in twrp? Because when I get to 100% in the rom, it appears 90% in twrp. I have not tried your method yet but I would like to know if you have already tried.

dacili4778 avatar Feb 23 '21 18:02 dacili4778

100 % yep

samuraikid0 avatar Feb 23 '21 18:02 samuraikid0

Check New Ver Twrp S7 : twrp-3.5.1_9-0 S7 Flat twrp-3.5.1_9-0 S7 edge

NoRRt avatar Apr 01 '21 15:04 NoRRt

Check New Ver Twrp S7 : twrp-3.5.1_9-0 S7 Flat twrp-3.5.1_9-0 S7 edge

Nice its fixed with new twrp 3.5.1 9.0

Thanks

samuraikid0 avatar Apr 01 '21 22:04 samuraikid0

I think the mismatch comes from the outdated battery voltage values present in TWRP's kernel dts since TWRP doesn't need an updated kernel and Samsung usually updates the voltage values.

pascua28 avatar Apr 04 '21 05:04 pascua28

battery levels when charging during phone was turn off = battery levels on twrp mode ≠ battery levels on OneUI

I don't think the mismatch comes from recovery. Perhaps this is just a feature of OneUI

Pr0b3 avatar Apr 05 '21 14:04 Pr0b3