libera/#maemo-leste/ Friday, 2023-11-10

siceloso when the modem's gone, even reloading the drivers that seem to be related does not cause it to reappear09:47
siceloi *think* it completely disappears off USB. didn't find time to try and toggle the USB bus directly. should try that next time09:48
uvosyeah try resetting the bus10:56
uvosif that dosent work there are really only two options: 1. android dosent suffer from this problem, somehow 2. android can reset the modem via tty or via some gpio pin10:59
WizzupI did manage to get it back on usb btw11:20
sicelomine didn't. weird. and this time i'm almost sure it's not power related. the device was on charger11:22
sicelobut i think we also need to find out why the icon is stuck on showing the bogus bars. modem is absent in ofono, so i guess there's a ModemRemoved signal we're not handling properly11:23
uvossphone will also have this problem11:24
uvosit assumes the modem will stay for its lifetime11:24
uvosit allso wont realise when its back, except by accident, since its name will likely be the same11:24
siceloi guess if the icon shows modem's gone, no one will mind too much that sphone doesn't know it is11:27
uvossure, its still a bug11:28
siceloyeah. i'll have a look at the icon thing sometime (but want to finish with the N900 ofono thing first)11:28
Wizzupsicelo: how did you try to bring it back?11:32
Wizzupuvos: yeah having that fixed would be nice. I think with the tp module this problem is gone at least11:32
Wizzup(there might be other problems :p)11:32
sicelo i tried to unload a couple of drivers i think are related, such as qmi_wwan, cdc_*11:33
Wizzupso11:34
Wizzuplet me see if I can help11:35
Wizzupuvos: from /sys/bus/platform/drivers, I think we want to reset omap-usb2 yeah?11:36
Wizzupsee ls /sys/bus/platform/drivers | grep usb11:36
uvosprobubly, but im not not sure about the topology off hand11:37
WizzupI'm trying to see if this can just be done via bind/unbind11:38
Wizzupso /sys/bus/platform/drivers/phy-mapphone-mdm6600 can be bound/unbound but that is on a too high level11:40
Wizzupunbinding cpcap-usb-phy.0 makes the kernel unhappy11:40
Wizzupand unbinding 4a064800.ohci from ohci-platform makes the device very unhappy ;)11:42
Wizzupsicelo: in any case I think the idea is to 'powercycle' the usb layer that the modem is on11:42
Wizzupsicelo: ok..11:46
Wizzuptry this:11:46
Wizzupecho 4a064800.ohci > /sys/bus/platform/drivers/ohci-platform/unbind ; sleep 5 ; echo 4a064800.ohci > /sys/bus/platform/drivers/ohci-platform/bind11:46
siceloi'll do that next time, yes. for the current issue (which was from yesterday, ended up rebooting)12:12
siceloin the meantime, i'll make a DCEW widget that checks if ofono still sees modem12:50
Wizzupsicelo: the status code should not be too hard to fix for this12:54
WizzupI imagine I just didn't monitor for the modem disappearing and reappearing12:54
Wizzupprobably worth fixing anyway12:55
siceloyes, i looked casually in the past ... there are some mentions of ModemAdded and ModemRemoved, but I didn't go as far as checking how/if it's handled12:55
Wizzupthere is code for modem_removed_cb and modem_added_cb12:57
norayrin postmarketos podcast episode from 2022 the phosh or phoc developer  says that he was using neo freerunner and then n900 till the time he started to work for librem on phosh. not leste, but n900 with maemo.15:30
Wizzupmakes sense15:38
tmlinduvos: did you figure some solution to the pte_offset_map_lock() no longer being inlined to build pvr modules?17:21
tmlindactually __pte_offset_map_lock() no longer being inlined i mean17:22
tmlindhmm maybe follow_pte() can be used instead, will check17:41
freemangordonWizzup: uvos: we have to set some env vars on gles2 devices for glimagesink to work, see https://gstreamer.freedesktop.org/documentation/gl/gstgldisplay.html?gi-language=c#GstGLDisplay18:29
freemangordonGST_GL_PLATFORM=egl GST_GL_API=gles218:30
freemangordonI am not sure what is the proper way to do that - per device seems an overkill to me18:30
freemangordondo you know some standard way to detect if GLX/destop GL is supported?18:31
arno11Wizzup: sicelo: i made another PR for libcmtspeechdata: i found new values to improve/control latency. Now latency is really stable and similar for 2G and 3G.18:36
Wizzupgreat18:38
arno11sound was sometimes a bit distorted when the latency was too low18:38
arno11now latency stays @100-150ms18:39
Wizzupcooking atm, will merge in 30-45mins18:40
arno11cool thx18:40
arno11IMO calls are 98% working now :)18:44
uvostmlind: no all i had to do is fix the ps_vma->vm_flags acesses to use the new vm_flags_set  function18:44
uvosafter that it compiled and worked perfectly fine18:44
uvosthis was ontop of 6.6-rc418:44
uvosfreemangordon: the only way to know if dekstop gl is supported is to try and create a context unfortionatly18:45
uvosi gues we could write a tiny utility that dose that and sets the envvar18:46
uvostmlind: ok thats not true19:03
uvosi examined the maemo-6.6 tree and these are the changes realted to pvr:19:04
uvoshttps://github.com/IMbackK/droid4-linux/tree/6.6-rc419:04
uvosso i just exported that symbol19:04
Wizzuparno11: perfect, I need to set up another n900 because my dev n900 screen is unhappy19:14
Wizzupfreemangordon: we can do this in /etc/profile.d19:14
Wizzupfreemangordon: per device19:14
Wizzuplike /etc/profile.d/qt-maemo-sh which we have for each device19:15
Wizzupfreemangordon: so just make /etc/profile.d/gst-maemo.sh(.leste) and ensure we have the right value for the device(s)19:15
arno11Wizzup: ah ok19:24
Wizzuparno11: but can merge in the meantime19:54
arno11Wizzup: oh i forgot i made another PR for Pinephone UCM few weeks ago19:58
arno11earpiece default volume is too loud according to teyrok from TMO19:59
arno11the fix has been already tested by him19:59
arno11(the PR is in leste-config)20:03
Wizzupok, you made it now? :)20:18
arno11? lol nope sept 1820:19
freemangordonWizzup: how did you manage to build mawf-gst-renderer?20:20
Wizzuparno11: ok, let me try to find it all20:22
Wizzupfreemangordon: uh20:22
Wizzuplet me check20:22
Wizzupthe amd64 one is failing?20:22
freemangordonarm64 as well20:23
freemangordonon make check20:23
Wizzupfreemangordon: probably disabled tests20:23
freemangordonhow?20:23
freemangordonlike, I am using the same rules file20:23
Wizzupdebian/rules: hacky way to disable tests in CI20:23
Wizzupdo you have that commit?20:23
Wizzupdd9c1a0532ac0ffa900fa9177d8e10150a03f70e20:23
* freemangordon checks20:23
Wizzuparno11: do you perhaps have a list of MR/PRs for me to check?20:24
freemangordonWizzup: argh20:24
freemangordonmaemo/chimaera was not pushed to master :(20:25
arno11Wizzup: yep let me check20:25
freemangordonstill, why it is failing on 64bits20:26
freemangordonhere in VM there is no issue20:26
Wizzupfreemangordon: sorry20:26
freemangordonanyway, I have to fix the tests20:26
freemangordonbut I hate when it does not fail here and fails on CI :)20:27
arno11Wizzup: https://github.com/maemo-leste/libcmtspeechdata/pull/2/commits/3a78c894b630e1ef1cfbd3a2abaeb3ce9e0684a620:32
arno11https://github.com/maemo-leste/libcmtspeechdata/pull/2/commits/2806096990b2cb86c088aa368c033d066eac666420:32
arno11https://github.com/maemo-leste/libcmtspeechdata/pull/2/commits/ee953a1d7b8fc448925ab8beb93405d0d96c442020:32
Wizzupfreemangordon: might very well be the host kernel of the builder20:33
Wizzupor some qemu specific bug like before20:33
arno11and the Pinephone one: https://github.com/maemo-leste/leste-config/pull/37/commits/f6ff97675845c8b8d3f7bd72a3aeb556f4b021a220:34
Wizzuparno11: shall I do a new build for libmtspeechdata?20:35
arno11yes i think20:35
Wizzupok20:35
arno11thx man :)20:36
Wizzupthank you :)20:36
freemangordonhmm: https://phoenix.maemo.org/job/mafw-gst-renderer-binaries/architecture=arm64,label=arm64/11/consoleText20:48
freemangordon"No factory for glimagesink!"20:48
Wizzuparno11: libcmtspeechdata in repo has your fixes20:54
Wizzupbuilding leste-config now20:54
Wizzupalso for -devel20:54
freemangordonarno11: patch that allows us to use hrtimer for IRTX on n900 was just pushed to upstream 6.120:57
freemangordonit is also in 6.620:57
Wizzuparno11: the chrt commands will still need to be integrated somehow yeah?20:57
freemangordonso we shall either move to 6.6 or rebase our 6.120:57
WizzupI don't think we can move to 6.6 yet20:58
freemangordonthis https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/tree/queue-6.1/drivers-clocksource-timer-ti-dm-don-t-call-clk_get_r.patch?id=cc8743ec5bb4cd059b3df5f787c658a570a8a6e320:59
freemangordonWizzup: sure20:59
arno11Wizzup: yes for chrt stuff, and it needs to be set after boot and once the related apps are loaded20:59
freemangordonbut we shall rebase our 6.120:59
Wizzupok20:59
arno11freemangordon: super cool !20:59
arno11Wizzup: thx again21:00
tmlinduvos: ok i'll take a look when i get a chance21:00
freemangordonarno11: I will fix ir-rx51 until upstream decides on PWM atomic functions etc and pwm-ir-tx is fixed21:01
Wizzupfreemangordon: do you want me to add these env vars to leste-config?21:01
freemangordonWizzup: no, I want to avoid that21:02
WizzupI can set it for the n900 and mapphone devices21:02
Wizzupwhy?21:02
WizzupIt seems so much better than any kind of runtime detection?21:02
freemangordonwill try to implement runtime detection as uvos proposed21:02
Wizzupfirefox can't even get it right :)21:02
freemangordonactually I think I can make it better ;)21:02
Wizzupok, seems like a lot of work for no reason, but up to you :P21:03
freemangordongst provides gst_gl_display_new_with_type()21:05
freemangordonso I can try until it fails21:05
freemangordonumm... succeeds :)21:05
arno11freemangordon: ok21:06
Wizzupfreemangordon: how will that go with llvmpipe glx?21:12
Wizzupor the gl emulation that we have21:12
freemangordonwill try es2 first21:13

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