libera/#maemo-leste/ Thursday, 2024-02-15

freemangordontmlind: uvos: why is d4 modem using AT interface and not qmi?08:20
tmlindfreemangordon: i could never get the notifications to trigger on qmi, they seem to be forced to uart ts27.010 only08:38
tmlindsure if you figure out a way to make things work with qmi that would simplify things :)08:38
tmlindseems to be a modem firmware specific configuration08:39
freemangordonI see08:53
tmlindwho knows, maybe the modem configuration could be updated with some commands08:54
freemangordonwell, either ways we don;t have qmi calls working (in upstream)08:55
freemangordonso I will spend some time on it08:55
tmlindok cool. so for now we've been mostly using qmi commands, and just kick the modem on uart pdu notifications so the qmimodem sees the event08:56
tmlindlet me find the commit for you08:56
freemangordontmlind: in the meanwhile https://git.kernel.org/pub/scm/network/ofono/ofono.git/commit/?id=8af8136f61742be963b67b88f18e85c12509e0f9, https://lore.kernel.org/all/1707981467-2955-2-git-send-email-ivo.g.dimitrov.75@gmail.com/ and https://lore.kernel.org/all/1707981467-2955-3-git-send-email-ivo.g.dimitrov.75@gmail.com/ :)08:57
freemangordonperhaps I should have cc-ed you08:57
freemangordonnext time08:58
freemangordonI guess that should work on d4 as well08:59
tmlindok great09:01
tmlindso for kicking the qmimodem on uart notifications, see mot_qmi_trigger_events()09:01
tmlindideally we'd find a way to re-route notifications back to the qmimodem by using some at or qmi commands..09:02
tmlindand then plain qmimodem should just work09:02
freemangordonand it lacks voice calls suppoer :D09:02
freemangordonbut, yeah, that's the plan09:02
freemangordonwill take a while though, I want to finish what I was doing initially before jumping to qmimodem (cpl phone applet)09:03
tmlindand i think right now if a qmimodem data connection gets disconnected, qmimodem driver won't notice that and modem consumes extra 80 mW of power until the data connection is shut down09:03
freemangordonand then will jump to d4 driver09:04
tmlindso at least disconnect notification using mot_qmi_trigger_events() is currently missing and causing poor power consumption when moving around and getting disconnected by the cell network09:04
tmlindok09:04
freemangordonoh09:04
freemangordonok, lets save that somewhere09:04
tmlindyeah we get some 0 ending uart notfication, but should call mot_qmi_trigger_events()09:04
tmlindso uart knows data got disconnected, qmimodem driver does not09:05
tmlindprobably easy to reproduce with some tin foil over the phone :)09:05
freemangordonalready did that when I was playing with signal strength iirc :)09:06
tmlindhehe ok :)09:06
freemangordonI think it is some 'enable event' command that's missing09:07
tmlindok09:07
tmlindit was wizzup who accidentally discovered the mot_qmi_trigger_events() style kick will notfiy the qmimodem btw :)09:07
tmlindhmm so i guess one option would be to call mot_qmi_trigger_events() every three seconds when there's an active voice or data connection09:08
tmlindor every 10 seconds, then qmimodem should behave09:09
tmlindit would not help with incoming sms or voice calls though09:09
freemangordonmy bigger concern is what to do with qmimodem voice patches that float around inet09:10
tmlindpossibly we could also have the kernel serdev driver notify kernel qmi on any events..09:11
tmlindweird that the qmimodem voice patches are not merged09:11
freemangordonmhm09:11
freemangordonmaybe they were never sent09:11
tmlindyeah maybe, wasn't there some mailing list change over the past few years or something?09:12
freemangordonI see them only on pmos gitlab repo09:12
freemangordonthere was09:12
tmlindin any case ofono development stalled pretty much over 10 years ago already it seems :(09:12
freemangordonbut is very active lately09:12
tmlindok good to hear09:12
tmlindnothing stopping you from sending the voice patches though09:13
tmlindif the pmos folks don't use ofono, they probably lost interest09:13
freemangordonyeah , see https://git.kernel.org/pub/scm/network/ofono/ofono.git/log/09:13
freemangordonright, that's what sicelo said as well09:13
freemangordonwhat stops me is that I am not sure I'll be able to test them09:14
tmlindmake a voice call?09:14
freemangordonfrom the VM ;)09:14
freemangordonbut yeah, will try to09:14
tmlindd4 or n900?09:14
freemangordonx86_64 VM09:14
freemangordonthat's what I mostly use for development09:14
tmlindheh you could connect over usb to d4 modem from your x86_64 vm :)09:15
freemangordonI have EC20 that came with Anakon09:15
freemangordon*Anakin09:15
tmlindok09:15
freemangordontmlind: umm, how? like, is this some gadget?09:15
freemangordonif that's possible, that'd be great09:16
tmlindno.. the d4 firmware bootloader whatever cell testing mode remuxes the qmimodem to the micro-usb09:16
tmlindyou can do the same from linux too, the code is missing in the phy-cpcap-usb though09:16
freemangordonah, more development :)09:16
tmlindlet me find the define for it09:16
freemangordonI'll pass and just use EC20, all this tiny gaps are vastly distracting me09:17
freemangordon*these09:17
freemangordonunless it is very easy09:17
tmlindyeh np, fyi i think the gpio mux option in phy-cpcap-usb.c is CPCAP_MDM_RX_TX to route the modem to the micro-usb09:18
freemangordonok, thanks09:18
tmlindthat kind of hints that there must be some way to make the d4 modem behave as qmimodem only09:18
freemangordonwhen it comes to d4 I'll do the development on the device, it is fast enough09:19
freemangordonright09:19
tmlindmaybe the bootloader in that case sends some command to the modem so the notifications are routed to qmimodem09:19
freemangordonandoid is using AT notifications as well, right?09:19
tmlindhmm or actually, maybe it's some command over uart when android boots09:20
freemangordonmost-probably09:20
tmlindso booting to the bp only mode to android, and adb logcat radio and look at the commands when pc uses a data connection might reveal something09:21
freemangordontmlind: pretend that I have no idea about android :) - what is bp mode?09:21
freemangordonmaybe uvos or Wizzup can help with this09:22
tmlindif you boot to the firmware bootloader menu with vol up and down pressed, theres' an option for bp only mode (base band only i think)09:22
freemangordonah09:22
tmlindso if you boot android to bp only mode, then connect d4 to a pc, it shows up as a qmimodem and ttyUSB serial ports09:23
freemangordonthat sounds great09:24
freemangordonlemme try it09:24
tmlindhmm but likely adb logcat radio won't work in that case as the micro-usb is routed to the modem..09:24
tmlindmainline kernel should have the modem usb id's, assuming they don't change for the bp mode09:25
freemangordonhttps://pastebin.com/eC1m6RjF :D09:26
freemangordonofono recognized that as some AT modem09:27
tmlindhehe cool :)09:29
tmlindtry a qmi voice call and see what happens?09:29
freemangordonI can't, in VM this is upstream ofono I use to send patches09:30
freemangordonwill have to revert to stock first09:30
tmlindok well just add the qmimodem voice patches but not the maemo uart hacks09:30
freemangordonbut not now, have to run09:30
tmlindok me too, ttyl09:30
freemangordonanyway, thanks, will keep you informed09:31
tmlindok thanks09:31
Wizzupfreemangordon: we use the pinephone, doesn't that use qmi modem for voice calls11:54
Wizzups/use/support/11:54
freemangordonyes, PP uses qmimodem, for voice calls, but this is not upstreamed12:03
Wizzupisn't that what you're looking for, or?12:06
Wizzupmaybe I got confused12:06
freemangordonit is, but it is not in a shape to be upstreamed12:07
Wizzupbtw, the modem pass through would be kinda of useful on the d4 too, much like the n900 can pass through it's modem over usb12:07
Wizzupfreemangordon: right12:07
freemangordonok,12:08
freemangordonbut I am not going to implement that now :)12:08
Wizzupsure12:08
freemangordonwait, what? https://git.kernel.org/pub/scm/network/ofono/ofono.git/commit/?id=07e00b7215cd98aa033f2ebc4ff169662d95d34c12:15
Wizzuppavel worked it on a while ago over just usb iirc12:17
freemangordonit still uses AT cpommands though12:17
freemangordon*commands12:17
freemangordonI will try switching to qmi12:18
Wizzuphm?12:19
WizzupI think just using qmi over usb is a dead end for d412:19
Wizzupthe power usage is completely unacceptable12:19
freemangordonok12:20
freemangordonanyway, at least we have something upstreamed12:20
freemangordoncould you repeat again what is the requirement for moving away from g_at_chat?12:22
freemangordonWizzup: hmm:12:22
freemangordonofono_devinfo_create(modem, 0, "qmimodem", data->device);12:22
freemangordonthis is what I see in our ofono12:23
freemangordonin motmdm_pre_sim() that is12:23
freemangordonseems I lack the details on what "the power usage is completely unacceptable" is supposed to mean12:24
Wizzupyes, our modem is a mix of qmi over usb and at commands12:24
WizzupI don't remember the details, but tmlind would hopefully12:24
Wizzup'our modem' -> 'our ofo\no modem'12:25
uvos__Ä btw, the modem pass through would be kinda of useful on the d4 too, much like the n900 can pass through it's modem over usbÄ12:41
uvos__d4 can do this in hardware12:41
uvos__i dont quite remember the details but its one of the options you can choose in fastboot12:41
uvos__"seems I lack the details on what "the power usage is completely unacceptable" is supposed to mean" if you use qmi only you need to keep the usb if awake at all time so the modem can send you updates when a call or notification comes in12:42
uvos__this has unacceptable power consumption implications12:43
uvos__however this dosent mean you need to use the at interface and the gpio irqs for calls as sutch12:43
uvos__but you do need to use them to catch the modem telling you theres an event underway so you can wake the qmi interface12:44
tmlinduvos__: the usb interface will autoidle though when no traffic so it may not be that bad13:10
tmlindhere's a broken mz616 32 on ebay btw if anybody wants to buy it for parts, seems to ship only to germany https://www.ebay.com/itm/20434648894313:10
tmlindso presumably it has a micro-sd13:11
tmlindseems the price is kind of expensive but maybe the seller would take an offer of something lower13:12
diejuseIs there a way to open a window in Maemo with scrollbars? Many applications display content that overflows the screen and cannot be accessed. It also happens with apps that overflow content when switching from landscape to portrait mode making them unusable. For example miphoto is not usable in portrait mode.13:23
diejuse*mihphoto13:23
uvos__nope13:52
uvos__you could make xorg run in some higher resolution and rescale to the display using randrs transformation matrix13:53
uvos__but this would be a very extream solution13:53
uvos__and switching would require a reboot13:53
uvos__tmlind: 40euro for a broken decade old tablet, insane13:54
buZzxrandr itself can also do scaling14:05
buZznever really got it to work well, though14:05
buZzah, thats what you said :D randrs14:05
tmlinduvos__: maybe make an offer for 10€? :)14:21
buZzWizzup: found a car-mount? :)14:22
uvos__buZz: randr is even more correct as randr is the extension in xorg and xrandr is just a cli program the can to be used to speak the client side of the randr protocoll :P14:24
uvos__\me pedantic14:25
buZzyeah :D14:25
* uvos__ pedantic14:25
buZzthanks <314:25
* buZz likes pedantics14:25
buZzuvos__: i want a carmount for droid4 , to mount a droid4 -inside- my 3D printer14:25
buZzand run 'klipperscreen' on it, and show interface of printer with touch controls14:26
buZz:)14:26
buZzhttps://github.com/KlipperScreen/KlipperScreen14:26
buZzmaybe even with USBethernet instead of wifi14:26
uvos__neat14:27
uvos__maybe a mz609 would be even better suited to this task14:27
buZzi think it'll be ideal :)14:27
buZzi dont know, but for droid4 Wizzup has some 'carmounts'14:28
buZzwhichever device, i just want to mount it solidly to the frame14:28
buZzand i have 2x droid4 here, so why not that :)14:28
Wizzupyou might also be able to 3d print something14:39
WizzupI will have to search for a while, doing some renovation and these aren't accessible14:40
buZzWizzup: there's no real rush14:47
buZzjust trying to find a project -_- , some IRL emotional crap happened over last months, and i'm still recovering14:47
buZzneed to find something that grabs my attention away well enough ;)14:47
buZznot sure if this would be it though14:48
dsc_buZz: what 3d printer do you have?14:51
buZzfor this project? https://nurdspace.nl/CoreAnet14:52
buZzi also have a Malyan M10014:52
buZzand at the hackerspace we have ...8? 3d printers, but just 2x Creality Ender3 are hooked up14:52
buZzhttps://i.imgur.com/HIOi1Fo.jpeg14:53
dsc_nice14:54
tmlindfyi rebasing the pending mapphone patches on v6.8-rc4 here14:55
buZzyeah its pretty14:55
buZzcurrent printarea is ~20x30x20cm , but i could increase that in all directions still14:55
buZzand superquiet and fast14:55
tmlindfor a 3d printer use of mz609 with the touchscreen the touchscreen driver remains problematic14:56
tmlinduvos__: or did you figure out some recent touchscreen branch for mz609?14:56
buZz-most- i want the screen for is just displaying temps etc, but controlling printer from it would be nice yeah14:59
buZzi can do it all remotely too, over http14:59
tmlindyeah ok15:00
uvos__tmlind: oh no i forgot about that15:50
uvos__miz61x then15:50
uvos__or allwiner tablet15:50
tmlindyeah16:04
tmlindpushed out v6.8-rc4 based branches16:04
tmlindhttps://github.com/tmlind/linux/commits/mapphone-pending-v6.8/16:04
tmlindhttps://github.com/tmlind/linux_openpvrsgx/commits/mapphone-pending-pvr-omapdrm-v6.8/16:04
tmlindlooks like the console on the lcd issue is still there and needs to be bisected16:05
tmlindvery lightly tested as always :)16:06
Wizzuptmlind: for mz60x, is it just the ts that does not work, or also the lcd?16:21
tmlindWizzup: mz617 (and mz615 and mz616) are pretty close to working with mainline, different ts controller16:51
tmlindhad an oops in the v6.8-rc4 based branch at gsd_receive_buf()16:51
tmlindat least got the pstore trace, i disabled the pstore compression option so it's more usable now16:51
tmlindgotta go now16:52

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