libera/#maemo-leste/ Saturday, 2022-05-07

Wizzupsicelo: so the current -devel kernel has the regmap hacks14:39
Wizzuplet's see if we can get audio to work for us using those on d4?14:39
Wizzupok n900 serial up and running16:03
Wizzuplet's try this uboot patch :)16:04
siceloOh sweet ;-)16:27
siceloAnd the OFF mode test from tmlind16:27
Wizzupsicelo: which one is that?16:28
Wizzupsicelo: and yes, let's please get others serial modules. we can spend some money on it too.16:28
sicelolet me find it. it's about echoing a value (0?) to something related to compaction16:29
siceloecho 0 > /proc/sys/vm/compaction_proactiveness16:29
sicelofrom his email Re: Nokia N900 not hitting OFF mode since 5.9 is caused by proactive memory compaction, dated Tue, 12 Apr 2022 12:53:45 +030016:29
Wizzuphmm, what test do you need here?16:34
WizzupI missed the email but I am pretty sure I already confirmed this to be a problem16:35
Wizzupor did they finally fix compaction?16:35
siceloyou should have got it (mail), as it actually address you specifically. i can forward it if you like16:36
siceloit mentions a commit, 65d759c8f9f5 ("mm: compaction: support triggering of16:36
siceloproactive compaction by user")16:36
sicelothat should hopefully resolve the issue for us16:37
sicelojust forwarded it16:37
Wizzupsicelo: ok I see16:38
Wizzupsicelo: ok, but where is that commit merged?16:46
siceloi can see it on my hdd, but my git-fu is bad for now. i can't tell what tree it's in16:47
Wizzupgot a date for me?16:47
Wizzupit might be in our tree already, I can check a bit later, too many things going on atm :)16:47
WizzupI want to do u-boot first16:48
sicelohowever, the commit is from Sept 2, so it should probably be in 5.17 at least16:48
sicelocommit 65d759c8f9f57b96c199f3fe5cfb93ac7da095e916:48
siceloAuthor: Charan Teja Reddy <charante@codeaurora.org>16:48
siceloDate:   Thu Sep 2 14:59:59 2021 -07016:48
Wizzupok latest u-boot master boots17:03
Wizzupand serial works17:03
Wizzuplet's try pali's patch17:03
WizzupPali: yes, that works17:10
WizzupPali: wrt musb -> musb-new, I should test usbtty I guess?17:17
WizzupIt looks like on pandaboard they just disabled usbtty17:20
PaliHello! Thank you for testing DM serial patch.17:23
PaliAd musb-new, this needs to be somehow extended to allow compilation of just peripheral/device code, meaning to completely disable host mode code.17:23
PaliAnd I'm not sure if musb-new is working at all. Old musb code which now in use, is working correctly, more than yeat ago I sent tons of patches for (old) musb code.17:25
PaliNow U-Boot has a new https://source.denx.de/u-boot/u-boot/-/blob/master/drivers/usb/gadget/f_acm.c gadget driver which provides same functionality as usbtty17:26
Wizzupok17:27
WizzupI see some people moved other devices over, like in usb: musb-new: Add glue driver for ST-Ericsson Ux50017:27
Wizzupso I think it should be a matter of porting drivers/usb/musb/omap3.c to drivers/usb/musb-new/omap3 or so17:27
Wizzupwell, if I'm lucky at least :)17:28
PaliSo maybe this f_acm could be a possible replacement for usbtty; usage of f_acm instead of porting usbtty to musb-new driver17:28
PaliBut whole new usb code is device tree only for now, so first it would be needed to add support for plat data17:29
Wizzuphm17:32
WizzupI don't really know where to start for that17:44
PaliMaybe ask Tom, how he imagine what needs to be done?17:52
PaliI really do not know as since last year, more parts in u-boot was changed17:52
Wizzuphe said it would be mostly 'mechanical'17:53
WizzupI'm trying to hunt for similar mechanical operations17:57
buZzsomething weird is happening for me on trying to connect to data20:36
buZzhttps://www.toptal.com/developers/hastebin/raw/uxafegehub20:39
buZzevery time i start icd2 i either do or dont see my cellular connection, sometimes every one and the other, sometimes i gotta restart icd2 3 or 4 times before i see the cellular connection again20:39
buZzbut everytime, it wont connect20:40
freemangordonofono on d4 has issues, afaik20:40
buZzright, but it was working just days ago :P20:40
buZzMay  7 20:36:43 localhost icd2 0.98[6746]: connecting iap 0x4d0068 in state ICD_IAP_STATE_SCRIPT_PRE_UP: interface is '(null)'20:41
buZzMay  7 20:36:45 localhost icd2 0.98[6746]: Removing active IAP 0x498050/(nil)/(nil)/(nil)20:41
buZzthis '(null)' and '(nil)' looks weird to me20:41
freemangordonI see no logs from ofono module20:42
buZz/var/log/maemo/ofono* ?20:42
freemangordondo you start icd2 woth debug log level?20:42
freemangordon*with20:42
buZzoh, i can do that? :D20:42
freemangordonmhm20:42
buZzofono's output is supersparse too, does it have one too?20:43
freemangordonas root:20:43
freemangordonrun-standalone.sh /usr/sbin/icd2 -l020:43
buZzah, nice, ty20:43
freemangordonmake sure to /etc.init.d/icd2 stop first20:44
buZzeh wow, icd2 seems to behave differently with -l0 :O20:45
buZzstill unable to connect, but the connection entry doesnt disappear each time20:45
buZzhmmm, until i resave the entry in 'internet connections' with a empty APN field20:52
buZzi tried to connect a bunch of times here ; https://www.toptal.com/developers/hastebin/raw/oletejocot20:54
buZzzero succes :(20:54
buZzoh eh, wtf, i now have two gprs connection profiles20:57
Wizzuptwo icd2 running?20:57
buZznope20:58
buZzalso, editting one, and saving it, made it one profile20:58
buZzbut alas, still no connections :)20:59
buZzi'll go stand straight under a celltower in a bit, try if its reception issues21:06
buZzlol yeah, right under a mast it works, still 2g though21:27
Wizzupmaybe you have problems with your cellular settings again?21:27
buZzmaybe?21:31
buZzhow can i update those? a script in share/ofono?21:32
WizzupI don't have the knowledge ready, and definitely through ofono21:32
Wizzupnot through ofono*21:32
Wizzupit might be something like this (but not exactly this, be careful) https://leste.maemo.org/Motorola_Droid_Bionic#Unlocking_the_modem_for_usage_in_Europe21:33
Wizzupmaybe you can dump those values and we can compare21:33
Wizzup# ./tcmdrw 685021:34
Wizzup06850:0x01ac2:050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000021:34
Wizzup# ./tcmdrw 187721:34
Wizzup01877:0x00755:8703e8040000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000021:34
Wizzup(from my d4)21:34
Wizzupalso 01143:0x00477:2d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000021:35
buZzlets see21:49
buZz6850 is the same21:49
buZz1877 is the same21:49
buZzand 1143 is the same21:50
buZzoh21:51
buZz22:34 < tmlind> hmm so i had to do this for 3g gain: tcmdrw 1143=aaff0000, got that value from xt910 firmware i think, otherwise 3g signal was weak21:52
* buZz tries21:52
buZznothing changed, maybe reboot whole phone for that to catch?21:56
buZzbrb21:56
WizzupbuZz: well I don't have that value set on my phone clearly22:04
Wizzupand it's from the bionic page22:04
buZzhmm well, that aaff does seem to -see- the 2G but it never arrives in connections22:04
Wizzupthat's an entirely different thing22:08
lelMerlijnWajer closed a pull request: https://github.com/maemo-leste/droid4-linux/pull/4 (Fix headers package debian/control replaces:)22:20
buZzwhere is qmicli from?22:24
buZzlibqmi-utils, i guess? :D22:25
Wizzupprobably, what do you need it for?22:33
sicelobuZz: not suggesting you switch, but modemmanager works on the droid 4 modem just fine, besides USSD (even that doesn't work in ofono, nor is reliable in Android itself). that said, it'll deplete battery faster22:36
buZzWizzup: 22:12 < pave1> qmicli -d /dev/cdc-wdm0 --wds-follow-network --wds-start-network=apn=internet.t-mobile.cz22:38
Wizzupsicelo: I assume that is using the high power interface, which also works fine with ofono?22:39
Wizzupsicelo: i.e. the one that will not give you more than ~7 hours of battery life?22:39
WizzupbuZz: I can help you debug some of this more interactively a bit later, I usually find mdbus2 useful here23:05
buZztotally up for it23:07
buZzcan i put ofono in a more verbose mode?23:08
Wizzupyes, but debugging those exact problems is more complicated and maybe not what you're seeing here23:10
buZzhm ok23:10
WizzupI mean, do you see the 2g status area icon?23:10
Wizzupand a signal bar?23:10
buZzyes and yes23:10
Wizzupthen ofono sees it just fine23:10
buZzthen i can do icd2 restart23:10
Wizzupeverything ui wise is built around ofono23:10
Wizzupso whatever you're seeing is likely an ofono<->icd problem23:11
Wizzuplikely icd223:11
buZzand icd2 will see it, evident by it trying to autoconnect gprs (which i enabled)23:11
Wizzupwhat you can try:23:11
buZzit just instantly disconnects again23:11
Wizzupoh I never tried autoconnect fwiw23:11
Wizzupcheck ifconfig23:11
Wizzupmdbus2 -s org.ofono /motmdm_0/context1 org.ofono.ConnectionContext.SetProperty Active true23:11
Wizzupcheck ifconfig again23:11
Wizzup23:11 < buZz> it just instantly disconnects again23:11
buZzinterface is up, connection is down23:11
Wizzupyes this is entirely to be expected unfortunately23:11
buZzoh interface is down now23:12
Wizzupthis is a very simple bug that you've hit many times now, which is that icd2 doesnt wait for ofono to bring the interface up23:12
Wizzupthis is why a direct connect doesn't work23:12
buZzoh, icd2 closed itself23:12
Wizzupif you run the above mdbus2 command, wait for a bit, and then use the ui to click or autoconnect, it will probably 'just work'23:12
buZzok, lets see23:12
Wizzupand yes we need to fix this bug asap.23:12
Wizzupbut there are many like that :(23:12
buZzi dont think i have mdbus223:13
WizzupI think I told you where to get it, sec23:13
Wizzuphttps://packages.debian.org/stretch/armhf/mdbus2/download23:13
Wizzupi.e.23:13
Wizzupwget http://ftp.de.debian.org/debian/pool/main/m/mdbus/mdbus2_2.3.3-2_armhf.deb23:13
buZzoh yeah23:13
Wizzupand then dpkg -i23:13
buZzhmmm, doesnt seem to bring back the gprs config in my icd223:26
Wizzupthat is harder for me to debug, I don't know why that would or would not show up23:27
buZzmaybe its a different context # ?23:27
Wizzupnot likely but mdbus2 can tell you23:28
Wizzupmdbus2 -s org.ofono23:28
buZzooo, that mdbus2 command on instant failure makes it take a long time23:28
Wizzuphm?23:29
Wizzupyes, there is an ofono bug where it just doesn't respond/return from an activation request23:30
buZzctrl-c and restart is 'operation already in progress'23:30
Wizzupyep, you're fucked23:30
buZz:P23:30
Wizzuponly way I get out of that is restart23:30
Wizzup(reboot)23:30
Wizzupyou could try other things but usually when I hit this I am on the road23:30
Wizzupmaybe if I take a break from rl work for 1-2 weeks we can get this all fixed :(23:31
buZzinit.d/ofono restart at least brings back 2g icon and signal bars23:31
buZzand the mdbus command is fast again23:32
buZzbut doesnt seem to bring it back thusfar23:33
buZzrestarting icd2 a bunch of times does bring back the option in menu, but keeps failing on first try23:36
WizzupbuZz: what do you mean 'fast'23:38
Wizzupoh, I see23:39
buZzeh, well, not >30 seconds23:39
Wizzupok, right23:39
Wizzupwell then it should be active23:39
WizzupI don't know why it's not in your ui, maybe just delete the connections and start over or something, or ask freemangordon23:39
buZzis it active when wwan3 is u?23:39
buZzup*23:39
buZzthe gprs connection definition isnt deletable in maemo23:40
buZz:(23:40
Wizzupyeah, you can delete it though23:40
buZzor creatable, i guess23:40
buZzhmhm, or just reinstall from a new weekly build? :P23:40
Wizzupnah23:40
buZzheh23:40
Wizzupgconftool -R /system/osso/connectivity/IAP23:41
Wizzupfind the GPRS one23:41
Wizzupremove it with gconftool --recursive-unset /system/osso/connectivity/IAP/IDHERE23:41
Wizzupand then restart icd223:41
Wizzupbut if you want to actually debug some of this stuff you need a bit more ofono/dbus fu23:41
Wizzupmdbus2 actually makes much of this quite easy with the introspection23:42
buZzthere isnt one in 23:41:08 < Wizzup> gconftool -R /system/osso/connectivity/IAP23:42
buZzi'll reboot :)23:44
Wizzupthat's weird, how did you determine that?23:44
buZzit only returns wlan stuff?23:44
buZzjust two lines23:44
buZz(rebooting now)23:45
buZzoh actually poweroff + full boot23:45
buZzeven when i -do- have the gprs connection in the connect dialog from statusbar, i do not get more than two lines from /system/osso/connectivity/IAP23:50
Wizzupwhat do you get?23:51
Wizzupsim imsi?23:51
buZzwlan_tx_power=8 , flightmode_wlan=false23:52
Wizzupand it has type = GPRS?23:53
WizzupI have several of those fwiw23:54
Wizzupfour actually, for different sims I had23:54
buZzno type = GPRS at all23:58
buZzin /system/osso/connectivity i get some gprs stuff23:59
Wizzupwhat do you mean, 'some gprs stuff'23:59

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