libera/#maemo-leste/ Saturday, 2022-02-12

freemangordonWizzup: uvos: do you want me to do anything else re PA? shall I add PP scripts in leste-config? what about d4?08:33
rafael2kdont forget about pp too!08:56
rafael2k: )08:56
freemangordon"shall I add PP scripts in leste-config?" :p09:06
freemangordonrafael2k: BTW, do you know if there is a way to get a list of all xcb keyboards/variants/etc. Keep in mind 'rules' file does not have all the info09:07
freemangordonso 'symbols' must be somehow parsed09:07
freemangordonso, shall I write my own parser?09:08
rafael2khey!09:10
rafael2kI was still sleepy09:10
* freemangordon hands rafael2k some coffee09:10
rafael2ktks! drinking now!09:10
rafael2klooking at setxkbmap and xmodmap09:11
freemangordonsetxkbmap is of no help IIUC09:12
rafael2kI used to be good with x keyboard maps... always had trouble with things like ccedil and stuff like that09:12
freemangordonlemme try to explain what I am trying to achieve09:13
freemangordonin "text input" applet there is an option to select the HW keyboard layout09:13
rafael2kright09:14
rafael2kyou need model, layout and variant only?09:14
freemangordonI want to fill that list by using the internal keyboard name of the particular device (nokiarx51, droid4, etc)09:15
freemangordonbasically, what I need is to have a way to map nokiarx51->(list of possible layout variants)09:15
freemangordonthis is present only in nokia_vndr/rx5109:16
freemangordonrx51 is just an example ofc, the same logic shall apply no matter the device09:16
freemangordonXkbRF_Load does good job, more or less, so I have 'rules' file as C data09:17
freemangordonbut, I receive there data like ''nokiarx51'  'nokia_vndr/rx-51(common)+nokia_vndr/rx-51(%l%_v)'"09:18
freemangordonand here is where I am stuck09:18
rafael2kI'm looking at /usr/share/X11/xkb to see if I get some idea...09:18
freemangordonit is like spaghetti :)09:18
rafael2kgood ol' X09:19
freemangordondo you know what 'nokia_vndr/rx-51(common)+nokia_vndr/rx-51(%l%_v)' is supposed to mean in terms of xcb?09:19
freemangordonlike, WTF is %l%_v ?!?09:19
freemangordonand basically, who parses that? server?09:20
rafael2k it should be layout and variant... but no idea who parses that09:20
rafael2k:(09:20
* freemangordon grep xserver source code for 'xkb_symbols'09:21
freemangordonnot there09:22
freemangordon:(09:22
rafael2k:/09:24
freemangordonugh https://github.com/freedesktop/xkeyboard-config/commit/a3db589bc4f0dab7233beb92b320ca9368d951a509:32
rafael2kunix way09:42
rafael2k:P09:42
rafael2kso your idea was right - you have to parse it "yourself"09:43
freemangordonhow nice :(09:43
freemangordonok, but still, *someone* should already have a parser for that09:44
freemangordonafter all those files are used09:44
rafael2kdebian has a nice keyboard picker, when you dpkg-reconfigure it09:44
freemangordonit uses .xml file09:44
freemangordonwhich is incomplete09:45
freemangordonyou cannot select rx51 from there, from example09:45
rafael2kright, did not know that09:45
freemangordon*for example09:46
rafael2kI remember slackware use to have one, lemme check09:49
rafael2knothing really useful...10:14
rafael2kso I connected my pp to the power10:56
rafael2k(the pp kbd/power bank indeed)10:56
rafael2kit seems it is all working!11:03
rafael2kmany controls to take care on /sys... cool11:03
rafael2k: )11:03
rafael2kthe phone battery charges veeery slowly from the power bank battery11:09
rafael2kit was mostly stuck, but setting the cpu gonvernor to powersave helped11:09
rafael2kbtw, I have a feeling powersave should be the default cpu governor for pp11:09
Wizzupfreemangordon: (waking up) I can do the pa stuff in a bit as well11:31
uvosWizzup: please add export SDL_VIDEO_X11_FORCE_EGL=1 to profile while changing leste config11:33
uvosand i gues export SDL_RENDER_DRIVER=opengles2 altho no applicaion i know of uses this hint11:33
Wizzupuvos: in addition to gles1 changes?11:42
Wizzupuvos: do we want that force egl for all devices or just the gles devices11:44
Wizzupuvos: i.e. pp does gl11:44
uvosits egl its forcing egl not gles11:45
uvosyes we want egl everywhere11:46
uvosand yes11:46
uvosin addition to the gles1 changes11:46
Wizzupok11:51
WizzupI need to recover with some coffee, but will get to it today11:51
Wizzupfreemangordon: do you need help with leste-config pa stuff?12:26
freemangordonWizzup: I was left with the impression that you will do it14:19
Wizzupok14:19
WizzupI will do it14:19
freemangordonTBH I prefer you to do it14:19
freemangordoncool14:19
Wizzupdo you have a summary of the setup, should I find that in the backlog?14:19
freemangordonsec14:20
freemangordonWizzup: https://pastebin.com/ubQirhB514:21
freemangordonfile names are arbitrary ofc, but I think those make sense14:21
freemangordonfeel free to change ofc, if we use different naming convention14:21
Wizzupok14:33
rafael2kbtw, is new ofono already in stable for pp?15:30
rafael2kI'm starting to recommend maemo to friends with keyboard15:30
rafael2k: )15:30
WizzupI think it should be?15:31
rafael2kit should be, yes15:32
rafael2ksphone is working fine... without new ofono we don't have call support15:33
rafael2k(in pp)15:34
Wizzupwhat about ringtones?15:34
Wizzuphttps://maedevu.maemo.org/pkgweb/beowulf/main/binary-arm64/ofono.html15:34
Wizzupit's new version15:34
rafael2kwe dont have ringtones yet... yes - this is bad15:35
rafael2kand it is sooo simple issue15:35
rafael2k:P15:35
rafael2kabout ofono - cool!15:36
rafael2kother day I was making fun with camera sounds from nokia, which are indeed present here... why cant the ringtones be in the distro too?15:39
WizzupI think we can just do it, but the default one is the main nokia one, which is very well known / copyrighted15:41
Wizzupso that turned into a bit of a discussion15:41
rafael2kwell... lets make our tribute to Nokia for writing Maemo... :P15:44
Wizzupyeah I am inclined to agree15:44
Wizzupbut we could just also use some other free one for now15:44
Wizzuphttp://maemo.org/packages/view/maemo-ringtones-mr0/ I suppose this might be it15:45
rafael2ksure, no strong feelings... it is just that nostalgia of good ol' times is a good thing to cause15:45
rafael2kcool!15:45
WizzupI mean that's a meta one, I think we might need more15:49
WizzupI can look at finding them later, want to finish this report first and then do the pa stuff and other profile.d stuff15:49
rafael2knice!15:53
rafael2kbtw, today I was looking how to keep the display on15:53
rafael2kand ended up setting 'do not turn of the display when charging'... I was out but with the kbd/battery pack15:54
rafael2kthe options of backlight timeout go up to 2min15:55
Wizzupthere is a way to do keep the display one, see the brightness applet15:56
Wizzupsimple brightness applet15:56
Wizzups/one/on/15:56
rafael2kok15:57
rafael2kanyone, that workaround worked: https://www.abradig.org.br/maemo-crazyness/image3.jpeg15:58
rafael2k*anyway15:58
Wizzuphttps://github.com/maemo-leste-extras/simple-brightness-applet/blob/master/src/simple-brightness-applet.c#L15115:58
Wizzuprafael2k: nice :)15:58
Wizzuplooks good15:58
rafael2k: )15:58
rafael2kbtw, I dunno why sometimes, after boot, something is correct with modem boot up15:59
rafael2k*is not correct15:59
rafael2kI had to power modem off and on to make it connect to network (using 4G in my case, but it does not matter)16:00
rafael2kthis happened today16:00
rafael2kI was in the restaurant, connection to telephony network was not working16:00
Wizzuphmm16:00
rafael2keven tried ofono scripts, not ok16:01
rafael2kthen just run "eg25 stop",  "eg25 start"16:01
rafael2kthen made model online with ofono scripts... and all good16:01
rafael2kconnected using maemo UI without problem16:01
Wizzuphm, so maybe some racae16:01
Wizzuprace*16:01
rafael2kuhum, as realized you was complaining16:02
Wizzupwhat ui do you use exactly?16:02
rafael2kI dunno, just the default one in maemo16:02
rafael2kare there more than one?16:02
rafael2kconnections - and select the telephony provider, which has a different icon than wifi stuff16:03
Wizzupok16:03
rafael2kbut this thing was working fine, never had problem16:03
WizzupI assume that always fails the first time?16:03
Wizzuphmm16:03
rafael2klemme test a bit more16:03
rafael2kI'll reboot sometimes16:03
Wizzupwell I mean it works for me too, but it by default doesn't wait for the connection to become active16:03
Wizzupso the first activation call always fails16:04
Wizzupnext time it doesn't work try /etc/init.d/icd2 restart16:04
rafael2kok16:04
rafael2kpp especially has big waiting times for modem to boot up16:05
Wizzupmhm16:05
Wizzuplinux booting linux :)16:05
rafael2ktwo linux booting... eheheheh16:05
rafael2kmaemo is booting too fast16:07
rafael2k:P16:07
Wizzupwe could have the modem init script wait for the modem to boot before it continues16:10
Wizzupbut it should not be a problem16:10
Wizzupofono should just detect modem, and icd2 plugin should pick that up16:10
tmlindWizzup: on boot, looks like qmi uim-get-pin-status needs to be waited for, then qmi get-msisdn, and even then no operator info is yet seen for a little while so that should be checked too before things are ready16:18
tmlindWizzup: this with just with the related qmicli dms commands16:19
rafael2kbut pp has kill switches for the modem... so better not to wait indefinitelly.16:26
_inkyfolks i think the website doesn't work16:26
_inkyhttps://leste.maemo.org/16:26
buZzworks for me ?16:28
buZzhmmm, you do make me realize how 'empty' that frontpage is16:28
buZzmaybe we should get some more images on it16:29
Wizzuptmlind: hm, in ofono to have it detect the sim with pin on boot?16:30
WizzupbuZz: would love to get some people to work on the wiki :)16:30
buZzhmhm16:30
freemangordonrafael2k: seems the parser is in xkbcommon16:31
rafael2kfreemangordon: yay!16:33
tmlindWizzup: yeah looks like the sim is not seen for a while, maybe check with those qmicli commands after boot if that is your issue16:38
Wizzupok, yeah, I can do that today, thanks for looking into that!16:43
Wizzupbrb16:44
tmlindWizzup: on a better keyboard now, here are the qmicli commands i use, first --dms-uim-get-pin-status, then after that works --dms-get-msisdn, then online the modem16:47
tmlindWizzup: i've also noticed that even after that if the operator is not seen the modem will not properly work and needs to be re-onlined..16:48
tmlindWizzup: oh actually i no longer use --dms-get-msisdn, only poll with --dms-uim-get-pin-status until sim is seen. need to figure out some check for when it's ok to online the modem after that16:50
tmlindWizzup: but anyways, if --nas-get-home-network does not show the operator, the modem is stuck in some unusable state after boot16:51
tmlindand calls won't work probably until the modem is re-onlined or some other init part, don't know for sure16:52
tmlinduvos: so i've confirmed that having the lcd enabled weakens the indoors gnss signal for me, not the slide and not the backlight16:56
rafael2ktks tmlind!!17:02
tmlindrafael2k: does the pp have the same issue onlining the modem?17:03
rafael2ktmlind: I'm not sure, but put it offline and online makes it work after full boot17:03
rafael2ktmlind: so I suspect it could be the issue you mention17:04
tmlindrafael2k: ok maybe check with --nas-get-home-network if you see the operator when it does not work17:04
rafael2kok tks, will check as soon as I put my daughter to sleep17:04
tmlindok17:04
Wizzuptmlind: so these commands, do I run then before starting ofono, or?17:06
rafael2kWizzup: I have a guess that this can be done just before giving the command to online the modem (to ofono already up), but lets wait tmlind...17:11
tmlindWizzup: yeah so check with --dms-uim-get-pin-status before onlining, then check with --nas-get-home-network if you see the operator, sorry don't know the steps inbetween why --nas-get-home-network does not show operator after boot but then shows when tried again..17:12
tmlindWizzup: so you could check with just qmicli while you have your gui starting up i think17:13
tmlindthen add similar steps to sphone i guess assuming it helps17:13
_inkynow works indeed!17:14
_inkyit wasn't working for about half an hour i think.17:14
tmlindrafael2k: yeah or just check manually those commands before starting sphone17:15
tmlindso there's probably some qmi status when --nas-get-home-network telling modem is unusable, maybe that clears when the operator is seen later on, don't know. or maybe something needs to be reinitialized to make the modem usable at that point, i'm pretty sure just waiting is not enough at least on d417:21
Wizzuptmlind: hm, but for ofono not seeing the sim changes, when should I run these commands?17:29
Wizzupassuming you were talking about fixing the ofono plugin to do certain calls upon sim changes17:29
WizzupI guess the sim kick needs to be extended with qmi calls?17:29
tmlindWizzup: hmm so what do you have doing the modem qmi calls? sphone or something else?17:40
Wizzuptmlind: so my understanding is that the sim problem is as follows17:43
Wizzupif I have a device where the sim card has a pin, the kernel clearly emits the sim status changes, but ofono doesn't pick them up17:43
Wizzupwith is with ofono modem set to powered, but nothing else17:43
Wizzups/with is/this is/17:43
Wizzupacting on ofono, for example it should go online will make it suddenly realise there -is- in fact a sim17:44
Wizzupbut if you don't make the online call, it just thinks there is no sim17:44
Wizzupso the only thing interacting (writing) to ofono is the icd2 plugin that just sets the modem to 'powered'17:44
Wizzupsphone should just listen and act on smses/calls, not so much do anything else17:44
Wizzupicd2 can also set network context to active, but that's all there is17:45
Wizzupnormally if modem shows there is a sim with a pin, on startup there will be a dialog to enter pin17:45
Wizzupso that works for me is to wait two minutes after boot, then restart ofono (once or twice, depends), and then it will just recognize that there is a sim17:45
Wizzupthen I type startup-pin-query (iirc) and use the dialog to enter the pin17:45
Wizzupand then things kind of work as normal17:45
Wizzupbut the sim notification clearly passes kernel messages with n_gsm debug17:45
tmlindyeah so could be that ofono has an issue noticing the state. but it might also be that the qmi client needs to check certain states are reached before trying to continue17:46
Wizzupright17:46
tmlindso trying to figure out why modem does not work right after boot, first sim is not seen17:46
tmlindthen when sim is seen, home network is not yet seen17:47
tmlindonce both are seen calls work17:47
Wizzupaha17:47
tmlindso it's like there's some inbetween states with no notifications or something17:47
tmlindso if icd2 is doing the qmi calls, there might be some status checks missing inbetween like "is the sim available" before trying to set the pin17:48
tmlindand "is the network seen" before trying to make calls17:49
Wizzupno maemo sw should do qmi calls specifically, all goes through ofono17:49
tmlindok17:49
Wizzup(n900 for example doesn't do qmi, so we target ofono as abstraction)17:49
tmlindso maybe ofono is missing the status checks then17:49
Wizzupmhm17:49
tmlindthis issue exists with just using qmicli to enable the modem too17:50
tmlindit's not enough to set pin, online and make calls :)17:50
Wizzuphttps://github.com/maemo-leste-upstream-forks/ofono branch maemo-ofono is the one we have packaged atm - it has all your work + pinephone qmi improvements17:50
Wizzup(plus me forward porting your work to 1.34)17:51
tmlindyeah well so when you start initially and your calls don't work, check the status with qmicli over ssh to see if you see the sim and the operator17:51
tmlindthat should give some more clues17:51
Wizzupok17:51
tmlindif it's the same problem i'm seeing17:51
Wizzupyeah I'll reboot my d4 momentarily and check over ssh17:51
tmlindWizzup: ok so if you type the two qmicli commands during the first two minutes after start-up without restarting ofono we might get some more info17:54
Wizzupthat is --dms-uim-get-pin-status ?17:54
Wizzupand later (after online) --nas-get-home-network ?17:54
tmlindyup17:55
Wizzupok17:55
tmlindthen qmicli might need that option to make reads and writes to work..17:55
tmlindqmicli -d /dev/cdc-wdm0 --dms-uim-get-pin-status17:56
WizzupI'll try it before the reboot first to make sure I have it working17:56
tmlindok17:56
tmlindthen if you see the sim17:56
tmlindqmicli -d /dev/cdc-wdm0 --nas-get-home-network17:56
Wizzupbtw as I understand is there is a state where modem seems sim but is not online17:57
Wizzup(if I restart ofono after 2 mins.)17:57
tmlindyeah, that's the --nas-get-home-network part17:57
Wizzupok17:57
WizzupI didn't realise that worked before online17:57
tmlindat least i think that's how to check it17:57
Wizzuphmm17:57
tmlindyeah you need to set pin, set modem online, then --nas-get-home-network and if you see the operator you can make calls17:58
tmlindwell that's the theory so far, maybe there's some better way to check when the modem is really usable17:59
Wizzupok, so with my 'ofono restart' after 2 minutes, I always just see the operator name17:59
Wizzupso I don't have that problem after onlineing17:59
tmlindat least the "Description:" part is empty for me when modem does not work, probably also MCC and MNC have not paid attention18:00
tmlindor no output and just an error, can't verify right now easily18:00
Wizzupok, those work in ofono after applying the restart for me18:01
Wizzupok, let me just try to run the commands18:01
Wizzuptmlind: I get this: # qmicli -d /dev/cdc-wdm0 --dms-uim-get-pin-status18:07
Wizzuperror: couldn't get PIN status: QMI protocol error (37): 'UimUninitialized'18:07
WizzupI will try it again 2 minutes, and then see if it shows something18:07
Wizzupyeah, so after this:18:08
Wizzup[  105.734741] gsd_receive_buf: 00000000: f9 2b ef f7 55 30 30 30 32 7e 2b 4d 53 49 4d 3d  .+..U0002~+MSIM=18:08
Wizzup[and more]18:08
Wizzup# qmicli -d /dev/cdc-wdm0 --dms-uim-get-pin-status18:08
Wizzup[/dev/cdc-wdm0] PIN status retrieved successfully18:08
Wizzup(and more, works)18:08
Wizzupbut ofono doesn't detect the change18:08
tmlindok so that's one problem18:10
tmlindwhat about --nas-get-home-network if you online manually?18:10
Wizzupwhen you say online manually, what do you mean?18:11
tmlindAT+CFUN=118:11
Wizzupwell, I will have to enter the pin before I can do that I think18:11
Wizzupso I can restart ofono, fill in pin, and then online manually?18:11
tmlindyeah maybe try that18:12
tmlindthen check with --nas-get-home-network18:12
tmlindbut maybe ofono already works at that point for you, and ofono not seeing the sim show up is the only issue18:12
Wizzupno, ofono has more issues for sure, but the sim is the first one18:13
Wizzupso our wiki has this for writing online:18:13
Wizzupprintf "AT+CFUN=1\r" > /dev/motmdm118:13
tmlindyeah, or you can use qmicli for that too i think18:13
Wizzupyeah I think the wiki might be out of date18:13
tmlinddon't remember what the qmicli command might18:13
tmlindbe18:13
rafael2kWizzup: to online the modem, better do it though ofono18:15
WizzupI think that should be /dev/gsmtty1 ?18:15
Wizzuprafael2k: we're testing what happens if we don't do through ofono18:15
rafael2kah, ok18:15
tmlindyeah /dev/gsmtty1 for modem at commands18:15
Wizzupseems to give me this:18:16
Wizzup[  544.803009] gsd_receive_buf: 00000000: f9 07 ef 1f 55 31 32 33                          ....U12318:16
Wizzup[  544.803009] gsd_receive_buf: 00000000: 34 3a 45 52 52 4f 52 3d 31 38 0a c1 f9           4:ERROR=18...18:16
Wizzupthat is: printf "AT+CFUN=1\r" > /dev/gsmtty118:16
rafael2kI prefer to stick with qmi interaction, as it is more complete and verbose18:16
rafael2kbut in the end, for the baseband, it ends up in the "same place"...18:17
tmlindWizzup: you need the packet id, try printf 'U1234%s\r' AT+CFUN=1 > /dev/gsmtty118:17
Wizzupok, that worked18:18
Wizzuponce I do that the qmicli get home network worked18:18
Wizzupofono again doesn't it see it though18:18
Wizzupso I think I am seeing different behaviour potentially, but then again I do have ofono running, and you might not, in your tests?18:19
tmlindwell the issue i see is that there's a long delay between AT+CFUN=1 and --nas-get-home-network showing the operator, and modem won't work until something is reinitialized, only on the first modem start-up after booting18:20
rafael2kWizzup: which device / modem are you carrying these tests?18:20
tmlindyeah i just use qmicli and at commands.. been meaning to update for years now..18:20
Wizzuprafael2k: droid 418:21
Wizzupbrb18:21
rafael2kok18:22
rafael2kI wonder if we are doing the right thing calling /usr/bin/pinephone_setup-modem from udev and eg25 at init stage...18:26
rafael2kin my head, we could just do all the setup from udev hook18:27
rafael2kand make ofono wait the device target to be ready18:27
rafael2k(or not, I mean, ofono can read new devices dynamically)18:27
rafael2kas indeed, modem can be disabled by kill switches... so ofono should not even depend on modem bring up...18:30
humpelstilzchen[I'm currently trying to port easylist (https://talk.maemo.org/showthread.php?t=62280) to qt5. Problem is, that some dialogs QMessageBox do not appear. Known problem?18:56
rafael2kadding a 2s sleep in the end of start() made things stable again19:02
rafael2khere: https://github.com/maemo-leste/pinephone-modem-config/blob/master/debian/eg25.init19:02
rafael2kat least for the pp, we could use this too: https://gitlab.com/mobian1/devices/eg25-manager19:03
Wizzuphumpelstilzchen[: hm, I would expect those to appear19:27
humpelstilzchen[same Problem with the calendar it seems. When I try to delete an entry I get no dialog19:28
Wizzupok, that should be investigated19:29
Wizzupcan you open a bug report?19:29
WizzupI 'maintain' or 'ported' qalendar so that's in my court, also did some of the qt port19:29
humpelstilzchen[on maemo leste bugtracker or calendar bugtracker?19:29
Wizzupgeneral bugtracker please19:32
humpelstilzchen[k19:32
lelnxdefiant opened an issue: https://github.com/maemo-leste/bugtracker/issues/607 (Confirmation dialogs/QMessageBox do not appear)20:00
Wizzupty20:00
humpelstilzchen[Wizzup: any guess in which library to look?20:32
WizzupI think dialogs are supposed to get special window properties in qt20:34
Wizzupprobably here https://github.com/maemo-leste/qtstyleplugins/tree/master/src/plugins/styles/maemo520:35
Wizzuphm there was another one20:38
Wizzuphttps://github.com/maemo-leste/qt-platform-maemo/ maybe this needs to set some atoms20:39
Wizzupmaybe QXcbWindowFunctions::WmWindowTypes QXcbWindow::wmWindowTypes() const20:41
Wizzupin /qt-platform-maemo/src/plugins/platforms/xcb-maemo/qxcbwindow.cpp20:41
Wizzupanyway this is entirely speculative, maybe something else is up20:41
Wizzupcould also be because of this comment: // the Maemo5 WM doesn't support multiple window types on a single window20:42
humpelstilzchen[ok20:42
Wizzupit mostly depends on what actually happens with the dialog20:43
Wizzupdoes it exist, does it have a window id, or does it just never even get created? stuff like that20:43
Wizzupthe x11 forwarding test is useful20:44

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