libera/#maemo-leste/ Friday, 2024-02-16

OksanaMy Fxtec Pro1 is a brick since a problem with Sailfish OS update.00:37
OksanaI have been using Nokia 1.3 for a while. Laggy, not-Linux, and no hardware keyboard.00:38
OksanaCosmo Communicator looks attractive, but is pricey even on sale. https://store.planetcom.co.uk/products/cosmo-communicator00:38
OksanaQuestion: does anybody have experience with whether Cosmo Communicator can function as everyday phone while running Linux (such as, Maemo Leste?)?00:39
OksanaOr is it more like "Decorative Debian" that cannot access much of the hardware?00:40
inkyhello, i am not from the team of devs, i contribute sometimes00:40
inkybut i found cosmo here https://wiki.postmarketos.org/wiki/Planet_Computers_Cosmo_Communicator_(planet-cosmocom)00:40
WizzupI think some of the problems with the cosmo communicator was it's mainline support00:40
inkyand it looks like it doesn't have mainline support.00:40
inkyoh it links here https://support.planetcom.co.uk/index.php/Linux_for_Cosmo00:41
OksanaNo mainline support?.. And they sell https://store.planetcom.co.uk/products/linux-media-installation-card-for-cosmo-communicator ?00:42
OksanaWhy?.. > Please note that altough it's possible to keep using Linux v3, updating from v3 to v4 using apt is not possible. <00:43
inkyWizzup or anyone from the team will answer better. but my understanding they use android kernel. Postmarketos is possible to install to some devices via their pmbootstrap utility to which you provide kernel sources to build. it can be mainline or android sources. maemo only uses mainline.00:45
inkyand if you are able to run debian, as an extreme case you might be able to convert it to devuan, and then add some repos and install some packages from maemo repos and you'll have maemo? i don't know?00:45
OksanaAnyway, Dragonbox Pyra is probably more Linux-friendly out of the box. Don't want to waddle through another "Linux on top of Android kernel" thing where partition might be encrypted.00:50
WizzupOksana: what about a droid 4?02:02
OksanaWizzup: Not too bad, but that's 11yo device, didn't anybody release anything better since then? Is its 4G compatible with Australian Optus? Probably no RGB backlight for keyboard.03:00
OksanaAt this rate, KaiOS is tempting.03:01
Wizzupno, no rgb backlight keyboard...03:04
* Wizzup zzz03:04
inkyi am using d4 as my main mobile device since january 2023. more than a year.12:43
inkyand i must say i cannot advice doing that. (:12:44
Oksanainky: Cannot? Laggy, or what are the problems?12:45
inkyscreen is small for people used to bigger screens. even to me it is harder to read from it. and other main problem is that the best browser for it is that qt demo browser and it becomes slow very fast if you open several tabs.12:46
inkyif i need to show someone something from the web i tell them 'search for it' instead of finding myself and showing.12:47
OksanaWould /etc/hosts adblock help?12:47
inkyjust a web page may be too heavy for it. and of course you must forget videos.12:47
OksanaNokia N900 played videos just fine, I thought :-/12:48
inkyi dont think so, modern web is so complicated anyway. i have an dblock ah home but using d4 is still hard.12:49
inkyi think it can play 320x240 but waybe not. 120p certainly.12:49
inkyfor n900 i remember i was converting videos.12:49
inkyagain, you just cannot open lots of tabs or use firefox.12:50
arno11through yt-dlp, no probs to play online 360p videos12:50
inkybut i use it, i run dino on it all the time, i used pidgin on it all the time.12:50
OksanaNokia N900 had Fennec, Firefox for mobile. Of course, it's ancient now.12:51
inky> through yt-dlp, no probs to play online 360p videos12:51
inkygood! thats not what people expect though.12:51
Oksana800x480 resolution, do not try to play videos of higher resolution12:52
dsc_inky: you are using leste yeah?12:55
inkyyou can use just firefox for the desktop. i have my scripts running it in mobile touch friendly mode. but on d4 you must wait five minutes for it to start. on pinephone (not pro) you feel that it can run same firefox and open mny tbs without problems.12:55
inkyyes, leste.12:55
dsc_inky: https://github.com/maemo-leste-extras/jib12:55
dsc_probably gives better experience than qt demo browser12:55
inkyi broke the screen of my xperia in dec 31 2022 and decided since then i will use d4.12:55
inkyi think i tried it? i'll try again. ty.12:56
dsc_it does not support multiple tabs or windows... should probably make that13:01
arno11btw links2 (gui mode) is still faster than everything else on old devices, with lot of options/settings. (not for video browsing ofc)13:09
arno11it's like 'opera mini' but with far more options and compatible websites13:10
arno11*like opera mini: i mean, the user exp13:11
inkywell i think modern web should not be used. (: that's why i packaged lagrange gemini browser.13:13
inkyand i have to make it rotatable one day i guess?13:14
inkyand on my computer i have http to gemini proxy which allows me to view many pages with gemini browsec.13:14
inkyalso i like projects like https://epicyon.net/ - works with console browsers, doesnt require js at all.13:16
inkyso i try to use more of what is usable.13:17
inkyalas the activity pub software i run isn't that. it didn't exist back then. and it needs browser js. so opening it from d4 is always a problem. i need to write an app for it probably, that would be a solution.13:18
inkythat http to gemini proxy didnt compile on chimaera, i need to understand why.13:19
freemangordonWizzup: help! GVariant drives me mad :(14:51
freemangordonthis https://pastebin.com/nLCiT2C714:53
freemangordon"the GVariant format string '(sa{sv})' has a type of '(sa{sv})' but the given value has a type of 'v'"14:53
freemangordonthe 'given' value is the structure14:53
freemangordoncode is g_variant_get(value, "(sa{sv})", NULL, &sw);15:00
Wizzuptell me about it :D15:08
WizzupI need a moment to refresh15:09
Wizzupso it's a tuple of a string, and then of an array of dictionaries15:09
Wizzupand then the g_variant_get is where you get stuck?15:09
WizzupI also used the g_variant_print or whatever for debug15:10
freemangordonok, lemme try with g_variant_print15:10
WizzupI can take a deeper look in a bit, do you have a bit more code15:12
Wizzuplike what is value and what is &sw15:12
freemangordonWizzup: (controlpanel:6974): cellular-settings-DEBUG: 16:12:02.805: <('interrogation', {'VoiceCallWaiting': <'enabled'>, 'FaxCallWaiting': <'disabled'>, 'SmsCallWaiting': <'disabled'>, 'DataSyncCallWaiting': <'enabled'>, 'DataAsyncCallWaiting': <'enabled'>})>15:13
freemangordonthis is what   g_variant_print(value, TRUE) results in15:13
freemangordonthat's what I try to get as "(sa{sv})"15:14
* sicelo isn't too free right now ... but what interface are you on, and what are you looking to extract15:21
sicelonokia-n900:~$ busctl call  org.ofono /n900_2 org.ofono.SupplementaryServices I16:36
sicelonitiate s '*#43#'16:36
sicelosv "CallWaiting" (sa{sv}) "interrogation" 5 "VoiceCallWaiting" s "enabled" "FaxCallWaiting" s "disabled" "SmsCallWaiting" s "disabled" "DataSyncCallWaiting" s "disabled" "DataAsyncCallWaiting" s "disabled"16:36
freemangordonsicelo: yes, this is what I want to parse from C code16:38
freemangordonit comes as GVariant16:38
sicelofreemangordon: so if i read this correctly  and looking at your gvariant print output ... this is "sv", with the (sa{sv}) being another "v" :)16:38
freemangordonhmm... ok, lemme try it16:38
freemangordonoh, no16:39
freemangordonthe 's' part I already have, as operation_name16:39
freemangordonso it is the 'v' part I want to parse16:39
freemangordonso trying to pares the 'v' as '(sa{sv})' gives the ^^^ error16:40
siceloah ok. was mixing it with your pastebin. so operation_name is "CallWaiting", i guess?16:40
freemangordonyes16:40
sicelowhat's the NULL?16:42
freemangordonI do not need the 's' part of '(sa{sv})'16:43
freemangordon"interrogation"16:43
freemangordonok, got it17:02
sicelook great. what was missing?17:12
freemangordonI have to first upack one variant17:13
freemangordong_variant_get_variant()17:13
freemangordonand then use that variant to unpack the structure17:13
sicelosure, makes sense17:13
* sicelo is playing with ell dbus these days17:14
Wizzupfreemangordon: yeah I think that is also what I did in wpasupplicant icd module17:15
sicelofreemangordon: wow that was quick response from ofono folk :p18:19
peetah exit18:44
freemangordonsicelo: yeah19:14
sicelofreemangordon: Wizzup: may i abuse you for a moment ... https://paste.debian.net/1307567/ .. this segfaults on line 61. any obvious reason?21:45
sicelooh, damn. i see what's wrong now21:48
Wizzupgood ole rubber duck debugging21:56
siceloyeah, i've been stumped for quite a while, and just after writing here, i immediately saw my mistake21:57
sicelofreemangordon: hehe ... looks like your answer to concerns about sailfish is going to be the response to https://lore.kernel.org/ofono/7B2450B9-BC8E-45A4-8C39-10E3E2887279@holtmann.org/T/#m2c3a81e48edde86f0f724f70aedd113be318059b ...22:16
freemangordonheh22:19
Wizzuprafael2k: halfway done copying the image22:34

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