libera/#maemo-leste/ Sunday, 2022-09-04

Wizzupsunshavi: agreed00:21
Wizzuperr sixwheeledbeast agreed*00:21
freemangordontmlind: I looked in the code and WDS is already created by qmimodem/gprs.c10:01
freemangordonit turned out there is a nasty bug the qmimodem code10:01
freemangordon  qmi_service_create_shared() is not written very well... to say at least10:02
freemangordonit checks if a service of type 'type' is already created and if not, it creates one. *but* service creation is async, so while creation is going on, if another qmi_service_create_shared() call happens, we stil don;t have created service and another create_service() call is made. etc.10:08
freemangordonWizzup: ^^^ is the reason for missing contexts end client ids exhaustion10:09
freemangordonif a rainy day happens while I am on holiday I will fix it, if not - when I am back.10:17
Wizzupgood sleuthing10:32
tmlindfreemangordon: unless we kick the usb qmi modem on n_gsm wds notifications, the usb qmi modem won't notice any changes11:16
dsc__I updated conversations with support for sending multi-line messages and (optionally) forcing send when Enter/RETURN is pressed.13:32
dsc__and the text on the button 'Enter' has been changed to 'Send' as per the rest of the world13:32
dsc__https://plak.infrapuin.nl/selif/d401b9md.png (default is disabled)13:34
sunshavidsc__: quite nice. What I missed on old fremantle is an api for sending sms's from the cli. There was a python script. But that python script is disconnected from the database14:22
dsc_sunshavi: yes I'd also want this, for now I'm focussing on fundamentals but eventually we can support such features14:39
sunshavi nice. Now I am using an xdotool script that send the text to the conversation window and press the send button (with xdotool) also on freemantle14:41
dsc_lol :D14:42
dsc_yeah, there will be an API eventually14:42
dsc_'our conversations' is made with Qt, so its easy to spawn up a HTTP server (for e.g. a JSON API) in the same process, or we provide CLI flags for it, or ... <insert solution>14:44
dsc_whatever the implementation, it will be trivial14:44
dsc_actually, a websocket server would be fancy (and more suited than push/pull)14:46
dsc_I mean, more suited than polling14:46
dsc_so with Python you could connect to ws://127.0.0.1:8395 (conversations) and issue commands like 'sendSMS' or 'listContacts' etc.14:47
dsc_but for now not relevant as I'm still implementing basic features14:48
Wizzuptelepathy could also just be the api?14:48
dsc_Wizzup: the issue is rtcom registration right14:48
Wizzupno, conversations will get all tp messages and handle them14:48
Wizzupand log them14:48
dsc_hmm14:49
dsc_direct communication with TP would be fine but I think we should create a small wrapper python script for it, so people dont get exposed to dbus internals and lose all hope in humanity14:53
dsc_just a simple api that allow people to do `send_message(protocol_type, recipient, message_body)`14:53
dsc_it might even already exist14:54
Wizzuptp scripts for this exist fwiw14:58
Wizzupbut yeah14:58
sunshavi Rigth. That would let us send sms's from ssh when phone ir charging some meters away from us15:04
Wizzupthere are scripts to do this with tp15:07
Wizzupwith my new incoming tp code we'll just find it15:07
Wizzupwe can test it later15:07
Wizzupdsc_: yes @ wrapper script btw15:33
Wizzuplet's look at it once we have a mvp15:33
dsc_yupyup15:36
siceloPali: nice re:u-boot + n900. i saw the recent commits19:23
PaliRecently I sent patches which extend CI tests for UBI booting.19:23
PaliBut UBIFS on top of UBI is still broken on n900 and qemu, no idea why.19:24
siceloi have a question regarding bq24150 - what exactly is `charge_current` for in sysfs? it's writable, but i don't seem to notice any specific differences19:24
PaliInteresting is that UBIFS is working fine on other bigendian powerpc board (with Freescale P2020 CPU).19:24
PaliSo soemthing has to be terible broken in u-boot.19:25
Palicharge_current? let me search for it19:25
sicelohttps://github.com/torvalds/linux/blob/master/drivers/power/supply/bq2415x_charger.c#L62019:25
sicelore: UBIFS, yes i read the comments. btw, recent kernel spams dmesg with nonstop `MTD device '%s' is NAND, please consider using UBI block devices instead`. but looks like this can be resolved by disabling some MTD stuff in config19:27
sunshaviPali: I also see the messages on the u-boot mailing list. And Tony answer19:28
Palihttps://www.ti.com/lit/ds/symlink/bq24150a.pdf19:32
Palipage 3019:34
PaliIt configures charge current sense voltage based on resistor and sysfs charge current mA value19:34
siceloyes, i can see it. it's the effect of adjusting this value which i'm struggling to understand19:38
siceloi.e. what's the benefit of using 950 instead of 650, for example19:39
Palisicelo: I was looking into old notes to finally confirm that it specifies current for constant charging current mode (CC)20:45
Paliso for CC chaging, if you use higher current, battery should be charged more quickly.20:46
Palithis is what is called nowadays "fast charge" or similar option in laptops.20:46
PaliI'm not sure what happens with these BL-5J batteries if they are charged with higher current, how it decrease lifetime.20:47
PaliAnd I really do not remember what should be the default value. I have not touched this part for years.20:47
PaliI found some old API notes: http://maemo.cloud-7.de/bq24150-sysnode.spec.txt20:48
Palidefault values are in DTS: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/arm/boot/dts/omap3-n900.dts#n74920:57

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