libera/#maemo-leste/ Sunday, 2024-02-18

freemangordonWizzup: repo keys?08:32
freemangordonguys, do you have clue about Pavel's comment here https://git.kernel.org/pub/scm/network/ofono/ofono.git/tree/plugins/droid.c?id=07e00b7215cd98aa033f2ebc4ff169662d95d34c#n197 ?08:33
tmlindfreemangordon: pavel had patches to make use of the buggy /dev/ttyUSBn at modem interface, i think over ttyUSB408:50
freemangordontmlind: ok, but I lack the whole picture, like, why he preferred AT over QMI?09:00
freemangordonanyway, I sent an email to him (you're in CC)09:00
freemangordontmlind: also, what is gsmmux?09:01
freemangordonand why do we need it?09:01
tmlindfreemangordon: gsmmux is the multiplexed serial port interface /dev/gsmtty*09:02
freemangordonbut we have that, no?09:02
freemangordonthis is what we use in leste ofono, iiuc09:02
tmlindfreemangordon: yes we have that and that's handling the ofono notifications and kicking the qmimodem09:02
freemangordonso, Pavel's comment is no longer valid then09:03
tmlindwell you can also use the buggy /dev/ttyUSB0 too..09:03
freemangordonok, but what is buggy about it?09:03
tmlindit eventually hangs the modem09:03
tmlindand is a very limited interface09:04
freemangordonand we don't know why/when (the hang)?09:04
tmlindsome commands hang the modem right away, some command are buggy and hang it at some point, don't recall the details09:04
freemangordonok, I see09:04
freemangordonso, upstream driver is useless then, no?09:05
tmlindafaik /dev/gsmtty* is the only way to access voice call audio and gnss features on the modem unless some of these can be done over the qmimodem somehow09:05
tmlindwell pavel might still use the upstream driver, not sure09:05
freemangordonI think they shall work through qmi09:05
tmlindand the interface is threre09:05
freemangordonwell, booting it in BP mode exports QMI interface09:06
tmlindwell if you figure out a way to get modem notifications work with just qmi only, that would help a lot of course09:06
tmlindsend an sms to the bp mode modem and see if x86 sees anything happening on the qmimodem?09:07
freemangordonI can try, but before doing so I would like to have a clear picture on what to do with upstream driver09:07
tmlindwhich driver, the ttyUSB4? just leave as it is :)09:07
freemangordonI can't as it works on usb id09:07
freemangordonand takes over09:07
freemangordonalso, qmicli does not allow me to listen for notifications09:08
tmlindhmm but we have already patches for that?09:08
freemangordontmlind: sure, btu I want to upstream everything09:08
freemangordonofono devs are really active lately and very cooperative09:09
tmlindyeah well adding a motorolamodem may be needed to get it all working and have the ttyUSB stuff too09:09
freemangordonI don;t want to miss that opportunity09:09
freemangordonalso, they are even willing to discuss/fix dbus API etc09:09
tmlindyeah sure nice09:09
freemangordonto me it makes absolutely no sense to continue using 1.x given that 2.4 is out and 2.5 or 3.0 is on its way09:10
tmlindagreed09:10
freemangordonand I will spend time on make things happen, given that I have the right idea on what has to be done09:11
tmlindheh yeah great09:11
freemangordonok, lets wait for Pavel's reply09:12
tmlindbecause the /dev/ttyUSB* are there, we should not drop the modem handling for it but instead add motorolamodem that supports qmi and other interfaces09:14
tmlindso three interfaces total like pavel's comments listed09:14
freemangordonok, but droid.c uses atmodem09:14
freemangordonwhich is buggy09:14
tmlindyup09:15
freemangordonso this shall be converted to use qmimodem09:15
freemangordonIIUC09:15
freemangordonbut, I don;t want to send patches for that over Pavel's head09:15
tmlindhmm well you can't convert a ttyUSB interface implemented in the modem's firmware to use qmimodem :)09:16
freemangordonesp given that most probably I lack details09:16
freemangordonumm, sorry, can't parse09:16
tmlindwell the modem firmware provides the /dev/ttyUSB* interfaces to linux, they are separate from the qmimodem interface09:17
freemangordonwhat is this https://github.com/maemo-leste-upstream-forks/ofono/blob/maemo/chimaera-devel/plugins/motmdm.c#L612 then?09:17
freemangordonbtw QMI is over /dev/cdc-wdm0 AFAIK09:20
tmlindthat's the motorola modem part that uses the /dev/gsmtty* interfaces09:20
freemangordonok, but this is QMI, no?09:20
tmlindno not qmi, but kicks the qmimodem for notifications09:20
tmlindso /dev/cdc-wdm0 is qmi yeah, /dev/gsmtty* is multiplexed uart, and /dev/ttyUSB* are the buggy at modem interfaces09:21
freemangordonumm, I got lost :) motorollamodem.c kicks modem to send notifications through QMI interface, no?09:21
tmlindyeah based on the notifications coming from /dev/gsmtty* interfaces09:22
freemangordonexactly09:22
freemangordonbut, ignoring that we don;t know how to tell QMI to send notifications without modme being kicked, we use qmimodem to communicate with it09:22
tmlindlikely there's some modem nvram setting that routes the notifications to either /dev/gsmtty* or to /dev/cdc-wdm009:22
tmlindyeah we should be able to all the communication over qmi in theory09:23
freemangordonyes, but besides notifications, it is all qmimodem, not gsmmuz09:23
freemangordonright09:23
tmlindyeah09:23
freemangordonbut dis is totally different to what we have in upstream09:23
freemangordon*this09:23
freemangordonwhere it is atmodem all over the place09:24
freemangordonno gsmmux or QMI09:24
tmlindright, upstream only has the support for /dev/ttyUSB* interface09:24
freemangordonwhich seems to be useless for any real life usage as it hangs the modem :)09:24
freemangordonso, my plan is to get rid of that and push our driver upstream, but I want to hear from Pavel first09:25
tmlindmore or less yeah, but the interface still exists, so should be possible to support that too09:25
freemangordonumm, I am not sure that's possible09:25
freemangordonas that means we will have to modem interfaces in ofono for a single modem09:26
tmlindthe motorola modem currently configures both qmi and /dev/gsmtty* interfaces09:26
tmlindso should be able to also configure ttyUSB interfaces09:26
freemangordonbut why if it hangs the modem?09:26
tmlindonly some features hang the modem :)09:27
freemangordonheh09:27
tmlindgotta go here, bbl09:27
freemangordonbbl09:27
Wizzupfreemangordon: hm?10:54
Wizzupfreemangordon: I don't think so, must be some mafw thing10:54
Wizzupfreemangordon: I'll take a look in any case11:08
inky> no more crash or seg fault :)11:20
inkyplease package it.11:20
freemangordontmlind: did anyone try AT+QURCCFG ?16:23
freemangordonhmm, does not seem to work17:00
diejuseI have finally found the culprit of the problem of the portrait mode breaking when pressing the space bar key with other virtual keyboards.19:47
diejuseIf I don't start hildon-input-method everything works fine. For some reason it creates a conflict in the space bar key pressed by other virtual keyboards.19:48
sicelofreemangordon: since ofono code is still fresh in your mind ... maybe you can help me find where the name of the modem is 'created' ... the "2" in /n900_2 is annoying sometimes :p20:23
sicelonot that it matters too much though20:24
inkywow!20:45
freemangordonsicelo: ofono_modem_create()20:58
freemangordonlooks like the modem is created twice20:59
freemangordonor even 3 times20:59
freemangordonas afaik it starts from 020:59
sicelothat sounds like a problem :-/21:02
sicelolooks like it's because the modem has many sysfs entries: hsi-char, cmtspeech, n900-modem, phonet021:27
siceloanyway, don't fix it if it ain't broken :p21:27
arno11Wizzup: i got keyboard (sdl input) working with drnoksnes. fullscreen works too. Now i have few troubles with sound and gui is broken. but games work fine :) i'll be very busy during the 2 next weeks but will try to upload stuff asap if you want to try it22:31

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