uvos__ has quit [Ping timeout: 255 seconds]
Danct12 has joined #maemo-leste
Danct12 has quit [Quit: Quitting]
yanu has quit [Ping timeout: 272 seconds]
xmn has quit [Ping timeout: 246 seconds]
joerg has quit [Killed (molybdenum.libera.chat (Nickname regained by services))]
joerg has joined #maemo-leste
branon has quit [Remote host closed the connection]
branon has joined #maemo-leste
ceene has joined #maemo-leste
<freemangordon> Wizzup: will you have time to test my modem shutdown patch? I will provide kernel/modules
mardy has joined #maemo-leste
Danct12 has joined #maemo-leste
Danct12 has quit [Read error: Connection reset by peer]
Danct12 has joined #maemo-leste
uvos__ has joined #maemo-leste
pere has quit [Ping timeout: 272 seconds]
Twig has joined #maemo-leste
Danct12 has quit [Quit: Quitting]
Danct12 has joined #maemo-leste
Twig has quit [Ping timeout: 248 seconds]
<freemangordon> hmm, seems battery applet either does not get or ignores th elow signal
<freemangordon> I see no "battery low" warnings, despite the kernel signals
pere has joined #maemo-leste
<uvos__> must have broken very recently
<uvos__> as it def used to work
Twig has joined #maemo-leste
Danct12 has quit [Ping timeout: 248 seconds]
ceene has quit [Read error: Connection reset by peer]
_CN_ has joined #maemo-leste
_CN_ has quit [Read error: Connection reset by peer]
ceene has joined #maemo-leste
<freemangordon> uvos__: yeah, will try to find what's going on
<buZz> now that we have omap_hdq loaded again, shouldnt we also have the new kernel?
<buZz> or was why we blacklisted it invalid in general? even on the older kernel
<freemangordon> because it was causing power draw with the default parameters
<freemangordon> for the new kernel - there is a bug I introduced in cpcap-battery, want to have that fixed first
<freemangordon> and modem driver fix needs testing
<buZz> the modem shutdown you linked before?
<freemangordon> yes
<Wizzup> uvos__: btw, how do I best preserve the batteries for the all the d4s?
<Wizzup> leave them empty?
<uvos__> 40-60% soc
<uvos__> as with all lipos
<uvos__> (state of charge)
<Wizzup> ok
<Wizzup> won't they drain over a few weeks?
<uvos__> no
<uvos__> the will drain
<uvos__> but it takes very long
<uvos__> if you dont have one
<uvos__> buy a rc charger imax b6 or so
<uvos__> those can parallel storage charge lots of batteries at a time
<Wizzup> ok
<uvos__> they have open source fw are programmable and can also drain, i would have the battiers at storage voltage
<uvos__> and then use it to discarge to 10% before sending the stuff to people per mail
<uvos__> thats the ideal way of doing things anyways
<uvos__> any of the ones supported by this https://github.com/stawel/cheali-charger would be good charger wise, dosent have to be a b6
uvos has joined #maemo-leste
<Wizzup> The imax b6 sounds fine
<uvos> carefull there are chinese fakes
<Wizzup> I was looking at buying it from a dutch shop
<uvos> ok
<uvos> just dont buy from aliexpress or ebay (generally) most are fake
<Wizzup> ok
<uvos> thats the ac variant (thats fine)
<Wizzup> they seem to look different even on some dutch shops
<uvos> yeah no idea sorry, as you can imagine i bought mine like 15 years ago (at hobbyking)
<uvos> this one is real for sure
<uvos> well mine isent a v2
<uvos> not sure what the difference is
<Wizzup> weird, ok, yeah
<Wizzup> funny how it's much cheaper @ hobbyking
<freemangordon> isn't 3.7/3.8 V the 'transport' voltage a battery shall be charged to before being put on the shelf?
<uvos> its 40-60 soc
<uvos> but yeah thats around that voltage wise
<freemangordon> 3.7 for normal, 3.8 for HV
<uvos> there are other chemistries too
<uvos> life etc
<uvos> but yes
<freemangordon> yeah, I am talking about 'normal' ones
<freemangordon> li-ion/li-po
<freemangordon> point is that it is hard to charge 40-60% without knowing the capacity ;)
<uvos> the chargers mesure it :)
<freemangordon> don't they need a full recharge cycle?
<uvos> yeah they do that (its an option anyways)
<uvos> you can also tell it
<freemangordon> not really, for 10yo battery :)
<freemangordon> what am I trying to say is that it is way easier to charge to 3.7 or 3.8 and call it a day
<Wizzup> sure, but for 60+ batteries it's nice to have a device do it for you
<Wizzup> as opposed to running leste on all just to get it to a certain point etc
<uvos> welli gues you could wirte a userspace script
<uvos> that charges to that point and then shuts off
<uvos> and runn that on the deivces
<uvos> still easier to have the b6 do it for you
<freemangordon> sure, but still it will be easier to tell the charger "charge to 3.8"
<freemangordon> and faster
<Wizzup> in any case
<Wizzup> I'm not going to do in this week for sure
<freemangordon> uvos: btw, we have at least 2 issues that might result in a hange
<uvos> cpcap and?
<freemangordon> one is the bug I have introduced in cpcap-battery
<freemangordon> pvr
<uvos> what exactly?
<uvos> ants related?
<freemangordon> I had PVR_K: ... traces this morning
<freemangordon> device was still alive (like, I was able to connect with ssh)
<freemangordon> but UI was frozen
<uvos> yeah i have that
<freemangordon> no ants
<uvos> well besides the trace
<uvos> ususally thats the issue where xorg is in drmioctl
<uvos> *stuck
<uvos> or charging-sdl
<freemangordon> and in xorg there were lots of PVR2DQueryBlitsComplete failed with error code: -8 (Blit not complete)
<uvos> ok
<uvos> maybe different issue
<freemangordon> and PVR2DBlt failed with error code: -2 (Device unavailable)
<freemangordon> didn;t check what xorg does
<freemangordon> maybe it is the same issue manifesting in a different way
<freemangordon> but I would bet on issue in pvr blobs
<freemangordon> I think it is a good idea to see why SGX recovery does not kick
<uvos> maybe its the same issue that causes pvr to hang in neverball even..
<uvos> what do i know
<freemangordon> someday
<freemangordon> yeah, could be
<freemangordon> but in theory SGX shall recover from lock-up
<freemangordon> hopefully there should be newer userspace at some point
<freemangordon> lets wait for it and see
<uvos> who would we even report issues too
<freemangordon> andrew
<uvos> like the neverball thing is easy to repo
<freemangordon> already did
<uvos> ah ok
<freemangordon> lemme see if he will reply at all
ceene has quit [Remote host closed the connection]
<freemangordon> if he do, I will try to send him instructions how to re-create this neverball thing
<uvos> maybe i could extract the shadow rendering code from it into some standalone crash example.
<freemangordon> that'd be very helpful, yes
<uvos> if he is inclined to help
<freemangordon> but lets wait for him to reply first
<freemangordon> as if he does not, there's no point
<uvos> right
<freemangordon> uvos: are you sure this has ever worked? https://github.com/maemo-leste/status-area-applet-battery/blob/master/batmon.c#L126
<freemangordon> I see nobody cares about 'low' state
<uvos> definately
<uvos> i have seen it
<freemangordon> maybe based on the % full
<uvos> mce cares not about low btw its based on %
<uvos> yes
<uvos> in mce at least
<uvos> no idea if its the same here
<uvos> not that mce dose anything with low at all
<uvos> but it calculates it
<freemangordon> mce cares about low signal from upower
<freemangordon> to make a shutdown decision
<freemangordon> have to do some work work, ttyl
<uvos> yes i mean low as the mce state
<uvos> it has a low and critical state
<uvos> low is < 10%
<uvos> nothing happens on low in mce
<uvos> but it calculates it still
<buZz> Wizzup: hobbyking.com is also nice for such chargers
<buZz> Wizzup: they have a dutch warehouse too
<freemangordon> uvos: it is about battery applet, I think it does not care about what mce do
nedko has quit [Remote host closed the connection]
<freemangordon> going to fix that
nedko has joined #maemo-leste
<uvos> freemangordon: is shal not care about what mce dose
<uvos> mce dosent provide battery on an external interface
<buZz> i'd love if 'fully charged' would make a more noticeable sound :)
<buZz> is there even a sound on it?
<uvos> and indeed mce dosent even use the battery information at all internally
<uvos> except for the battery-guard module i added
<freemangordon> uvos: it is not about mce this time ;)
<uvos> "uvos: it is about battery applet, I think it does not care about what mce do"
<uvos> was just respnding to that
<freemangordon> but about battery status applet, ignoring 'low' state provided by kernel
<freemangordon> ok
<freemangordon> just making it sure we're on the same table
<uvos> yes i was just agreeing
<uvos> it dosent care
<freemangordon> so, maybe I was not warned because battery applet does not warb
<freemangordon> *warn
<uvos> maybe but i have seen the warning before
<freemangordon> yes, but see how it decides to warn
<uvos> probubly because batt_calibrated == true
<uvos> yes
<freemangordon> mhm
<freemangordon> going to add support for 'low' and 'critical'
<uvos> it would be good to make the percentage confiurable too
<uvos> how mutch time 5% is varies by device
<freemangordon> maybe, but not now
<buZz> uvos: i think i figured out why my prev install didnt calibrate anymore
<buZz> because i overwrote the calibration with '1000000' by hand
<buZz> it never changed it anymore afterwards, maybe file permissions
<buZz> my new install from maemo-leste-1.0-armhf-droid4-20221023.img.xz does recalibrate 'all the time'
<uvos> no idea wht that would happen buZz
<buZz> :) alright, doesnt matter much
<buZz> i'd love some example python app to 'start a program with a file as parameter' so i can maybe finally package that pcsx-rearmed with some minimal frontend
<buZz> i mean, we do have some 'maemo filepicker' stuff we can use from python, right?
<uvos> hopefully its registerd as the xdg filepicker
<uvos> probubly not tho knowing nokia
<buZz> :)
<uvos> hm i gues this interface dident exist back then, so not nokias fault for once (looking at you hildon-mime)
<buZz> i did get the errors again about 'missing font/bla' on apt installing stuff
<buZz> guess i need some package installed to define those types , which i havent yet
<freemangordon> buZz: I think I merged your commit, but didn;t release new version
<freemangordon> will do soon (tm) :)
<buZz> ah, that could be it :D
<buZz> <3 thanks
ikmaak has quit [Read error: Connection reset by peer]
ikmaak has joined #maemo-leste
xmn has joined #maemo-leste
elastic_dog has quit [Quit: elastic_dog]
elastic_dog has joined #maemo-leste
pere has quit [Ping timeout: 268 seconds]
uvos has quit [Ping timeout: 272 seconds]
uvos__ has quit [Ping timeout: 248 seconds]
nedko has quit [Ping timeout: 255 seconds]
xmn has quit [Ping timeout: 272 seconds]
xmn has joined #maemo-leste
nedko has joined #maemo-leste
uvos__ has joined #maemo-leste
<freemangordon> this does not account for 'low' irq
<freemangordon> tmlind: ^^^?
<freemangordon> shall I fix that?
<uvos__> hmm idk
<uvos__> you cant just go by the irq
<uvos__> how do you suppose the state should be determined
<uvos__> since you could go below the irq thresh and then start charging, are we still below the thresh? how do we know?
<freemangordon> well, once we have that signalled, we shall report low, until a charger gets connected
<uvos__> just becasue a charger isent connected dosent mean low shal not be reported
<uvos__> the battery may sill be low
<uvos__> *is connected
<uvos__> you can also connect and disconnect the charger while allways below the irq thresh
<freemangordon> right, but not based on irq
<freemangordon> well, ok
<uvos__> the irq is really just a proxy for a certain voltage anyhow
<freemangordon> a charger connected restes the low flag
<freemangordon> *resets
<uvos__> i would not give it special meaning
<freemangordon> if we get it while the charger is there, well, it is still low
<uvos__> other than a check if this is ok irq
<uvos__> you can connect a charger and disconnect it again
<uvos__> while the battery is low
<freemangordon> and?
<uvos__> and never have the irq fire
<freemangordon> ah
<uvos__> the irq is not special anyhow
<freemangordon> ok, then something more clever shall be done
<uvos__> its just a proxy for 3.3v
<freemangordon> well...
<uvos__> it dosent mean anything more than that the battery is below 3.3v now so checking if the voltage is below 3.3v is functually the same
<uvos__> except its better
<uvos__> because its less suseptable to noise
<freemangordon> irq accounts for the load, more or less
<uvos__> no
<uvos__> the datasheet is clear
<uvos__> its just a comperator
<freemangordon> yes, but when the load is bugger, the voltage drop is more
<freemangordon> *bigger
<uvos__> yes except the irq triggers on undesirably short voltage drops
<uvos__> and mesureing the voltage without the irq is the same ofc
<uvos__> ie the current code is better
<uvos__> than relying on the irq
<uvos__> the low irq should not be take as fact, mearly as a signal to check if the battery is low by other means
<freemangordon> measuring the voltage is less accurate, as it does not account for the peak load
<uvos__> the code above is essentaly those other means
<uvos__> you dont want account for peak load
<freemangordon> why not?
<uvos__> you want to do some somothing
<freemangordon> to issue low warning?
<freemangordon> sicelo: yeah :)
<freemangordon> no comment
<uvos__> because a 1ms spke is immaterial
<freemangordon> sure, but it is an early warning
<freemangordon> nothing wrong to start alerting the user
<freemangordon> better early than late/never
<uvos__> the low signal from kernel should trigger on a certain state of charge idealy
<uvos__> we dont have soc directly
<uvos__> so we should try and get close
<freemangordon> how do you define 'low'?
<uvos__> triggering on spikes is not that
<uvos__> <15% soc is typical
<freemangordon> sure
<freemangordon> but in the applet it is 10%
<uvos__> smoothing the voltage gets you closest do this
<freemangordon> maybe I shall increase that?
<uvos__> sure 15% is typical, the point is its some soc
<uvos__> not someting else dependant on load
<freemangordon> because it uses <10 as low and < 5 as critical
<uvos__> sure the exact soc values are up for debate
<freemangordon> ok, but I think there is some conflict:
<freemangordon> 1. kernel ignores voltage drops < 3.3 and reports low on steady 3.3
<freemangordon> 2. mce checks *current* if voltage is < 3.350 (iirc) and issues shutdown
<uvos__> kernel shal ignore voltage drops below <3.3 on some timescale
<uvos__> lets say 100ms
<freemangordon> those 2 does not match
<uvos__> and mce shal do the same
<uvos__> for ciritical
<uvos__> right both shal smooth
<freemangordon> well at least mce shall do
<freemangordon> it is too sensitive atm
<uvos__> sure
<freemangordon> ok, I will provide a patch for that
<uvos__> the smoothing cant be in mce tho
<freemangordon> why?
<uvos__> it gets votlage changed signals
<uvos__> you cant smooth on those
<freemangordon> I can start timer
<uvos__> pretty hacky
<freemangordon> that runs every 20 or so seconds after first 'low' detection
<freemangordon> no, why?
<uvos__> am moving window would be better
<uvos__> mce cant poll the voltage i think
<freemangordon> so if it detects a voltage > threshold, then it just stops the timer
<freemangordon> but, if it has several consecutive < threshold - shutdown
<uvos__> it would be alot better if upower would just filter it instead (i kinda think it dose even just to fast)
<uvos__> since mce isent the only consumer here
<freemangordon> no, iirc it reports whatever kernel reports
<uvos__> well this is a problem for upower too
<uvos__> since it dose soc estimation based on votlage
<freemangordon> this is not in the upstream upower
<uvos__> sure "our upower"
<freemangordon> and I really think this is a huge hack
<freemangordon> not to say it is very inaccurate
<uvos__> well wee need soc estimatation
<uvos__> its vert inaccturate because its bad
<freemangordon> here I get 50% @ 3.6V
<uvos__> it ould be better
<uvos__> the tldr might be we need to not use upower at all
<freemangordon> well...
<uvos__> but idk
<freemangordon> me neither
<freemangordon> but, it supports stuff like BT batteries etc
<uvos__> i gues the kernel folks wont be to happy if we just smooth all the voltages in kernel will they?
<freemangordon> it is disabled, afaik
<uvos__> what is voltage_avg?
<freemangordon> only of HW provides it :)
<freemangordon> *if
<uvos__> right quie annoying that they dont want drivers to synthesize values
<freemangordon> well, kinda makes sense
<uvos__> cpcap violates that allready anyhow
<uvos__> but userspace is dumb and not under our controll :P
<freemangordon> mhm
<uvos__> really upower should smooth itself if avg is not available
<freemangordon> I am tempted to pull latest upower to see how it will behave
<freemangordon> and start making issues against it
<freemangordon> yet again, I think we shall use low irq
<freemangordon> because in reality *this* is what shall be reported by the driver - HW state
<freemangordon> not some wild guess based on voltage
<uvos__> but thats not how hw works here
<uvos__> its not a battery low irq really
<uvos__> just a voltage low irq
<freemangordon> see, I know what reference voltage and comparator is (most-probably op amp) :)
<freemangordon> and I am pretty sure I understand how that works
<uvos__> im sure its not a op-amp
<freemangordon> why not?
<uvos__> that would be silly when a analog comperator would work too
<uvos__> more complexity lower slew rate
<freemangordon> anyway
<uvos__> driveing a op-amp into saturation is rude
<uvos__> :P
<uvos__> (you would have to if you wan to use it as a comperator)
<freemangordon> the point is that it gives us early warning about the charge of the battery, which is more or less related with the state of the battery, i.e. its internal resistance
<uvos__> anyhow
<uvos__> not really, its dependant on a lot of factors inc external noise load and internal resistance
<uvos__> imo its not usable as anything but a "check this" signal
<freemangordon> to me it is, to start warning the user
<freemangordon> that the battery is getting 'low'
<freemangordon> and that's true as long as 'battery level' is qualitative property
<freemangordon> as we do not need or want exact measurements
<freemangordon> all we want is to warn the user that she will soon need a charger
<freemangordon> that's my point
<uvos__> imo we should to propper soc estimation (or use the soc given by the charge counter if avialbe) and warn the user based on that
<uvos__> thats my point
<uvos__> thats also what android dose it dose soc estimation and warns the user at exactly 15%
<uvos__> this works splendedly
<freemangordon> I don;t think we will be ever able to make that work properly, but ok
<freemangordon> I need some rest from the batteries :)
<sicelo> freemangordon: how does this work i Fremantle?
<freemangordon> bme
<freemangordon> don;t remember what we did in bme replacement
<freemangordon> maybe pali knows more
<freemangordon> maybe something ob bq driver
<freemangordon> *in
<sicelo> yes, i know that, and Pali's replacement bme. but i mean .. how notifications are decided
<freemangordon> don;t remember, sorry
<sicelo> anyway I've also seen and heard the low battery notifications on droid 4. i don't use it much though, so i can't tell when last i heard and saw them
<freemangordon> yes, but it is based on % full value
<sicelo> but i recall there have been times i got lots of them
<sicelo> ok. you propose to base on voltage?
<freemangordon> it is already based on voltage
<freemangordon> when the battery is not calibrated, a hack in upower estimates based on voltage
<uvos__> except its really dumb :)
<uvos__> idk if just improving this hack some dosent solve all issues
<freemangordon> could be
<uvos__> and removeing the if callibrated check in the status applet
<freemangordon> I already removed :)
akossh has joined #maemo-leste
elastic_dog has quit [Ping timeout: 246 seconds]
elastic_dog has joined #maemo-leste
<norayr> folks droid3 is so beautiful!!!
<norayr> so pity it has poor support. that is the same chipset no?
<norayr> what is the difference?
<Wizzup> nagging won't fix it
<Wizzup> if we knew it'd be fixed already
<norayr> eh eh.
uvos has joined #maemo-leste
norayr has left #maemo-leste [Error from remote client]
norayr has joined #maemo-leste
nedko has quit [Ping timeout: 255 seconds]
nedko has joined #maemo-leste
<uvos> that said, Wizzup could you provide me with access to a d3 running android (preferably los) to dump the regs and see if the d3 maybe sets some regulators up differently or so?
<uvos> also to figure out whats going on with the leds
mardy has quit [Quit: WeeChat 3.5]
Twig has quit [Remote host closed the connection]
<norayr> it is very expensive to send something to the outer world from where i live, but if Wizzup won't send, i can send u a device, my first d3 which is in veeery bad shape: screen has a crack, power and volume buttons are very tired and it lacks a backplate.
<uvos> norayr: i dont want a device really - just information
<uvos> Wizzup is best placed to provide it
<norayr> ah!
akossh has quit [Quit: Leaving.]
elastic_dog has quit [Remote host closed the connection]
elastic_dog has joined #maemo-leste
pere has joined #maemo-leste
uvos has quit [Ping timeout: 276 seconds]
thejsa is now known as eval
eval is now known as thejsa