Wizzup | sicelo: so the current -devel kernel has the regmap hacks | 14:39 |
---|---|---|
Wizzup | let's see if we can get audio to work for us using those on d4? | 14:39 |
Wizzup | ok n900 serial up and running | 16:03 |
Wizzup | let's try this uboot patch :) | 16:04 |
sicelo | Oh sweet ;-) | 16:27 |
sicelo | And the OFF mode test from tmlind | 16:27 |
Wizzup | sicelo: which one is that? | 16:28 |
Wizzup | sicelo: and yes, let's please get others serial modules. we can spend some money on it too. | 16:28 |
sicelo | let me find it. it's about echoing a value (0?) to something related to compaction | 16:29 |
sicelo | echo 0 > /proc/sys/vm/compaction_proactiveness | 16:29 |
sicelo | from 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 +0300 | 16:29 |
Wizzup | hmm, what test do you need here? | 16:34 |
Wizzup | I missed the email but I am pretty sure I already confirmed this to be a problem | 16:35 |
Wizzup | or did they finally fix compaction? | 16:35 |
sicelo | you should have got it (mail), as it actually address you specifically. i can forward it if you like | 16:36 |
sicelo | it mentions a commit, 65d759c8f9f5 ("mm: compaction: support triggering of | 16:36 |
sicelo | proactive compaction by user") | 16:36 |
sicelo | that should hopefully resolve the issue for us | 16:37 |
sicelo | just forwarded it | 16:37 |
Wizzup | sicelo: ok I see | 16:38 |
Wizzup | sicelo: ok, but where is that commit merged? | 16:46 |
sicelo | i can see it on my hdd, but my git-fu is bad for now. i can't tell what tree it's in | 16:47 |
Wizzup | got a date for me? | 16:47 |
Wizzup | it might be in our tree already, I can check a bit later, too many things going on atm :) | 16:47 |
Wizzup | I want to do u-boot first | 16:48 |
sicelo | however, the commit is from Sept 2, so it should probably be in 5.17 at least | 16:48 |
sicelo | commit 65d759c8f9f57b96c199f3fe5cfb93ac7da095e9 | 16:48 |
sicelo | Author: Charan Teja Reddy <charante@codeaurora.org> | 16:48 |
sicelo | Date: Thu Sep 2 14:59:59 2021 -070 | 16:48 |
Wizzup | ok latest u-boot master boots | 17:03 |
Wizzup | and serial works | 17:03 |
Wizzup | let's try pali's patch | 17:03 |
Wizzup | Pali: yes, that works | 17:10 |
Wizzup | Pali: wrt musb -> musb-new, I should test usbtty I guess? | 17:17 |
Wizzup | It looks like on pandaboard they just disabled usbtty | 17:20 |
Pali | Hello! Thank you for testing DM serial patch. | 17:23 |
Pali | Ad 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 |
Pali | And 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 |
Pali | Now 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 usbtty | 17:26 |
Wizzup | ok | 17:27 |
Wizzup | I see some people moved other devices over, like in usb: musb-new: Add glue driver for ST-Ericsson Ux500 | 17:27 |
Wizzup | so I think it should be a matter of porting drivers/usb/musb/omap3.c to drivers/usb/musb-new/omap3 or so | 17:27 |
Wizzup | well, if I'm lucky at least :) | 17:28 |
Pali | So maybe this f_acm could be a possible replacement for usbtty; usage of f_acm instead of porting usbtty to musb-new driver | 17:28 |
Pali | But whole new usb code is device tree only for now, so first it would be needed to add support for plat data | 17:29 |
Wizzup | hm | 17:32 |
Wizzup | I don't really know where to start for that | 17:44 |
Pali | Maybe ask Tom, how he imagine what needs to be done? | 17:52 |
Pali | I really do not know as since last year, more parts in u-boot was changed | 17:52 |
Wizzup | he said it would be mostly 'mechanical' | 17:53 |
Wizzup | I'm trying to hunt for similar mechanical operations | 17:57 |
buZz | something weird is happening for me on trying to connect to data | 20:36 |
buZz | https://www.toptal.com/developers/hastebin/raw/uxafegehub | 20:39 |
buZz | every 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 again | 20:39 |
buZz | but everytime, it wont connect | 20:40 |
freemangordon | ofono on d4 has issues, afaik | 20:40 |
buZz | right, but it was working just days ago :P | 20:40 |
buZz | May 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 |
buZz | May 7 20:36:45 localhost icd2 0.98[6746]: Removing active IAP 0x498050/(nil)/(nil)/(nil) | 20:41 |
buZz | this '(null)' and '(nil)' looks weird to me | 20:41 |
freemangordon | I see no logs from ofono module | 20:42 |
buZz | /var/log/maemo/ofono* ? | 20:42 |
freemangordon | do you start icd2 woth debug log level? | 20:42 |
freemangordon | *with | 20:42 |
buZz | oh, i can do that? :D | 20:42 |
freemangordon | mhm | 20:42 |
buZz | ofono's output is supersparse too, does it have one too? | 20:43 |
freemangordon | as root: | 20:43 |
freemangordon | run-standalone.sh /usr/sbin/icd2 -l0 | 20:43 |
buZz | ah, nice, ty | 20:43 |
freemangordon | make sure to /etc.init.d/icd2 stop first | 20:44 |
buZz | eh wow, icd2 seems to behave differently with -l0 :O | 20:45 |
buZz | still unable to connect, but the connection entry doesnt disappear each time | 20:45 |
buZz | hmmm, until i resave the entry in 'internet connections' with a empty APN field | 20:52 |
buZz | i tried to connect a bunch of times here ; https://www.toptal.com/developers/hastebin/raw/oletejocot | 20:54 |
buZz | zero succes :( | 20:54 |
buZz | oh eh, wtf, i now have two gprs connection profiles | 20:57 |
Wizzup | two icd2 running? | 20:57 |
buZz | nope | 20:58 |
buZz | also, editting one, and saving it, made it one profile | 20:58 |
buZz | but alas, still no connections :) | 20:59 |
buZz | i'll go stand straight under a celltower in a bit, try if its reception issues | 21:06 |
buZz | lol yeah, right under a mast it works, still 2g though | 21:27 |
Wizzup | maybe you have problems with your cellular settings again? | 21:27 |
buZz | maybe? | 21:31 |
buZz | how can i update those? a script in share/ofono? | 21:32 |
Wizzup | I don't have the knowledge ready, and definitely through ofono | 21:32 |
Wizzup | not through ofono* | 21:32 |
Wizzup | it might be something like this (but not exactly this, be careful) https://leste.maemo.org/Motorola_Droid_Bionic#Unlocking_the_modem_for_usage_in_Europe | 21:33 |
Wizzup | maybe you can dump those values and we can compare | 21:33 |
Wizzup | # ./tcmdrw 6850 | 21:34 |
Wizzup | 06850:0x01ac2:0500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 | 21:34 |
Wizzup | # ./tcmdrw 1877 | 21:34 |
Wizzup | 01877:0x00755:8703e80400000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 | 21:34 |
Wizzup | (from my d4) | 21:34 |
Wizzup | also 01143:0x00477:2d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 | 21:35 |
buZz | lets see | 21:49 |
buZz | 6850 is the same | 21:49 |
buZz | 1877 is the same | 21:49 |
buZz | and 1143 is the same | 21:50 |
buZz | oh | 21:51 |
buZz | 22: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 weak | 21:52 |
* buZz tries | 21:52 | |
buZz | nothing changed, maybe reboot whole phone for that to catch? | 21:56 |
buZz | brb | 21:56 |
Wizzup | buZz: well I don't have that value set on my phone clearly | 22:04 |
Wizzup | and it's from the bionic page | 22:04 |
buZz | hmm well, that aaff does seem to -see- the 2G but it never arrives in connections | 22:04 |
Wizzup | that's an entirely different thing | 22:08 |
lel | MerlijnWajer closed a pull request: https://github.com/maemo-leste/droid4-linux/pull/4 (Fix headers package debian/control replaces:) | 22:20 |
buZz | where is qmicli from? | 22:24 |
buZz | libqmi-utils, i guess? :D | 22:25 |
Wizzup | probably, what do you need it for? | 22:33 |
sicelo | buZz: 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 faster | 22:36 |
buZz | Wizzup: 22:12 < pave1> qmicli -d /dev/cdc-wdm0 --wds-follow-network --wds-start-network=apn=internet.t-mobile.cz | 22:38 |
Wizzup | sicelo: I assume that is using the high power interface, which also works fine with ofono? | 22:39 |
Wizzup | sicelo: i.e. the one that will not give you more than ~7 hours of battery life? | 22:39 |
Wizzup | buZz: I can help you debug some of this more interactively a bit later, I usually find mdbus2 useful here | 23:05 |
buZz | totally up for it | 23:07 |
buZz | can i put ofono in a more verbose mode? | 23:08 |
Wizzup | yes, but debugging those exact problems is more complicated and maybe not what you're seeing here | 23:10 |
buZz | hm ok | 23:10 |
Wizzup | I mean, do you see the 2g status area icon? | 23:10 |
Wizzup | and a signal bar? | 23:10 |
buZz | yes and yes | 23:10 |
Wizzup | then ofono sees it just fine | 23:10 |
buZz | then i can do icd2 restart | 23:10 |
Wizzup | everything ui wise is built around ofono | 23:10 |
Wizzup | so whatever you're seeing is likely an ofono<->icd problem | 23:11 |
Wizzup | likely icd2 | 23:11 |
buZz | and icd2 will see it, evident by it trying to autoconnect gprs (which i enabled) | 23:11 |
Wizzup | what you can try: | 23:11 |
buZz | it just instantly disconnects again | 23:11 |
Wizzup | oh I never tried autoconnect fwiw | 23:11 |
Wizzup | check ifconfig | 23:11 |
Wizzup | mdbus2 -s org.ofono /motmdm_0/context1 org.ofono.ConnectionContext.SetProperty Active true | 23:11 |
Wizzup | check ifconfig again | 23:11 |
Wizzup | 23:11 < buZz> it just instantly disconnects again | 23:11 |
buZz | interface is up, connection is down | 23:11 |
Wizzup | yes this is entirely to be expected unfortunately | 23:11 |
buZz | oh interface is down now | 23:12 |
Wizzup | this is a very simple bug that you've hit many times now, which is that icd2 doesnt wait for ofono to bring the interface up | 23:12 |
Wizzup | this is why a direct connect doesn't work | 23:12 |
buZz | oh, icd2 closed itself | 23:12 |
Wizzup | if 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 |
buZz | ok, lets see | 23:12 |
Wizzup | and yes we need to fix this bug asap. | 23:12 |
Wizzup | but there are many like that :( | 23:12 |
buZz | i dont think i have mdbus2 | 23:13 |
Wizzup | I think I told you where to get it, sec | 23:13 |
Wizzup | https://packages.debian.org/stretch/armhf/mdbus2/download | 23:13 |
Wizzup | i.e. | 23:13 |
Wizzup | wget http://ftp.de.debian.org/debian/pool/main/m/mdbus/mdbus2_2.3.3-2_armhf.deb | 23:13 |
buZz | oh yeah | 23:13 |
Wizzup | and then dpkg -i | 23:13 |
buZz | hmmm, doesnt seem to bring back the gprs config in my icd2 | 23:26 |
Wizzup | that is harder for me to debug, I don't know why that would or would not show up | 23:27 |
buZz | maybe its a different context # ? | 23:27 |
Wizzup | not likely but mdbus2 can tell you | 23:28 |
Wizzup | mdbus2 -s org.ofono | 23:28 |
buZz | ooo, that mdbus2 command on instant failure makes it take a long time | 23:28 |
Wizzup | hm? | 23:29 |
Wizzup | yes, there is an ofono bug where it just doesn't respond/return from an activation request | 23:30 |
buZz | ctrl-c and restart is 'operation already in progress' | 23:30 |
Wizzup | yep, you're fucked | 23:30 |
buZz | :P | 23:30 |
Wizzup | only way I get out of that is restart | 23:30 |
Wizzup | (reboot) | 23:30 |
Wizzup | you could try other things but usually when I hit this I am on the road | 23:30 |
Wizzup | maybe if I take a break from rl work for 1-2 weeks we can get this all fixed :( | 23:31 |
buZz | init.d/ofono restart at least brings back 2g icon and signal bars | 23:31 |
buZz | and the mdbus command is fast again | 23:32 |
buZz | but doesnt seem to bring it back thusfar | 23:33 |
buZz | restarting icd2 a bunch of times does bring back the option in menu, but keeps failing on first try | 23:36 |
Wizzup | buZz: what do you mean 'fast' | 23:38 |
Wizzup | oh, I see | 23:39 |
buZz | eh, well, not >30 seconds | 23:39 |
Wizzup | ok, right | 23:39 |
Wizzup | well then it should be active | 23:39 |
Wizzup | I don't know why it's not in your ui, maybe just delete the connections and start over or something, or ask freemangordon | 23:39 |
buZz | is it active when wwan3 is u? | 23:39 |
buZz | up* | 23:39 |
buZz | the gprs connection definition isnt deletable in maemo | 23:40 |
buZz | :( | 23:40 |
Wizzup | yeah, you can delete it though | 23:40 |
buZz | or creatable, i guess | 23:40 |
buZz | hmhm, or just reinstall from a new weekly build? :P | 23:40 |
Wizzup | nah | 23:40 |
buZz | heh | 23:40 |
Wizzup | gconftool -R /system/osso/connectivity/IAP | 23:41 |
Wizzup | find the GPRS one | 23:41 |
Wizzup | remove it with gconftool --recursive-unset /system/osso/connectivity/IAP/IDHERE | 23:41 |
Wizzup | and then restart icd2 | 23:41 |
Wizzup | but if you want to actually debug some of this stuff you need a bit more ofono/dbus fu | 23:41 |
Wizzup | mdbus2 actually makes much of this quite easy with the introspection | 23:42 |
buZz | there isnt one in 23:41:08 < Wizzup> gconftool -R /system/osso/connectivity/IAP | 23:42 |
buZz | i'll reboot :) | 23:44 |
Wizzup | that's weird, how did you determine that? | 23:44 |
buZz | it only returns wlan stuff? | 23:44 |
buZz | just two lines | 23:44 |
buZz | (rebooting now) | 23:45 |
buZz | oh actually poweroff + full boot | 23:45 |
buZz | even 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/IAP | 23:50 |
Wizzup | what do you get? | 23:51 |
Wizzup | sim imsi? | 23:51 |
buZz | wlan_tx_power=8 , flightmode_wlan=false | 23:52 |
Wizzup | and it has type = GPRS? | 23:53 |
Wizzup | I have several of those fwiw | 23:54 |
Wizzup | four actually, for different sims I had | 23:54 |
buZz | no type = GPRS at all | 23:58 |
buZz | in /system/osso/connectivity i get some gprs stuff | 23:59 |
Wizzup | what 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/!