libera/#maemo-leste/ Monday, 2023-03-20

freemangordonМелник123З!20:38
freemangordonhmm20:38
freemangordonI should teach myself to not write passwords in public channels :)20:39
Wizzup:)20:39
freemangordonnot that I ever wrote any important one, but still20:40
Wizzupseems like my droid4 battery is unhappy since yesterday20:41
WizzupI took it out for a moment, but basically it shuts down at 450mAh or something20:42
Wizzupeven with leste booted, it shuts down when connected to a charger20:42
Wizzupkinda weird20:42
Wizzupwhen charging I see this spamming:21:00
WizzupKERNEL[1014.306801] change   /devices/platform/ocp/48000000.interconnect/48000000.interconnect:segment@0/48098000.target-module/48098000.spi/spi_master/spi0/spi0.0/cpcap-charger.0/power_supply/usb (power_supply)21:00
Wizzupin udevadm21:00
WizzupMar 20 21:00:10 localhost ke_recv[4820]: uh_callback:356: uh_callback: mode = 121:00
WizzupMar 20 21:00:10 localhost ke_recv[4820]: handle_usb_event:514: E_CABLE_DETACHED in 1!21:00
freemangordonbad cable?21:00
freemangordonloose USB port?21:00
Wizzupled is not blinking though21:01
Wizzupmaybe it's full or something, but I kind of doubt it21:01
Wizzupplugged in a different cable and now it's resetting I think21:02
Wizzupyeah, was powered off21:02
Wizzupweird21:02
Wizzupthis happened to me 4-5 times today21:03
Wizzupwhich is why I had dmesg open over wifi, but I saw nothing there21:03
Wizzupmaybe I will be able to get into pstore21:03
freemangordoncould it be that battery is so bad that it goes under shutdown level?21:04
Wizzupmaybe, but it works fine without charger21:05
Wizzuplike I held it with full brightness and connected to wifi21:05
Wizzupnothing in pstore21:05
freemangordonah21:05
Wizzupit could be that the port is flaky21:05
buZzwill the droid4 kernel get https://marc.info/?l=linux-omap&m=167819256924890&w=2 on our next update(s)? :P21:09
freemangordonbuZz: who knows? did you test it?21:09
buZzno but it looks very promising, if it cancels out the batterydraw during charging :)21:10
buZzi'll patch it in a local build then :)21:10
freemangordonalso, this is full of printks and whatnot21:10
freemangordonBTW, I am playing with cpcap_adc, I may try this patch too when I am done21:11
buZzi'm not sure cpcap_charger doesnt already do printks for changed charge states21:11
buZzah cool, the _adc is for the touchscreen?21:11
freemangordonno21:11
freemangordoniio driver21:11
freemangordonADC like analog-to-digital21:11
freemangordonvarious things, like battery voltage, temperature, charging current, ect21:12
buZzah, ok, cool21:12
Wizzupoh, I missed his patch, it seems like it would help in some cases21:12
freemangordonRN we can't have both battery voltage and current at the same moment21:13
freemangordonwhich is one of the reasons we cannot properly estimate Ri21:13
freemangordonIMO21:13
buZzahh, its doing one-shot adc but could do 'all-shots' adc ?21:13
freemangordonit does all channels at once21:13
buZzthat would be quite the improvement yeah21:14
freemangordonbut you can read anly one at a time through sysfs21:14
freemangordon*only21:14
buZzhmhm, unless you use the 'uevent' file?21:14
freemangordonno21:14
buZzoh21:14
freemangordoniio devices does not have uevent file like battery driver, for example21:14
freemangordon*do not21:14
freemangordonno data in there21:15
buZzahhh21:15
freemangordonfor multiple samples at once IIO buffer/triggers must be implemented21:15
buZzbasically helping that driver forward 10 years? :)21:16
freemangordonalso, cpcap supports the so called "single channel", which does 4x2 over battery U/I "at once"21:16
freemangordon4 samples over 2 channels21:16
freemangordoncurently the drivers programs the chip properly, but does not provide the data to the userspace21:17
freemangordonanyway, have to run, night!21:19
buZzbye \o21:21
Wizzupfreemangordon: but it does like pavel's patch can help runnning mostly/only on usb power, right?21:24
buZzfrom his description, i see he 'solved' the constant charge/discharge/charge/discharge when its 'full'21:26
buZzwhich should save power yeah, and batterylife21:26
Wizzupit helps with other things too21:27
Wizzupit helps with insane upower behaviour21:27
buZzannoyances? :D21:27
Wizzupit's event logs gets so full21:27
Wizzupthat upower uses 100% cpu on boot for a minute21:27
Wizzupon my device21:27
buZzlike the constant 'batteryfull.wav' you get :P21:27
Wizzupyes, and that21:27
Wizzupand led blinking spam21:27
Wizzup:D21:27
buZz:) i was really excited to see the patch anyway :)21:28
buZzif what pavel says is right, it'll be a blessing21:28
WizzupI just accepted his email, somehow it was stuck on the m-l list21:36
Wizzupwe need mailing list admins for it21:36
uvosbuZz: we discused what this patch dose a long time ago allready21:36
uvosthe problem is that android dosent use this mode and that the battery acts as a farily large cap21:36
buZzright, but did you test it?21:37
uvosthe voltage rails on d4 are allready very noizy21:37
uvosbuZz: no this patch, but setting the registers the same21:37
uvosthis caused the voltage rails to be even more noizy21:37
uvosi was unconfortable implementing this at the time for this reason21:37
uvosit may work21:38
uvosi have no idea, but the pp noize on d4 is allready like 2 decades more than on bionic for instance21:38
uvos*noise21:38
buZzwell, your comfort level doesnt match mine then :D21:39
uvosyour welcome to apply this patch localy, if it causes no issues for a sufficant number of devices ill be fine with it21:39
uvosbut i dislike just pushing this to all users21:39
Wizzupwell, we need some way to not charge/discharge constantly imo21:40
uvoswe should do what andorid dose in this case21:40
uvosturn off charging and poll until level is below 10%21:40
Wizzuplevel?21:41
uvoscharge level drops by 10% or 5% or whatever (not sure what andorid uses exactly)21:41
Wizzupdoes anyone want to help manage the mailing list?21:42
Wizzupuvos: ah ok21:42
buZzWizzup: sure, i can do another mailman admin job21:44
buZzi mean, i already do a couple, its not much effort to do one more :)21:44
buZzyou ment spam rejection etc?21:44
Wizzupit's not a lot of spam really21:44
Wizzupyeah but also message acception21:44
Wizzupapparently our ml doesn't accept mails with to many To or Ccs21:44
buZzoh yeah i can go through options and tweak it21:45
Wizzupok21:45
Wizzupwill dm21:45
buZzi'm no expert but i have some nearby :)21:45
WizzupI am not sure if we have full access, it's dyne run21:46
WizzupI've reached out before to jaromil but got no reply, so who knows21:46
buZzah, i'm sure it'll be fine21:52
buZzi think nearly everything mailman just goes thruogh webinterface anyway21:52
Wizzupright21:54
Wizzupany other takers?22:00
Wizzupit's mostly about just timely approving some msgs22:00
buZzWizzup: i think i'll get em in my email like all other mailmans22:03
buZzand will try to act timely on them if i can :)22:03
Wizzupgreat22:03
Wizzupfreemangordon: it might have been bad contacts with the battery22:05
WizzupI opened the phone yesterday22:05
WizzupI just redid it, so maybe that was it22:05
Wizzupuvos: btw, I asked the other day, not sure if you remembered, but did you document your changes for u3 cards somewhere?22:07
Wizzupjust dts ones, right?22:07

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