libera/#maemo-leste/ Monday, 2021-12-20

tmlindfreemangordon: did you still have some question for me? :)07:56
freemangordontmlind: I guess a couple of :), not now though07:59
tmlindfreemangordon: ok08:00
tmlindbencoh: the thermal sensor is different between 34xx and 36xx afaik08:00
tmlindbencoh: in case there really is a thermal shutdown capability on 34xx, then mmc1_dat4 may be available depending if data line numbering starts from 0 or 1 as only four data lines are used for mmc108:01
tmlindWizzup, bencoh: maybe check how fremantle has muxed mmc1_dat4/gpio_126 with rwmem -s 16 0x4800215008:08
tmlindif it's mmc1_dat5/gpio_127 instead, then rwmem -s 16 0x4800215208:09
tmlindsee also 35xx trm page 874 for reference08:11
tmlindalso, see if n900 temp sensor ends up getting fixed and enabled, then see also commit 5c3db2d4d4ed ("ARM: dts: motorola-mapphone: Configure lower temperature passive cooling")08:30
tmlindwaking up the system once a second is not nice for pm :)08:30
tmlindfor the poll time testing with heavy cpu load you can monitor the temperature, for droid4 10 seconds seemed like plenty of time to react08:31
freemangordontmlind: the point is that omap34 thermal driver doesn't seem to support tshut gpio at all09:05
freemangordonand I wonder what happens if gpios start behaving on OFF mode09:05
freemangordonis it possible the interrupt/oops we see to be tshut gpio irq09:06
freemangordontmlind: also, why gpio_126?09:06
tmlindfreemangordon: the tshut seems to be gpio_127, i think bencoh got the mmc dat line wrong earlier09:09
freemangordonaccording to n900 schematics, mmc1_data4-mmc1_data7 are not connected09:10
tmlindfreemangordon: gpio bank4 is not powered off during off mode, it won't produce any interrupt during off mode, the only way to do that would be based on the padconf interrupt09:10
freemangordonwhich means gpio_127 is not connected09:10
tmlindyeah duping the gpio_127 padconf value from fremantle kernel would show09:11
tmlindif it's not muxed to gpio_127 mode, then tshut interrupt is not used at all09:11
freemangordontmlind: I understand, but if we have gpios behaving we could have phantom gpio interrupt, no?09:11
freemangordontmlind: hmm, well, there seem to be some "comparator" there09:12
tmlindfreemangordon: if tshut is a an edge interrupt, there may not be any status to be seen after waking up from off mode09:12
tmlindexcept ifconfigured as a padconf interrupt09:12
tmlindpossibly09:12
freemangordonugh, this is sim_clk too in mode209:13
tmlindso mux to gpio_127 mode, in the dts configure tshut interrupt as the padconf pin interrupt and not as gpio_12709:13
freemangordontmlind: I doubt this is used as gpio_127, iiuc sim_clk is used09:14
tmlindsee the interrupts-extended configuration for let's say n900 uart09:14
tmlindfreemangordon: ok, yeah dumping out the related padconf register from fremantle kernel would show09:14
freemangordonok, lemme connect to my prod device09:15
freemangordongood that I have devmem2 there :)09:15
tmlindhmm actually, the sim is on the modem, not on 34xx, so unlikely sim_clk is used09:16
freemangordonValue at address 0x48002152 (0x4001f152): 0x709:17
freemangordonsomebody shall do that on leste09:17
freemangordonWizzup: ^^^09:17
tmlindsafe mode, not used at all, so yeah experimenting remuxing to gpio_127 and configuring the padconf interrupt as tshut is doable09:17
freemangordontmlind: any clue what to dump to verify that?09:18
freemangordonugh, I lost the diagram09:20
tmlindfreemangordon: enable padconf register 0x48002152 wake bit manually after muxing to gpio_127 mode and see if you can get 0x48002152 event bit to trigger09:21
tmlindthen just start compiling code09:22
tmlindor whatever might trigger overheating, i guess you could tweak the thermal alert values if doable09:22
tmlindsee WAKEUPENABLE and WAKEUPEVENT for the padconf, 35xx trm page 76909:23
bencohtmlind: ah nice, I didn't check if those were in use indeed :)09:24
tmlindthose get automatically handled if a pad is configured as a wakeirq in the dts, like we have for uart3 rx pin for example09:24
tmlindif the padconf as tshut interrupt works, then ti-bandgap.c needs to be updated to understand interrupts property from dts, right now it seems to only understand a gpio pin09:29
freemangordontmlind: I was not able to find TSHUT trigger temperature configuration in TRM09:31
freemangordonfor 3430 that is09:31
freemangordonalso, I am not sure i understand Figure 25-1 in the TRM09:32
freemangordonin regards to gpio 127 that is09:32
tmlindhmm my 35xx trm does not seem to have any 25-1 for gpio_12709:34
freemangordonthis is p. 333109:35
freemangordonFigure 25-1. General-Purpose Interface Overview09:35
freemangordonSWPU223M – July 2007 – Revised February 201109:35
freemangordonthis is 34xx, not 35xx09:35
tmlindoh ok, seems to be "Figure 24-1. General-Purpose Interface Overview" for 35xx trm09:35
tmlindi guess the idea is that the tshut could be also handled externally by pmic for example?09:36
freemangordonhmm, yeah, could be09:36
tmlindi guess my question still is: what stops battery charger automatically if battery overheats?09:39
freemangordonsec (phone call)09:39
tmlindPali: so does the bq2415x autotimer stop charger automatically if not kicked?09:44
freemangordontmlind: on fremantle it is userspace that does it, afaik09:44
freemangordonon leste I guess noone :)09:44
tmlindfreemangordon: well let's hope the bq2415x hardware timer automatically disables the charger if the os is hung09:46
freemangordonI doubt that's the case09:47
freemangordonbut yeah, lets wait for Pali09:47
tmlindyeah09:47
Palitmlind: yes09:48
PaliHW automatically reset charger registers to default values, which disable charging09:49
tmlindPali: ok good to hear & thanks for confirming09:51
Pali:-)09:52
tmlindso the soc thermal stuff is a completely separate story then09:52
tmlindi guess the worst thing that can happen with the soc thermal failing is the device overheats and hangs or reboots09:53
tmlindso assuming the soc bandgap continuous mode helps with the long polling issue, the poll value could easily be 10 secs instead of 1 sec09:54
tmlindand then if somebody feels like tinkering, configuring the tshut interrupt is doable, but the polling already check the values09:55
tmlindWizzup: if you can test your known working pm setup with the TI_BANDGAP_FEATURE_CONT_MODE_ONLY patch and increase cpu_thermal dts polling-delay-passive and polling-delay to 10000 ms, and see if n900 still keeps hitting off during idle normally09:56
freemangordontmlind: sorry, I don;t get it why we need contiguous mode09:57
tmlindWizzup: or if you have a patch that makes v5.15 enter off mode during idle on n900 normally let me know09:57
freemangordonfremantle kernel uses single mode happily09:57
tmlindfreemangordon: i recall getting a bandgap value takes tens or hundreds of ms on omap34xx, just wondering if the continuous mode happens to fix that issue, needs to be traced for some timestamps09:58
freemangordoniiuc it takes 36 sycles09:59
freemangordon*cycles09:59
freemangordonon 32767 Hz09:59
tmlindoh ok, maybe that's only on 36xx then09:59
freemangordonthe question is if contiguous mode increases idle current09:59
tmlindwell it's only enabled when sampling, not continuously10:00
tmlindthe continuous mode may not be needed at all on omap3, just wondering as Wizzup said it blocks idle10:00
* tmlind adds some trace_printk to check10:01
tmlindcurrent values:10:07
tmlind50.098541: ti_bandgap_restore_ctxt: restore bandgap10:07
tmlind50.098541: ti_bandgap_force_single_read: wait eocz up10:07
tmlind50.099121: ti_bandgap_force_single_read: done eocz up10:07
tmlind50.099121: ti_bandgap_force_single_read: wait eocz down10:07
tmlind50.100342: ti_bandgap_force_single_read: done eocz down10:07
tmlindwith TI_BANDGAP_FEATURE_CONT_MODE_ONLY flag added:10:07
tmlind4040.103027: ti_bandgap_restore_ctxt: restore bandgap10:07
tmlind4040.103058: ti_bandgap_force_single_read: wait eocz up10:07
tmlind4040.103607: ti_bandgap_force_single_read: done eocz up10:07
tmlind4040.103607: ti_bandgap_force_single_read: wait eocz down10:07
tmlind4040.104828: ti_bandgap_force_single_read: done eocz down10:08
freemangordontmlind: single mode works in fremantle kernel, so I think you are right and no need for contiguous mode10:08
tmlindyeah so it seems, maybe it was only an issue on 36xx or maybe 4430..10:09
tmlindanyways, increasing the dts polling-delay values should be done10:10
freemangordonwhat was the current one?10:11
tmlindWizzup: or is the system not entering off during idle if CONFIG_OMAP3_THERMAL=y, or am i confused about that too?10:11
tmlindfreemangordon: currently set to 250 / 1000 ms, probably setting both to 10000 should be ok10:11
freemangordonugh, 250 ms seems a bit fast to me :)10:12
tmlindyeah i wonder if that's some oversampling10:12
tmlindanyways, we restore the context on every exit from a deeper idle state, i wonder if that is needed at all10:14
tmlindat least on 4430 the bandgap register does not seem to lose context10:15
tmlindon omap3 it's in control module that should have automatic restore enabled i think?10:15
freemangordonno idea :)10:15
freemangordonI would trust you on that one10:15
tmlindwell let's see if i get sane values after disabling context restore and waiting for off idle10:16
tmlindwill check that later on10:20
tmlindhard to say if context is lost as i'm having hard time getting n900 to enter off during idle..11:06
tmlindyup the context restore is needed, otherwise omap3 context lost counters never increase for off during idle11:21
tmlindWizzup: so sounds like increasing the dts timeouts is the only thing needed for thermal sensor, no idea what might be causing the crashes you're seeing though11:23
tmlindunless reading the thermal register values somehow produce invalid values that cause some software bug with table index out of range or similar11:24
tmlindsee earlier commit 30d24faba053 ("thermal: ti-soc-thermal: Fix bogus thermal shutdowns for omap4430")11:25
tmlindfreemangordon: care to check that we really have the right temp table for 34xx compared to fremantle kernel? it seems like it might be the same currently as for 36xx11:27
tmlindoh never mind, the 34xx table is different from the 36xx table, split window comaprison of two copies of 34xx table accident :)11:29
freemangordontmlind: sorry, cannot do now, RL job :)11:40
Wizzupfreemangordon: regarding what you want me to dump (0x48002152) - do you want me to do that with thermal/bandgap enabled or not, and with or without tony's patch13:03
Wizzuptmlind: ok, can do that @ 10000ms with known-working13:05
Wizzup(still reading backlog)13:06
Wizzuptmlind: ok, I'll increase the timeout and re-enable OMAP3_THERMAL and test if it enters idle13:07
Wizzupbut yeah, the oopses would still be a problem if I read the backlog correctly13:08
tmlindWizzup: yeah so for me v5.15 only rarely hits off even with the compact timeout part reverted13:08
tmlindyup13:08
Wizzuptmlind: and if you revert OMAP3_THERMAL ?13:08
Wizzupor rather, disable it13:08
Wizzup(in config)13:09
tmlindwell that patch did not cleanly revert against v5.1513:09
tmlindeven with .config change, the timeout is still there, right?13:09
tmlindor are you seeing v5.15 hitting off easily when idle?13:09
WizzupYes, my current 5.15 hits OFF easily when in init=/bin/bash and OMAP3_THERMAL=n13:09
Wizzupof course serial has to be detached13:10
tmlindhmm, so with only .config option for compaction disabled?13:10
tmlindi'm seeing 36xx enter off all the time with same kernel.. of course it has much faster cpuidle times configured13:11
Wizzuphttps://github.com/maemo-leste/droid4-linux/commit/894f9b2f68be41971ef1c2d8adacb3cbc0bfcb0513:11
Wizzuphttps://github.com/maemo-leste/droid4-linux/commit/d3b8625fd76fc839fc95e90b9117fafaf2d377bb13:11
Wizzuphttps://github.com/maemo-leste/droid4-linux/commit/7942557de8e09b9851b19a8c392227b16fa1b74f13:11
WizzupI believe these three should be enough13:11
Wizzup(you can append .patch to the url to get the patch directly)13:11
Wizzupwell technically enabling off mode automatically is not required, but it was a nuisance when testing for me13:12
Wizzup(reverting enabling off mode automatically*)13:12
tmlindok.. so are you seeing the oopses even with CONFIG_OMAP3_THERMAL disabled13:12
Wizzupyes, I believe that is the case13:12
tmlindhmm but the bandgap should not do anything if CONFIG_OMAP3_THERMAL is disabled? or is there some generic option still doing something?13:13
Wizzupthat's a good question, that I don't quite know13:15
WizzupI only see bandgap as thermal sensor in the omap3-cpu-thermal dtsi13:21
Wizzuptmlind: if you want I can share the commands I run to get the device to enter off mode, are you on some 5.15 based tree?13:28
tmlindWizzup: i can get it to enter off, but only few times a minute.. sounds like i should try with CONFIG_OMAP3_THERMAL disabled13:58
tmlindyeah v5.15 based tree13:58
Wizzupit takes maybe 15-20 seconds for it to idle for me13:59
Wizzupyeah, give that a try, I think that will make all the difference13:59
tmlindok14:00
tmlinddisabling CONFIG_OMAP3_THERMAL does not seem to make any difference for me, rarely hits off14:05
Wizzupthis is with just init=/bin/sh or similar?14:06
tmlindyeah just a minimal init script14:06
Wizzuphm... I think my tree is based on 5.15.2, maybe some other patch introduced another regression14:07
tmlindi'm on v5.15.2 also14:08
Wizzupno modules loaded?14:08
tmlindonly rtc_twl, twl4030_wdt and watchdog14:08
tmlindi recall the same setup idling just fine years ago14:09
Wizzupok, I don't have any loaded, but watchdog built in14:09
tmlindok14:09
tmlindso how many times approximately are you seeing n900 enter off in a minute?14:10
tmlindtens?14:10
Wizzupsorry, I will have to measure it. I think it would stay in OFF sometimes for 20+ seconds14:11
WizzupI will measure it momentarily, brb14:11
tmlindok, i doubt my system sleeps that long compared to my 36xx test board..14:11
tmlindif it does, that would explain the low off mode counts14:12
Wizzuptmlind: I mean I am just basing that (it stays there for 20+ seconds)_off of looking at my lab psu14:25
WizzupI just kind assuming that was how it was suppose to be - stay in OFF as long as possible14:26
tmlindright that would be good news indeed :)14:40
Wizzuptmlind: do you want me to measure it still?14:54
tmlindWizzup: sure when you can, i can't measure on my n90014:54
Wizzupok, what do you want measured exactly?14:55
Wizzupjust the OFF and RET counts, or also power usage?14:55
* Wizzup doing both14:59
Wizzuptmlind: https://wizzup.org/n900-power.png from boot to idle15:05
Wizzupthe spike at the end is me typing this:15:06
Wizzup# grep ^core_pwrdm /sys/kernel/debug/pm_debug/count | cut -d',' -f2,15:06
WizzupOFF:13,RET:615:06
Wizzupthis is milli amps at 3.8V btw15:07
Wizzupnot mW15:07
tmlindnice :)15:12
tmlindnot sure why i'm not seeing off more.. but good to hear you have it working15:14
Wizzuptmlind: it would be better if we both see it working I'd say15:14
Wizzupso what are you seeing now and what would you expect?15:15
tmlindi'm kind of expecting off to happen more often like my 36xx based system is doing, could be n900 manages to sleep a really long time here too.. i should see that from cpuidle stats15:19
Wizzupok, I could check my setup if it is helpful btw15:21
Wizzupnot sure what you check in cpuidle15:21
tmlindnot sure if this is a count or time.. but cat /sys/devices/system/cpu/cpu0/cpuidle/state[0123456]/usage15:24
tmlindah do cat /sys/devices/system/cpu/cpu0/cpuidle/state[0123456]/time15:25
tmlind# cat /sys/devices/system/cpu/cpu0/cpuidle/state[0123456]/time                                                             │per_clkdm->per_pwrdm (14)15:25
tmlind5983795                                                                                                                         │cam_clkdm->cam_pwrdm (0)15:25
tmlind551970976                                                                                                                       │dss_clkdm->dss_pwrdm (1)15:25
tmlind7857910                                                                                                                         │192:~#15:25
tmlind0                                                                                                                               │192:~#15:25
tmlind4222905243                                                                                                                      │192:~#15:25
tmlind0                                                                                                                               │192:~#15:25
tmlindoops sorry copy from tmux..15:25
Wizzuphttps://dpaste.com/2LZBPSPLJ.txt15:26
Wizzupthat's for the last ~30 minutes15:27
tmlindfor me state4 is hit way more than state615:27
Wizzupoh, I think I know what might be up15:28
tmlindok15:28
Wizzuptry to unload the panel module after you set brightness15:28
Wizzupor apply sre's patch from 'Re: Nokia N900 increased power draw with panel-sony-acx565akm loaded v5.9 and v5.10'15:28
tmlindah so load panel, then unload?15:29
Wizzupyes, load panel, set brightness, unload15:29
tmlindweird15:29
WizzupI mailed linux-omap about this too15:29
Wizzupand bisected the regression as well15:29
Wizzupcurrent 5.15.2 panel driver causes the module to never hit 42mW for me (0.11A in that graph, subtract 0.04A for the serial module)15:30
WizzupI suppose that could be what you're seeing, not sure15:30
Wizzupbut it's the one change I did have locally15:30
tmlindhmm not sure how that could affect how often off mode is entered though15:31
tmlindi can see it make a difference to the power consumption :)15:32
Wizzupok15:32
Wizzuplet me mail you my setup15:32
tmlindwell i guess i should try with your git branch15:32
Wizzupit's possible that some of your loaded modules case more wake ups?15:35
tmlindi guess15:36
Wizzupwith (many) modules loaded and booted to maemo leste recovery mode I can also only hit RET, never OFF15:36
WizzupI could try to load the ones you have loaded15:36
tmlindheh sure15:36
Wizzupyeah this looks quite different (from quick observation)15:37
WizzupI'll let it run for 5 mins and share the graph15:37
tmlindok15:38
tmlindi'm also starting the watchdog with a script15:39
tmlindoh sorry, it's commented out so not starting watchdog15:39
Wizzuphttps://wizzup.org/n900-power-modules.png15:40
tmlindso not the modules15:41
WizzupI am not so sure, it seems to use more power for sure15:41
WizzupI'd have to reboot the device and insert the modules right away, and idle for 5 minutes do have an accurate comparison15:42
tmlindoh ok15:42
WizzupIt's now basically stuck in 0.016A way more often than 0.011A15:42
WizzupI'll let it run for a while longer...15:43
Wizzupdo you use the rtc for something?15:43
tmlindrtcwake -m mem -s 515:58
Wizzupinteresting, that definitely made some change, let me observe it a bit16:00
bencohrtcwake should just fire the alarm though16:01
bencohwell, and enter suspend16:01
Wizzupit never hits 0.011A anymore, it's 0.012A16:03
Wizzupotherwise seems mostly stable16:03
bencohI dunno about your PSU, but usually they aren't that great at measuring output current anyway16:04
bencoh11mA vs 12mA might just be an accuracy issue16:05
Wizzupwell, it was always 11mA befoer16:05
Wizzupbut yeah I suppose16:05
bencohmaybe it was 11.9 :)16:05
uvosthe least siginifcant digit is allways gona be +-1 on any instrument16:05
uvosjust because of quantization alone16:05
Wizzupbencoh: yeah, but it's still -measurable- is what I mean16:05
bencohin your case it seemed pretty stable indeed ... dunno :)16:06
bencohanyway, I thought you guys were testing OFF mode? how is rtcwake related?16:07
Wizzupwe are trying to figure out what is causing tmlind his device to enter off mode less and also different cpuidle states16:07
tmlindWizzup: so your kernel branch behaves the same way, must be something in the userspace causing timers17:03
Wizzuphm, I boot with init=/bin/bash17:06
Wizzup[    0.000000] Kernel command line: root=/dev/mmcblk0p2 rootwait console=ttyS2,115200 verbose earlyprintk debug init=/bin/bash17:16
rafael2khi everybody - just passing buy - happy the pinephone keybaord will start selling "first weeks of january"20:05
rafael2k; )20:05
rafael2kbtw, since latest kernel update, about 6 months ago, pinephone is with broken telephony support in kernel...20:06
rafael2k*passing by20:08
rafael2kI finally bought a SIM card with data plan for my pinephone, and now I can confirm latest kernel update long time ago broke telephony, as I suspected.20:08
rafael2kI'll just copy the kernel and modules from mobian and be happy20:14
rafael2kow yeah, 4G working20:41
rafael2kI made a tarball with the kernel and modules.. just uncompressing in the root directory will work. I'm uploading to the lazy ones which just want maemo working and don't have time (yet) to update the broken kernel shipped:20:44
rafael2khttp://173.255.215.196/pinephone/kernel.tar.gz20:47
rafael2kthe config is there, in case of a saint want to build a proper package20:47
rafael2know back to reality - which is url of the dialer someone was developing?20:48
uvoshttps://github.com/maemo-leste/sphone20:53
uvoshttps://github.com/maemo-leste/gtk/commit/662fc8c689f13e387494fdfe4046c9d2143ba0bc20:53
uvosfreemangordon: ^^^ that dosent really fix the issue tho20:53
rafael2ktks!!20:54
rafael2khttp://173.255.215.196/pinephone/maemo.png <- ma 4G is back!20:54
rafael2k; )20:54
uvosfreemangordon: i mean the ranges work then, but the real issue that the coodinates are different between a widget inside of a hildon-pannable-area and one outside is not solved20:54
uvosthis seams to just sweep the real issue under the rug for this one widget20:54
uvosappearanly the favorite solution to any problem for nokia engineers to any problem20:55
uvos*appearanly the favorite solution to any problem for nokia engineers20:55
rafael2kthe MTS network is not configured for VoLTE, it uses CSFB and switched to GSM in a voice call. cool21:06
rafael2ksphone is not working yet, but I'm happy I got it up and now I can start debugging things21:07
uvosare you using ofono to start calls?21:07
uvosobv. the prerequisit for sphone working is ofono working21:07
uvosif ofono works but sphone dosent work plase "killall sphone; sphone -v -v -c dialer-open"21:09
uvosand show the log21:09
sicelorafael2k: nice to see the icon on a real device :-)21:09
rafael2kofono scripts, yes21:11
rafael2kin /usr/share/ofono21:12
rafael2klemme try21:12
rafael2ktks uvos21:12
uvosalso some description on what dosent work would also be helpfull ofc21:13
rafael2kUnable to transmit dial number via ofono21:13
rafael2ksphone: comm-ofono: Error: GDBus.Error:org.ofono.Error.NotImplemented: Implementation not provided21:14
rafael2knothing works21:14
rafael2k; )21:14
rafael2kreceiving a call or originating a call21:14
uvosofono is running, the modem is enabled and onlined?21:15
rafael2kyeap21:15
uvoscould you give the the full log21:15
rafael2khttps://pastebin.com/UNrtF8Ug21:16
rafael2kbtw, now my head is in "play mode", but I wanna help updating the kernel of pinephone21:17
rafael2kI wanna have my maemo full set before the keyboard arrives home21:18
rafael2k; )21:18
calxDoes anybody know whether it's possible to use the vanilla Devuan installer if I've got a PINEPHONE with keyboard, mouse, & ethernet? I can do some development, but I'm a n00b at arm64, having dipped my toes in a long time ago but feeling frustrated failing to remember what I used to know.21:21
sicelocalx: to install Leste? or Devuan?21:23
calxTo work towards Leste from a minimal Devuan install.21:24
uvosnot sure why you would want to do that21:25
uvosand i dont think there is a devuan image for the pp21:25
calxBecause I'm accustomed to working from a fairly minimal Devuan environment.21:25
uvosyou would have to use the usual method to create a debian/devuan rootfs21:25
uvosand add some kernel of your choosing21:25
uvosjust using some generic installer isent how it works in the arm world because we dont have generic kernels or bootloaders21:26
rafael2kuvos: SMS is working!21:26
uvosbtw21:26
uvosyou have to install rtcom eventlogger modules21:27
uvosbut thats untrelated to the voice call problem21:27
uvosthats pretty wierd21:27
uvosi currently dont get why the interface would not exist on pp21:27
rafael2kbtw, I'm using the repository package21:27
uvosdose the pp show more than one modem in ofono21:27
uvosie list-modems?21:28
siceloif your ultimate goal is Leste, then just start where Leste for PP is today, and improve. Leste is already as minimal as it gets. No bloat at all. of course if your ultimate goal is devuan .. different story21:28
rafael2kjust the [ /quectelqmi_0 ]21:28
rafael2knterfaces = org.ofono.ConnectionManager org.ofono.NetworkRegistration org.ofono.SupplementaryServices org.ofono.NetworkMonitor org.ofono.SmartMessaging org.ofono.PushNotification org.ofono.MessageManager org.ofono.LongTermEvolution org.ofono.RadioSettings org.ofono.MessageWaiting org.ofono.AllowedAccessPoints org.ofono.SimManager org.ofono.VoiceCallManager21:29
rafael2kit seems all there21:29
uvoscould you try exercising org.ofono.VoiceCall.dial with dbus-send?21:31
uvosthats the call thats failing for sphone21:31
freemangordonuvos: sorry, I don;t get why you think the issue is not solved21:31
freemangordonhildon-pannable-area has nothing to do with the issue21:32
freemangordonthis was a but introduced in upstream gtk and my commit fixed21:32
freemangordonit21:32
freemangordonhildon-pannable-area *does not* receive motion events for GtkRange widgets21:33
rafael2kuvos: yes21:33
freemangordonthis https://github.com/maemo-leste/gtk/commit/662fc8c689f13e387494fdfe4046c9d2143ba0bc#diff-890a5aa29b52eca8626a9f83f8447b07bae358f756146ac8ca7f20a2746b333bR154 is the actual fix21:34
freemangordonand this is not part of 'hildonizing' GtkRange21:34
freemangordonmy bad that I didn;t do a separate commit21:34
uvosfreemangordon: if i place a slider wdiget into a pannable area i get different coordinates origin points in gdb for motion events than if i place it into a gtk_scrolled_window21:34
calxYeah, I imagine I can start with Leste, strip it, and build it back up to get comf with it. The wiki says to format the card as ext4, is that supposed to be raw ext4 or with a MBR or GUID?21:34
uvosfreemangordon: disregarding what the reason is for this21:34
freemangordonuvos: could be, but that's not HPA's fault21:35
uvosi dont see how that would not trip up any custom widgets21:35
uvosthat use the events21:35
rafael2ksame error21:35
sicelocalx: again - what's your end goal? devuan or leste? if leste, how will stripping it help? of course, ultimately it's your choice what you do, but i'm curious nonetheless21:35
freemangordonalso, what makes you think HPA miscalculates event coordinates?21:35
rafael2k./dial-number ....21:35
rafael2kdbus.exceptions.DBusException: org.ofono.Error.NotImplemented: Implementation not provided21:35
uvosfreemangordon: well if i place the widget into any other container it works fine21:36
uvosand the coordinates are allways seseable and the same21:36
freemangordonand what widget does not work fine if you place it in HPA?21:36
uvosif i place it into a HPA the coordinates are very different (alligned to the hpa instad of the child widget)21:36
freemangordonso what?21:36
calxI'm gonna do leste from the start, the wiki just isn't as explicit as I prefer my directions to be. I had an N900 back in the day... man, those were the days!21:36
uvoswell hpa behaves differently than any other container in this case, i only know of the slider that uses these events, but any application that implements a custom widget will trip over this if it uses these evetns21:37
freemangordonno, not really21:37
calxI also haven't used IRC in ages. Thanks for replying to me sicelo21:38
freemangordonslider was calling wrong function because of the way it is implementd21:38
uvosif it expects the hpa to work like any other gtk container21:38
uvosyes really21:38
freemangordonargh21:38
freemangordonlook at the commit that breaks it21:38
rafael2kuvos: I'll investigate this ofono issue... strange, and nothing related to sphone21:38
uvosi see and understand that commit21:38
freemangordonit has nothing to do with hildon21:38
uvosbut it dosent matter21:38
freemangordonsure it does21:38
uvosno21:38
freemangordonsee how button-press-event is handles21:38
freemangordon*handled21:38
freemangordonthis is original gtk code21:39
rafael2kgood ol' AT commands work like a charm21:39
rafael2k:/21:39
freemangordonthe same condition was missing in motion-event code21:39
freemangordonit seems GtkRange uses its own event_window and thus coordinates must be relative to it21:40
freemangordonnot to event->window21:40
calxsicelo or whomever, am I supposed to create a disk label of type GPT or MBR, or just format straight to ext4 without a disk label?21:42
freemangordonanyway, if you think there is a bug in HPA, please feel free to open an issue, providing a test case.21:42
uvosfreemangordon: right but with the hpa the event is relative to a different window so any widget that expects the event to get like in any other container21:42
uvosnow that may be technicly broken21:43
uvosok21:43
uvosbut the fact that it works suggests its gona be used that way in other places too21:43
uvosanyhow its not important21:43
uvosits not like people are implementing gtk2 applications anymore...21:43
freemangordonthat one too :)21:43
freemangordongtk3 supports something like HAP natively, right?21:44
uvosyeah21:44
freemangordon*HPA21:44
uvosany scrolling widget is finger scrollable21:44
uvoshpa is obsolete21:44
freemangordonso we'll drop that anyway when it comes to it21:44
calxThis wiki https://leste.maemo.org/PinePhone says "Format the SD card as ext4 using any of your preferred tools." How is a person supposed to pick which way to do it, lol!21:44
uvosyeah21:44
freemangordonuvos: and anyway that frustrating bug is now fixewd21:44
uvosright21:44
uvosthanks21:44
freemangordonnp21:45
freemangordonuvos: just one note re HPA and GtkRange: GtkRange receives motion events straight from gdk, hildon has nothing to do with which windows those events come from21:47
sicelocalx: maybe that's outdated. i don't have pp, but there's an image here, http://maedevu.maemo.org/images/pinephone/20210822/ - clearly that one is a matter of using dd, etcher, or whatever similar tool one prefers21:47
siceloperhaps you can do this, and update the wiki accordingly21:47
uvosfreemangordon: yeah i know21:47
freemangordonHPA motion-event callback is not called in case of GtkRange21:47
uvosfreemangordon: but the presence of the hpa changes behavior somehow21:47
freemangordonso I would say this is a bug in gtk21:48
uvosfreemangordon: very possible yeah21:48
uvosrafael2k: org.ofono.VoiceCallManager.dial21:48
uvosrafael2k: not org.ofono.VoiceCall.dial21:48
uvossry21:48
freemangordonare you sure GtkRange behaves correctly outside of HPA?21:48
freemangordonin terms of motion-event that is21:48
uvosfreemangordon: yes21:49
freemangordonok21:49
uvosi tried several containers21:49
uvosrafael2k: call is here: https://github.com/maemo-leste/sphone/blob/e5ad31827650099a3cd85ea9a2400cb76633dae9/src/modules/comm-ofono.c#L63221:49
uvosrafael2k: and the dbus names are here: https://github.com/maemo-leste/sphone/blob/master/src/modules/ofono-dbus-names.h21:50
Wizzuprafael2k: we should bfix our kernel, what is missing?21:50
calxsicelo, ok, I got it now. gonna go try. will be back21:52
uvosfreemangordon: also please look at https://github.com/maemo-leste/hildon-status-menu/pull/3 and https://github.com/maemo-leste/libmatchbox2/pull/8 at some point21:53
freemangordonugh, I was under the impression https://github.com/maemo-leste/hildon-status-menu/pull/3 is already merged21:54
Wizzupcalx: btw you can also look at arm-sdk if you don't want the full userspace21:54
freemangordonuvos: please ping me again about those in 3-4 days21:55
uvosfreemangordon: ok21:55
freemangordonWizzup: hi! do you still have questions? or you made some progress with tmlind?21:55
rafael2kuvos: just a sec21:57
freemangordonuvos: in regards to the other PR, honestly, I have no idea what it is about, but I'll try to learn a bit :)21:57
uvosfreemangordon: btw https://github.com/maemo-leste/hildon-status-menu/pull/3 has the side effect that hildon-status-menu becomes GPL2+21:58
uvosinstead of LGPL2+21:58
uvosi assume thats not a problem21:58
rafael2kuvos: kernel is fine, I copied from mobian21:58
uvos(due to the code i took from xface)21:58
freemangordonme too, but anyways I am not the copyright holder :)21:58
rafael2ktelephony works21:58
rafael2k(may be not ofono)21:59
uvosfreemangordon: who owns copyright dosent matter since combining gpl and lgpl is explicitly allowed21:59
uvosits just a one way street21:59
freemangordonok then21:59
Wizzupfreemangordon: on thermal?22:07
rafael2kWizzup: we just need an up to date kernel to maemo22:08
rafael2kWizzup: mobian kernel I'm using right now is work fine (with maemo)22:09
rafael2kI'm just having a issue with ofono, which must be some detail...22:09
freemangordonWizzup: yes22:09
rafael2kgprs works, sms works... just calls not yet22:10
Wizzuprafael2k: can you file an issue?22:12
Wizzupfreemangordon: hmm, well, I think tony suggested to increase timeout which might help with OFF mode, but it doesn't help with oopses22:12
freemangordonright, but maybe oopses are not caused by thermal22:14
Wizzupwell disabling it makes them go away22:14
rafael2kWizzup: yes. lemme know where!22:14
rafael2k; )22:14
freemangordonWizzup: yeah22:14
Wizzuprafael2k: https://github.com/maemo-leste/bugtracker/issues/new22:14
freemangordonWizzup: well, maybe we shall disable thermal initially, to have 5.15 running22:15
freemangordonand then investigate22:15
freemangordonnot sure22:15
rafael2kok!22:15
Wizzupfreemangordon: yeah, I am doing that in our tree22:15
freemangordongreat22:15
WizzupI just need to do commit the dts disables22:15
freemangordonbut, what about other devices?22:15
freemangordonah22:15
freemangordondts22:15
freemangordonok22:15
Wizzupfreemangordon: we have no other devices that want OMAP3_THERMAL22:16
freemangordonI'll play a bit with it (thermal/TSHUT gpio) once we have a kernal22:16
freemangordon*kernel22:16
freemangordonand once no-CMA scanout buffers are supported22:17
Wizzupyes, that would be nice22:17
Wizzuptmlind: do you want me to test increasing the timeout to 10000?22:17
freemangordonbut now I am going to finish my gimlet and have some rest :)22:18
freemangordonnight!22:18
Wizzupenjoy :)22:18
lelrafael2k opened an issue: https://github.com/maemo-leste/bugtracker/issues/597 (Maemo current kernel for Pinephone has no telephony support)22:20
rafael2khttps://github.com/maemo-leste/bugtracker/issues/59722:20
rafael2kthe issue is with ofono in maemo...22:21
rafael2kvoicecalls for the EG25 support seems not there in the shipped version22:21
Wizzupso do we need patched ofono or newer ofono?22:23
sicelomobian uses modemmanager instead of ofono. anyway, maybe compare what plasma mobile's ofono had ... (they have also switched to MM recently)22:23
Wizzupit's possible most systems do not shit with mainline ofono22:23
sicelotelephony was working fine for plamo with ofono22:24
uvosimplementing a mm backend for sphone is really trivial btw22:25
uvosi just lack a device to test it22:25
uvos(ofc we have other stuff that uses ofono)22:25
rafael2kI'll try another distro with ofono to compare22:26
Wizzupmaybe just look at the version?22:27
rafael2keasier22:27
rafael2k; )22:27
siceloyeah, you don't need a whole distro :-p22:27
siceloplus, they're dwindling22:27
rafael2klemme see what is inside the mobian I borroed the kernel22:28
sicelothat one won't help you. they were using MM since day 122:28
rafael2kright22:29
sicelolook at something that used Plasma Mobile, because that was ofono until very recently22:29
rafael2kok22:29
uvosi dont think anyone uses ofono anymore execpt sfos and us22:29
sicelojust like x11 ... almost no one else uses it (on mobile) anymore. only sxmo did, but they're going wayland too22:32
rafael2kanyone, LTE connection works fine22:32
rafael2k*anyway22:32
Wizzupuvos: sfos is bigger than all others combined I think22:32
Wizzup(just noting)22:33
rafael2kneed to fix X11 too.. I'm still with that nasty bug on rendering, but I just use it without accell for some time already... I forget about it22:33
uvosWizzup: sure but they are soemthing different than the others22:33
uvosthey are not really part of mainline linux efforts22:33
Wizzuprafael2k: there are some things to improve it a bit but there are still rendering problems22:33
uvosthey are more like android really22:33
rafael2k<- downloading plasma mobile...22:33
uvossicelo: sure bit with x11 we have a large amount of legacy code we would have to replace22:34
uvossicelo: with ofono its very little22:34
uvossicelo: just some icd2 stuff the status icon and sphone really22:34
uvossicelo: as far as stuff thats currently implemented22:34
uvossicelo: < 3k lines probubly22:34
Wizzuptelepathy-ring22:37
uvosyou know what i think about telepathy :P22:37
uvosbut yeah22:37
uvostelepathy-ring22:37
Wizzupyes you want to roll your own :p22:37
rafael2khummm, can not find ofono in plasma image22:37
rafael2k:/22:37
siceloWizzup: actually that's an interesting one - i wonder what plamo is doing with telepathy-* now that they've switched. never looked22:38
sicelorafael2k: afaik there's not really a plasma image ... they're not a distro. you need to use an image of some distro that provided plamo, e.g. pmos (if they still have older images), or maybe manjaro did? anyway, i guess you need to look at code more than running a specific distro. hopefully the code differences should be quickly apparent22:40
uvoshttps://pkgs.postmarketos.org/package/master/postmarketos/armv7/ofono22:40
uvospmos has ofono22:40
rafael2kI'll try a new ofono version22:40
uvosi dont think any ui uses it22:40
uvosbut it still has the package22:40
rafael2kwill compile a package from sid debian dir22:41
uvosyou could also try and install the droid4 ofono22:41
uvosits newer i think22:42
sicelorafael2k: ofono upstream?22:42
uvosand really nothing about it is mapphone specific22:42
siceloupstream won't help you :-)22:42
rafael2ksicelo: sid package22:42
siceloi doubt that'll help you either ;-)22:42
rafael2kwith some tweaks for devuan / maemo22:42
uvosrafael2k: try installing the ofono pacakge from the droid4 leste repo first22:42
siceloanyway, try it22:42
rafael2kuvos: can be, sure22:43
uvosits just a diffrerent ofono version22:43
rafael2kwhere can I grab it?22:43
uvosthat also has moomdm driver22:43
uvosyou can just browse the repo22:43
uvosand grab it22:43
sicelosomeone else that uses ofono with pp is nemomobile. may also be helpful to see which ofono they use. i can't recall what features they have working thoug22:43
uvosie https://maedevu.maemo.org/leste22:44
rafael2ktks22:44
uvoshttps://maedevu.maemo.org/leste/pool/droid4/o/ofono/22:45
uvoslucky you we build droid4 for arm6422:45
uvos(this makes no sense :P)22:45
rafael2kehehehe22:46
rafael2kdroid4 uses armhf right?22:46
uvosyes22:46
rafael2ksame error22:48
uvosok22:48
rafael2kdbus.exceptions.DBusException: org.ofono.Error.NotImplemented: Implementation not provided22:49
rafael2kall the rest works, IP, sms, ussd, and so on22:49
uvos1.32.5 is quite new22:49
uvosso i doubt a never version will help22:49
uvosso you need to go hunting for patches22:50
uvosbtw the news post for plamo where the announce the move to mm22:50
uvosexplictly calls out bad support for the pp as a reason to switch22:50
rafael2kI saw the post22:50
uvosso maybe it never worked (well)22:51
rafael2kbut it is just a f@#$#@ink wiring up22:51
rafael2kI can see in the log it is almost there22:51
rafael2kI get the signal strengh, channel, all the info22:51
rafael2kjust not the call control22:51
siceloCalls were working on plasma  + ofono,  else  plamo wouldn't have been as popular as  it got22:56
rafael2kI'm looking the code23:00
rafael2kmay be using the atmodem driver...23:00
Wizzupmight need udev rules23:00
Wizzupthen23:00
rafael2kright now it defaults to the qmimodem23:01
rafael2k(driver)23:01
Wizzupthat sounds good? does ofono -ddd or w/e also show that?23:02
rafael2khttps://github.com/sailfishos/ofono/23:06
rafael2kthis is interesting ^23:07
rafael2kI dunno23:07
rafael2kI read a lot about this "rilmodem"23:07
siceloIsn't ril* something to do with android?23:10
calxWizzup, thanks for mentioning arm-sdk. I'll try to remember to look into it the next time I've got a few free cycles, or however the cool kids say it23:11
siceloAnyway, gn!23:11
uvossicelo: yes ril is the andorid hal for modems23:12
uvosradio interface layer or so23:12
calxsicelo, I've got it up! thanks for your help! Aptitude's up and working and wicd-curses shows connections but doesn't connect, but hey, one out of two ain't bad! Now I just gotta see what mess I can uninstall without breaking everything; probably not much.23:13
uvoswe have our won network manager btw23:14
uvosicd223:14
uvos*own23:14
uvosusing wicd in parrallel with icd2 icd2 is not going to be very pretty23:15
calxI much prefer my network manager to not use X1123:16
uvosicd2 dosent use x1123:16
uvosthe ui dose sure23:16
uvosbut the ui is seperate23:16
uvosofc23:16
calxOh, nah? I'll have to read up on it. Thanks for mentioning! :-)23:16
calxgotta go, thanks everybody!23:17
rafael2kright, android shit23:18
rafael2kwe need to use the qmi interface23:18
rafael2kthere is also a kernel module... it might be there the problem too...23:37
Wizzupdid you inspect ofono in debug mode23:52

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