libera/#maemo-leste/ Friday, 2022-11-18

Wizzupfreemangordon: yes, please, sorry01:17
buZzi wish the calibration of battery was a bit simpler to hit :P11:46
buZzi went 1100 > 900 > 1200 > 400 > now 75011:47
buZzlol11:47
buZzno clue why it went from 1200 to 400 in a single calibration cycle, maybe i was burning a lot of cpu11:48
sicelobad battery :-p11:55
buZzstill, i'd love to be able to do 'calibrate now' and some interface tells me its status / if its done12:10
buZzbut no doubt these batteries are bad, sure :D12:11
Wizzupmaybe discharge it almost entirely and then go to charge mode?12:11
Wizzupbtw, my / filled up again with kernel oopses12:12
Wizzup6GB kern.log, 6GB syslog, 6GB messages12:12
buZzgee12:13
buZzmaybe we should install logrotate by default? :)12:13
r3boot^_^12:13
buZzWizzup: i keep trying to hit the 'charge now!' weep-weep-weep msg, but so often i just does that while i'm not near the phone before going full-off, which (afaik?) prevents calibration loop to run12:14
sicelohuh? what's 'charge now'?12:14
freemangordonmissing, most-probably12:15
buZzthere's a notification between 10% and 5% battery charge, with 'almost empty'12:15
buZzand a different one between 5 and 0%12:15
sicelook, i get you12:15
buZzafaik you need to hit the 5-0% one to start a calibration, while -not- having rebooted since phone knew about charge stats?12:16
freemangordonbuZz: not really12:17
freemangordonunfortunately those are independent12:17
siceloi'm not sure about that ... the script doesn't care12:17
buZzaw12:17
freemangordonalso, I think it works on the ooposite12:17
sicelohttps://github.com/maemo-leste/droid4-battery-calibration/blob/master/scripts/openrc/droid4-battery-calibration12:17
freemangordonyou have to charge full12:17
buZzafaik uvos said the script no longer is functional, and calibration is now by kernel?12:17
freemangordonand then wait for "battery low at xxx" kernel message12:18
freemangordonafaik12:18
buZzand thats the design_low_voltage now?12:18
freemangordonbut, because mce is too conservative, on bad battery it is really hard to hit that12:18
freemangordonno12:18
buZzah12:18
freemangordonit is still 3.35 (or somesuch)12:18
buZzso calibration only runs between ~3.35 and 4.2?12:19
sicelobtw who shuts down the device on low battery in general? mce? maybe for d4, it should first run that calibration script ... or it does?12:19
freemangordonor 3.3, can't remember, look at driver sources, there is a explanation when 'high' low gets triggered12:19
freemangordonsicelo: mce12:19
freemangordoncalibration it done by the driver12:20
freemangordonscripts just saves what has been calibrated for the next boot12:20
freemangordonIIUC12:20
sicelothe driver just counts coulombs, yes12:21
freemangordonwell, not really12:21
freemangordonit comes up with 'charge_full' when calibration is done12:22
sicelook.12:24
WizzupPali: I will hook up serial in the next hour and try u-boot12:26
siceloawesome :-)12:26
siceloin the meantime, tmlind has provided some nice patches that fix the musb problem for N900.12:27
buZzfreemangordon: so, charge_full to 'low at xxx' , would that be full calibration?12:31
buZzor would it need to hit charge_full twice12:31
freemangordonbuZz: status 'Full' and then 'low at xxx'12:32
buZzok, so even if it poweroff after 'low at xxx' ?12:32
freemangordonyes12:32
Wizzupsicelo: great, what was the fix?12:33
freemangordonthat's the theory, at least12:33
buZznice, ok12:34
buZzi'm at full now, and will run it till shutting down , to see if i can get it back to ~100012:34
buZz:)12:34
siceloWizzup: https://marc.info/?l=linux-omap&m=166876674609260&w=2  ... so it's a1a2b7125e10 that was causing my issues. anyway he has further patches to convert omap3 to work similar to omap4 regarding hwmods/ti-sysc,12:35
PaliWizzup: ok, thanks!12:36
Wizzupsicelo: great12:42
uvos__buZz: one wrinkle about callibration on d4 is that after boot13:08
uvos__you still need to hit full OR empty even if you hit full AND before and have charge_full saved13:09
uvos__*full AND empty13:09
uvos__since the driver has no way of knowing what the coulomb counter should be at after boot13:10
uvos__probubly we should just improve soc estimation (ie do what android on d4 dose) and forget about callibration alltogether13:11
uvos__without usable nvram in the battery its not that viable13:11
buZzuvos__: yeah thats the wrinkle that prevents battery percentage, i guess?13:11
uvos__buZz: the battery is totaly uncallibrated untill it starts showing the percentage13:12
buZzright, not uncalibrated, but unknown13:12
uvos__its functionally uncallibrated13:12
buZzit can be calibrated -and- unknown, is what you mean13:12
uvos__the state of charge display comes from the same place13:12
buZzand only after hitting 0% or 100% will it be calibrated -and- known13:12
uvos__regardless of if charge_full exitsts or not13:12
buZzhmhm13:13
uvos__if the counter state is not known13:13
uvos__ie calibrated -and- unknown == uncalibrated -and- unknown13:13
uvos__makes no difference to the accuracy of the state of charge display13:13
buZzright, but it can become known only if calibrated before13:15
buZz-or- if doing calibration and finishing it13:15
uvos__sure13:15
uvos__btw the reason the capacity jumps around is13:15
uvos__that the empty value is taken from an irq that is suseptable to noise13:16
uvos__and load13:16
buZzsometimes i hit some mode where my d4 suddenly sees 'no battery' , i think that might have caused 1200 > 40013:16
uvos__so if the device is heavly loaded or voltage noisy13:16
uvos__it will take the battery as empty for callibration purposes13:16
uvos__way to early13:17
buZzthe battery icon will go from normal green 'growing bar' on charging, to a red bar and a lot of notification sounds play very fast13:17
sicelouh ... no battery? you're sure your contacts are fine?13:17
buZzsicelo: yeah, phone remains functional the whole time really13:17
uvos__there is no way d4 displays no battery hw wise13:17
buZzunless kernel thinks its really empty , leading to mce to powerdown13:17
uvos__oh nvm thats only true on my device13:17
sicelooh, red bar means empty, not no battery :-)13:17
buZzright, but even with charger connected, it shouldnt be showing red + not charging13:18
uvos__on stock d4s the kernel driver checks if the thermistor is present13:18
WizzupbuZz: getting the sounds very fast sounds bad13:18
buZzhmhm, there's cpu spikes around it aswell, but not so noticeable13:18
buZzif i find some reliable way to trigger it i'll open a issue13:18
uvos__check kernel events13:19
uvos__when it happens13:19
sicelotmlind: i tried the 'Update musb to probe with ti-sysc for omap3' series, without applying 'usb: musb: omap2430: Fix probe regression for missing resources' - unfortunately musb breaks again for N900 ... missing interrupt numbers again19:16
sicelodid i jump the gun here, i.e. 'usb: musb: omap2430: Fix probe regression for missing resources' remains necessary?19:17
siceloWizzup: which kernel config is used when building d4/n900 kernel?20:27
siceloi think there are missing options20:30

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!