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

sicelomaybe leste should look at using CONFIG_LEDS_TRIGGER_PATTERN then use mce or something else to provide the led patterns12:36
Wizzupdoes this support phones like the n900 with dedicated hw?12:37
Wizzupor do you mean just moving some of it to the kernel for non-specialised hw?12:37
sicelothat looks like it supports nearly all leds12:38
siceloi guess others may feel doing it in hw leads to device-specific hacks12:40
Wizzupsupporting nearly all leds doesn't mean it supports the n900 specific led driver, right?12:41
Wizzupthe one that does all the patterns without hw wakeups12:41
siceloyes it doesn't.12:41
sicelobut i am not sure ... you want to keep n900's hw setup?12:42
Wizzupwe support it in mce12:42
Wizzupand it definitely saves power, no?12:43
sicelooh ok. i am not averse to the n900 interface. i think it's cool actually12:44
sicelojust thought this could help those devices which don't have such functionality, e.g. pp12:44
Wizzupright12:45
Wizzupso will it have less wakeups or something, or?12:45
sicelono idea tbh :-)12:45
WizzupI'm trying to see how it helps, other than perhaps less context switches for mce12:45
Wizzupsince we already have a generic led sys interface12:45
siceloyou tell sysfs the pattern you want  and kernel handles it by itself12:47
siceloi know d4's cpcap can d patterns in hw too, but seems the function isn't currently exposed in the driver12:51
uvos__so cpcap can do patterns in hw (well in fw android dose it in fw)13:06
uvos__the problem with the pattern trigger is it creats a lot of wakeups when used without any hw support, mces implementation wakesup alot les at the expense of being able to do alot less13:08
uvos__so this dosent really help us, if the n900's hw accel works via pattern trigger thats cool13:08
uvos__but theres no real incentive to replaceing mces code that uses the hw here13:09
Wizzupuvos: imho we could have closed that ticket, but fine to keep it open if you want :p14:26
uvos__well as you mentioned bluetooth dosent work14:44
uvos__also that bug contains plenty of usefull information for a proper solution14:44
uvos__maybe we can rename it14:44
Wizzupfine by me14:47
sicelook. so how are we planning on using the leds for notifications in leste, on devices other than N900?14:54
siceloe.g. droid 414:56
Wizzupdon't we have this working already? or?14:57
sicelono idea. never seen led doing anything useful on my d4, except steady green when charging, and steady white when powering off14:58
siceloanyway, it's not very important to me atm ... i just came across the kernel PATTERNS while looking at feedbackd source15:07
siceloWizzup: you said to ping you regarding our HSI/ISI issue. hope you'll have some spare cycles maybe weekend15:07
uvos__the leds work fine on d415:15
uvos__works with modest15:15
uvos__otherwise we just have nothing that activates any patterns15:15
uvos__same is true for all devices15:16
BlagovestPetrov[Wizzup:  https://bpa.st/QGWQ I have ignorred the warning with the flags but it warns about possible buffer overflows15:17
BlagovestPetrov[libicd-wireguard15:18
BlagovestPetrov[https://github.com/maemo-leste/libicd-wireguard/pull/115:32
WizzupBlagovestPetrov[: let me see if I can fix the code15:50
Wizzupbtw the changelog entries lacks some spaces I think15:50
BlagovestPetrov[right, empty line15:53
BlagovestPetrov[fixed15:54
BlagovestPetrov[I don't see calendar-ui-widgets in GitHub15:54
Wizzupfreemangordon: I'm almost done trying to port eds-backend-telepathy, but will need you to review it16:01
BlagovestPetrov[tinymail is also failing because of multiple declarations. I'm trying to fix it..16:02
WizzupBlagovestPetrov[: no, I cannot build calendar-ui-widgets because it all depends on eds-backend-telepathy16:03
Wizzupanything that uses abook cannot be built16:03
Wizzupwhich is most of the remaining packages16:03
BlagovestPetrov[but I don't even see it as a repository16:04
BlagovestPetrov[it may be part of another package16:04
BlagovestPetrov[it's not even in beowulf16:05
freemangordonBlagovestPetrov[: hmm? https://github.com/maemo-leste/calendar-ui-widgets16:08
BlagovestPetrov[weird16:09
freemangordonsee what apt-get source calendar-ui-widgets in beowulf will tell you :p16:09
BlagovestPetrov[I tried only with apt-cache :)16:10
* BlagovestPetrov[ uploaded an image: (130KiB) < https://libera.ems.host/_matrix/media/v3/download/matrix.petrovs.info/qjQOqLoNJCCemZjoZLsOJYYd/Screenshot_20221202_170936.png >16:10
freemangordonWizzup: ok, will try16:10
freemangordonwell, M$16:10
BlagovestPetrov[:D16:11
uvos__the search is toaly uesless16:12
freemangordonno idea why it would not be visible/searchable16:12
uvos__it dosent even find "sdl" in upstream forks16:12
freemangordonuvos__: usually it works16:12
uvos__altho we have libsdl1.2 and libSDL2 as repos16:12
uvos__freemangordon: no this has never worked16:12
uvos__it randomly dosent work for certain querys16:13
uvos__and for those querys it never has or will16:13
freemangordonok16:13
uvos__this has also been reported to gh often (at least you can find posts all over)16:14
uvos__with no improvement16:14
uvos__so yeah M$16:14
BlagovestPetrov[windows update on one of the data nodes..16:16
uvos__https://github.com/maemo-leste-upstream-forks?q=sdl&type=all&language=&sort=16:16
uvos__there for an example16:16
uvos__the same problem also exits when searching though code on gh16:16
uvos__so this causes lots of false conculstions16:16
uvos__like "this function is never used" etc16:17
uvos__its just horrible16:17
freemangordonBlagovestPetrov[: Wizzup: WTF is actually this https://github.com/maemo-leste/libicd-wireguard/blob/master/src/libicd_wireguard_config.c#L161 ?16:19
freemangordongcc is absolutely right16:19
freemangordonwhy is strncat used in first place ?16:20
freemangordonomg https://github.com/maemo-leste/libicd-wireguard/blob/master/src/libicd_wireguard_config.c#L11916:20
uvos__freemangordons head explodeing16:21
* freemangordon gets stack overflow16:21
uvos__yeah this function hat alot to gain from using g_str_* functions :P16:22
freemangordonBlagovestPetrov[: do you have an idea how to fix that properly? and if you have, do you want to?16:22
freemangordonespecially g_str_concat ;)16:22
BlagovestPetrov[I'm not sure16:22
freemangordonok, I will fix that16:23
Wizzupfreemangordon: just a sec, I made it compile, will push momentarily16:26
Wizzupfreemangordon: looks like parazyd wrote that https://github.com/maemo-leste/libicd-wireguard/commit/2f00166d4947763d384b0d039b7b73ec7ea4e45216:27
freemangordonyeah16:29
uvos__on the bright side, its probubly very fast this way compeard to using g_str_* :P16:31
uvos__way less mallocs16:31
Wizzupfreemangordon: https://github.com/maemo-leste/eds-backend-telepathy/tree/porting-wip16:31
Wizzupfreemangordon: the main thing that needs a look I think is 'status' handling when it's actually not an error16:33
Wizzupthere is no 'new variant' of E_DATA_BOOK_STATUS_SUCCESS16:33
Wizzupwhich might mean the respond functions shouldn't actually use e_client_error_create at all, and rather perhaps pass NULL ?16:33
WizzupI suppose the old e_data_book_create_error  function returned NULL if status was E_DATA_BOOK_STATUS_SUCCESS16:34
Wizzuplooks like it16:35
Wizzupe-book-backend-ldap.c does this with ldap_error_to_response16:35
freemangordonuvos__: right... until you get buffer overflow :)16:41
freemangordonWizzup: just a minute to push WG fix16:41
Wizzupfreemangordon: I think what I said is above is correct and the status handling needs some additional ctx16:43
freemangordonugh https://github.com/maemo-leste/libicd-wireguard/blob/master/src/libicd_wireguard_config.c#L20816:44
freemangordonI think this whole code needs review16:44
Wizzupok, well, I need to go and arrange some dinner for myself, so I'll be back in an hour or more16:44
WizzupI can rework the status handling as above, but please look if you see other problems16:45
Wizzupbbl16:45
freemangordonok16:45
freemangordonBlagovestPetrov[: could you pull https://github.com/maemo-leste/libicd-wireguard master and try to compile it? If it is ok, please, pull in/release for beowulf-devel as well16:50
Wizzup(he doesn't have privs to release or push branches atm)16:51
Wizzup(I've been doing it)16:51
freemangordonah, ok16:54
freemangordonWizzup: E_CLIENT_ERROR_INVALID_ARG = 016:54
freemangordonso setting status to 0 is not ok, IIUC16:54
BlagovestPetrov[it's ok in master16:54
BlagovestPetrov[tested..16:54
freemangordongreat16:55
freemangordonWizzup: this https://github.com/maemo-leste/eds-backend-telepathy/commit/842e6af2b06ae8c55fdfeeffcd5f4bdb09d069c9#diff-e9311ef775aa11f0d335f34653a990095eba4bbf0ef0e7434e0acdd0648939ecR257616:55
freemangordonso yeah, it seems e_data_book_respond_remove_contacts() (and others) shall be called with NULL error in case of success17:00
Wizzupsicelo: btw yes I should have time tonight17:05
Wizzupfreemangordon: ok, will rewrite the logic then17:05
Guest224Is hildon-connectivity-mobile inside in any _stable_ SD-card images yet?17:14
uvos__no17:17
siceloGuest224: what device are you using17:18
siceloWizzup: great. looking forward17:18
Guest224pinephone17:18
Guest224I also have N900..and might soon Droid4.17:18
sicelothe full package :-)17:20
Guest224but now running PostmarketOS in pinephone, cause it works on the road, I hate PMOS, but it has 4G and when Leste has working connection in _stable_ then I change permanently to it.17:24
siceloi don't think you should *hate* pmOS ... it's fine to not like it though17:26
sicelowhy do you feel you need 'stable' specifically?17:26
nerdcorei quite like pmOS, but it's been mashing my SMS messages together, and mislabeling them :(17:27
nerdcoregonna try ML instead I think17:27
nerdcoreI see that there are ML instructions on building a custom image, but they do not explain how to replace the default user/pass... Is that easily done?17:27
Guest224sicelo: ok..hate might too strong word...but gui is horrible...when it is stable then it is "stable enough" for me, for beta testing :)17:29
sicelonerdcore: it's not pmOS mashing your messages ... most probably modem-manager. actually, to a large extent, pmOS doesn't make software17:29
siceloGuest224: you may want to consider devel, if you reall want to help with testing ;-)17:30
Wizzupchimaera will have modem stuff by default17:31
siceloGuest224: pmOS doesn't have a gui ... which  gui do you find horrible? phosh, plasma mobile, or sxmo?17:32
uvos__hell for a while it had hildon-desktop17:32
nerdcoreI like phosh because elsewhere I run GNOME, so it feels very comfortable :)17:32
nerdcoresicelo: appreciate the input. It's a PinePhone (not Pro) device, so do you expect I may have similar issues in ML?17:33
nerdcoreI tried a couple different firmwares, to varying results.17:33
Guest224sicelo: thats true...I have tested phosh and plasma...there was some reason I didn't test sxmo (I dont remeber why..)17:33
nerdcorei3/sxmo has a steep learning curve ;)17:33
sicelonerdcore:  i don't know. ML uses ofono. maybe the message handling is different there ... not really sure. as for which distro to choose  up to you. we're in ML chat  so choose ML :-p17:34
nerdcoreyeah I've only tried 2-3 OS on the device so far. I know buZz from elsewhere so ML seems like a good choice ;)17:35
sicelogreat then17:35
nerdcoreits so easy to drop a new OS onto microSD, and leave the internal storage untouched. Great for testing new OSes17:35
nerdcorewill probably try the custom image builder too, for max authority heh17:36
siceloof course ML's DE is the lightest mobile DE, so I guess it really is the better choice. i read pinephone cpu isn't as beefy as people would like17:36
nerdcoreyeah, defoz chunky running phosh17:36
nerdcoreI mean, when I click the phone icon in the Messages application to call that person, it takes around 60s to launch the Phone application and then dial the number :(17:37
nerdcorebut it works ... eventually lol17:37
Wizzupsicelo: no ncpu is ever as beefy as people like17:37
buZzsicelo: i think pp nonpro has quite a slow gpu specifically17:37
buZzthe panfrost/lima stuff helps a lot though17:38
Wizzupbottom line is that low footprint matters17:38
Guest224nerdcore: I tested ML shortly in september and it is fast in Pinephone...only reason why I moved to PmOS was that mobile-connectivity wasn't ready to dayly use.17:38
nerdcoredoes ML use glibc? pmOS is using MUSL C and giving me some specific issues as well17:38
Wizzupyespglibc17:38
Wizzupit,s just debian/devun17:39
nerdcoreGuest224: "mobile connectivity" such as sharing your 4G with a laptop?17:39
buZzGuest224: i've been daily'ing ML on d4 with data since ~april17:39
Wizzupwe're porting to bullseye atm17:39
nerdcoreexcellent. I have some time in the coming week, so keen to try ML. I'll stick around. :)17:39
Guest224nerdcore: plain 4G connection.17:39
buZzyay :)17:39
freemangordonstill, mobile connectivity is WIP17:39
nerdcorehmm, I do use the mobile data. I turned my home wifi Off last year ;)17:40
buZzthe whole thing is WIP :P17:40
freemangordonconnectivity as such works17:40
nerdcoredoes /usr/bin/ssh work?17:40
freemangordonbut, UI for changing PIN for example does not17:40
freemangordonor, manualy selecting operator17:40
freemangordonetc17:40
nerdcorebecause I can just run lynx on a VPS haha17:41
freemangordonchromium works pretty well17:41
buZzyeah, fast too17:41
freemangordonbut, you have to connect a keyboard17:41
buZzand nice touch support17:41
freemangordonotherwise it is very hard to enter the url ;)17:41
nerdcoreIs it possible to import a CSV or VCF file into the contacts application in ML? That would save me a lot of setup time17:42
buZzmaybe get a d4 to remote control the pp?17:42
buZzhmm17:42
Guest224nercore: I can recomend Pinephone keyboard for Pinephone.17:42
freemangordonnerdcore: vcf is ok17:42
* buZz suddenly sees a cyberdeck made of cellphones running leste17:42
nerdcoresometimes I use my PP via its serial UART in the 3.5mm headphone jack. I connect it to a rpi and run minicom17:42
freemangordonactually it has UI to import a directory containing vcfs17:42
freemangordonso you import all contacts at once17:43
nerdcoreexcellent. Thanks freemangordon that will save me a lot of time. I had to type all my contacts by hand into pmOS :(17:43
buZzthe  pp i borrowed had to go back :(17:43
nerdcorei have a USB-C hub here with all sorts of connections like RJ-45 ethernet, and HDMI. Makes it possible to hook my PP up like a PC, but the battery dies in < 2h17:44
buZzstill doubting any new device, d4 is great but limited, pp same, pocophone f1 looks cool in support but no hw keyb17:44
buZzspecs of poco look good too17:44
nerdcorei have a small BT keyboard here, but I find it equally as frustrating as OSK17:44
Guest224freemangordon: Is that vcfs importer tool on default SD-image, it is something that should?17:44
sicelobuZz:  yes the sdm845 kernel support is maturing fast17:44
freemangordonit is part of the addressbook17:45
freemangordonnot a separate tool17:45
buZzsicelo: do you think that device will get some futureproofing through it?17:45
sicelomeaning?17:45
buZzwill-it-mainline17:45
buZzhehe17:45
buZzlike how n900 can nowadays boot straigthup debian installers17:46
Guest224freemangordon: that is good!17:46
sicelomainline? I was talking about sdm845 mainline :-)17:46
buZzhehe ok17:46
buZzi have good hopes, but really needs some keyb, touchscreen input makes me feel demented, lol.17:46
Wizzupnerdcore: you can also use syncevolution for contacts17:46
buZzML + selfhosted radicale = syncable agenda and contacts to my desktop and laptops17:47
buZz'cloudfree'17:47
Guest224Cloudfree sounds always good.17:48
Guest224 ad text:"With Maemo Leste you can see the sun, because you don't have to stick in clouds."17:49
buZzGuest224: we need more memes17:49
buZz'de-mist your phonelife'17:50
Guest224or just "cloudfree phonelife"17:51
buZz'get ready to uncloud, maemo leste is coming'17:51
buZzhaha yeah and then we can post pictures of ppl with stuff like 'my cellphone is a minecraft server' and some blurb17:52
Guest224"You can use Maemo Leste in offline, when you want."17:58
Wizzupfreemangordon: please re-check porting-wip17:59
Wizzupfreemangordon: merged it to master18:41
freemangordonWizzup: sorry, was having dinner18:45
Wizzupnp18:46
Wizzupthe only remaining question was about E_DATA_BOOK_STATUS_BOOK_REMOVED18:46
WizzupI quote:18:46
Wizzup    I wasn't sure how to map E_DATA_BOOK_STATUS_BOOK_REMOVED - I went for18:46
Wizzup    E_BOOK_CLIENT_ERROR_NO_SUCH_BOOK for now18:46
* freemangordon checks if there is more appropriate status18:47
tmlinduvos: got output on xt910 lcd with some copy paste android code :)18:48
tmlindso the backlight controller is integrated into the panel18:49
tmlindand the panel init sequence is a bit crazy set of mip dcs writes..18:50
Wizzuptmlind: sweet :)18:50
_uvos_tmlind: sweet :)18:51
_uvos_maybe this is true on d3 aswell18:51
Wizzup_uvos_: echo18:51
_uvos_i wasent able to find who dose the backlight there18:51
Guest224nerdcore: btw..if you are frustrating battery life with USB-C devices then you should think Pinephone Keyboard it gives extra battery life (it has 6000mAh battery inside)..but you cannot charge when useing USC-C devices or at least this page saying it: https://talk.maemo.org/showpost.php?p=1574678&postcount=2518:51
tmlindheh now need to sort of understand what is going on.. it's the panel-mapphone.c dsi_mipi_430_cm_540_960_amoled_panel_enable18:51
_uvos_schould just look in android kernel18:51
WizzupGuest224: yeah I found out the hard way and broke mine18:52
nerdcorety18:53
Guest224Wizzup: :(  ..it should have big warning manual.18:53
freemangordonWizzup: hmm, is mixing EClientError with EBookClientError ok?18:54
tmlind_uvos_: well bunch of the mipi commands are now implemented in a generic way, see "MIPI DCS commands" in include/video/mipi_display.h18:54
tmlind_uvos_: maybe check the panel id for d3?18:55
tmlindxt910 has panel_id=0x90006, so you can grep for 0x00090006 in android panel-mapphone.c18:56
freemangordonWizzup: like, e_client_error_create() wants EClientError, but you do https://github.com/maemo-leste/eds-backend-telepathy/blob/master/src/e-book-backend-tp.c#L314118:57
Wizzupfreemangordon: good question, probably not...18:57
tmlindi added motorola-mapphone-xt875-xt984-common.dtsi and moved the lcd regulator and backlight there18:57
freemangordonWizzup: which repo is EDS?19:00
freemangordonupstrem-forks?19:00
Wizzupyes19:00
Wizzupevolution-data-server19:00
freemangordonnot visible :D19:01
freemangordonumm19:01
freemangordon40419:01
Wizzuphttps://github.com/maemo-leste/evolution-data-server/19:01
Wizzupmaybe not upstream-forks then19:01
freemangordonwell, this is not 'upstream-forks' ;)19:01
Wizzupyup, I thought it was there19:02
freemangordonnp19:02
Wizzupyou can move it and I can update the jenkins job19:02
freemangordonnot important19:04
freemangordonbut, see what ldap does19:04
freemangordonhttps://github.com/maemo-leste/evolution-data-server/blob/e298c82798843470ae92cbedac236268e574518e/src/addressbook/backends/ldap/e-book-backend-ldap.c#L113019:04
Wizzupyeah, I saw that basically after I ported the code19:04
freemangordonok :)19:04
freemangordonif you want, I can fix it, but tomorrow19:05
Wizzupok, I'll see if I feel like it today19:05
Wizzuprtcom-eventlogger-ui also needs changes :(19:05
Wizzupgcc detects that one case of the switch was not covered19:06
freemangordonI really like this gcc10, not a single false positive so far19:07
Wizzupyes, it's good in that sense19:08
Wizzupannoying otherwise :P19:08
freemangordonwell, yeah, but at least something we get help from upstream :)19:09
uvostmlind: xt984?19:10
uvosthis is typo in irc only i hope :P19:10
Wizzupfreemangordon: yup19:11
uvostmlind: yeah i dident look at the android source at all for d3 i just checked if changeing the cpcap backlight led channel changes the backlight (this was not used on any device, i wonder why) on d3 or if any of the lm* channels do and dident find it19:13
uvosill get back to it at some point19:13
tmlinduvos: ok, yeah sorry xt894 typo :)19:16
Wizzupso notify_notification_attach_to_widget seems to be done from libnotify19:35
Wizzupcommit 27e05d0f9562a26163493d6cc1d5924b9a4ebf6819:36
WizzupAuthor: William Jon McCann <jmccann@redhat.com>19:36
WizzupDate:   Fri Oct 8 22:47:06 2010 -040019:36
WizzupRemove the ability to attach notifications to widgets or positions19:36
Wizzupwell, I'll continue this later19:37
WizzupIt looks like python2 stuff will be hard to keep going, there's a lot more to import now, cython, python-notify, etc19:41
Wizzupsicelo: ok let me get the trace, then I really have to go19:51
siceloawesome. thanks20:07
Wizzupsicelo: hrm, it's not showing kernel console atm :(20:08
Wizzupsicelo: when does it reset for you20:08
sicelojust before h-d shows up20:10
sicelowhich i assume is when modem is brought online20:10
siceloanyway, i did remove ofono from default runlevel, and then h-d does come up. so it's definitely modem related. did yours boot into h-d right away?20:12
Wizzupno, it was slow and serial was on tty020:14
siceloah.20:14
WizzupI need to redo it with serial on ttyS*20:14
Wizzupbut...tomorrow morning :)20:14
WizzupI'mm keeping people waiting20:14
sicelodoesn't the kernel already have ttyS2? which kernel did you try20:15
siceloat /proc/cmdline20:15
siceloroot=/dev/mmcblk0p2 rootwait console=ttyO2,11520020:15
siceloroot@devuan-n900:~# uname -r20:15
sicelo6.1.0-rc620:15
sicelothat's the one from repos20:15
sicelobut sure, tomorrow20:15
WizzupI think my uboot overrides it20:16
sicelook. tomorrow then20:17
Wizzupyup. :)20:17
siceloyou don't even need to recompile kernel for this .. uboot has `setenv bootargs ....`20:17
WizzupI forgot how long it took for the n900 to upgrade :P20:17
Wizzupsicelo: yeah but I'm already outside now20:18
sicelouvos: please restore CONFIG_RFKILL in kernel. this broke wifi on N90020:21
uvossicelo: not sure what you mean by "restore"21:19
uvosneither our 6.1 nor 5.18 set this21:20
uvossee21:20
sicelo"restore" means current kernel does not have the config. it was there before.21:20
uvoshttps://github.com/maemo-leste/droid4-linux/blob/maemo-6.1/arch/arm/configs/omap2plus_defconfig21:20
uvoshttps://github.com/maemo-leste/droid4-linux/blob/maemo-5.18.y/arch/arm/configs/omap2plus_defconfig21:20
uvosthis dosent apear true21:20
uvosif wifi broke this is something new21:20
sicelofine21:21
uvosso dose setting CONFIG_RFKILL to something help in 6.1?21:21
uvosWizzup: freemangordon: https://github.com/maemo-leste/osso-xterm/pull/423:17

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