libera/#maemo-leste/ Friday, 2022-09-16

norayrleste port of mstardict done: https://github.com/norayr/mstardict/commit/ca99d9d803dbf39ca2aee8f0d305a0e33ddc97b200:08
norayruvos, wow great. how can i make sure the screen is the only one? if i do xrandr -q i probably will see both screens.00:09
norayrshould i edit xorg.conf?00:09
norayrah, maybe there is no default xorg.conf, and it is autogenerated, and i should create the default?00:09
uvosnorayr: sure creating a xorg.conf with a static layout should work fine00:54
norayrgood, i'll try. it would be easier if i could ssh to device and start or stop xorg to test my xorg.conf changes.01:01
norayrbut i guess it'll only connect to the network if it starts hildon01:01
norayrWizzup: i think bot (lel?) didn't notice this https://github.com/maemo-leste-extras/bugtracker/issues/3202:25
OksanaaMStarDict was great, back when I used it on Maemo 5 Fremantle :-) Thank you!08:24
* Oksanaa wonders if any news releases are planned for https://maemo-leste.github.io/ - the latest one was April 2022?..08:25
freemangordonnorayr: what? https://github.com/norayr/mstardict/commit/ca99d9d803dbf39ca2aee8f0d305a0e33ddc97b2#diff-889c5495b68d2a0c0d1f238818716a71939918499efbc0fc6d2994319624fc67R2508:27
OksanaaI am very, very tired of the data fragmentation. Between (several devices, actually) Nokia N900, Fxtec Pro1, Nokia E71, and for-the-sake-of-taking-photographs Nokia 1.3 and Nokia N95... I have no idea how I will actually compile, in the distant future, a continuous history of SMS texts. Or a continuous photo album. Or notes. Or IRC history into a single IRC client.08:29
freemangordonnorayr: https://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html08:34
OksanaaAnd I have no idea what device I want to use in the future. Fxtec Pro1? Perhaps, but I do not trust Sailfish OS to not brick it again - is there Maemo Leste image for it? Motorola Droid 4? Perhaps, but I do not have one, yet. Nokia N950? Perhaps, but it would need tricky soldering work to get SIM card slot working. Nokia N900? Perhaps, but it would need a repair of the charging port...08:34
freemangordonnorayr: or simply add AM_GNU_GETTEXT_VERSION to configure.ac, IIUC08:35
OksanaaAt this rate, I would even be interested in a Maemo Leste image for Dragonbox Pyra: at least, this device (pre-ordered, not arrived yet) is not in need of repairs or data back-up. Granted, it's standard edition, not mobile edition, so it does not have cellular connectivity... Perhaps, I will (pre-)order another one, with cellular connectivity...08:39
norayrfreemangordon: i think AM_GNU_GETTEXT_VERSION is in configure.ac, i checked.09:34
norayrbut i'll check again09:34
norayrand yes, i wanted to say, i have very limited knowledge with autotools etc, so it would be great if you comment on my solutions09:35
norayrOksanaa: i think last images were build in september.09:35
tmlindfreemangordon: not sure if increasing the timeouts helps. maybe the issue is that n_gsm is unable to connect if no response initially?09:41
tmlindWizzup, uvos: so i took a look at the tc358765 dsi bridge i2c transfers issues on mz617.. the chip seems super buggy for i2c09:43
tmlindheh, so for register writes, writes go to address + 1 instead of address :)09:43
tmlindand after a write, a short timeout is needed or else any following read or write will fail09:43
tmlindof course it could be some i2c pull-up issue.. but lm75 on the same i2c bus works just fine. also tried configuring the bus at 400khz09:44
tmlindthe kernel tc358764 driver uses mipi_dsi reads and writes, and looks like the android driver for tc358765 only used i2c for dumping out the regs for debugging if i read the right code in the v3.0.8 tree..09:45
tmlindi guess i'll try to get the mipi_dsi reads and writes working too, then we can make sure i2c and mipi_dsi both read and write the same registers with the same values..09:46
uvos__tmlind: thats wierd, might it also just be a special made to order motorola variant of the chip with one extra register that moves all the subisquent addresses +1?09:48
uvos__so if you hack the driver to just add 1 to the address on reads/writes dose it work?09:48
tmlinduvos__: no.. i found this out by reading and writing to the early regs and looking the results with i2cdump09:48
uvos__ok09:49
tmlinduvos__: any idea if the v3.0.8 kernel panel-mapphone-d2l.c is the one in use?09:49
uvos__i need to take apart my mz617 and charge it09:49
tmlindheh09:50
uvos__tmlind: no but should be easy to check09:50
tmlindlooks like the tc358764 drivers in mainline kernel is finally fixed for the bridge api with some tested-by from the chromebook folks09:50
uvos__:)09:51
tmlindi guess i'll try to get that to work, then 765 presumably just has dual lane support compared to 764..09:51
uvos__would be very neat :)09:53
tmlindso the i2ctransfer command i used for debugging was from: https://linuxhint.com/i2c-linux-utilities/09:54
Wizzuptmlind: heh @ register write offset. it would be super awesome if it can be mdae to work :)09:55
tmlindsomething along the lines of this to read a reg: i2ctransfer -f -y 1 w2@0x50 0x05 0x80 r4 to read idreg, forgot which way around the 0x0580 address offset had to be specified09:55
tmlinddid not get that to work with android btw for dumping regs, android bus is 1 like above mainline 009:56
tmlindbut would be nice to have a register dump of the android regs naturally somehow09:57
tmlindalso with i2ctools, writes work along the examples on that page, but the address needs to be addr - 1, and sleep 0.1 is needed before any other transfers..09:58
tmlindlooks like reading the idreg just returns the value at 0x80, which can be written directly..09:59
tmlindwhile writing to idreg won't work09:59
tmlindi tried i2ctransfer from busybox on android btw, maybe it's buggy10:00
uvos__tmlind: might make sense to use androids own i2ctools10:39
uvos__use/try10:39
uvos__source is in the android tree ususally they are not installed on images unless you do a debug bild10:40
uvos__build10:40
freemangordontmlind: since the increase, I saw no failures in registrering audio interface10:41
freemangordonalso, it does not make sense not me _gsm to wait 8 seconds for command being send but audio driver to wait 1 second for response10:42
freemangordon*does not make sense to me n_gsm10:43
tmlindfreemangordon: ok great if it helps :)10:46
freemangordondo you plan to send tose patches for upstreaming soon?11:05
freemangordon*those11:05
tmlindme? which patches? serdev-gsm?11:06
* tmlind too many half done patches11:07
tmlindin case you're asking about serdev-gsm, those should be updated to use serdev read/write also for the client drivers11:09
tmlindon a train again, bbl11:10
freemangordontmlind: yes, serdev-ngsm (and motmdm audio/gsm friends)12:08
Guest224Oksanaa: I saw your Maemo device thinking thru irclog...new Pinephone (not pro) convergence with keyboard (https://pine64.com/product/pinephone-beta-edition-with-convergence-package/ with https://pine64.com/product/pinephone-pinephone-pro-keyboard-case/) can be one option too. Easiest install just put Maemo image to SD card and restart. But anyway13:55
Guest224N900 and Droid 4 has some good points too. It is also question what physical phone size you want.13:55
Guest224-> I continue lurking thru irclog.14:05
rafael2kWizzup: I updated the PR with the kernel package version bump: https://github.com/maemo-leste/pine64-kernel/pull/816:20
Wizzupok, will handle today16:26
freemangordontmlind: also, you said we shall add some CIEV handler, but I am not sure I understand what you mean, given https://github.com/maemo-leste-upstream-forks/ofono/blob/maemo-ofono/drivers/motorolamodem/voicecall.c#L92317:21
freemangordonor do you mean we shall handle CIEV also in netreg?17:22
tmlindfreemangordon: oh maybe we have it already then, i guess that already covers netreg too for kicking the usb qmi modem17:25
tmlindfreemangordon: assuming they are on the same dlci17:26
tmlindhmm maybe ciev_notify() should just kick the qmi usb modem, maybe nothing else is really needed17:27
freemangordonmhm17:27
tmlindcould be some generic cive handler, not limited to voicecall.c17:28
freemangordonin motmdm?17:28
tmlindyeah17:29
freemangordonmotmdm.c17:29
tmlindyup17:29
tmlindthen additionally voicecall.c can do what it needs to do with CIEV if anything17:29
freemangordonshall I add such handler?17:32
freemangordonhmm, why  mot_qmi_trigger_events uses WMS no matter what has changed?17:35
freemangordonlike, how is MSIM or CREG event related to WMS?17:35
freemangordonaren't those supposed to kick DMS, not WMS?17:36
freemangordonor it is just a fake call to wake-up USB?17:36
tmlindwell anything that gets the usb qmimodem to check it's status should do, maybe there's a better way17:37
freemangordonok17:37
freemangordonso, shall I add CIEV handler in motmdm.c?17:37
tmlindall the modem notifications only seem to come to the n_gsm interface, usb won't notice anything and i was unable to reconfigure the usb modem when i tired17:38
freemangordonah, I see17:38
tmlindyeah it's worth trying, it could simplify things17:38
tmlindit's like the usb modem settings are read-only17:38
freemangordonok, will do17:38
tmlindcool, look forward hearing what happens :)17:39
freemangordonand what we expect to happen differently?17:39
freemangordonlike, what it the bug we try to fix? :)17:39
freemangordon*is the17:39
tmlindusb modem might start doing things on the notifications like it should17:39
freemangordonwhat things, in particular?17:40
tmlindlike network status change, sim insert, data connected..17:40
freemangordoniiuc it already does17:40
tmlindwell maybe yeah17:40
freemangordonbut ok, one more cb should not hurt17:41
tmlindbut does ciev_notify() always call mot_qmi_trigger_events()?17:41
freemangordonno17:41
tmlindok then it's worth trying and see what happens :)17:42
tmlindalso WAKEUP should do that if we don't have a handler for it17:43
freemangordonI guess I shall enable n_gsm debug to see all the unsol messages that come17:43
tmlindyeah or do sudo dmesg -w17:44
tmlindafter loading with modprobe n_gsm debug=0xff17:44
freemangordonmhm17:44
tmlindright that's what you meant too, i misread enabling ofono debug..17:45
freemangordonok, going to do it17:46
Wizzup17:39 < freemangordon> like, what it the bug we try to fix? :)17:46
Wizzupcontext activation often not workingf17:46
freemangordonumm... is that still there after latest fixes?17:46
Wizzupyes17:46
Wizzupon my d4 I often still have to send a sms to get it to activate17:46
Wizzupat least twice today17:46
Wizzupmaybe it's something else that's odd17:47
Wizzupor rather: I have to send a sms for ofono to realise it's activated17:47
freemangordonhmm...17:47
freemangordonok17:47
freemangordondo you have n_gsm traces?17:47
tmlindfrom android you mean?17:47
freemangordonno, from leste17:48
tmlindno don't have any17:48
freemangordonwhen ctx activation fails17:48
Wizzupno, but I can enable it again17:48
freemangordonI think it will be helpful to see if there is anything coming from the modem at all17:48
Wizzupthere is, CIEV17:50
Wizzupbrb17:50
freemangordonok17:50
tmlindok. hmm so what is the context activation event?17:50
Wizzupthere are two that I saw17:51
freemangordonugh, my d4 just hanged :(17:51
Wizzupone regarding radio tech and ciev17:51
tmlindbut is it for the same operator?17:51
tmlindi mostly suffer from lost network connectivity not being notified and i have to manually reconnect to get pm working again..17:52
tmlindwell there is some CIEV event for that17:52
tmlindagain17:52
tmlindbbl17:55
Wizzupare you asking if I see the problems only on specific operators?17:57
tmlindjust wondering what all is considered a context activation event18:09
Wizzupby modem (in at), or by ofono, or conceptually?18:29
freemangordontmlind: I will intercept ~+WAKEUP as well18:36
freemangordonWizzup: tmlind: I suspect RSSI reported values are not in %18:50
WizzupAh18:53
Wizzuppossible18:53
freemangordononm android it reports 15-18 and UI displays full strangth18:55
freemangordon*strength18:55
Wizzupright19:03
freemangordonNetwork 'umts': '-78 dBm'19:44
freemangordonthis is for RSSI 1619:44
freemangordonhttps://pastebin.com/jwfNYBkB20:14
Wizzupis this our ofono code, or android20:14
freemangordonRSSI vs qmicli --nas-get-signal-strength -d /dev/cdc-wdm0 RSSI dBm20:15
Wizzupah20:15
freemangordonf(x) = -1.1581501340482572e+002 * x^020:15
freemangordon     +  2.2017426273458440e+000 * x^120:15
freemangordon1st order polynomial approximation20:15
freemangordon-115 + 2x to convert RSSI to dBm20:16
freemangordonand then we'll have to convert to percent20:16
freemangordonbut that'd be easy20:16
Wizzupright20:30
norayrWizzup, would it be convenient to create a repo for mstardict?21:51
Wizzupnorayr: pls open an issue and I will tomorrow23:14
freemangordonhmm. seems this is our table https://m2msupport.net/m2msupport/signal-quality/23:52

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