libera/#maemo-leste/ Tuesday, 2022-09-20

Wizzupbtw, we passed the first round for nlnet funding, but there is another round, if we pass that, the organisation will get more funding00:58
buZzwow, this stardict has a LOT of dicts available O_o04:19
buZzWizzup: sweet! :)04:19
buZzstardict-Britannica_Pocket_Encyclopedia-2.4.2.tar.bz2   stardict-Oxford_Dictionary_of_Quotations-2.4.2.tar.bz2   stardict-CIAWorldFactbook2007_1.0-2.4.2.tar.bz2     stardict-The_Oxford_World_Encyclopedia-2.4.2.tar.bz204:20
buZzstardict-Australian_Slang-2.4.2.tar.bz2   stardict-Dictionary_of_Phrase_and_Fable1.1-2.4.2.tar.bz2   stardict-Microsoft_Computer_Dictionary-2.4.2.tar.bz204:21
buZzendless04:21
buZzstardict-Obscene_language_En-Ru-2.4.2.tar.bz2   lol04:37
buZzah yes stardict-Urban_Dictionary_P1-2.4.2.tar.bz2 :D04:37
buZzannnd mirror is up @ http://space.nurdspace.nl/~buzz/maemo/stardict-dic/04:40
buZzhorrible mess of weird indexes :P but it works04:40
freemangordonuvos__: DND flag is needed as mce starts inactivity timeout when vtklock is shown08:15
freemangordonso, if tklock time displaying unlock screen is bigger than blanking period, we'll have dim and re-lock and whatnot else08:16
uvos__freemangordon: ok you could also disable inactivity in tklock mode here https://github.com/maemo-leste/mce/blob/5db7a12f02fbc7205a94ad99e85d662c2e6b79d7/src/modules/inactivity.c#L9508:24
uvos__but fixing DND is fine too ofc08:24
freemangordonI think it is better to not add (more) special code in mce only for tklock08:24
uvos__sure lock-tklock is a big mess allready08:25
buZztklock is the application with the swipe to the right for unlock, right?08:27
uvos__if only it was only that xD08:27
buZzif you're modifying that, could you add a 'turn off screen if you press powerbutton again' :D08:27
uvos__it has tenticals08:27
buZzevery time i press it by accident , screen is on, but needs to unlock plus lock again before i can force it off08:28
uvos__i found that annoying too08:28
freemangordonhmm, what?08:28
buZz:) wonder if that was on n900 aswell08:28
freemangordonit re-lock in 4 seconds08:28
freemangordon*re-locks08:28
buZzoh?08:28
uvos__yes08:28
uvos__but you have to wait afaik08:28
uvos__on n900 you can use slider08:29
buZz4 seconds and not press something in between perhaps?08:29
freemangordonyes08:29
buZzor touchscreen08:29
freemangordonyes08:29
buZzthats hard to do in a pants pocket :D08:29
freemangordonit is capacitive, what is the issue?08:29
buZzhehe, no issue, just slight annoyance08:29
freemangordonno, I mean - it is capacitive, does not matter if it is in a pocket or not, no accident presses are registered08:30
uvos__buZz: you can use lock-generic and just avoid the thing if you do like it08:30
uvos__thats what i do08:30
uvos__freemangordon: depends08:30
buZzlock-generic isnt hildon/maemo, you mean?08:30
uvos__i get random presses though my pocket08:31
buZzfreemangordon: eh, no , i mean when my hand is in pocket for something else08:31
freemangordonbuZz: you don;t want to, you'll be missing missed calls/emails/etc on the lock screen08:31
uvos__buZz: its a mce mdoule that triggers xdg-screensaver instead of tklock08:31
buZzfreemangordon: oh? it can show that? :D08:31
buZzthat would be awesome08:31
freemangordonit *does* show that08:31
uvos__it cant atm08:31
freemangordonwhy do you think so?08:31
uvos__becasue we dont tell it08:31
freemangordonfor sure it should work for emails08:32
freemangordonmodest tells it08:32
buZzi just havent seen it08:32
uvos__sure emails might work, but everything else dosent08:32
freemangordonat least it should08:32
freemangordonalso conversations will do, once it is finished08:32
uvos__sure08:32
uvos__but rn, no08:32
buZzbtw if you want a test XMPP contact, i'm almost always online with droid4 on buzz@space.nurdspace.nl08:32
freemangordonalso, if sphone starts adding missed calls in rtcom db, those will appear too08:33
uvos__nope08:33
uvos__it dose do so08:33
uvos__you need to trigger tklock by hand in sphone iiuc08:33
buZzatm best 'missed calls' view for me is osso-abook's 'recent' :)08:33
buZzalso 'missed sms'08:33
freemangordonuvos__: https://github.com/maemo-leste/osso-systemui-tklock/blob/master/visual-tklock.c#L30408:34
uvos__thats not the rtcom database08:34
freemangordonso it is notifications08:34
uvos__right08:34
freemangordonright, but still the same08:34
uvos__sphone saves to rtcom-el08:34
freemangordonif you call libnotify, it will start working08:35
* buZz afk for most the day , bye08:36
uvos__anyhow i still also disklike how tklock is implemented08:36
uvos__but thats another story08:36
freemangordonyeah, it can be better08:36
freemangordonand I'll make it better when it comes to it08:37
freemangordonincluding plugins and what not08:37
freemangordonbut for now, I would say it is good enough08:37
uvos__btw plase add a bug for the mce dbus while dimmed problem08:38
uvos__just a copy of the irc log at the time is fine08:38
freemangordonok08:39
freemangordonuvos__: what is this? https://github.com/maemo-leste/mce/commit/5a7c111790ecf9b15bf6e7a05a671255de8cae6c08:43
freemangordonand why it is not in master08:43
freemangordon?08:43
uvos__oh thats something that slipped into there by accident (i have a branch where lock-generic dose proximity lock)08:45
freemangordonshall I revert?08:45
freemangordonwell, actually reset to master08:45
freemangordonand force-push?08:45
freemangordonwell, I will do08:46
uvos__if you like, but really its fine no and fixes some warnigs about triggers not remvoed on exit08:46
uvos__the only problem here is the commit it comes with08:46
uvos__not the code08:46
freemangordonthat one too08:47
uvos__please keep the diff08:47
freemangordonkeep it where? some other branch?08:47
uvos__no in master08:47
freemangordonah, you want to cherry-pick in master?08:47
uvos__the additions of remove_input_trigger_to_datapipe are nessecary08:47
uvos__they fix a real issue (runtime warnings)08:48
uvos__how you keep the diff, i dont care08:48
freemangordondiff == commit?08:48
uvos__the changes themselfs08:48
freemangordonok, but what whould be the correct commit message?08:48
uvos__lock-generic: fix warnings on exit about datapipes still haveing registered triggers.08:49
freemangordonok08:49
freemangordonuvos__: this commit don;t even compile09:01
freemangordon/build/mce-1.10.0+2m7/src/modules/lock-generic.c:198:60: error: 'proximity_sensor_trigger' undeclared (first use in this function); did you mean 'proximity_sensor_pipe'?09:02
freemangordonso I'll remove it for now09:02
uvos__ok09:03
uvos__ill look at it when it do the other stuff09:03
uvos__just nix it now then09:03
freemangordonmhm09:03
WizzupbuZz: cool10:30
WizzupbuZz: got some doc / maybe wiki page?10:30
freemangordonuvos__: you shouldn't have removed that https://github.com/community-ssu/mce/blob/88a69e02c61e24aa272e1f63971e03424c051b09/modules/display.c#L136712:17
freemangordonwithout this display blanks before h-d had started12:18
freemangordongoing to restore it12:18
freemangordonunless you have some other idea12:18
freemangordonI don;t really understand why did you remove all that code, I see nothing wrong with it, could you elaborate?12:26
uvos__im not sure what all that code is for you12:44
uvos__also note that the display module was split and stuff was implemented elswehere that was implemented there before12:44
uvos__also some behavior changes where nessecary for the mce but not hildon usecase12:44
uvos__i cant a-prioi say where that bit whent12:45
uvos__it def dosent belong in display anymore12:45
uvos__the splitting and compartmentailzation of module functions was done with the goal of allowing you to load different modules where required for different devices and wms12:47
uvos__pretty sucessfully i think12:47
uvos__*a priori12:48
uvos__btw i dislike that you incremented the minor version as oposed to patch, i only want to do that for breaking changes12:50
uvos__mce 1.9.0 broke the use of the fremantle kenrel12:50
uvos__we cant increment the major version at all12:50
uvos__because it clashes wih sfos mce12:51
buZzWizzup: doc/wiki about the stardict?13:26
buZzmstardict*13:26
buZz?13:26
buZzits really quite minimal , but i guess i could write something yeah13:26
WizzupbuZz: we try to have a wiki page for every extra pkg13:29
Wizzupthere's a few already13:29
Wizzupwith template13:29
buZzooo very nice13:30
buZzWizzup: i also wanted to attempt to upgrade sfeed, as the lead(? are there others)-dev is in #nurds since recently13:32
buZzhe made a issue for a upgrade13:32
freemangordonuvos__: ugh, that netsplit lost my reply :(14:05
freemangordon(14,55,28) freemangordon: uvos__: well, we have API change (breaking or not), so I think it makes sense to increase the minor14:06
freemangordon(14,56,53) freemangordon: I am not saying that split was a bad thing, the point is that because of the split it is impossible (or I don;t know how) to track when a particular piece of code was changed or removed14:06
freemangordon(14,57,53) freemangordon: and now it is very hard to my to play the "find the differences" game when I see obvious difference in behaviour compared to fremantle14:06
freemangordon(14,58,47) freemangordon: see, I am not complaining, I am just trying to understand the reasoning behind some decisions you made14:06
freemangordon(14,59,46) freemangordon: especially when those decisions change how mce behaves and were made by you alone, most probably14:06
uvos__"well, we have API change (breaking or not), so I think it makes sense to increase the minor" i have added a lot of apis to mce, so its at the very least not consistant now. anyhow its not a big deal - its just breaking the covention i had been using14:07
freemangordonok, sorry, will keep in mind for the future14:11
* buZz hugs uvos__ and freemangordon 14:20
buZz:)14:20
uvos__freemangordon: wrt the other porblem yeah i can see it makes it harder, but genneraly it was nessecary to support all the configureations mce now dose.14:21
uvos__buZz: xD14:21
buZz:)14:21
uvos__freemangordon: so what issue are you seeing, if you set mce to a really shot timeout it blanks on boot before tklock can lock the blanking out via dnd?14:22
sicelofreemangordon: is that how your time is displayed normally? HH,MM,SS (commas) :-o14:28
freemangordonsicelo: this is how pidgin displays it, no idea why but not a biggie15:55
freemangordonuvos__: the issue I am seeing is that if charge mode is entered, and then exited (via the power button) display gets blanked before h-d starts15:55
freemangordonthis might or might not be a consequence from removing the code in question15:56
uvos__mce dosent run in charge mode15:57
uvos__so the time spent in charge mode is immaterial15:57
freemangordonright15:57
freemangordonbut somehow it manages do blank the screen after that15:57
uvos__i doubt mce starts >30s before h-d/systemui15:57
uvos__so i doubt its this15:58
uvos__freemangordon: ok15:58
uvos__dose the log say why15:58
freemangordondidn;t look at15:58
freemangordon:)15:58
uvos__maybe its picking up the power button press?15:58
uvos__somehow15:58
freemangordonlemme take the log15:58
uvos__you need to make it verbose for it to be usefull15:58
freemangordonit is15:59
freemangordonbut it become huge15:59
uvos__i also dont see this15:59
freemangordonis there any way to force-enter charge mode?15:59
uvos__no15:59
norayrWizzup, may it be i can blacklist something on droid3 to test if that can make it more stable?15:59
freemangordonok, then it will take time15:59
freemangordonI have to deplete the battery first15:59
uvos__ok15:59
uvos__so i dont see this problem16:00
norayroh, on the battery, so 'capacity' in 'upower' means that the battery has so much of its original capacity?16:00
uvos__so i suspect tklock/systemui interactions again16:00
freemangordoncould be16:00
norayri have 37 with this battery.16:00
freemangordonuvos__: we shall decide on what to do with voltage_now16:01
uvos__filter the thing in upower (imo)16:01
uvos__unless you mean in kernel16:01
freemangordongive that this is a hack in upower, I don;t think it is good idea mce to use it at all16:01
freemangordon*given16:01
uvos__voltage?16:02
freemangordonI mean in general16:02
freemangordonyes, this was added by artur to upower16:02
uvos__stock upower provides voltagae or?16:02
freemangordonno16:02
freemangordonit does not16:02
uvos__we just added voltage charge estimateion16:02
freemangordonno, sec16:02
uvos__*er charge from voltage estimation16:02
freemangordonuvos__: https://github.com/maemo-leste-upstream-forks/upower/commit/13edc4622d19056c934bab196661145de8cbce01#diff-fd1d7bb87e9710b1369c61c5704be6e31408c3480e66f119fc67ea3e0fa859acR68316:05
* freemangordon checks in upstream16:08
freemangordonyep, no voltage I see in upstream:16:09
freemangordonhttps://gitlab.freedesktop.org/upower/upower/-/blob/master/src/linux/up-device-supply.c#L30916:09
uvos__https://github.com/freedesktop/upower/blob/0e256ece04a98d3d202ed9640d33c56aaaeda137/src/linux/up-device-supply.c#L79016:10
freemangordonthis is from 201716:11
uvos__https://github.com/freedesktop/upower/blob/0e256ece04a98d3d202ed9640d33c56aaaeda137/src/linux/up-device-supply.c#L79716:11
uvos__right16:11
uvos__ok16:11
uvos__so its gohne16:12
freemangordonmhm16:12
freemangordonwe have percentage and state16:12
uvos__ok16:12
freemangordonI don;t think this is good though16:12
uvos__well that dosent really help with the modules mission statment16:12
uvos__of saveing mapphones from bootloops16:12
freemangordonagree16:12
freemangordonbut, all this will break as soon as we switch to chimaera16:13
uvos__ok16:13
freemangordonthat's why "(17,01,12) freemangordon: uvos__: we shall decide on what to do with voltage_now" :)16:13
uvos__well not sure what to do about this16:13
freemangordonoh, wait16:15
freemangordonseems there is new UpDeviceSupplyBattery16:16
Wizzupnorayr: I don't think so16:19
rafael2kI updated my libcamera mirror repo intended for maemo use: https://github.com/rafael2k/libcamera16:22
rafael2kMobian just rebased the PP* patches to 5.15.6816:23
rafael2kSo as soon as we test the PR I sent past week and it is all good, I'll PR the 5.15.68 rebase for the pine64 maemo kernel16:24
rafael2khopefully I'll be able to get back to my camera lift up work16:25
freemangordonuvos__: and it does not suppoert voltage16:28
freemangordonwhat's wrong with those guys?16:28
uvos__freemangordon: dident you know, batteries dont have voltages16:28
freemangordonyeah16:28
freemangordonit got dropped here https://gitlab.freedesktop.org/upower/upower/-/commit/6fedd0f20a64b9996226d0a2d26682a95aa7adb216:29
uvos__i gues mce needs to read the kernel itself then16:29
uvos__then it can also filter16:29
uvos__but ugh polling16:29
freemangordonI think mce shall filter on battery low signal16:29
uvos__or maybe we just have the kernel filter the low battery signal16:30
uvos__sound sane ish to do in the kernel16:30
uvos__noise is a hw problem16:30
freemangordonit is not low signal the issue16:31
freemangordonbut how mce decides to do shutdown16:31
uvos__also we have the problem16:31
uvos__that voltage low16:31
uvos__er battery low16:31
uvos__dosent really mean battery at state where mapphone bootloader setup will survive boot16:32
freemangordonwell, I don;t think we shall try to support batteries that are so worn they have 500 mAh or less capacity left16:32
freemangordonalso, we may think of initrd16:33
freemangordonbut, starting shutdown on 3.4 V is not sane to me16:33
freemangordonok, I feel too stupid today to find a solution16:35
freemangordonhttps://gitlab.freedesktop.org/upower/upower/-/issues/21216:50
freemangordonthis is crazy, really16:50
uvosi dont think initrd helps us that mutch17:21
uvosthe android kernel, kexecboot and the mainline kernel itself takes long to boot17:21
uvosuserspace to charge-mode is very fast17:22
uvosalso mbm takes suprizingly long17:22
uvos(probubly checksuming stuff)17:22
uvosim my expierance you have to shutdown at 3.25V at the very latest to have any change for it to survive, it afterall needs to stay above 3v all the way until userspace settels and 500mA becomes enough to power the device17:24
uvosand then we have the problem that mapphones currently use a good chunk of power even when off17:24
uvosif powered off via the mainline kernel17:25
uvosfor reasons unkown (and realy hard to debug)17:25
uvosso thats where the 3.35v current target comes from17:25
uvosplease also note the typical battery discharge curve17:26
uvosbelow 3.5v theres not alot at low discharge currents so at 3.3 ish volts we are not loosing mutch really17:26
buZznorayr: i think this was correct , yes18:41
buZz> 16:00:20 < norayr> oh, on the battery, so 'capacity' in 'upower' means that the battery has so much of its original capacity?18:41
buZzbut! we cannot read out 'design capacity' reliably yet! , so its a percentage of a predetermined amount (probably wrong)18:41
sicelofreemangordon: upower is the weirdest fd.o project i've seen, and the one i will be glad to see obsoleted by something else asap. stock upower also bombs out on uncalibrated N900 battery20:01
Wizzupgreat, then we can port all our code -again- to the next fandy fdo thing ;p20:02
Wizzupfancy*20:02
siceloanyway, any N900-interested folks here with a 1/2-cycle to spare? (freemangordon, tmlind perhaps?). https://paste.debian.net/1254489/  - any clues on the musb/usb issues there?20:03
* sicelo is still bisecting however ... but any ideas/pointers will be welcome. i'm new to this thing and atm am not even sure if i'm on right track. currently git bisect has taken me to 5.17-rc6. however i know 5.18.x tagged kernels don't have the problem20:04
siceloWizzup: the main problem i have with upower is that it tries to be too smart sometimes, and maintainers don't want anything contrary to their ideas. e.g. many people, including myself, would like to have a setting where upower doesn't take any action when it reaches the point it thinks is battery is critically low. there have even been MRs to that effect, but they're rejected with no clear reasons20:07
* sicelo also wishes upower could be told (without forking) what voltage to consider critically low20:08
buZzhmhm20:17
sicelogit bisect finished ... and pointed me to a completely unrelated commit :p21:03
sicelohere's the bisect log, https://paste.debian.net/1254497/21:03
Wizzupsicelo: wrt critically low, I think that is only with elogind, no?21:03
Wizzupor systemd-logind21:03
sicelopossible21:10
siceloguess i'll restart the bisection ... this is painful ):21:11
siceloWizzup: where/how do we bring up usb networking in ML?22:14
sicelotried checking on GH, but couldn't find it22:14
siceloi believe kernel-side it's via configfs, but i can't find where we actually do the required configfs stuff22:15
Wizzuphildon-usb-gadgets and ke-recv iirc22:21
Wizzupor ke-recv-extra I always forget22:21
sicelothanks. will look22:27

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