libera/#maemo-leste/ Sunday, 2023-03-19

tmlindfreemangordon: so my guess is chans 16 & 17 are for a separate adc added later on that can be muxed to the chan 1 & 2 output registers as requested06:02
tmlindi mean muxed to chan 0 & 1 output registers06:03
tmlindcurrently chan 16 & 17 adc is probably continuously sampling if it provides 4 samples at 250ms invervals, i don't think we manage the whatever bit enables/disables it06:04
tmlindhmm so maybe BATICON bit just enables/disables the continuous sampling for chan 16 & 1706:07
tmlindCON for CONtinuous?06:07
tmlindmaybe CPCAP_BIT_RAND1 muxes between the chans 0 & 1 and chans 16 & 17 adc for the chan 0 & 1 output registers?06:08
tmlindfreemangordon: thanks for the mc13892 coulomb counter calibration info06:22
tmlindhmm so mc13783ug.pdf "2.1 detailed block diagram" only shows adin5 being muxed out of the battery related lines, so maybe the only selection cpcap also has is between single channel mode and multi channel mode06:32
tmlindmaybe in the multichannel mode the four sample pairs are only read when requested and not continuously.. reading values in a loop should provide some info on the time between samples06:51
tmlindfreemangordon: so maybe what we really have for cpcap is this:07:08
tmlindmulti-channel single read mode: enabled 8 adc inputs get read to the 8 output registers07:08
tmlinddual-channel multi read mode: two enabled adc inputs get read as four pairs to the 8 output registers, maybe only available for adc inputs 0 & 107:08
freemangordontmlind: exactly07:51
freemangordonand this seems to be controlled by CPCAP_BIT_RAND107:52
freemangordonvendor kernel does not control CPCAP_BIT_ADAx either07:52
tmlindfreemangordon: ok. i wonder if any two adc inputs can be selected in the dual-channel multi-read mode..08:03
freemangordonI can check, shell I?08:04
freemangordonto me the biggest issue is how to get that info out of the driver :D08:04
tmlindmight be worth to verify to avoid more rewrites later on.. maybe email the iio folks, they may have some suggestions on getting 4 pairs of data?08:05
freemangordonok08:05
tmlindthe iio raw data should be really raw data i guess.. otherwise the speed of change information is lost with the four samples08:05
freemangordonyou mean if we average?08:06
tmlindyeah08:06
freemangordonmhm08:06
freemangordondo you know what08:07
freemangordon...08:07
freemangordonwhat 'iio buffer' is?08:07
tmlindyeah maybe that works if it supports pairs08:07
tmlindnever used it08:08
tmlindor maybe it just needs to be two iio_buffer instances?08:08
freemangordonwhy 2?08:09
tmlindone buffer for 4 voltage samples, one for 4 current samples08:10
freemangordonyes, got thta, but why now 1 buffer 8 samples?08:10
freemangordonhave to check how als creates that buffer08:11
tmlindhow do you know the type of the data?08:11
tmlindmaybe there's some data type flag?08:11
freemangordonhow do you know with 2 buffers either? sorry, I don;t know the API :)08:11
tmlindheh me neither :)08:11
* freemangordon boots d4 to see what als and others export08:11
freemangordontmlind: hmm,   INDIO_BUFFER_SOFTWARE is already set to the driver08:23
freemangordonI guess that's it08:23
tmlindok08:33
Wizzupmorning11:41
freemangordonhi11:42
freemangordontmlind: I am not convinced iio buffer is what we need, I'll just hack 8 shorts into 4 integers12:05
Wizzupuvos: freemangordon: did you guys talk about why our 6.1 kernel is still a -rc8 while the git is rebased on some stable?12:49
freemangordonnope12:54
nonsuchIs there something wrong with the mailing list? I just tried subscribing, it told me I am already subscribed (I was), but the last message in my Inbox is from Feb 3rd. I can't see the archives* to check if the message I just sent arrived.13:24
nonsuch* https://mailinglists.dyne.org/pipermail/maemo-leste/ this link gives "Not found"13:25
WizzupI think there is some overly zealous moderation on the list13:28
Wizzupthe archive link being broken is weird for sure13:29
Wizzuparno11: btw there is a new n900 image, I will test it today, it should have the pm improvements13:29
arno11Wizzup: cool13:33
nonsuchOK, thanks Wizzup. I am amazed at the progress with Leste since - checks - 2019!13:35
nonsuchNevertheless I'm selling my N900 now. Anybody interested, check this out: https://talk.maemo.org/showthread.php?t=10139813:36
arno11Wizzup: i've tried chimaera on a slow class 2 uSD13:39
arno11and pretty smooth13:40
Wizzuphmm, ok13:40
arno11not the feeling something is wrong13:40
WizzupI need to get my svideo/rgb capture and make a video of it13:40
WizzupI guess can just use my camera13:40
arno11ok13:40
Wizzupthis particular usd card I got for free with some droid3 that I bought13:40
Wizzupso it could be real bad :)13:40
arno11oh ok13:41
arno11fyi i've tested few more things:13:43
arno11xv accel is working fine now on n90013:44
arno11really happy with that13:44
arno11but few basic apps aren't working anymore13:44
arno11like smplayer and maep for example13:45
arno11but installing older versions works13:45
WizzupI've also been productive https://wizzup.org/win7-1.png https://wizzup.org/win7-2.png https://wizzup.org/win7-3.png13:50
Wizzuparno11: what older version, beowulf?13:50
arno11beowulf for maep and old stretch for smplayer13:51
Wizzupwhat is your issue with maep?13:51
arno11(wow for the pictures)13:52
Wizzuparno11: ah, selecting maps seems to bug out13:52
arno11yep13:52
Wizzupyeah, need to attach gdb and see what's up I guess13:52
Wizzupmy main gps leste device is still on beowulf13:52
WizzupI forgot about this13:52
arno11ok13:53
arno11kodi 19 is working badely as well with weird dbus canhibernate and cansuspend errors13:57
arno11according to kodi forum that s because of python313:57
arno11but python3 is fine on leste13:58
arno11and kodi 17 was working really fine13:58
WizzupI didn't expect kodi to run at all really :D13:58
arno11lol yes indeed13:58
arno11but kodi 17 was really impressive with googd settings13:59
arno11*good13:59
Wizzupok14:00
Wizzuplet's see, I can look at maep in a bit14:00
Wizzupnot sure if I can help with smplayer14:00
arno11no worries for smplayer14:01
WizzupI think we can just add emmc swap to the n900 image14:02
Wizzupassuming it fails gracefully14:02
Wizzuplike, swapon will check if the partition is swap or not14:03
Wizzupso even if it is something else, it ought not to cause any harm14:03
arno11but why the previous 256M swap has been removed/not working with chimaera ?14:14
Wizzuparno11: sorry, I don't understand14:21
Wizzupdo you mean the zswap?14:21
arno11yes sorry14:22
WizzupI think fmg as opposed to it14:23
WizzupI don't remember when exactly we removed it14:23
Wizzupor how:)14:23
Wizzupbtw the windows 7 theme is in the extras repo now14:23
arno11ok cool for themes14:24
WizzupI'm going to build the new bionic image (it didn't auto build yet) and try it on my bionic14:26
Wizzupshall I dd the new image to my supposedly slow card and then check with you if it seems fast or slow?14:26
arno11ok14:26
Wizzuplet's see if swap can be done using /etc/fstab.d/14:31
Wizzupbtw14:40
Wizzupinstalling to emmc would also be intesting14:40
arno11indeed14:46
Wizzupmaybe I should install iotop or try to stress the i/o14:53
Wizzupnokia-modem also not loaded on new image14:53
arno11? really14:54
Wizzupyeah, works if I loud it manually14:54
arno11ok14:54
arno11an easy way to stress io should be to install from apt an heavy app14:55
Wizzupyeah if I do that even the lock screen doesn't typically show when I pres the power button14:56
Wizzupthe unlock screen rather14:56
Wizzupand everything has a many second delay14:56
arno11ok14:57
Wizzuphm it's not -too- bad right now14:57
Wizzuphow fast does the status menu respond for you when you tap it?14:59
WizzupI guess I'll just make a video in a bit14:59
arno11for me open immediately and shows stuff inside in a second15:00
Wizzupok15:00
Wizzupso your changes, apart from OC and setting the cpu governor, what are they?15:00
Wizzupso /etc/fstab.d/ doesn't work, /etc/fstab works15:01
Wizzupso I guess I can put that in arm-sdk / image builder15:02
arno11with chimaera nothing else15:05
arno11and i'm using a simple 1G swap on uSD15:05
arno11that' it15:05
Wizzupok15:06
Wizzupso the only difference really is that I have swap on emmc15:06
arno11yep15:06
arno11don't forget OC15:07
arno11back in 15 min15:07
arno11kids time lol15:07
Wizzup:)15:08
Wizzupyeah so during apt-get install iotop-c at some point even just scrolling in h-d stops all together15:08
uvoskernel is rc in stable (and chimaera i gues) because it wasent promoted15:08
WizzupI was touching it all the time to move15:08
uvosits based on the stable branch in devel15:08
Wizzupok, so it's in devel but not in stable?15:08
uvosin beowulf yes15:08
uvoson chimaera i have no idea where it should go15:09
uvoshonestly15:09
Wizzupwhat do you mean?15:09
uvoswhere the kernel for testing should go15:09
uvosanyhow it can be promoted to stable everywhere15:09
uvosit works fine15:09
Wizzupmaemo/chimaera-testing or maemo/chimaera-devel, or of course just maemo/chimaera15:09
Wizzupfor stable then the latter15:09
uvosso whats the hierarchy here15:09
uvostesting is > or < than devel15:09
Wizzupchimaera, chimaera-testing, chimaera-devel15:10
Wizzupfrom stable to unstable15:10
uvosok15:10
Wizzupbtw..15:10
Wizzupif you can pull my n900 commit that would be nice15:10
uvoswhat commit?15:10
Wizzupfor iotop we also need:15:10
Wizzup  - I/O accounting support (CONFIG_TASKSTATS, CONFIG_TASK_DELAY_ACCT, CONFIG_TASK_IO_ACCOUNTING)15:10
Wizzupuvos: let me find it15:10
uvosWizzup: ok well idk if i should do that at the same time15:10
uvosthe idea being to promote the beowulf devel kernel everywhere to stable15:10
uvosnot to change it in the process15:11
Wizzupuvos: https://github.com/maemo-leste/droid4-linux/tree/maemo-idle-report-6.1.y15:11
uvosok15:11
Wizzupuvos: is this about task stats or the n900 patch15:11
uvosand what about "omap_ssi_port.c: force pio for now "15:11
Wizzupbtw, I would not waste too much time on kernels for beowulf at this point, we're very near to just switching over15:11
uvosyou mentionied there was a better patch for this15:12
WizzupI thought so, but I'm relying on sicelo here15:12
uvosbut i has not materialzied15:12
Wizzupmaybe keep it for now15:12
uvos*it15:12
uvosok15:12
Wizzup6.1.0-rc8 works on n900 at least for me, so15:12
uvos6.1.9 works ok on n900 too15:12
uvos(well no idea about the modem)15:12
Wizzupit will hard crash without the patch ;)15:13
uvosthe patch is there15:14
uvospoint is i dont (cant) test the modem on n90015:14
uvosanyhow15:14
uvossmplay works fine on chimaera on d4 btw15:14
uvosi use it regularly15:14
uvosperson above has some n900 or install specific issue15:15
Wizzupcould be15:15
uvosmaybe it ooms15:15
WizzupbuZz: did you ever make a video on how to mode E960 to EB4115:25
Wizzupuvos: we could also rebase that latest stable if not already, and then try it on chimaera-testing first if you think that's better15:31
Wizzupwhatever is easier for you really15:31
Wizzupbrb15:32
arno11back16:05
Wizzuphi hi16:05
arno11Wizzup: so how's things with your device ?16:07
Wizzuparno11: well, it idles ok16:10
Wizzupmodem kernel module doesn't auto probe yet16:10
Wizzupusing HAM and installing anything causes severe slowdowns16:11
Wizzupwhich I think is probably my main complaint16:12
arno11ok and that's auite the same for me with my slow sdcard16:13
Wizzuparno11: if you run this, is device still responsive?16:13
Wizzupdd if=/dev/zero of=out.img status=progress bs=1024 count=10000016:13
arno11let me try16:13
Wizzupfor me it sometimes just becomes unresponsive for 5-10s16:14
Wizzuplike, scroll around, start xterm, do other things16:15
freemangordonWizzup: sdcard on emmc?16:15
Wizzupfreemangordon: swap on emmc yues16:15
freemangordonalso, what is the swappiness?16:15
WizzupI don't know what is swappiness, but mem used is 122M and swap is 28M16:16
Wizzupso I am nowhere near memory exhaustion16:16
freemangordonI see16:16
freemangordonIO then, most-probably16:16
arno11Wizzup: On mine really fast16:16
arno11and still responsive16:16
Wizzupfreemangordon: it might just be something as silly as some blocking log function in h-d or elsewhere16:16
Wizzupthat blocks on i/o16:16
freemangordonright16:16
Wizzuparno11: ok, I will try this U3 512GB microsd then16:16
arno11wow16:17
WizzupI got it for my birthday last year, have to put it to use somehow :D16:17
Wizzuplol my lab psu at 3.8V is somehow 42% of battery on n90016:19
arno11lol16:22
Wizzupok, so I will dd this on the really fast card and see if it makes a difference then16:23
Wizzupat least the idle on the image is great16:23
Wizzupwith the wire and other module blacklist changes16:23
arno11cool16:23
Wizzupnokia-modem not being autoloaded surprises me still though16:23
* Wizzup runs depmod16:33
sicelobq27200 % is meaningless until a full cycle16:36
Wizzupsicelo: sure it is, it was just funny16:39
sicelo:-)16:39
Wizzupfreemangordon: I am going to add conflicts to xorg legacy16:53
Wizzupok?16:53
sicelo: Wizzup: so new image still idling at 50mA16:55
siceloon N900, that is16:55
sicelo?16:55
Wizzupsicelo: yes16:56
arno11Wizzup: can't wait to see perfs on uSD 512 :)16:59
Wizzuparno11: don't expect too much17:01
Wizzupiirc n900 is heavily gated by various hw things17:01
Wizzuplike bus width17:02
arno11ok17:05
Wizzupon the d4 it can make a big diff with some hacks17:07
sicelonice @ idle. will try image soon (in a couple of weeks)17:10
WizzupI would try it on a battery but I found that ironically here I have only one n900 battery: the one in the one I use17:12
arno11ok lol17:12
WizzupI ordered some17:14
Wizzupon friday17:14
Wizzupwe'll see17:14
arno11Wizzup: btw not sure emmc swap will be faster than swap in U3 sd17:23
arno11what do u think?17:23
WizzupI think emmc swap should be faster17:25
Wizzuplet me connect this one to wifi17:25
arno11ok17:26
Wizzupnew sd card seems to make the difference so far17:28
Wizzupfreemangordon: uvos: so for e960, I just remove the brown pcb thing from the eb41, desolder the wires, and connect it to the e960 wires?17:29
arno11no surprise :)17:29
Wizzuparno11: do the volume buttons work for you?17:30
arno11nope from the beginnig with beowulf lol17:32
Wizzupok17:35
arno11Wizzup: should be interesting to run dd dev/zero command to compare i/o17:36
Wizzupwill do in a bit17:41
Wizzupuvos: how can I test your U3 hacks on d4?17:43
Guest3Can all packages of maemo-leste be found in Chimera 4.0?17:48
Wizzupalmost all17:48
buZzWizzup: the ppl that promissed to edit the video havent :(18:12
buZzits just way too much material atm18:12
buZzone thing important on e960 removal of BMS : do NOT remove the tin strips that are spotwelded to the battery cell18:13
buZzi did on one of the two , and it keeps disconnecting, soldering to straight up lithium metal is practically impossible18:13
buZzmaybe i'll get a new E960 , likely to happen faster than that i can fix our spotwelder @ hackerspace :)18:14
WizzupbuZz: ah so you don't have a working one?18:18
buZzwell, it works until i shake it :D18:18
Wizzuparno11: well during expandcard.sh I turned off the power by accident and now one of the u3 cards doesn't respond :D18:19
arno11arghhh18:20
Wizzupwell, we know that it is faster now18:20
arno11lol yes18:20
buZzu3 cards work faster in mapphones? :O18:20
WizzupI'll leave it powered for a while, see if it recovers somehow18:20
WizzupbuZz: not at u3 speeds, but they will be seen I'm sure?18:21
Wizzupbut this was n90018:21
buZzdont u3 cards support slower speeds anyway?18:22
Wizzupthat was my point18:24
buZzah ok :)18:25
Wizzupbrb18:25
freemangordonWizzup: yes, and yes18:53
freemangordonbeware what buZz said18:53
buZzi kinda wish that vendor would just sell me the loose cell without BMS attached :)18:54
buZzalso, be careful when removing EB41 BMS, that flexcable is hella fragile18:54
freemangordonalso, you will have to remove the black plastic that covers the original PCB, at least paritially18:54
buZzflexpcb*18:54
freemangordonbuZz: what is the issue with the BMS? it is attached with a sticky tape18:54
buZzi dont know what you're asking?18:55
freemangordon"i kinda wish that vendor would just sell me the loose cell without BMS attached :)"18:55
buZzthe flexpcb is the part of the BMS thats connecting to the phone18:55
buZzoh18:55
buZzyeah , saves effort? :D18:55
freemangordonyeah, a minut :p18:55
freemangordon*minute18:55
buZztheir BMS looks -very much- like they use the same cells inside factory for multiple batteries18:55
freemangordonWizzup: also, it is possible that there will be no voltage right after you solder pcb to the new cell. It will appear once you connect it to the device *and* attach a charger ;)19:02
freemangordonsome protection circuitry it seems19:02
buZzyeah BMS often disable themselves when you do this kinda stuff19:02
buZzits even worse on laptop batteries :D19:03
freemangordonalso, I used hot silicone to attach pcb to the cell19:03
buZznice19:03
buZzsomething flexible will help yeah19:03
buZzi used kapton :)19:03
* freemangordon googles kapton19:03
buZzbut yeah i'll have to redo it, guess i'll order one next paycheck :P19:03
buZzfreemangordon: polyimide tape iirc19:03
freemangordonah19:03
buZzthe stuff you can poke with a solderiron and it wont melt19:04
buZz:)19:04
freemangordonthat brown-orange transparent one I guess19:04
buZzyeah19:04
buZzthey do make other colors, but that yellow stuff is very common19:04
Wizzupfreemangordon: ok19:04
WizzupI will first buy a solder iron here ;)19:05
freemangordonI used some as well, but glued pcb to the cell too19:05
buZzWizzup: get a TS10119:05
freemangordonhere? are you in BG?19:05
WizzupHR19:05
freemangordonhmm?!?19:05
freemangordonwhat the?19:05
Wizzupcroatia19:05
buZzi really like the TS100, TS101 is slightly improved grip and USB-C PD power added (next to DC barreljack)19:05
freemangordonbrb19:05
buZzhttps://nl.aliexpress.com/item/1005004812591183.html19:06
buZzdont get a 'pointy bit' but something shovel-y19:06
Wizzupanything aliexpress takes two months, don't want that :)19:06
buZzhehe ok19:06
buZzgee two months, is BG mail that bad?19:07
Wizzupto NL it often took two months19:07
Wizzupthey just put it on a container19:07
buZzto .nl i get 14 days usually19:07
buZzsince they started paying postnl directly19:07
Wizzupmaybe now, it wasn't like that before for sure19:07
Wizzupaha19:07
buZzthat link i gave tells me 'delivery in 12 days'19:07
bencohyeah aliexpress got better here as well, although you'll still get some packages after 6~8w19:08
bencohhere that link says 25 apr, or 15d for USD8 shipping19:08
bencohis that soldering iron that good btw?19:08
bencoh(ngl it looks cool)19:09
buZzbencoh: i use the model before it , TS100 , for practically everything19:11
buZzwith a 4A 24V psu19:11
Wizzupfreemangordon: in bg is def have a soldering iron :)19:12
WizzupI de*19:12
WizzupI def.*19:12
buZzheats up fast, nice controllable temp, customizable firmware19:12
buZzthere's even a tetris firmware for it19:12
WizzupI have a nice one at home too, just not here19:12
buZzand supersmall if you want to bring it along19:12
Wizzupthey pay you to sell these? :P19:14
freemangordonbuZz: BG mail is bad, but that's not the point19:15
freemangordonalso, he is not in BG ;)19:15
buZzhehe ok19:16
buZzWizzup: no :)19:16
buZzlol that windows7 theme looks a bit .. rough :D20:16
buZzi guess its missing some window borders or something20:16
buZzmeh, i entered something in nano, but 'sudo poweroff' seems to not trigger nano autosaving :(20:33
buZzsilly, it does on my desktop .nano_save files for dayyys20:33
WizzupbuZz: @ theme, sure, it's some 10 y/o communit theme for n900 res devices20:46
buZz:)20:46
buZzdoes it look better on n900?20:46
Wizzupyes20:46
buZzits replacing part of the window borders with 'windows 7-ish' but the corners look like they're just my previous theme's20:46
Wizzupthe status bar is properly curvy there20:46
Wizzupfreemangordon: seeing this again:21:17
Wizzupscandir: Value too large for defined data type21:17
Wizzupdo you recall this?21:17
WizzupIIRC it was some qemu thing21:17
Wizzupin https://phoenix.maemo.org/view/Images/job/leste-image-bionic/120/consoleText21:17
Wizzuphttps://gitlab.com/qemu-project/qemu/-/issues/26321:18
Wizzupit might not actually be an issue for the image build, we'll see.21:19
WizzupI guess maybe this is why we had a 32 bit qemu vm21:19
Wizzupfreemangordon: did we move chimaera-devel to chimaera?22:33
Wizzuptrying bionic chimaera img23:22
Wizzupseems to work23:53

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