libera/#maemo-leste/ Wednesday, 2025-03-26

Wizzuphttps://git.maemo.org/explore/organizations00:01
Wizzupfreemangordon: leste, leste-upstream-forks, leste-extras ok? (organisations)00:01
freemangordonmkf: re dts freq - because in fex that device has freq enabled that are higher than defaults in dts that's upstream07:31
freemangordonso it was running underclocked07:32
freemangordonhttps://paste.debian.net/1365329/07:34
siceloarno11: upower reports discharge rate as 215mW on my idling N900. is it typical?08:28
siceloah, looks good ... seems to be around 55mA. i guess it's acceptable08:29
mkffreemangordon: could you either send your kernel build or see how much power does you a33 sips (i test via sensors command, but there might be other ways)09:18
siceloWizzup: arno11: regarding the 'wrong09:56
sicelo'wrong' batteries and chargers on N900, https://github.com/maemo-leste/leste-config/pull/5809:56
sicelofreemangordon: Wizzup: how would i debug status-area-applet-battery since it's an .so? my changes don't seem to have any effect, for some reason i can't fathom10:14
sicelospecifically, i'd like to see why batmon.c isn't doing what i'd expect10:15
Wizzupyou cna use maemo-invoker / maemo-summone and gdb11:08
Wizzuphttps://leste.maemo.org/Debugging#Dealing_with_Maemo_Launcher_.2F_Maemo_Invoker11:08
Wizzupit specifically mentions status menu :)11:08
siceloty! i was search for that since i do remember reading it before. but my google-fu didn't help11:11
arno11sicelo: yeah, 55mA is acceptable. however, it usually fluctuates a bit between 44 and 56mA11:14
Wizzupwe need to work on our developer docs :)11:14
Wizzupfreemangordon: any objection to me working on migrating all core repos today? nothing will really change initially, but it'd be nice to push to both repos if there are additional changes11:15
Wizzupwe can also do say extra pkgs first[1;5D[1;5D[1;5D11:15
siceloWizzup: mmm, my lack of gdb-fu is catching up with me. i can start h-s-m as indicated on that page, but how do i actually gain access to what status-area-applet-battery:batmon.c is doing? e.g. to set a breakpoint so i can inspect variables at a given point in the execution11:25
mkfyou could put a bp at open() i guess?11:36
mkfand write/read11:36
mkfbut that might be too low level, applet might not be that low level11:37
Wizzupsicelo: get dbgsym installed, then you can do break source_file.c:lineno11:40
Wizzupor break <function name>11:40
sicelothanks. seems DISPLAY=:0 gdb --symbols=/usr/lib/debug/.build-id/82/906f43adfb5d228516e676db2ce4a5f26688fe.debug --readnow --args maemo-summoner /usr/bin/hildon-status-menu.launch works11:50
sicelooh nice, at least my mce stuff is working nicely. once capacity_level reported "Low" the device just started shutting down :p11:56
sicelommm, or not? i wonder what did shut it down, because it's not upower, and i didn't configure mce.conf for that on my device yet12:00
Wizzupmagic :)12:01
WizzupI suspect /var/log/ will contain some info12:01
sicelo2025-03-26T12:55:47.471253+02:00 localhost systemui[2813]: systemui: shutdown_ind from DSME, quitting12:08
sicelointeresting. wonder where/how dsme got that from12:08
siceloah, mce.ini:CriticalVoltage12:10
mkfcpufreq works.12:24
mkfbut power drain still remains unsolved.12:24
freemangordonmkf: don't expect too much from allwinner12:50
freemangordonI'd say 300 mA idle is ok12:50
freemangordonlemme check what mine is doing12:50
freemangordonthere is a reason I replaced original 2300mAh battery with 3x1800 mAh :D12:52
siceloheh, 3x? i.e. you stacked them?12:53
freemangordonconnected in parallel12:53
freemangordonPOWER_SUPPLY_CURRENT_NOW=-38800012:54
freemangordonthat's more or less normal12:55
mkfeh12:55
siceloyeah, SoC issue ... same issue with Pinephone and Librem512:56
freemangordonmhm12:56
mkfso allwinner should last less then n90012:57
freemangordontimes less12:57
mkfeven though it's battery can 5 times as large?12:57
freemangordonmhm12:57
mkfsux. :(12:57
siceloand ... bull's eye! the status menu stuff works good now :-)12:57
freemangordon:)12:57
mkfcongrats.12:57
sicelowill update the code, and submit MRs12:57
freemangordonsicelo: did you see my comment?12:58
siceloyes, i did. thanks. there were lots of other problems too, which the compiler complained about12:58
freemangordonok12:58
arno11sicelo: oh great @h-s-m !13:01
mkfwait tho.13:01
mkfthis isn't sipping 300mA13:01
mkfit's sipping 1mA13:01
mkf*1A13:01
mkfsomething is clearly wrong...13:01
arno11sicelo: ty btw for blacklist, now battery applet is ok and orange led as well13:02
arno11mkf: wow @1A13:02
mkffreemangordon: idle as in screen off?13:03
mkfor screen on and doing nothing?13:03
siceloarno11: ah, so that's why the last applet and led work didn't help you ... guess it was working for me because i'd done the blacklist correctly, but submitted garbage :p13:07
arno11sicelo: :P13:26
arno11sicelo: hm it doesn t work each time i plug on charger: sometimes charging notif appears immediately and it starts charging (with led working), and sometimes it starts charging after few sec with no notif and no led13:31
arno11if i unplug/plug charger, it works again (100% of time apparently)13:33
arno11hm not 100%13:35
arno11maybe 60% of time13:36
sicelommm, maybe our patches aren't all in place13:37
arno11yeah maybe13:41
sicelobecause on my previous (chimaera) image, it was working 100%13:42
sicelowill re-test after i'm done with this upower work13:42
arno11ok13:43
donihalimfriends laugh at me for using n900, until they receive whatsapp message from it13:50
arno11hehe :)13:56
sicelofreemangordon: Wizzup: MR's are up now, https://github.com/maemo-leste/status-area-applet-battery/pull/8/files14:04
sicelothis one doesn't really depend on the patched upower, since it just looks at the 'voltage' property of UPower, which is available in any version.14:06
mkfwhat do they do?14:06
siceloour long term plan is to drop the patched upower that we have ... which estimates the percentage from voltage if the fuel gauge does not report it14:07
siceloso we're trying to push some changes upstream ( https://gitlab.freedesktop.org/upower/upower/-/merge_requests/259/ ). since we will not be estimating in upower anymore, we need alternative for (1) ensuring device shuts down at appropriate time, and (2) we display some reasonable icon for the user.14:09
sicelothis patch does (2) above14:09
mkfyay14:09
sicelofreemangordon: Wizzup: for mce, https://github.com/maemo-leste/mce/pull/63/   ...14:10
sicelomkf: this one does (1) from the list above :-)14:10
mkfawesome14:11
Wizzupany ideas on how to best coordinate the migration to git.maemo.org, so that we don't have to manually try to keep thing in sync?14:18
WizzupI'd like to leave the gh repos open / as they are, but now sure how to make sure people go to the right place then14:19
Wizzup(or in case we want to switch back, then it's nice to leave them open too)14:19
mkfmaybe a git hook?14:21
siceloi think GH supports setting repos as archive?14:22
WizzupI don't really want to archive them14:24
Wizzupwe can have git.maemo.org push any changes to them14:24
Wizzupbut like for new pull requests, issues etc, it's better to have it on git.maemo.org14:24
WizzupI think there's value in keeping the repos synced14:25
WizzupI don't think we can do it when it is an arhive14:25
mkfyou can't undo a archive iirc14:26
mkfand yes, i think if leste or maemo.org ever dies, having sources in github would be helpful for future people14:26
sicelook. should be possible to disable creation of new MR's and Issues14:26
mkf(it's really hard to find stuff about cordia or other early n900 related projects)14:27
WizzupI mean I can just at least attempt to move all repos over now, as long as the folks with push access keep it in mind?14:38
Wizzupany objections to me starting with this today?14:42
sicelomaybe check if fmg also agrees :-)14:44
Wizzupfreemangordon: ^14:46
Wizzupin any case I can start by just syncing all the repos, this will take hours (not my time, computer time), and then we can re-clone some if they changed14:46
arno11sicelo: Wizzup: is it normal we use upstream upower in daedalus and not in chimaera -devel ?15:01
sicelowell, i'd say yes :-)15:03
arno11ok15:03
sicelofor one, in chimaera, we would have no hope to even run upstream upower, due to glib and gudev versions15:03
arno11ah ok15:04
siceloeven in daedalus, i found that to build 1.90.7, i had to downgrade gudev requirement by two versions. upstream actually wants 238, but daedalus only has 23715:05
sicelos/two versions/one version/15:06
arno11ok15:07
siceloi find the N900 too addictive :p15:12
siceloi had wanted to spend time on the L5 port, but N900 took over15:13
freemangordonWizzup: is short, do you ask me if I am ok with start using git.maemo.org instead of github?15:13
arno11sicelo: i perfectly know that feeling unfortunately :)15:16
Wizzupfreemangordon: yes but I also want to find a good time to do it15:20
Wizzupso that I don't sync everything, then we push to github and wonder if any code is lost15:20
arno11Wizzup: sicelo: @calls issue, PA returns 'memblock.c : pull full, and killed at the begining of the call. so i suppose it is low on memory but why ?15:56
arno11ah it says sink.c: Cannot update sample spec, SINK_IS_RUNNING, will keep using s16le and 48000 Hz15:58
arno11and module-suspend-on-idle.c: Sink alsa_output.platform-n900-audio.Voice_Call__hw_RX51_0__sink becomes busy, resuming.16:00
arno11weird that the issue only happens with ringtone, not with other kind of sound16:12
gnarfacemaybe it's something specific about the format of that ringtone file?16:13
gnarfacemaybe it's a weird format?16:13
arno11that's the original one16:13
arno11but we always had issues with nokia ringtones btw16:14
gnarfacewell i presume it's not S16_LE or 48000 Hz16:14
gnarfaceand/or16:14
Wizzuphttps://pulseaudio-discuss.freedesktop.narkive.com/tmXaf4Wq/lots-of-null-sink-memblock-c-pool-full16:14
arno11ty16:15
Wizzupthere is no solution in there :)16:15
arno11ok, fair enough, vibrator works fine16:15
arno11:)16:16
Wizzupno, I mean, we do want to solve this16:18
arno11yes ofc lol16:18
Wizzupdidn't we increase the amount of ... memfds or so that pa could open?16:18
Wizzupsomething with shm at least16:18
WizzupI wonder if that maybe got lost somehow16:18
WizzupI can't wait to switch to pipewire16:19
Wizzuplol16:19
arno11yeah i tried to modify shm but same result. i didn t try to decrease it btw16:19
Wizzupok16:19
arno11yeah @pipewire16:19
Wizzupfreemangordon: I'll add droid4-linux and see how that goes, since it's a huge repo16:25
freemangordonok17:05
freemangordonotherwise I am fine17:05
Wizzupok17:09
mkfxfreemangordon: sorry to mention you again, can you specify how you tested your sunxi? With screen off?17:12
freemangordonmhm17:17
freemangordonthrough ssh17:17
freemangordonif by "tested" you mean getting power usage17:17
mkfxCould you also test with screen on, wifi on, max backlight?17:18
freemangordonsec17:18
freemangordon-93500017:19
mkfxSo 1A17:20
mkfxVery well. I thought something was wrong with my dtb17:21
freemangordonyeah, allwinner is a hungry beast17:26
WizzupI'd be very happy if we can get some sunxi/allwinner images going again17:27
freemangordonme too17:27
WizzupI have so much sunxi hardware and I'd still like to a lime2 or olinuxino64 into a car navigation system :)17:27
Wizzupliek to turn*17:27
freemangordonheh17:27
freemangordonunfortunately the tablet I have here has no gps17:31
WizzupI was planning to hook up a usb modem to the lime2 or olinuxino17:32
freemangordonhow precise that would be?17:33
freemangordonor, you mean modem with gps?17:33
Wizzupyes17:33
Wizzupalmost all of them have gps17:33
freemangordonreally?17:33
Wizzupsure, the ones you have all do gps17:33
Wizzupthe quectel ones17:34
freemangordondo they? ok, cool.17:34
WizzupEG25-G supports Qualcomm IZat location technology Gen8C Lite (GPS, GLONASS, BeiDou/Compass, Galileo and QZSS) and the optional multi-constellation GNSS receiver greatly simplifies product design and provides quicker, more accurate and more dependable positioning.17:34
Wizzupglonass being the russian one, galileo being the european one17:35
freemangordonI have ec25-e17:35
freemangordonyeah, seems it supports it17:35
Wizzupyeah, and they work if you have a few of the udev rules in place17:37
WizzupI think I showed this off on openfest with the lime2's some years ago17:37
freemangordonwhat do I need udev rules for? ofono supports location on qmi devices17:39
Wizzupgpsd device name17:39
WizzupI don't think we've ever used ofono for location17:39
Wizzuphttps://git.maemo.org/leste-upstream-forks/droid4-linux loading the branches take a bit of time18:24
Wizzupyeah, the linux repos might cause some problems18:28
WizzupI could add some more cpus I suppose18:38
mkfxWizzup: sounds good.18:39
mkfxPretty much all features of my q8 work, it's just too hot/uses too much power.18:39
mkfxI might go for a13 support next18:39
Wizzupas I understood it (years ago though) a13 was usually a less supported soc than the a10/a20/a33/a6418:41
sicelowhile Leste isn't really bullying18:46
sicelo mkf  while Leste isn't built around that (for good reason), maybe you can look at suspend to ram when idle18:47
mkfx(re: a13)18:48
mkfsure.19:03
mkfhi21:13
sicelohey21:14
sicelofreemangordon: thanks for review. am i correct to say that in addition to the suggested cchange, i should also add `g_free(upowbat.supply_level);` after https://github.com/maemo-leste/mce/blob/8cb9bfa401ceba27899dbbabeba86e9df5cebaa2/src/modules/battery-upower.c#L553 ?21:16
mkfi think my last message didnt get here, did it?21:16
siceloit didn't21:16
mkfother than pine phone, n900 and motorollas there are no well supported targets?21:17
siceloyes. there is a poco f1 port, but it's not really maintained afaict.21:18
sicelothere should also be Librem5 by now, but as you can see, i'm busy wasting time on N90021:18
* sicelo hides21:18
mkfhm, i can't find any motorola, pinephone or liberm in my country21:19
siceloanyway, anyone can submit a port and i'm quite sure it'll be accepted, as long as said person is available/willing to maintain it21:20
mkfi might port it to lg v20, since that seems like a nice phone and i already have one.21:20
mkfi just need to root it i guess.21:20
sicelomkf: pick any other phone that is well supported by mainline, e.g. Samsung A3/A5 2015, Poco F1 (you can pick up the port), Oneplus 6/6T, Pixel 3a,21:22
sicelointeresting that lg v20 ...21:24
siceloseems kernel for it would be https://gitlab.com/msm8996-mainline/linux ... but it has weird screen. do you even have bootloader unlocked on it? seems only US variant can be unlocked21:29
mkfit can be unlocked thru hacks for all varients, only us varient can be unlocked offically21:31
sicelook21:33
arno11part #maemo-leste23:36
arno11lol23:36

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