libera/#maemo-leste/ Friday, 2024-02-23

tmlindfreemangordon: to me sounds like the issue is that the phy pads don't see the modem k-state wake-up event after ohci runtime suspends when no more active child devices06:32
tmlindfreemangordon: when we idle things, everything gets powered off, including the power domain. only the padconf wake-up events work at that state, not the ohci host feeatures06:34
tmlindfreemangordon: the HCOCPSYS related stuff and quirks should be already handled by ti-sysc.c driver but as ohci is not in the wake-up domain, it's wake up capabilities won't help06:37
sicelouvos, do i understand correctly that in sphone config, if in section [Sphone] i remove 'calls' from 'Features', then incoming calls will no longer be handled by sphone?07:31
freemangordontmlind: I see. ok, will try to configure wakeirq.07:52
tmlindfreemangordon: yeah try just with one pin at a time for the shared struct device for omap-usb-host.c to see which one works the best08:22
arno11sicelo: Device: /org/freedesktop/UPower/devices/battery_bq27200_012:28
arno11  native-path:          bq27200-012:28
arno11  vendor:               Texas Instruments12:28
arno11  power supply:         yes12:28
arno11  updated:              Fri 23 Feb 2024 12:24:05 PM CET (66 seconds ago)12:28
arno11  has history:          yes12:28
arno11  has statistics:       yes12:28
arno11  battery12:28
arno11    present:             yes12:28
arno11    rechargeable:        yes12:28
arno11    state:               discharging12:28
arno11    warning-level:       none12:28
arno11    charge:              1.52083 Ah12:28
arno11    charge-full:         1.52902 Ah12:28
arno11    charge-full-design:  2.05632 Ah12:28
arno11    energy:              5.3801 Wh12:28
arno11    energy-empty:        0 Wh12:28
arno11    energy-full:         6.1222 Wh12:28
arno11    energy-full-design:  8.23351 Wh12:28
arno11    energy-rate:         1.71258 W12:28
arno11    voltage:             4.092 V12:28
arno11    time to empty:       3.6 hours12:28
arno11    percentage:          99%12:28
arno11    temperature:         25.4 degrees C12:28
arno11    capacity:            74.3571%12:28
arno11    technology:          lithium-ion12:28
arno11    icon-name:          'battery-full-symbolic'12:28
arno11  History (charge):12:28
arno11    170868744599.000discharging12:29
arno11  History (rate):12:29
arno11    17086874451.713discharging12:29
freemangordontmlind: https://pastebin.com/peuPBvvM14:59
freemangordon[    0.431640] usbhs_omap 4a064000.usbhshost: wakeup irq 13214:59
freemangordondoes not seem to work, no irq generated according to /proc/interrupts14:59
freemangordonwill try the next pad14:59
freemangordonstill the same15:12
freemangordon132:          0   pinctrl 140 Edge      4a064000.usbhshost:wakeup15:12
freemangordonpadconf looks ok:15:12
freemangordonValue at address 0x4A1000D0 (0xb6f2e0d0): 0x11F411D15:12
freemangordon Value at address 0x4A1000CC (0xb6f030cc): 0x11D411D15:13
freemangordonthe same result with usbb1_mm_txen15:42
siceloarno11 you should use a pastebin, e.g. paste.debian15:44
sicelopaste.debian.net15:44
siceloalso, i would like to get the complete output from that command, even if there are many devices listed there (upower has an extra "DisplayDevice" device)15:45
siceloand when you take it, ensure all the following conditions are true: (1) charger is still connected, but battery is 100%15:46
sicelo100% according to /sys/class/power_supply/bq27200-0/capacity15:52
sicelobut i might also do the test myself. i do have N900 with working USB, but it has dead modem and dead TS :-P15:54
siceloso i just use it to charge battery, that i then swap into the n900 that has working modem but dead USB. i should fix the USB actually15:55
duuudesicelo: is the fact that it keeps "charging" dangerous? or it is just the way it is in GUI16:07
sicelojust gui mostly. the actual charging is done under kernel control16:10
siceloagain, it's not a problem i experience myself, but when you say always charging, you mean on the status bar, and led stays on blinking orange?16:16
siceloyou can also help by providing the info i requested above. don't worry about the patch for now16:19
siceloarno11, duuude , here is the revised information that I'd like to get: (1) output of `cat /sys/class/power_supply/bq27200-0/uevent`, and (2) output of `upower -d`16:39
sicelorequired conditions when producing that output: (1) device is still connected to charger, (2)  sysfs indicates 100% charge16:41
siceloi already see a caveat though ... maybe i shouldn't burden you guys. I'll do the tests :-)16:43
sicelothe caveat is .16:43
siceloit might start reporting discharging while the charger is still connected :-P16:44
arno11sicelo: got 100% few min ago ;)18:15
arno11https://pastebin.com/YhQj9LUh18:15
arno11https://pastebin.com/2smRCim018:15
sicelothanks. i'm also on my N900 now. in the meantime i'm doing some updates (my internet is slow)18:16
sicelonice, you even got POWER_SUPPLY_CAPACITY_LEVEL=Full !!!18:17
siceloadd the following: cat /etc/modprobe.d/blacklist-upower.conf18:19
siceloblacklist twl4030_charger18:19
siceloblacklist bq27xxx_battery_hdq18:19
siceloarno11: when you got into the state shown in your pastes, was the charging animation still showing? green led?18:53
arno11sicelo: the charging anim was still there iirc and no green led18:54
arno11in fact, not sure for the charging anim...18:55
sicelook, thanks. i see mce looks at each device individualy, instead of using the DisplayDevice like others do. not saying it's a problem :-)18:55
arno11ok19:01
arno11sicdelo: for the blacklisted modules, could you plz clarify a bit ? possible idle blockers ?19:05
arno11*sicelo19:05
siceloyou can ignore them for now ... they're already ignored in mce ... they're additional 'batteries' :p19:07
arno11ah ok19:07
sicelowhen i'm done, i'll remove their ignores from mce, because we don't need to be loading them in the first place. ideally we should drop them from kernel config, but i guess they're there in omap2plus in general. so a module blacklist will do just fine19:08
sicelogoodness the locales!!19:09
arno11argh...the locales...19:09
sicelobtw, the animation & led thing was fixed in the past. the trick now is to find what broke19:12
arno11Wizzup: btw what's the plan for locales ? :P  just US or UK by default and all others as additional packages ?19:13
arno11sicelo: iirc it was working with last beowulf19:14
sicelo19:17 < sicelo> nice, you even got POWER_SUPPLY_CAPACITY_LEVEL=Full !!!   ... < i was looking at the wrong thing. it still said "charging"19:14
arno11you mean in displaydevice ?19:16
arno11maybe my polarcell is not calibrated enough19:17
Wizzupyes, spinal patched upower for the led19:17
siceloin sysfs ... CAPACITY_LEVEL is something else, which UPower doesn't care about in the case of a battery19:17
WizzupI don't know if we ported over his patches19:17
siceloarno11: yes i see you're out of calibration, but that shouldn't cause the problem19:35
siceloman ... src/modules/battery-upower.c and status-area-applet-battery/batmon.c are duplications somewhat. would it have been possible to share the code somehow?20:31
sicelomce for the first path20:32
Wizzupsure, you can put in the work to make it a shared c library and package it20:33
WizzupI decided it was not worth the effort at the time20:33
siceloi get it20:34
siceloWizzup: how to run mce and get logging?20:44
siceloarno11: with my patch from yesterday, no charging animation :-P ... so at least status-area-applet-battery is happy. now to figure out why the orange led still blinks. that's mce20:46
sicelos/with my patch/with my upower patch/20:46
Wizzupsicelo: mce--force-stddev --verbose --verbose20:47
Wizzupmaybe20:47
Wizzuperr20:47
Wizzupmce --force-stder *20:47
siceloi just run this even though mce is already running?20:49
Wizzupno, stop mce20:50
Wizzupor look in syslog, but default mce does not log a lot20:50
sicelooh, i was thinking stopping mce leads to fireworks :-P20:51
Wizzupyou can restart mce with no problemas20:51
Wizzupyou can restart mce with no problems20:51
Wizzupbrb dinner20:51
sicelocool, thanks20:52
siceloi think i found it, will share in a moment21:16

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