libera/#maemo-leste/ Tuesday, 2023-10-03

uvosi recommend allways carrying a RTG arround to power your leste device00:16
maxwelld> sure I can, but that's not what I want00:18
maxwelldthough i really really really love using old devices with modern software, and that's what i myself do, i am afraid i need to understand that we cannot keep using old devices always.00:18
maxwelldleste needs to work well on newer devices.00:18
uvossure, but afaik the droid 4 and its siblings are still really the most modern devices that have its level the 2 factors i find most important in a linux phone: 1. hardware enablement in the mainline kernel 2. working high quality power management00:20
uvosunfortinatly its a bit hard to keep up with the state of every other deivce, but afaik still nothing matches the mapphones.00:21
uvosalso hardware keyboard is nice, but i could maybe do without00:22
Wizzuplol @ RTG01:31
WizzupI had to look that up01:31
sicelopower mgmt is good on the qualcomm sdm845 devices, and the hardware support is stellar too (due to many people working on it)07:02
sicelos/people/people and companies (such as linaro)/07:02
freemangordonuvos: could you remind me which patches you want me to review?07:52
uvosfreemangordon: https://github.com/maemo-leste/hildon-desktop/pull/2210:59
uvoshttps://github.com/maemo-leste/libhildonmime/pull/510:59
uvoshttps://github.com/maemo-leste/osso-xterm/pull/410:59
uvoshttps://github.com/maemo-leste/osso-abook/pull/2https://github.com/maemo-leste/osso-abook/pull/211:00
uvos*https://github.com/maemo-leste/osso-abook/pull/211:00
Wizzupuvos: if I retry with this third e960 that I have, and somehow make sure I safely remove the clips, I will still need some kind of hotglue or otherwise to make this work sensibly, right? I can't just tape around it a bit.11:09
uvosthe bms?11:09
uvosto hold it against the battery?11:10
uvosyou want to use some well speced tape11:10
uvoskapton tape is the mehtod of choice11:10
uvoswrap the bms with kaption, then tape around the end of the battery to keep the bms in11:10
Wizzupbms is the pcb?11:11
uvosyes11:11
Wizzupok11:11
WizzupI think I should just do this in a few weeks when I get back and suffer through the weakest battery for a while longer :)11:12
Wizzupat least I have a bionic with a factory extended battery11:12
uvosabove the final kapton tape you can use some firber reenforced tape for some regiditiy11:12
uvosthats how the stackup is in a comertial battery11:12
Wizzupok11:12
uvosfor some reason (well different chemistry) the bionic extended batteries have survieved mutch better than eb41/hw4x11:29
uvosmine has almost rated capacity11:29
tmlinduvos: i recall bionic batteries eeprom limits max charge voltage to 4.2 so that explains11:32
tmlindnarrowed down the tc358765 myster register bit enabling lcd output last night btw, bit 5 for VPCTRL must be set for tc358765 while tc358775 only supports video event mode and bit 5 is reserved11:36
uvosthats true but not the reason really, the bionic extended battery is a standard li-nmc afair, while the eb41/hw4x is a hvlipo. The cathode alloying materials to increase the galvanic potential generally have mutch poorer lifespan, regarless of how you charge them11:44
uvosthis is why also the new old stock eb41 battiers that have never been charged are so degraded11:44
tmlinduvos: ok, maybe also check the android cpcap charger voltage reg values between hw4x and extended battery just in case :) we know for sure that eb41 with android always connected to a charger will only last some months11:46
uvosits reduced11:46
uvosthe charge enpoint voltage for bw8x (bionic extended) is 4.2 you can check with a dmm11:47
uvosso the cpcap regs are clearly also set correctly by android  here11:47
tmlindok11:47
tmlindandroid charged eb41 at 4.35 or whatever the voltage was11:47
uvosyes11:47
uvosagain this battery has a different cathod material11:48
uvosso this is "ok"11:48
uvosbut they have poor lifespan in genreal11:48
uvos*general11:48
tmlindit's not ok for a usable lifespan, it will bloat after a few months if left connected :)11:48
tmlindno idea how much short higher voltages wear it down though as discussed numerous times earlier11:49
uvosnot mutch, the main thing that wares it down is just calendaric ageing, something those hvlipos are terrible at11:50
uvosanyhow unfortinatly any new phone battery you buy now will also be hvlipo for the most part11:50
uvosidealy soldered and glued into the deive11:51
tmlindsomebody would have to run a test on a pile of batteries before i'd switch to higher charge voltages11:51
uvosyay obsolescence :P11:51
tmlindobsolete but still usable :)11:52
* tmlind bbl11:52
uvostmlind: ttyl11:57
uvosreally excited about mz617 support :)11:58
Wizzupyes yes :)12:31
Wizzupuvos: iirc the eu is forcing batteries to be replacable12:32
maxwelldwill mz617 be able to show youtube videos in more than 144p? (:12:39
WizzupI am never sure if these smileys are passive aggressive or not :D12:42
Wizzupbut yeah, I'm sure it'll be able to play yt-dlp'd videos at native res12:42
maxwelldoh oh oh.12:42
maxwelldthank you for saying that.12:43
maxwelldwith the smile i mean don't take it critically.12:43
maxwelldi would like to have a maemo tablet, if it is able to show online videos - that would be its main function.12:43
Wizzupyeah, we all want it :D12:45
WizzupI have a bunch of mz617's to send to people too for dev12:45
maxwelldgood.12:45
uvosd4 can bearly do 480p12:55
uvosso mz617 wille be able to do that too12:55
uvos(sw decodeing, with hardware presentation)12:55
uvoswe cant do hw decodeing on omap4 atm12:55
Wizzupif I know ahead of time I just convert it to the right res with ffmpeg12:55
uvosbut all the code is availble for this12:55
uvosas is the required propriatary firmware12:56
uvosbut its going to be a pain to use as they never supported a real api like vaapi12:56
uvosbut only some propriatary ti crap that no one uses12:56
Wizzupyeah, it's not important atm imo12:56
uvoswould be nice to use the fsp12:57
uvos*dsp12:57
uvosanother funn thing to do, that i will probubly never come around to is to use one of the the cortex m4 procs for various tasks12:57
uvosthey can access almost anything the cortex a9 can12:58
uvosso you could have one decode mp3s and send the audio to cpcap for essentaly zero power usage audio playback12:58
uvosstuff like that12:58
Wizzupyeah13:50
tmlindheh i remember the 100 hour mp3 playback spec..14:17
freemangordonuvos: why do we nned that https://github.com/maemo-leste/libhildonmime/pull/5/commits/ee26b3c71d8da584fc4c1f5a65f902655e8d5730 ? I mean - it will fallback to xdg-open without anyways, no?16:09
freemangordon*need16:09
uvosfreemangordon: i use it in a later pr16:17
uvosbut mainly its just compleating the api16:17
uvosas noted by the commit message, an application can choose any osso service16:17
uvosbut it cant choose xdg16:17
freemangordonyes, I saw that later PR16:17
freemangordonbut just don;t see what we gain if explicitly requesting xdg-open16:17
uvosso in the case that we have any number osso serivces and a xdg action the client cant choose the xdg one but can choose any of the osso services16:18
uvosfreemangordon: in this specific case, abook itself registers as a osso service to handle tel://16:18
freemangordonahaaa16:18
uvosfreemangordon: we must ofc avoid abook simply calling itself here16:19
freemangordonnow I see16:19
freemangordonso, this is just a workaround16:19
uvoswell the use - sortof16:19
uvosthe the pr itself is just compleating the api really16:19
uvosbut let my justify why this is fine:16:20
freemangordonok, so we expect maemo phone app to either register in TP on with xdg16:20
freemangordon*or with16:20
uvosin abook this is a fallback path anyhow, any osso aligned dialer is going to be using tp16:20
uvosany non osso aligned dialer is not going to use a osso serivce16:20
uvosso its either tp or xdg-open anyhow16:20
freemangordonI understand that16:21
freemangordonit is just that the implementation looks hacky to me :) . gimme some time to chew it.16:21
uvosi gues what would be even better would be the ability for abook to tell hildonmime: dont use this action to handle this request16:22
freemangordonmhm16:22
freemangordonI was thinking about that16:22
uvosatm the api only allows the oposit: use this action to hanlde this request16:22
uvosanyhow imo  https://github.com/maemo-leste/libhildonmime/pull/5/commits/ee26b3c71d8da584fc4c1f5a65f902655e8d5730 is requried regardless16:22
uvosthe api should allow the caller to specify it wants xgd16:23
freemangordonwell, the caller should not care about the method16:29
uvoswell then you might as well remove the whole HildonURIAction parameter16:30
freemangordonuvos: not really16:31
freemangordonalso, I think osso-abook can achieve the same without requesting xdg-only opening16:32
freemangordonthere is already   hildon_uri_get_actions_by_uri()16:32
uvossure and we should extend that to also return a xdg HildonURIAction when thats whats available16:33
uvosbut either keep the parameter as is and merge the pr to allow the HildonURIAction parameter to url_open also specify xdg-open, or remove the callers ability to specify what it wants in url_open16:33
uvosanything else makes no sense16:33
uvosreally16:33
freemangordonok, gimme some time to see if I can come up with a better API16:35
freemangordonuvos: ok, I will merge that PR, but osso-abook should simply call libhildonmime to open the uri without requesting xdg method. I am tempted to introduce hildon_uri_open_filtered() and call it a day16:43
freemangordonalso, unless I am missing something, if there is no xdg dialer, osso-abook will call itself with the current code, no?16:46
uvosyes, thats slightly jarring, but harmless, it just moves to the contact again16:51
uvoshildon_uri_open_filtered would be a fine option too16:52
freemangordonwell, what I am saying is that osso-abook should somehow tell libhildonmime to not call it. thus hildon_uri_open_filtered()16:53
freemangordonmhm16:53
freemangordonuvos: hmm you should not try uri_xdg_open() twice16:56
uvosi dont,16:56
uvoswhere do i?16:56
uvosif xdg-open is specified fails, and osso-serivce also fails then i gues it tires it twice16:57
uvosnot a big deal or?16:57
uvosdoing anything else would make the code more complex i think16:58
freemangordonjust add some bool16:58
freemangordonnot a biggie, but buggy :)16:58
uvossure i can add that if you want16:59
freemangordonalso, the comment here is misleading https://github.com/maemo-leste/libhildonmime/pull/5/commits/ee26b3c71d8da584fc4c1f5a65f902655e8d5730#diff-7463e73a36f095b4fbd13fafbfc2283ebdfe0bfef19ea8c9c44a5da945c806f9R6616:59
freemangordonbecause it sound like DBUS is not attempted16:59
freemangordonwhich is not true16:59
uvosshould be prefered i gues16:59
uvos"should be prefered" i gues16:59
freemangordonyes, or "tried first"16:59
freemangordonplease fix those 2 and I'll merge17:00
freemangordonhmm17:01
freemangordonactually...17:01
freemangordondo we want DBUS at all in case of HILDON_URI_ACTION_XDG?17:01
uvoswell if no xdg handler can be found better to have something handle it instead of dropping it (usually silently)17:02
uvosor?17:02
freemangordonReturn: %TRUE if successfull or %FALSE.17:03
uvossure17:03
freemangordonmaybe let the application handle that17:03
freemangordonlike, what to do if XDG fails17:03
freemangordondunno...17:03
uvosdonno either17:03
uvosso one think i was thinking here17:04
uvosis that later we can have the default for etach mime also be "xdg" as a special value17:04
uvosso it sets this17:04
uvosand then tries xdg first17:04
uvosbut ofc in this case it must fall back to whatever is avaialble if xdg cant serve17:04
freemangordonAh, I see17:04
freemangordonok, lets leave it as it is then17:05
freemangordonjust fix those 2 issues17:05
freemangordonand I'll try to come up with fix for osso-abook, maybe implementing hildon_uri_open_filtered()17:06
uvosok17:11
freemangordonuvos: sorry, wait, don't waste time. I'll touch libhildonmime anyways, will fix those17:28
uvostoo late17:29
uvosi just updated the pr17:29
freemangordonoh, I just merged :)17:29
uvosoh no17:30
uvoswhat version did you get :P17:30
freemangordonlemme pull17:30
freemangordonthe old one :(17:31
freemangordonsec17:31
uvoseh just git reset and merge my fork17:32
freemangordonright17:32
freemangordonuvos: ugh, why did you delete gtk-doc.make?17:34
uvosah crap, dpkg-buildpackge dose that on eatch compile17:35
freemangordonok, I'll fix the original PR17:36
uvosok17:36
freemangordondon;t waste any more time on that17:36
uvoso17:36
uvosk17:36
uvosnote the original pr had an additional issue i fixed17:36
freemangordonwhat it is?17:36
uvoshttps://github.com/IMbackK/libhildonmime/blob/d0616faf627009049bbb2c050535dee4899b70c5/libhildonmime/hildon-uri.c#L240917:37
uvosthis goto was missing17:37
uvoscausing a unnessecary warning here https://github.com/IMbackK/libhildonmime/blob/d0616faf627009049bbb2c050535dee4899b70c5/libhildonmime/hildon-uri.c#L241717:37
uvoswhen a osso-service was not found but xdg-open was able to hanlde the request17:38
freemangordonok17:39

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