libera/#maemo-leste/ Wednesday, 2021-06-30

Wizzupmaybe I can remove the gconf entries as well00:00
Wizzupgoing to sleep first :)00:00
stanon one device tonight, when usb is plugged-in and battery is full, i get a reboot loop shortly after kexec exits.  if i pull the usb power, it boots fine01:19
siceloI can hotswap sim on d4 with android06:46
lelparazyd created a repository: https://github.com/maemo-leste/libicd-provider-tor10:29
Wizzupfreemangordon: do you think it makes sense to allow specifying custom network_modules lists on a per-IAP basis11:28
Wizzupcurrently this is the code in icd_iap_connect:11:31
Wizzup  modules = (GSList *)g_hash_table_lookup(icd_ctx->type_to_module,11:31
Wizzup                                          iap->connection.network_type);11:31
Wizzup  iap->network_modules = modules;11:31
Wizzupwe could perhaps allow customising it or something11:31
freemangordonWizzup: how is that helpful? do you think about srv modules perhaps?12:10
Wizzupno,sec12:11
Wizzup(need 10 mins or so)12:13
meldrianSo, it 'seems' that besides the sim slot the sd-slot @ my n900 is broken too. Any chance installing maemo leste via usb?12:30
Wizzupmeldrian: hm...12:30
Wizzupyes, but it's non trivial12:31
Wizzupyou can load u-boot via 0xFFFF12:31
Wizzupand then perhaps load some image from emmc that you then use for flashing emmc12:31
Wizzupfreemangordon: so I am not sure if srv modules can be chained, and some modules we might want to run before setting the IP on the interface12:32
Wizzupfreemangordon: srv_provider is always after IP is set12:32
uvos__meldrian: also clean the contacts maybe, from memory the n900 sdcard slot is a bit wierd in that its not self cleaning, beacuse the contacts are simply pressed down instead of sliding across eatch other12:33
freemangordonWizzup: do you have anything particular in mind?12:47
freemangordonIOW: what is the usecase?12:47
Wizzupfreemangordon: one example is a tails like tor setup where you don't want any packages beyond say icmp and dhcp to leave the device, and everything else goes through tor12:47
Wizzups/packages/packets/12:48
Wizzupthat requires setting up iptables rules before ip is set to up12:48
Wizzupwe could just always load the module and make it mostly a no-op, of course12:48
freemangordonand what is the issue if all IAPs share common list of modules?12:49
freemangordonyeah, as you said12:49
Wizzupno issue, we can just do that12:50
freemangordonit makes no difference if it will be loaded once or many times, actually memory wise it should be cheaper to load every module for every iap - no additional lists.12:50
freemangordonI would say - keep it as it is unless we see we cannot implement something without this functionality12:51
freemangordonI guess it will require UI as well12:51
Wizzupyes, but the same is true for providers12:52
WizzupI am still trying to get a grasp of the some of the provider specific func, but we're getting there12:52
freemangordonWizzup: agree, I guess we shall discuss how is it supposed to work UI wise12:53
WizzupI did some exploration on the existing parts in connui, but there is more to do12:57
Wizzuphttps://raw.githubusercontent.com/maemo-leste/libicd-provider-dummy/master/README.rst12:57
freemangordonright, there is a place for improvement12:59
freemangordonand not everything is clear12:59
freemangordonIt is still not clear to me how do you select SP for a particular IAP13:00
Wizzupfreemangordon: it's listed as a separate network in the scan13:03
Wizzupmy current dummy service provider 'matches' with all wlan and dummy aps13:03
Wizzupso you'll see the twice the amount of networks13:03
Wizzupof course, we probably don't want it this way13:03
freemangordonmhm13:03
Wizzupthe identify function could check if the iap is known and has the service enabled in gconf, for example13:03
Wizzupin any case, progress13:08
Wizzupbrb13:08
Danct12sorry for being offtopic, but i just compiled kernel 5.11 for my n900, it seems like it does boot as the kb backlight turns on but display doesn't work and the bl is on13:09
uvossicelo: ^^^13:09
uvosi think some issue existed with 5.1113:09
uvosmaybe try 5.1313:10
uvosalso keeping the kernel working on n900 is sufficantly on topic13:10
stanhas anyone scripted something to quickly reconnect wlan when connection is lost?13:25
Wizzupno, because that's something that if considered a bug would be better to resolve in icd2, e.g. a lower reconnect timer13:27
Wizzupthat said, python-conic is in the repo, so if you find python easy, it sohuld be trivial to script13:28
Wizzuphttps://github.com/maemo-leste/python-conic13:28
stanthanks!13:28
uvosstan: btw the buttons below the screen are driven by i driver i wrote and are conifgured in dts13:28
freemangordonstan: is auto-connect enabled?13:29
uvosby default they are simply f7 f8 f9 and xf86search13:29
uvosfreemangordon: its somewhat broken, we know allready13:29
freemangordonuvos: hmm, I think it should be fixed, no?13:29
uvosno13:29
stani lose my ssh session, on one device.  other device has no problems with wlan.13:29
uvosits goten worse freemangordon13:30
uvosfor some reason scanns that are triggerd by icd and completed by wpasupplicant13:30
uvosnever make it to icd/connui13:30
uvosWizzup has details13:30
freemangordonah, Wizzup has to fix the plugin13:30
Wizzupfreemangordon: uvos: if you go out of range of a network, you will wait for 5 minute timer13:30
Wizzupthis is unrelated to the plugin13:30
Wizzupthis is just how it works on fremantle as well13:30
freemangordonyes13:30
uvosautoconnect also dosent work for me13:30
Wizzupit works for me, but this is unrelated I think13:31
uvosso even 5min wat dosent save me13:31
uvosok13:31
freemangordonuvos: what is your timer setting?13:31
uvos*wait13:31
uvosfreemangordon: just defaults13:31
uvosand autoconnect13:31
freemangordonautoconnect how often?13:31
uvoswhatever is the default i dont have the device atm13:31
freemangordonstan: could you please check and report your auto-connect settings?13:32
Wizzuphis request was clearly worded: reconnect after connection was dropped13:32
freemangordonfrom the status menu13:32
Wizzupwhat13:33
freemangordonis the answer13:33
freemangordonah, wait13:33
freemangordonwe talk ssh :)13:33
Wizzupthis is just about for example being out of reach of the ap13:33
Wizzupor the ap restarting13:33
uvosoh btw13:33
uvosfor some reason if a have a ssh session to a leste device running13:33
uvosand the connection drops13:34
uvosssh just hangs13:34
stanthe search interval is 5 minutes freemangordon .  can you be more specific what you want13:34
Wizzupyou can configure keepalive and such in ssh13:34
uvoswhile if the same thing happens with my laptop the session gets dissconected fast13:34
uvoswhat setting is that13:34
uvosWizzup: thanks13:34
stanconnect automatically: wifi13:34
freemangordonstan: sorry, I misunderstood your issue13:35
stanmosh can be helpful as alternative to ssh if connection is unreliable13:37
Danct12uvos,  i tried 5.13 and it has more interesting result14:10
Danct12it stucks at "starting kernel" and the phone shuts off a few seconds later14:11
WizzupWhat config are you using?14:12
Wizzupif watchdog is a module, it likely won't work well a tall14:12
Wizzupiirc someone tried this last week as well, might be worth searching the logs14:12
Wizzupparazyd: btw there are also service_attributes, but we don't use that atm14:17
Wizzupparazyd: also iap_scan_default_sort_func looks at preferred_type and preferred_id for service providers14:19
Wizzupparazyd: finally, it looks like a provider can also have different service-ids, I am not sure what for, but they have their own gconf paths14:23
Wizzupuvos: when you find a moment, please file a brief bug for the pdf crash that you're seeing14:24
Danct12Wizzup, omap_watchdog and twl4030_watchdog is set to y14:25
WizzupDanct12: ok, then you have another problem I think :)14:27
Wizzupdid you grep logs for someone who tried it more recently?14:27
Danct12i think i'm the only one who tried it on 5.1314:27
Danct12probably i'll go back to 5.11 and use config_fb_omap instead14:28
Danct12i have seen an email on the mailing list that their n900 doesnt show anything but i checked and the fix was applied14:28
Danct12no dice14:28
Wizzupok, building kernel is tricky and often (at least iny my case) pebcak, but ymmv, and it's good to stay on top14:29
Wizzupstill, I think the person who tried this the other week was doing 5.1314:29
Wizzupsicelo might remember14:29
Danct12then let's blame him >:)14:29
Wizzupblame? :P14:30
Wizzupfreemangordon: wonder what this does, looks like that key being set results in ... something being added, but the key value itself doesn't seem to matter? https://github.com/maemo-leste/connui-common/blob/master/connui/iap-scan.c#L122714:31
Wizzupfreemangordon: I'm making notes, so no need to jump in now, jfyi14:31
Danct12blame because it works fine but doesnt work for others14:32
WizzupDanct12: what defconfig did you use again?14:38
Danct12https://paste.ubuntu.com/p/H8DwC2MfMZ/14:38
Danct12this14:38
Wizzupis that a standard defconfig?14:39
Danct12i actually started from the linux-armv7 defconfig from arch linux arm, above is all changes that i done14:39
Wizzuphow about omap2plus_defconfig ?14:39
Wizzupstan: you could try changing this:14:53
Wizzupgconftool -R /system/osso/connectivity | grep search search_interval = 30014:53
Wizzupso /system/osso/connectivity/search_interval14:53
Wizzupnot sure if it will be honoured14:54
Wizzupgconftool -t string -s /system/osso/connectivity/srv_provider/DUMMY/custom_ui/dummy-provider/type_icon_name gvim15:18
Wizzupthis works :p15:18
Wizzuphttps://wizzup.org/provider-icon.png15:23
Wizzuphttps://wizzup.org/provider-icon-2.png15:24
stangconftool -t int -s /system/osso/connectivity 1015:25
stangconftool -R /system/osso/connectivity  |grep search // search_interval = 30015:25
Wizzupyou need to set the search_interval key.15:25
Wizzupnot the connectivity _directory_15:25
stangconftool -t int -s /system/osso/connectivity/search_interval 1015:26
stangconftool -R /system/osso/connectivity  |grep search15:26
stan search_interval = 1015:26
stan  search_interval = 30015:26
stanthe key has a preceding space perhaps?15:27
stannot pursuing this.  using a closer AP15:38
stanthanks15:38
Danct12Wizzup, screw this i'm going to start again from omap2plus15:39
WizzupDanct12: check, try that but make sure watchdog and some other things are not a module15:39
uvosinteresting volume slider you have there15:47
uvosWizzup: any chance of just making it change pulse master volume as a temporary hack15:47
uvosWizzup: ill do a bug later15:49
uvos(pdf)15:49
Wizzupuvos: 'it' ?15:57
Wizzupthe volume applet?15:58
Wizzupuvos: oh I see15:58
Wizzupuvos: yeah it's https://github.com/maemo-leste/maemo-statusmenu-volume15:58
WizzupI could try to do what you suggest15:58
Wizzupas you can see it already deals with in call lvolume as well15:59
Wizzupjust needs the pa setup and modules15:59
bencohneat :)16:06
bencohI didn't think it would be so "complex" though16:10
Wizzupthis is a clone of the fremantle one16:11
bencohRE-ed?16:11
Wizzupfor compatibility reasons16:12
Wizzupinteroperability*16:12
freemangordonbencoh: yes, REed16:18
Wizzupfreemangordon: iap_settings_get_name has double free16:19
Wizzuphttps://github.com/maemo-leste/connui-common/blob/master/connui/iap-settings.c#L34816:19
Wizzuphttps://github.com/maemo-leste/connui-common/blob/master/connui/iap-settings.c#L35516:19
Wizzupif s fails to be created at least16:19
Wizzupparazyd: https://wizzup.org/provider-icon-3.png16:22
Wizzupincluding italic markup :p16:22
uvosWizzup: btw did you ever kick the icd pluginns?16:23
Wizzupuvos: no, not yet, freemangordon is back now, so he might be able to help16:23
Wizzupfreemangordon: this is not a theoretical double free, I hit it16:25
Wizzup(of course I was experimenting with services, but still)16:25
Wizzups/services/providers/16:25
bencohWizzup: wait, wth is that "vim" icon doing there?16:25
bencohis it a unicode emoji?16:25
Wizzupbencoh: no, this is me testing custom service icons16:27
Wizzupservice providers*16:27
Wizzupyou can imagine it could be a tor icon16:27
bencohneat16:27
bencohright, tor ...16:27
WizzupI had tor installed but it did not ship with an icon16:28
bencohI have to admit I like where this whole project is going :)16:28
Wizzupme too, I just hope we get where we want to be within a reasonable amount of time :-D16:28
bencohwait, do we have a system-wide torrify-like?16:28
Wizzupbencoh: it's been worked on, it's not there yet16:28
bencohis it "just" setting a socks proxy for everything that supports it? or something iptables-enforced?16:29
WizzupI think the thought is to have a way to control the tor service as optional useful thing, but also to have a iptables enforced mode, depending on what the user picks16:29
Wizzupparazyd has a better sense of it currently16:29
Wizzuphe's working on it as part of https://dapsi.ngi.eu/hall-of-fame/maemo-leste/16:30
Wizzuphttps://maemo-leste.github.io/funding-from-ngi-eu.html16:30
bencoh<316:31
Wizzup:)16:32
freemangordonWizzup: yeah, double free16:34
freemangordonyou want me to fix it?16:34
Wizzupif you can, please16:35
WizzupI can also do it, but I need a break from work and hobby soon16:35
freemangordonsure. is it urgent?16:35
Wizzupnot really, just don't forget :p16:35
freemangordonok16:35
freemangordonI won;t16:35
WizzupI've worked around it but actually making dgettext succeed16:35
Wizzups/but/by/16:35
freemangordonI hate double-frees just slightly less then memleaks :)16:36
bencoh:]16:36
bencohstill hate memleaks more though :)16:37
bencohWizzup: I tried building vncviewer (from maemo extras) and it segfaults when trying to use it :(16:39
bencoh(to be fair it asserts, actually) in case anyone is interested: http://pastebin.notk.org/pastebin.php?show=f6354501716:44
freemangordonbencoh: that's why 'slightly less than' ;)16:45
bencoh:)16:45
Wizzupbencoh: looks like this actually expects a 16bit X16:47
WizzupI'd have to open the code to see why16:48
Wizzup(going for a swim now first :-))16:48
bencoh(enjoy!)16:48
standid you make sailfish port for droid4 bencoh?16:54
stansailfish has a nice qt irc client16:55
bencohI only remotely had a quick look at sailfish years ago, so ... nope16:56
bencohit might run on maemo, assuming it's qt5-based (it most probably is)16:57
bencohexcept for the silicate qml components ... iirc they make heavy use of those16:57
stanirssi works well with droid4 keyboard, so ok17:09
bencoh:)17:21
stanthank you for the onscreen buttons uvos.  i was hoping they could be used to send 'Esc' to SDL.  Right now that's a thorny problem, getting our mapped keys to sdl1.2 apps (they are really not designed for translated keys)17:22
bencohI wonder how hexchat would perform17:22
stanOn the other hand, for good playability i am finding most sdl games really need work to be playable anyway, so it's not a problem to change the input from sym->sym to sym->unicode, and then the Esc works17:23
stani am currently looking how to patch the n900 sdl hildon animation actor to work in 32bpp mode17:26
stanpowered usb hub is quite nice on droid4 also.  can feed droid4 with power, hook up storage, keyboard, mouse18:02
uvosstan: which hub works for you18:39
uvosstan: i have one that dosent work on mapphones for some reason (no android either)18:40
uvosworks elsewhere18:40
uvosthe funding thing is nice but im a bit worryed it could distract from the "basic functionality" stuff18:43
uvosbut no matter18:43
stani don't know uvos, i can get a picture of the only IC on the board18:44
uvossure also lsof -v might help in this case18:44
stanhttps://www.ebay.de/itm/173307495965?hash=item2859ee861d:g:rwMAAOSw1fJa8agr18:44
uvoser lsusb -v18:45
stanthat one by appearance and price18:45
uvosok18:45
stanBus 001 Device 020: ID 05e3:0608 Genesys Logic, Inc. Hub18:46
stani get both power injection and peripherals in the '3' position uvos18:48
bencohuvos: well, telepathy is apparently part of the funding plan, so ... I'd say it's pretty "basic functionality stuff"18:57
bencohas in, assuming we eventually want a working phone/communication handheld18:57
bencohAm I the only one with otg / usbnet issues on droid4?18:58
uvosbencoh: no i have otg issues18:59
bencohah18:59
uvosbencoh: so some devices work18:59
uvosand others dont18:59
bencohhere it shows up as connected on host, and disappears after a second or so18:59
uvosthat might be power18:59
uvoscheck dmesg18:59
bencohpower?18:59
uvosd4 can provide like 200mAh i think18:59
uvosif the device uses or negotiates more it gets cut off19:00
uvoslots of devices just negotatie the full 500mA because they are stupid19:00
bencohoh mybad, I actually meant: when using droid4 as a usbnet device, that was silly of me19:00
uvosNote: mA not mAh above19:00
uvosoh19:00
uvosyou said otg19:00
bencoh(when connecting it to a computer)19:00
bencohyeah I know, my bad :)19:00
uvosusbnet no idea i dont use that19:00
stancheapo fast ethernet works too: asix 1-1.3:1.0 eth0: register 'asix' at usb-musb-hdrc.2.auto-1.3, ASIX AX88772 USB 2.0 Ethernet, 00:01:0a:0a:c4:719:26
Wizzupuvos: yeah, it should not distract too much from basic stuff, I try to watch for that19:34
standid fxtec send you a pro1 Wizzup ?19:47
stani wonder if them getting linux on that snapdragon means leste could run on some other, prhaps cheaper qualcomm phones19:48
stanon the othr hand perhaps we should take 'qual' as a warning19:49
parazydhttps://github.com/SoMainline/linux/branches19:52
parazydThis is for mainline on the fxtec19:52
parazydafaik19:52
uvosalso https://wiki.postmarketos.org/wiki/Qualcomm_Snapdragon_835_(MSM8998)19:52
uvosits early stages19:52
uvosbut qualcomm dosent mean bad mainline support19:53
Wizzupstan: yes I have one19:53
uvosMSM8916 has excellent support19:53
uvoson par with omap4 really19:53
parazydoh cool I have a dumpling too19:53
uvosbetter even because foss graphics19:53
parazydDidn't know it's also MSM899819:54
uvoshttps://wiki.postmarketos.org/wiki/Qualcomm_Snapdragon_410/412_(MSM8916)19:54
Wizzupparazyd: dumpling?19:56
uvosOnePlus 519:56
uvoseither that or parazyd is hungry19:56
parazydlol19:56
parazydYeah, the 5T19:56
parazydAbout to have dinner though :D19:57
uvosguten apetit20:07
parazydThanks :)20:09
Wizzupparazyd: chevapi?20:13
parazydNo such thing in Cataluña :p20:13
parazyd(Wouldn't object though)20:14
Wizzupah right20:14
stanWizzup: does fxtec have opengl or gl-es for pro1 under linux?20:34
stani think the best homebrew portable right now would be build with khadas vim320:35
stan5-20v DC-in, open source drivers, decent cortex a72/73 performance20:35
Wizzuplast time I checked mainline did not have display yet20:35
stanty20:36
Wizzupmight have changed20:36
stanwould be fun to someday have OS on emmc and swap cards with just data21:50
stani understand the sense in booting os from sdcard now though21:51
stanit's great to backup 'known good working state' with21:51
bencohstan: all of those sound good, as long as you're fine with mixed modem/cpu22:10
bencohotherwise, you're stuck with n900/droid4/pyra22:10
bencoh(and pinephone/librem, mybad)22:10
stanwhat is mybad?22:12
bencoh("my bad" for forgetting about pinephone and librem)22:12
stanit would be a fun phone name :)22:13
bencoh:]22:13
stani can get a green light hooking up usb power to the board with attached screen, but without bottom of case22:14
stanit won't start though22:14
stantightvncserver runs fine on droid423:13
uvosstan: please do not veer far off topic; mapphones can boot leste from emmc just copy leste to some emmc partition and change boot.cfg, cpcap wont release the cpu from resett unless it has a battery, mapphones can boot with just the bare mainboard and a battery but takes a while because mbm waits a while for the display to work.23:13
stanthanks!23:14
uvosand then times out and boots anyhow if there is no display23:14
stanboot.cfg is in /boot/boot on sdcard.  does kexec look for boot.cfg on emmc as well ?23:15
uvoskexecboot looks for boot.cfg on every partiton it can mount23:15
uvosso yes23:15
stanthat's great23:15
uvosplease read the documentation23:16
stanif booted from emmc, can sd cards be unmounted/removed/remounted while system is running?23:16
uvoslike on https://github.com/tmlind/droid4-kexecboot instead of asking so manny questions23:16
stanok23:16
uvosyes ofc there is nothing special about the sdcard if its not your root23:16

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