libera/#maemo-leste/ Tuesday, 2025-03-18

donihalimWondering what else should/can i do on the n900...06:39
sicelofreemangordon: Wizzup: upower issue created, https://github.com/maemo-leste/bugtracker/issues/76612:01
arno11donihalim: depends of what you mean: testing/optimizing new functionalities or fixing existing issues :P12:14
arno11(or porting new stuff ?)12:14
arno11i mean, apart modern web, almost everything else already works but needs most of the time optimization12:20
arno11(ah i forgot camera and bluetooth, which are the last not working things)12:21
sicelowith the omap3isp patch, camera at least probes correctly now, and shows the required v4l2 endpoints. it should be possible to get some images out of it12:26
arno11really cool12:26
sicelowith the bluetooth, i would like to investigate how to provide a bluetooth address to the driver. from discussion with sre, there's a timing issue somewhere (firmware perhaps?) which will be very hard to troubleshoot12:36
siceloanyway you never know ... maybe if we provide the address early enough, it might just make all the difference in the world12:36
sicelowith BT working (even if not perfectly), we would then be able to bring up the FM radio receiver :-)12:44
arno11:)12:46
inky> with the omap3isp patch, camera at least probes correctly now, and shows the required v4l2 endpoints. it should be possible to get some images out of it12:54
inkyomg12:54
Wizzupmy droid strangely doesn't want to connect to the network some of the time12:55
arno11i also got some troubles with chimaera: disconnections, wlan1 issue. not anymore with fresh daedalus12:57
Wizzupsorry, I meant the mobile network12:58
arno11ah ok12:58
arno11is it with ofono1 or 2 ?12:58
siceloarno11: regarding wlan1 ... someday i'll submit patch to make that problem history. we would no longer require the interface to be named wlan012:59
Wizzupofono 213:00
arno11nice13:00
Wizzupsicelo: yeah that does need fixing13:00
siceloi've looked at it a bit, and can see how we could implement it. -ETIME is the only major problem atm :-)13:01
siceloon the wlan topic, anyone has an opinion on iwd?13:05
Wizzupas opposed to wpa_supplicant?13:14
siceloyes13:14
WizzupI haven't tried it, but I'd be worried about compat with older devices and how we'd do host mode13:15
Wizzupand of course having to rewrite a bunch of C code :P13:16
siceloit supports hotspot. and works fine on N900, which i guess is oldest device we will ever support13:16
Wizzupwhat makes it more suited than wpa_supplicant?13:17
siceloI don't really know 😆13:18
Wizzupimo, if we wanted to swap out some things I'd want to replace PA with pipewire at some point13:19
siceloit is said to be mobile optimized (comes from ofono people)13:19
Wizzupif it can do host mode in the same daemon that could be somewhat useful13:19
siceloyes, hotspot is builtin13:21
Wizzupimo I'd prefer to defer just because it's more work13:27
siceloyeah, completely agree. it's a project for some future day :-)13:28
sicelonever ending list13:28
WizzupI hope that at some point it won't be never ending :)13:29
Wizzupbut for now, YES :D13:29
Wizzupif we were to set up gitea on say git.maemo.org or src.maemo.org (preferences?), should we allow openid/oauth logins from github and the like?13:29
sicelosauce.maemo.org :-)13:35
sicelojokes aside, I'd probably go for git.*13:36
arno11hmm got again that random issue when wifi burns +30mA...disappearing if i disconnect/reconnect13:50
sicelohow do you correlate that to wifi?13:51
arno11well, idle is around 45-47mA idle with modem on (3.5g). with wifi connected: 52-58mA13:53
arno11but sometimes 85mA with wifi13:53
arno11until i reconnect it13:54
arno11(or until i disconnect it and idle is back to normal 45-47mA)13:55
sicelook. maybe wpa_supplicant? we're still using same kernel from chimaera, right?13:55
arno11yes same kernel13:55
sicelomaybe htop or dmesg could give you clues?13:55
arno116.6.5313:56
donihalimarno11: how you measure the power consumtion?13:56
arno11sicelo: no htop or dmesg unusual stuff13:57
arno11donihalim: have a look in /sys/class/power_supply/bq27200-0/13:57
arno11very useful13:57
arno11i.e to get quite accurate idle current draw: sleep 30 && cat /sys/class/power_supply/bq27200-0/current_now13:58
arno11you can even check battery health and temperature14:01
donihalimCool, thanks for the tips14:07
arno11np14:07
mkfhello14:57
mkfcan the latest images be flashed on n900 or they are borken?14:58
arno11mkf: hi14:58
Wizzupmkf: hi14:59
mkfmkf: hi14:59
arno11latest daedalus works fine but you need to edit fstab to switch to sdswap14:59
mkfit uses mmc?15:00
Wizzuparno11: let me see if I can figure out the rootfs-overlay15:01
WizzupI think we can modify daedalus.blend, where it rsyncs the files, and see if we can have it be more clever15:01
arno11mkf: yes but just because of building issue15:01
arno11Wizzup: ok15:01
mkfok, thanks.15:02
mkfhttps://maedevu.maemo.org/images/n900/20250316-chimaera/ <- is this what i should download?15:04
arno11mkf: quite the same issue with last chimaera img: if you modify few files before first boot, it should be ok15:04
arno11but not OOTB15:04
dsc_mkf: hi15:05
mkfhi: dsc_15:08
mkfarno11: any noticable improvment on chimaera vs daedalus?15:08
mkfi.e: better battery or better performance in n90015:08
arno11things are quite similar15:10
mkfokay, how should i get daedalus image?15:10
donihalimcopying text from surf2 browser now works using https://github.com/cdown/clipmenu15:12
Wizzupmkf: let me see if I can kick off a new build15:12
arno11mkf: https://maedevu.maemo.org/images/n900/20250209-daedalus15:12
arno11but better to wait for new build indeed15:13
arno11donihalim: cool15:13
Wizzuphttps://phoenix.maemo.org/view/Images/job/leste-image-n900-daedalus/19/console looks like the latest build failed in removing the swap file from the build host lol15:14
WizzupI'll try to fix today & fix fstab15:14
arno11Wizzup: ok :)15:15
kivahow newcomers can know what imege should dl with any device? How many had dl some image that does not work and gave up and newer check leste again?15:15
donihalimanother n900 user, cool :)15:16
kivashould separate stable and dev images?15:17
WizzupI think the problem is doing swapon in the postinstall15:17
Wizzupmaybe we should not do that15:17
Wizzuparno11 ^15:17
Wizzupin leste config postinst15:17
WizzupI think mkswap and fstab writing makes sense, but swapon does it15:17
Wizzupdoes not*15:17
Wizzupagree?15:17
siceloyes, i agree15:17
Wizzupwill fix15:18
arno11Wizzup: let me few min to check something15:19
arno11yes you're right15:20
arno11that's probably the problem15:20
arno11'sw' option in fstab makes the swapon iirc15:21
Wizzupno, we called swapon explicitly15:21
arno11yes i know15:21
sicelowhat is that option? i can't find it in `man 5 fstab`15:22
Wizzuphttps://unix.stackexchange.com/questions/365953/what-sw-means-in-the-fstab-swap-entry-for-mount-options-column15:22
mkfopenbsd's fstab man page does mention sw15:22
arno11well, we don't need 'swapon /swap' but we need sw option15:23
mkf(alongside of rw, rq, ro and xx options)15:23
siceloon my N900 i have `/swap   none   swap   defaults   0   0`15:23
arno11otherwise, there is no swap on boot at all iirc15:23
WizzupI think we have it don't we?15:23
arno11yes that's what i said15:23
arno11sicelo: weird, iirc it didn't work before (without sw)15:24
sicelodevuan fstab also doesn't show that 'sw' :-)15:25
arno11on my ubuntu fstab, it is15:25
arno11anyway, the problem seems swapon /swap15:26
Wizzupback in a bit15:26
Wizzupyeah, the image-builder still had it enabled as swap :D15:26
Wizzupthat's why the rm failed15:26
arno11sicelo: oh now i remember how it works with sw15:30
arno11if you create the swapfile yourself, you don't need the sw option. at the opposit, if the swap file is created during the postinstall, you need it15:32
arno11otherwise, no swap at all15:32
arno11*opposite15:32
donihalim /swap is created when dist-upgrade to devel15:34
arno11Wizzup: ^^^ we had this issue when we switched to emmc swap by default (see irc logs)15:34
arno11donihalim: yes with chimaera, that's normal, emmc swap is still the default one without devel15:35
arno11donihalim: on daedalus, default is sdswap (like chimaera -devel) because emmc is buggy with kernel 6.615:39
WizzupYes, the swap file is created by postinst15:47
Wizzupthat is normal15:47
arno11should work fine now (hopefully)16:14
WizzupI still need to fix the fstab, but the postinst should be ok16:14
arno11ah yes @fstab16:15
Wizzupthe problem is that our daedalus.blend just overrides the fstab regardless16:18
WizzupMaybe we have it append instead?16:18
Wizzuphm... actually... there's *two* places where we override fstab, lol16:19
arno11lol16:19
Wizzuparm-sdk writes it, extra/n900/etc/fstab16:19
Wizzupand daedalus.blend writes it16:19
Wizzup        cat <<EOF | sudo tee "$strapdir/etc/fstab" >/dev/null16:20
Wizzup# fstab for arm system16:20
Wizzupnone /sys/kernel/debug debugfs defaults 0 016:20
Wizzup/dev/mmcblk0p1 /boot ${bootfs} defaults 0 116:20
WizzupEOF16:20
arno11what a mess16:20
Wizzupyup16:20
Wizzupso I can change arm-sdk not to write the emmc entry, which I think is what is still present, right?16:21
arno11yes agree16:22
sicelothe workings of the builder seem to be a mystery to me :(16:23
siceloand i need to understand it in order to add the L5 ..16:23
Wizzupit's actually not that hard, it is just a bit tricky because arm-sdk and vm-sdk aim to work to build images for devuan, regardless of maemo16:26
Wizzupand then 'maemo' is added as a 'blend'16:26
Wizzupso devuan has its own idea of what etc/fstab should look like16:26
Wizzupand then so does maemo with its rootfs overlay, and then our .blend file (mistakenly, imo) also overrides that16:26
Wizzupprobably not more than 10-15 minutes of dedicated concentation to fix16:27
siceloi'll give it a closer look again16:43
arno11for an hobbyist like me, yeah indeed builder is not so complicated: it is pleasant to troubleshoot compared to deal with valgrind and memory leaks lol17:02
inkymy bionic (which is stable) says it got an update for calendar and for some reason from ovi store. Is it expected?17:33
inky(:17:33
inkybut the description is 'an open source clone of the default maemo calendar application'17:34
dsc_yes calendar was updated recently17:35
inkygood, thank you17:35
dsc_they added new days and months17:36
inkythe 'ovi store' made me wonder where those words come from.17:36
dsc_I'm not sure about 'ovi store'17:36
dsc_where do you read it?17:36
dsc_what is it?17:36
inkyalas i didnt screenshot17:36
dsc_ah nokia17:37
inkywhen i tapped on the update indicator on the status bar it opened ham, i think, which mentioned at the top 'ovi store' and below 'calendar'.17:37
dsc_but yes it was updated17:38
inkygood to know, thank you (:17:40
dsc_yw17:41
Wizzupinky: 'ovi store' is just some translation string I think18:16
Wizzupbut yeah it's funny, I think it's due to the domain changes by freemangordon18:16
mkfhm, latest image doesn't work19:50
mkfhttps://maedevu.maemo.org/images/n900/20250209-daedalus/19:50
mkftries to run x11, dies somewhere before i can see a thing19:50
mkfi can only see tty.19:50
sicelotty allows you to type?19:54
mkfgood question.19:56
mkfit allows me to type19:58
mkfbackend 'seatd' failde to open seat, skipping19:59
mkf... <snip> ...20:00
mkf(EE) .......logind.c:137  Could not take device: no such device20:00
sicelocharge the device first :-)20:01
mkfum. how?20:02
mkf(maybe i should buy a seat before using modern linux, they all want seats :D)20:02
siceloi mean, charge the battery :-)20:13
mkfoh, i read it 'change'20:14
mkfthanks.20:14
sicelo5-10 minutes should be enough to get it to boot all the way20:15
Wizzup19:50 < mkf> https://maedevu.maemo.org/images/n900/20250209-daedalus/20:21
Wizzup19:50 < mkf> tries to run x11, dies somewhere before i can see a thing20:21
Wizzup19:50 < mkf> i can only see tty.20:21
WizzupI think this is upower20:21
siceloyes, he needs to charge, then upower won't trouble him20:22
mkfhm, i dont have a charger, i can charge batteries20:30
mkf(using a charge module)20:31
mkfi wonder if that casues the phone to not calibrate and think my phone is ran out of battery20:31
mkfi've tried two batteries right now.20:31
mkfi recall when i used leste before it thought my battery had 0 out of 2560(?) mW, which wasn't correct (and i had a regular BL-5J), so i wonder if that's because my battery isn't calibarated in leste (i wonder how can i do so without a charger port)20:34
sicelomkf: that won't help you (charging externally) ... the problem here is that the fuel gauge, which is inside the N900, is currently reporting 0% *even if* your battery has charge20:38
sicelopre-daedalus, we had patched upower so it would ignore that 0% and instead make some estimates. we want to drop that, https://github.com/maemo-leste/bugtracker/issues/76620:40
mkfgiven there are so many n900s with broken charger ports, is there a way for me to disable that check?20:43
mkfi have two n900s and both of which have broken charger ports. :)20:43
sicelomkf: that issue details a plan we are working on to disable that check, yes20:47
siceloin the meantime, you can chmod -x the upower binary, e.g. by mounting the card on a PC20:47
mkfvery well. thank you.20:48
arno11mkf: if you mount the card on pc, you should modify fstab to switch to sdcard swap21:00
arno11(or you can do the changes from fremantle if it boots btw)21:01
mkfi dont see any swap in fstab21:09
mkfonly /boot/efi (?) and /21:10
sicelojust add a new line with `/swap   none   swap   defaults   0   0`21:13
mkfokay.21:15
mkfthank you.21:15
arno11mkf: /boot/efi ? wtf21:16
arno11from n900 daedalus img ?21:17
mkfyes.21:18
mkfokay, booting with upower without execution permission still tells me no seat.21:18
arno11something is wrong you should see at least /boot and emmc swap (/dev/mmcblk1p3)21:18
mkfi dd'd  this https://maedevu.maemo.org/images/n900/20250209-daedalus/maemo-leste-5.0-armhf-n900-20250209.img.xz21:19
arno11it is the correct one21:19
arno11but /boot/efi is your pc's fstab, no ?21:20
mkfmy pc uses bios tho.21:20
mkfmight be thumbstick, let me recheck.21:20
arno11ok21:20
arno11you should see /dev/mmcblk0p1    /boot         ext221:21
mkfah. i see them.21:21
mkfmy bad, likely some thumb drive21:21
arno11ok21:22
mkfenabled swap21:23
mkfi wonder why it still refuses to run x1121:23
sicelostill fails the same way?21:24
mkfyes.21:24
sicelosorry i wasn't too clear21:25
sicelochmod -x the upowerd binary, not upower :-)21:25
mkfah. no worries, thanks.21:25
mkfx11 is up, thank you arno11, wizzup and sicelo21:30
mkfleste works reasonablely fast21:46
mkfcool.21:47
arno11mkf: you can even improve things with min freq @500MHz and sudo renice -n -9 $(pgrep Xorg)21:48
arno11same for systemui, hildon-desktop and mce21:48
arno11on each boot21:48
arno11and boost mode ofc21:49
arno11and low radius in transitions.ini21:50
arno11(see wiki)21:50
arno11the only 'major' issue we have with daedalus on n900 is slow Qt5 launch. there is a workaround but if you don't use Qt5 too much, no need21:54
dsc_i found about this upower issue today with my d4 :))22:13
siceloyeah, d4 is affected too22:27

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