libera/#maemo-leste/ Thursday, 2021-08-05

AaronBurrany progress joerg ?07:08
Wizzupfreemangordon: regarding some telepathy ui for messaging (conversations clone), what do you think makes sense for prototyping and/or production, what language and widget set to write it in?13:07
WizzupThe way I see it, we can do a few things:13:07
Wizzup1. modify/build-upon empathy heavily (which is gtk3)13:08
Wizzup2. make our own quick prototype in C/Python, where we don't care much about the widgetset but rather getting something that works for us for now13:08
Wizzup3. Go with gtk2/C, try to stay as close as possible to conversations13:08
WizzupI think (3) would potentially be the hardest13:08
WizzupWe (parazyd and I) have set ourselves a soft deadline of ~10 sept or something to have something that can at least do basic telepathy stuff with gabble (xmpp/gtalk), and nothing else yet13:09
WizzupOf course there's the whole rtcom-eventlogger integration that needs to follow13:09
Wizzupbut the idea is to at least think about how a UI can look that supports many protocols, how we can have that in one application, etc13:09
Wizzupadding the 'tel' protocol via telepathy-ring/telepathy-ofono would be a next step, with rtcom-eventlogger support13:10
WizzupI'm a little bit inclined to do it in qt and python is possible (maybe C/C++ is easier if no bindings exist) because it makes for much easier prototyping13:10
Wizzupof course, any backend stuff like eventlogger we'd do in C anyway13:10
Wizzup(opinions from others also welcome, of course)13:11
* uvos reads13:11
uvosi think this is a problem that needs a global decision really, effectively, eventually we have to move from gtk2 to something newer and any new applications we implment that are supposed to be in core should move in the same direction.13:13
WizzupI'm just not at all well versed in gtk2 and dislike building UIs from code13:14
Wizzupif we can make it happen with glade for now, I'd be OK with that13:14
Wizzupwhen it comes to forward thinking, I'm all for using modern backends, but am OK with living with gtk2 until we have a working thing in gtk2 and then port it over to gtk3 with the same functionality13:14
parazydGlade is not ideal13:14
uvosWizzup: then you should write your new application in gtk313:14
Wizzupbut for me personally, making gtk UIs is klunky, I'm really bad at it13:15
Wizzup(the same is true for gtk3)13:15
WizzupI don't think gtk2 and gtk3 are all that differente in that regard13:15
uvosno13:15
uvosgtk3 is worse imo13:15
Wizzupyeah, well, either way :p13:15
WizzupI could do it much more easily in qt5 for example13:16
uvosso moving to gtk3 is a bit easier but note that some of the stuff we have in gtk2 needs to be rewirtten anyhow (like hildon-desktop, realistcly this will never be a wayland compositor)13:16
uvosWizzup: i dont think we want to have stuff in gtk3 and qt provideing core stuff13:16
uvosin the long run13:16
WizzupI guess my question wasn't so muhc gtk2 vs gtk3 but more gtk vs qt13:16
uvosso we need to choose13:16
parazydwdym in the long run?13:17
parazydAre you against combining gtk and qt?13:17
uvosyes in core that makes no sense13:17
uvosand is delapidating for n900 too13:17
uvos(since both allways need to be in ram)13:17
uvosparazyd: in the long run we need to move the gtk2 stuff somewhere else13:18
uvosand we should have everything on one toolkit13:18
Wizzupyeah, for ram purposes it's nicer if they are the same, but I don't have big problems with some things being qt as well13:18
Wizzupmaybe we need to define 'core' as well13:18
parazydI'd argue that hildon is separate from, say, conversations13:18
uvosright what is core is up for argumentation13:18
Wizzupright, we do have lots of things in qt5 (calendar is one, open media player will be another)13:18
uvosi think coversations qualifys13:18
Wizzupyeah it might very well qualify13:18
uvosWizzup: i know13:19
uvosWizzup: i dont like this13:19
uvosWizzup: unless the choice is to move everthing to qt eventually13:19
Wizzupuvos: well it was a case of, the community did a port of a closed thing, and it was qt5, so we build it and voila13:19
Wizzupthe original things were gtk2 mostly but closed, so yeah13:19
uvosyes i know our pedecessors made manny unfortionate descissions13:19
Wizzupif I have to pick between nothing or qt5, it's an easy choice :p13:19
uvoswe need to have a route out of the mess13:19
uvosit need not be done soon in any way but a clear route must be stated13:20
Wizzupok, but I'd like to focus a bit om my more immediate question as well13:20
Wizzupgtk2 can be done in python as well for example (although I don't like that as much)13:20
uvoswell the immediate question follows from what long term goal we choose13:20
uvosunless you go gtk213:20
uvosi dont think thats sane at all though13:20
uvossince that just forces someone to port it later13:20
WizzupI think for some things it is not necessarily bad to make a prototype in widget set A and language B, and then port it all to widget set C and language D when the prototype part is done13:21
uvosunrelated: a side benefit of you doing it in qt is it forces you to finally fix the damn issues the qt port has :P13:21
Wizzupdo we have a list of the bugs?13:21
uvosjust various ones13:22
Wizzupthe one that bugs me the most is him integration, but I know there is one thing with the back-forth window stacking13:22
Wizzupthere is qscroller crashes but that is a qt problem we need to backport13:22
Wizzupbackfix, or w/e13:22
uvosbut the theaming is pretty broken and needs to be reworked, it needs to have standard widget sizes that we then scale, there is the problem with the grab transfer not working right, there is the problem with window stacking there is him13:23
uvosmaybe others13:23
uvosi dont think there is a list13:23
uvosjust various bug reports13:23
uvosit would also be really cool if the qmenu integration could be reworked13:24
uvosso maemo apps just use one level of actions in qmenu13:25
uvosand for desktop apps the qmenu gets flattend13:25
uvosbut really we could implment a hieracy13:25
uvosthat opens more dialogs to navigate the menu13:25
uvosthat would get most qt desktop  apps usable13:25
parazydbtw also https://github.com/maemo-leste/libhildon3/13:40
Wizzupuvos: if you could make a list that'd be nice13:40
parazydThis works, but themes need to be finished13:40
WizzupI mean on the issue tracker13:40
parazyd(The css)13:40
bencohif anything, I'd probably still choose gtk3 because it'd be lighter than its qt4/5 counterpart13:43
uvosis it really tho13:43
uvosi dont think so13:43
uvosunless you count qml13:43
bencohon fremantle it used to be13:43
uvosbut thats compeard to gtk2 no?13:44
bencohyeah13:44
uvosyeah thats not fair :P13:44
* bencoh nods13:44
bencohI would stick to gtk2 if that was possible, but ... I guess it's not13:44
bencohat least not if we want to survive another decade13:44
uvosat least the lxde peaople went with qt in part because gtk3 balloned more in accordance to the mensurements they made13:44
bencoh(or even just another debian release)13:45
uvosbut afaik it was not that mutch in it13:45
Wizzupone tricky thing for gtk2 we need to look at is html renderer13:45
bencohwhy/what for?13:45
uvosi think the its dead jim factor of gtk2 is more pressing13:46
Wizzupbencoh: conversations is html renderer13:46
Wizzuped13:46
Wizzuprendered*13:46
bencohWizzup: yeah, but I don't think keeping it as such is a good thing13:46
bencohconversation is quite ... slow13:46
Wizzuphm13:46
Wizzuptrue, it also renders like everything though13:46
Wizzupwe can do per-month loading or something.13:47
bencohI dunno if it renders everything at first, I never really managed to understand what it really does13:47
Wizzupit reads history from rtcom-eventlogger13:47
bencoh:)13:48
bencohI often end up running sqlite requests from the shell when I need to look for some information13:49
uvosWizzup: liste wise someone should just move the related issues to https://github.com/maemo-leste/bugtracker/milestone/2013:51
uvosbut i lack authority13:51
Wizzupbencoh: nice13:53
Wizzupbencoh: I think we aim to keep that same backend13:53
parazyduvos: Added you to bugtracker13:54
uvosgreat now i have to do it13:54
parazydlol13:54
uvos:P13:54
lelIMbackK opened an issue: https://github.com/maemo-leste/bugtracker/issues/563 (Qt window a grab transfer xatom will only trigger the menu sometimes )13:56
lelIMbackK milestoned an issue: https://github.com/maemo-leste/bugtracker/issues/563 (Qt window a grab transfer xatom will only trigger the menu sometimes )13:56
lelIMbackK milestoned an issue: https://github.com/maemo-leste/bugtracker/issues/533 (in QT5 applications the stacked windows work right only on the first open of a stacked window)13:56
uvosparazyd: btw we are going to need a way to make the image builder build with everything on one partition13:58
uvosparazyd: it looks like this will be the only way to install leste on mapphones without sdcard slot13:58
uvos(the mz6xx tablets)13:58
uvosjust a heads up, we dont need this - yet13:59
parazyduvos: It can be done already13:59
uvosparazyd: great14:00
lelIMbackK milestoned an issue: https://github.com/maemo-leste/bugtracker/issues/564 (Qt5 needs im integration)14:01
lelIMbackK opened an issue: https://github.com/maemo-leste/bugtracker/issues/564 (Qt5 needs im integration)14:01
uvosWizzup: you probubly want to close https://github.com/maemo-leste/bugtracker/issues/5314:03
uvosWizzup: but since its out of date and everything there thats still relevant is in other issues.14:03
uvosWizzup: but ill leave that up to your discretion14:04
uvoss/but/14:04
Wizzupwill check in a bit14:20
fremantletest14:25
Wizzupfremantle: bok14:25
freemangordonWizzup: honestly, I'd go with qt5 too, the only concern I have is resource usage14:54
freemangordonalso, using qt does not contradict with keeping it cole to fremantle ui14:55
freemangordonwe can use QtWebEngine/QtWebEnginWidgets to render, in the same way fremantle does14:56
freemangordonwe can simply reuse js/css IIUC14:56
freemangordonwhich does all of the heavy work14:56
freemangordonbut OTOH conversations UI should be simple, so gtk should be no problem14:57
freemangordonIIUC14:57
freemangordonor I am missing something14:57
freemangordoncole? hmm, what did I want to say? I guess co-'mpatib'-le14:58
uvosfreemangordon: so are you suggesting to port the gtk2 to qt5+ too?15:07
uvoseventually ofc not now15:07
uvos*gtk2 stuff15:07
freemangordonin particular for conversations16:04
freemangordonnot in general16:04
tmlinduvos: so on the buggy cpcap regs, what are the android values vs mainline values?16:25
tmlindprobably a typo somewhere as i had to combine 2 android value tables into one..16:26
tmlindalso, maybe the uncleared cpcap registers explain why power consumption is greater with mainline kernel after poweroff16:27
uvostmlind: vhvio is regulator fixed @ 2775000uV in the mainline kernel and the mainline kernel sets CPCAP_REG_VHVIOC/0x0644  to 0x1716:40
uvosthe moto kernel also has it @ 2775000uV according its source but the register ends up @ 0x12 in every operating mode i could think of to test16:41
uvossetting it to 0x12 on the mainline kernel dosent seam to break anything16:41
tmlindweird16:42
tmlinddo the other regulator values match then?16:42
uvosyeah16:42
uvosi think 0x12 is simply off for this regulator16:42
uvosso the android kernel allways has this off16:42
tmlindoh16:42
uvosno idea what its connected to16:42
uvosi tried using every periferal i could think of16:43
tmlindso maybe we can just remove regulator-always-on for vhvio16:43
uvosbut maby the off thing is wrong16:43
tmlindit might be used by w3glte16:43
uvosits possible16:43
uvosi cant test that16:43
uvosbut i suspect android would turn on the lte modem16:43
uvosat least for a while after boot16:43
tmlindyeah16:43
tmlindif android has it at 0x12, then we should fix the off val in the mainline regulator table and remove regulator-always-on16:44
uvosyeah16:45
uvosbut since we dont know what its connected to....16:45
tmlindoh the off value is correct in mainline at 0x1216:45
uvosbtw the cleared registers are all registers past 0x7c9c i have no idea what these are16:45
uvoson mainline these read various non zero values16:46
uvoswe dont set them anywhere16:46
uvosin android they all read 016:46
tmlindthe thing to do would be to take a spare droid4 and float off all the components, then have it xrayed like somebody suggested few years ago :)16:46
uvosyeah16:46
tmlindanybody have contacts in soldering shops in asia to do both for us?16:47
tmlindwell anywhere in the world, naturally does not need to be asia, seems like that's where they mostly are16:47
tmlinduvos: no idea about the regs past 0x7c9c.. also, android keeps a mask for every register to avoid clearing some bits that we do not do16:49
tmlinduvos: looks like we have ak8975 using vhvio in the dts16:51
tmlinduvos: sorry lis3dh on droid4, ak8975 on bionic16:51
tmlindanyways, sounds like the regulator-always-on can be dropped16:51
uvostmlind: yeah i know16:52
uvostmlind: but its wrong16:52
uvosyou can use the accel in android no problem with the reg at 0x1216:53
tmlindmaybe not if not used as vio for anything else16:53
uvosand i just did the reverse16:53
uvosand the accel works fine in mainline with the reg off to16:53
tmlindheh16:53
tmlinddoes it work still with vhvio set to 0?16:53
uvosno that kills it16:54
uvosalso als16:55
tmlindbut system boots?16:55
uvosim modifying the  values at runtime atm i can rebuild dts later16:55
tmlindsounds like the 0x12 value is some hack to keep some device partially enabled..16:56
uvosi gues maybe16:59
tmlindor 0x12 value might be set for faster enable time17:00
uvosbut every periferal that i tried in android works with it like this17:00
uvossame with mainline right now17:00
tmlindwould be interesting to see what the voltage difference is between 0x12 and 0x1717:00
uvosno doubt maybe i can grab it from bionic17:01
tmlindi guess the 0x17 value could explain higher poweroff voltage with mainline kernel17:03
uvosyes17:03
uvoscurrent i assume17:04
tmlindwe have about 1mW enabled on poweroff i think17:04
tmlindcompared to android17:04
uvosi gues i could messure it17:04
tmlindmaybe android disables something in the microcontroller on poweroff?17:06
uvosandroid dose disable all the macros before shutdown17:07
uvosbut we dont enable them in the first place so eh17:07
tmlindbut we have them enabled from kexec17:07
uvoshmm maybe ill try look into that when i back @home17:08
tmlindok. food time here, bbl17:08
uvoson bionic the shutdown current is even worse17:09
uvosbtw17:09
uvosbut its clear what it is there17:09
uvosif you go into a very dark room you can see the android button leds glowing dimmly17:09
tmlindheh ok18:22
Wizzupfreemangordon: check @ qt518:39
WizzupI'll respond in more detail in a bit, I don't think it would be that simple18:39
bencohuvos: so basically droid4 just burns energy on dimmly-lighted leds and unneeded accelerometer?18:59
uvosbionic burns energy on a dimmly light light20:05
uvosthe d4 dose not20:05
uvosit burns (mutch less) energy on something unkown20:05
tmlindafter poweroff, compared to android, might be happening also during runtime20:06
uvosright20:06
tmlindi'm seeing occasional extra 1mW peaks after shutdown with mainline kernel that do not happen after shutdown from android20:07
uvosthe light on bionic might give some credance to the idea that its cpcap-uc thats doing it20:07
uvoson bionic it its cpcap-uc that controlles the light in question20:07
tmlindon droid4, android is consuming little over 1mW after shutdown (probably the rtc?), mainline kernel 1 - 3 mW after shutdown20:08
uvos1mW is very high for an rtc20:10
uvosbut sure20:10
uvosmight be misc other leakage currents20:11
siceloWizzup: in terms of a Qt conversations clone, you may want to look at the yappari UI - i think i've mentioned this before20:25
siceloi think ceene may be even able to help - i recall at some point he wanted to make it work with any other platform, e.g. Telegram20:26
uvostmlind: CPCAP_REG_VHVIOC dosent appear to change this result any20:43
uvostmlind: my d4 draws 0.11mA @ 4V if i shut down from kexecboot with the moto kernel20:43
uvostmlind: and 0.20mA @ 4V if i shutdown with mainline20:44
uvosthe d4 is really unhappy about the burdon voltage of my meter20:44
uvosso its pretty hard to messure (i had to have a jumper over the meter & only remove that when it turned off)20:45
tmlindyeah ok, the difference in values sound similar to what i'm seeing20:50
uvoshonestly im not terribly worried about a difference of 400uW20:51
tmlindit sucks to shut down the device and then the battery is empty in a week :( btw, i'm using a ina226 i2c board with a 0.1 ohm shunt to measure the power20:52
uvostmlind: yeah something like that is better than just a generic meter20:53
uvosthey useualy have huge burden voltages20:53
tmlindyeah the ina226 i2c boards can be bought for about 5 units20:53
uvosi think i might even have one20:54
uvosok i also tried setting 0x644 to 020:54
uvosand shutdown20:54
uvosno change20:54
tmlindi soldered mine to a beaglebone pocket, can read the shunt with the kernel driver with just a script :)20:54
tmlindno kernel changes needed20:54
uvosbut that wont work with my gpib setup :P20:54
uvosall my test and mesuremnt stuff is from the 80s mostly20:55
tmlindok :)20:55
tmlindhmm i should see if my tube scope still works..20:56
uvoswith those things its usually yes20:57
tmlindyeah unless caps have bloated20:57
uvoseh my main scope is a hp1741a from 1977, i replaced all the electrolitic caps, only a single one was slightly out of spec20:59
uvosits mostly the stuff after 1990 that has caps that die20:59
tmlindyeah21:00
sixwheeledbeastcap plague 1999>?21:01
uvoseven before that the increased density did reliability in21:02
uvosbut yeah it gets really bad with the plague years21:02
uvosits also surviorship bias and epensive test equpitment  usualy has very high quality componants too. if an instrument has made it from the 60s or 70s to modern day that means the caps in that unit are pretty damn well seald or it would have broken and been tossed long ago.21:04
sixwheeledbeastI was replacing loads early 2k in allsorts of stuff. visual inspection look fine, popped underneath not at the vent.21:05
tmlindon bloated components, i got another confirmation that lineageos bloats droid4 battery if left connected for several weeks i guess21:12
tmlindsounds like also stock android as they use the same battd21:13
uvosi mean the batterys are legit 4.35v chemistry is a legit type that was popular at the time. it had worse cycle lifetime than regular lipos for a bit more energy desity. it fell out of favor because the 4.2V chemesties made up the difference in increased Ah21:18
uvosim not supprised that these very old batteries now bloat at a hight rate if charged to the maximum for weeks (something you should never do to a lipo anyhow)21:19
uvosmaybe you can feed battd a bionic bw8x nvram21:20
uvosas this tells it to charge to 4.2v only21:20
tmlindheh yeah21:20
tmlindmaybe this is the reason why so many devices on ebay are sold without back cover if it breaks :)21:21
uvosthe cover broke instead of just being leveraged off?21:22
uvosthats pretty intense bloating then21:22
uvosgood thing im not living within a fires reach of this guy ^^^^ who is holding 10 year old lipos at 4.35V for long periods21:23
tmlindheh i don't know if the covers can break with bloating21:27
Wizzupsicelo: good point regarding yappari21:28
* tmlind goes zzz21:30
Wizzupwe don't have a ticket for sms/conversations specifically yet I think21:36
Wizzupsicelo: I could probably port it as a start http://maemo.org/packages/source/view/fremantle_extras-devel_free_source/yappari/2.0.28/21:39
Wizzupsicelo: great suggestion21:40
Wizzupsicelo: is ceene the dev?21:41
siceloyes21:41
freemangordonyappari was blacklisted, no?21:41
uvosWizzup just wants the general ui implementation i suspect21:42
uvosnot the whatsapp backend21:42
Wizzupfreemangordon: for whatsapp yes, but it looks like conversations, is qt, and is foss :)21:42
Wizzupso looking around could be quite useful I imagine21:42
sicelofreemangordon: work was dropped on it because whatsapp was banning numbers wholesale. so the very last package is actually an empty package (because people didn't want to stop using it) :-p21:42
freemangordonmhm21:43
uvosWizzup: maybe you can look sms for that too, either useing ofono directly or have sphone spit out a dbus call in place of a call to its own ui.21:44
Wizzupuvos: we really aim to use telepathy, so it'd be telepathy-ring, but yes21:44
WizzupI met with parazyd irl today and we talked a bit about how the conversations ui could work/look (mostly like fremantle)21:45
WizzupI'll try to sketch up something later, probably not for another week or 2 or so though21:45
uvosok sure21:45
Wizzupin general we'd hope we can fit everything in telepathy (at least for most of the features), and then do specific things via user accounts UI, as in fremantle (i.e. changing protocol avatar or something, like how it does with skype)21:46
Wizzupand then the conversations UI would have various views for different protocols, and perhaps also a merged one just showing all latest messages21:46
freemangordonI really think we should be able to just reuse css/js21:47
freemangordonWFT did gnome guys recently?!? https://docs.gtk.org/gtk3/class.Button.html21:49
freemangordonC docs are nowhere to be found21:49
Wizzupfreemangordon: yes, keeping the style customisation would be nice21:50
Wizzupgtk ragequit? :d21:50
freemangordonI shouldn't have questioned them, gnome crashed a couple of seconds after I did :D21:51
Wizzuplol21:52
sicelo:D21:53

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