libera/#maemo-leste/ Tuesday, 2023-02-14

maemish_https://usercontent.irccloud-cdn.com/file/Oyyo13Ys/MVIMG_20230214_031557.jpg07:58
maemish_https://usercontent.irccloud-cdn.com/file/t9zCHSs9/MVIMG_20230214_031505.jpg07:59
maemish_https://usercontent.irccloud-cdn.com/file/WsUbEGyK/MVIMG_20230214_031557.jpg08:00
maemish_Epiphany browser starts quickly but after it opens and you see the page it crashes.08:00
maemish_This is seen in xterm after that08:01
freemangordonget a backtrace08:03
Wizzupfreemangordon: could easily be out of ram, too09:27
Wizzuptrying to browse the modern web on a n900 is like using a 2004-2005 celeron (which is actually way more powerful) to try and browse the modern web09:28
Wizzupmaybe some super simple thing like dillo can work, but it won't support all the new stuff09:28
siceloyeah. realistically, people should mostly just stop using/obtaining N900 if browsing is a main requirement. there's not a lot that we can do about the web getting bloated, and that trend won't stop09:51
n900but still awesome as an irc client! :)10:33
Wizzup:p10:34
uvos__Wizzup: ping11:02
uvos__maemish_: sicelo: yeah even the mapphones are pushing it when used to browse modern webpages11:03
uvos__im suprised qtwebrowser manages to dsiplay any page of any complexity on n90011:04
uvos__ff just ooms immidatly so its better than that :)11:04
freemangordonright11:07
maemish_But Maemo 5 with Opera Mobile, Fennec or Micro-b with nginx loads just fine without problems. So it is not just the question of bloated web.11:11
freemangordonmaemish_: right, but none of the 'modern' browsers is optimized for 256 MB of ram11:13
freemangordonalso, which exactly page microb or opera have no issue loading? besides tmo that is11:13
freemangordonalso, do you have swap enabled? also, make sure to disable ramzswap11:14
maemish_I have been using Opera just fine for browsing. Or Fennec. And Micro-b with nginx works suprisingly well.11:14
freemangordonfor some reason it is enabled on n900 making things even worse11:14
freemangordonok, but lets have one site that loads ok in fremantle and use it as a benchmark11:15
freemangordon"fine for browsing" is too general11:15
maemish_I have not done any tweaks for swap. Thought there is swap by default.11:15
freemangordonnope, iirc11:16
freemangordonbesides ramzswap and that shall be disabled11:16
freemangordonso make sure to disable ramzswap and enable emmc swap11:16
freemangordonand try again11:16
freemangordonbut don;t expect miracles, FF is FUBAR after v7811:17
maemish_Is there any info how to? Like to an idiot level?11:17
freemangordongive me the output of "swapon -s"11:17
maemish_Not having device at hand. At work. Will do in the evening. Thanks for bothering to help.11:18
freemangordonok, I will be a bit busy in the evening, but in general you need swapon/swapoff commands11:19
freemangordonand you have to identify emmc swap partition11:19
freemangordon(s)fdisk -l11:19
maemish_Have been active on the forum helping others without using N900 for a year. Lot to remember.11:20
maemish_Your info made this idiot to say "Huh?"11:21
freemangordonhmm?11:21
freemangordonwhy is that11:21
maemish_But thanks. Gonna see if I can with that info and with help from my friend go forward. It is no problem.11:22
freemangordonI mean - maybe ask google how to list enabled swap etc11:22
freemangordonok11:22
maemish_Thanks.11:22
sixwheeledbeast`blkid -t TYPE=swap`  ?11:24
* freemangordon just learned something new :)11:25
sixwheeledbeastso performance is better if swap is on the device?11:26
freemangordonfor leste, yes11:26
sixwheeledbeastah11:26
freemangordonlike for fremantle swap has to be on uSD ;)11:26
sixwheeledbeastthat's why i wondered.11:27
freemangordonsixwheeledbeast: on fremantle /opt is on emmc11:28
uvos__idk if thats true11:28
freemangordonuvos__: what is "thats"?11:28
uvos__for d4 a modern sdcard is mutch faster with random writes11:28
uvos__than its emmc11:28
freemangordonnot for n90011:28
uvos__and seqential is mutch faster too11:29
uvos__if you enable 100mhz hack11:29
freemangordonwe talk n900 here11:29
uvos__n900 can do this hack too11:29
freemangordonbut, swap on emc means 2 io channels11:29
uvos__freemangordon: i would not be so sure, i have a sdcard that can saturate the bus at 50Mhz with random writes11:29
freemangordonone for root and another for swap11:29
uvos__ie 25MB/s11:29
freemangordonon n900 emmc does more than 15MB/s11:30
freemangordoniirc11:30
uvos__well thats al lot slower than a good application class sdcard11:30
Wizzupuvos__: pong11:30
freemangordoncombined with separate channel gives better performance in general11:30
freemangordonswap io should not wait for rottfs io11:30
uvos__freemangordon: sure maybe, but its not that clear cut as you make it out to be11:30
freemangordon*rootfs11:30
freemangordonalso, you talk about some hacks and special cards11:31
uvos__freemangordon: no hacks11:31
uvos__freemangordon: for faster random11:31
uvos__but yes you need a "special" ie modern application class sdcard11:31
freemangordonuSD on n900 is 2 lines, IIRC11:31
freemangordonemmc is 411:31
uvos__right11:31
uvos__but this dosent matter if emmc cant saturate its bus11:32
freemangordonsure11:32
freemangordonbut emmc on n900 is *very* fast11:32
uvos__Wizzup: just wonderning what you wanted11:32
uvos__freemangordon: 15 years ago, sure11:32
freemangordoncan;t remember the benchmarks from back then11:32
maemish_You guys can't even believe how lucky I feel to follow this conversation.11:33
Wizzupuvos__: just a sec11:34
maemish_Peak behind the scenes to esoteric info.11:34
freemangordonuvos__: unfortunately google does not give any results for n900 emmc benchmark11:34
uvos__freemangordon: ok well we should disable zswap and add a script that asks the user where to place swap maybe11:35
freemangordonbut I can assure you that copy over usb mass storage is done with 16MB/s11:35
freemangordonright11:35
freemangordonzswap on n900 is very bad idea11:35
uvos__thats ~seqential then and really slow,11:36
bencoh16MB/s is very decent for a 2009 device11:36
uvos__compeared to a modern sdcard11:36
freemangordonnot really sequential11:36
sixwheeledbeastsomeone on tmo claimed 13000Kb/s using flasher3.5 output ?11:36
uvos__shoudl be fairly seqentuail, depending on allocations on the card ofc11:36
bencohI'd say it counts as sequential as well yeah11:37
freemangordonsixwheeledbeast: this is not good benchmark11:37
freemangordonbecause we have USB playing there11:37
sixwheeledbeastfair enough11:37
maemish_https://youtu.be/FSsGyuqOZRU11:37
freemangordonsixwheeledbeast: I remember running benchmarks locally on the device back then11:38
freemangordonbut neither can remember nor I can find the results :)11:38
freemangordonuvos__: still, my gut feeling tells me that a separate io channel for swap will be better than even the fastest uSD card, as it is not only the raw speed thet matters11:39
sixwheeledbeasti'd like to stick to my cycling swap defragging method if required, so just interested in performance for leste having all on the card.11:39
freemangordonmaybe provide so benchmarks if possible11:40
freemangordon*some11:40
sixwheeledbeastit does make sense bandwidth wise i agree11:40
uvos__freemangordon: that might be true, is deffinatly true when the sdcard is otherwise loaded, but idk how this presents itself in regular usage11:41
freemangordonIIRC omap3 runs its mmc bus on max 54MHz, right?11:41
uvos__something to play around with11:41
uvos__freemangordon: yes, scard spec requires 1.8v trancievers if you want to do more11:41
uvos__which we dont have11:41
uvos__*sdcard11:41
freemangordonso, theoretical bus bandwith for uSD is 54/4 = 13.5 MB/s, no?11:42
uvos__bus with should be 4 and 8 not 2 and 411:42
uvos__iirc, def true for d411:43
freemangordonumm, have to check it, but I think on n900 it is 2 and 411:43
uvos__i thin 2 isent valid for sdhc11:43
freemangordondoes anyone have n900 boot dmesg log around?11:44
freemangordonkernel tells us the bus width11:44
freemangordon"mmc1: switch to bus width 1 failed"11:46
bencohmaybe, lemme check11:47
bencohhmm, nope, sorry. are you looking for fremantle or leste btw?11:48
freemangordonwell, we are looking for  upstream kernel :)11:48
bencohah, nevermind then11:49
freemangordonjoerg: do you remember uSD vs eMMC bus widhts on n900?11:49
freemangordonuvos__: right, according to schematic we have MMC_DATA0 to MMC_DATA3 for MMC1 and  MMC_DATA0 to MMC_DATA7 for MMC211:52
freemangordonso uSD is 4 bits11:52
bencohmmc1 has 4, mmc2 has 811:52
freemangordon:nod:11:53
bencohlooks like we're looking at the same pdf :]11:53
freemangordonjoerg: nevermind11:53
freemangordonbencoh: yeah11:53
freemangordonuvos__: so, max theoretical transfer is 27MB/s11:53
uvos__freemangordon: right so any modern uhs sdcard can massivley outperform emmc11:54
uvos__seqentally11:54
uvos__and A class ones with do mutch faster random11:54
freemangordonI am still not convinced, because those 16MB/s are over USB11:55
freemangordonif we bench eMMC on the device, I will not be surprised if we see like 25MB/s11:55
freemangordonmaybe I can do that soon11:55
freemangordonremember back then in HDD times? all the recommendations were to have swap on a separate HDD (and on a separate IDE channel), even if that HDD is slower than rootfs one?11:56
uvos__sure11:56
freemangordonthe same here11:56
uvos__but on d4 emmc can do about 40MB/s11:57
uvos__sequentally11:57
freemangordond4 is another beer11:57
uvos__and like 10 random11:57
freemangordonHW wise those are incomparable11:57
* sixwheeledbeast still uses spinning disks with two swap partitions on another disk...11:57
uvos__so if n900 is same ballpark the increased random speed helps more than io contention hurts11:57
freemangordonuvos__: afaik eMMC on n900 has very high random speed compared to uSD cards11:58
freemangordoneverything but 256 MB of rootfs is on eMMC11:58
uvos__i have a sdcard that can saturate random writes on d4 at 100MHz bus speed11:58
freemangordonwow11:58
uvos__ie about 45MB/s11:59
uvos__its not that special even11:59
uvos__just a A2 card11:59
freemangordonmay I have a model? I am struggling to find a good uSD card here, no matter the price11:59
freemangordon*the model11:59
uvos__sure11:59
uvos__but i dont have it on me rn11:59
freemangordonno hurry11:59
uvos__ill post it later11:59
freemangordonok12:00
joerg>>mmc1 has 4, mmc2 has 8<< just watch out for mmcs getting renamed, at least in fremantle14:05
joergthey swap places/names/numbers14:06
joergiirc max speed on uSD in N900 always maxed out at 12.5MB/s, in line with 25MHz@4bit ?14:46
joergthere are faster uSD interfaces but... prolly not for OMP34xx14:47
joergOMAP*14:47
uvos__joerg: should be 50MHz (max speed of standart sdhc @ 5V) @4bit14:49
uvos__practicly about 22MB/s or so with overhead14:49
joergyeah, but... maybe a signal integrity issue? I don't know14:52
joerganyway the 12some MB/s I recall quite reliably14:53
joergit's what mc etc shown me when I copied huge amounts of data to/from uSD14:54
joergpossibly for write though, which must be even slower than read14:55
uvos__sure your usd card must be able to saturate the bus ofc14:56
* joerg idly wonders what uSD if any is in Iron90014:57
joerghmmm, mount doesn't suggest there's ANY uSD in my IroN90014:59
joerg:-/  https://termbin.com/fhlz315:04
maemish_freemangordon:  https://usercontent.irccloud-cdn.com/file/0fGdAzS2/MVIMG_20230214_163318.jpg15:33
maemish_freemangordon: How do I identify emmc swap partition?15:49
maemish_And change away from using zram?15:50
buZzmaemish_: emmc swap?16:20
buZzi dont think by -default- any emmc is used for swap?16:20
buZzuvos__: any luck in finding that sphone selectbox issue?16:21
buZzcould just hardcode it to ofono in https://github.com/maemo-leste/sphone/blob/master/src/modules/gui/gtk2/ui-messages-gtk.c#L20916:23
buZz:P16:23
buZzi guess this? https://github.com/maemo-leste/sphone/blob/master/src/modules/gui/gtk2/ui-messages-gtk.c#L14916:24
buZzseems to default to '0'16:24
buZzah no, thats 'column' , wonder what that means in this context16:26
uvos__buZz: havent looked16:26
uvos__im sure its farily trivial16:26
buZzyeah it must be something with that hildon_touch_selector i guess16:26
uvos__https://github.com/maemo-leste/sphone/blob/e851cd95c689b6fbf3c72c4aca82d62af6cf632d/src/modules/gui/gtk2/ui-messages-gtk.c#L209maybe check with gdb what backend_name is16:28
uvos__maybe16:29
uvos__not sure how the selector can show ofono as the current selection but then not return ofono to hildon_touch_selector_get_current_text16:30
uvos__maybe we should check if the non-hildon path works16:30
uvos__i gues the one in the dialer works16:36
uvos__the only difference is that https://github.com/maemo-leste/sphone/blob/e851cd95c689b6fbf3c72c4aca82d62af6cf632d/src/modules/gui/gtk2/ui-messages-gtk.c#L149 is not called16:37
uvos__if thats it that seams like a bug in libhildon\16:37
uvos__buZz: if you have the time maybe comment out that line and see what happens16:37
uvos__ah i get it16:40
uvos__yeah16:40
uvos__so when sending a new message msg->backend is NULL16:40
uvos__er uninialized16:41
uvos__so we pass some random colllumb as selection16:41
uvos__ofc this dosent exist16:41
uvos__thats the bug16:41
uvos__yeah non-hildon path works fine on my laptop16:44
uvos__but the bug is in sphone in the hildon path16:44
buZzhmhm16:45
buZzdoes sphone have src packages on our repos?16:45
uvos__idk16:45
uvos__;D16:45
uvos__i have no idea where src packages come frome16:45
uvos__i gues it should16:45
uvos__ci should build one16:45
uvos__idk if it gets copied to the repo or not16:45
uvos__just clone it from git (imo)16:46
buZzapt source sphone, works16:46
buZzthere's another hildon_touch_selector_set_active() in the code16:48
buZzline 7516:48
buZzi'll comment out 149 and try it16:49
uvos__buZz: that ones fine16:49
uvos__it just selects whatever is the first backend loaded16:49
uvos__if you comment out 149 the bug should dissapear16:50
uvos__but the backend wont be selected correctly if you click reply16:50
uvos__(it will be the first backend instead of the one of the message)16:50
buZzbut i disabled commtest in sphone.ini ;)16:50
uvos__sure yeah16:50
uvos__it will allways be ofono16:51
uvos__and atm thats the only backend anyhow16:51
buZzgood16:51
buZzok, got my build installed, lets see16:56
buZz'sudo reboot' really takes ages sometimes :D16:59
uvos__would have been no need for a reboot16:59
uvos__killall sphone should have been enough16:59
buZzthanks for the help on this btw, uvos__17:00
buZzits been such a annoyance :P17:00
buZzjust weird that 'sudo reboot' takes so long vs 'sudo poweroff' being near instant17:01
uvos__poweroff also takes long sometimes17:01
buZzahhhhh sweet, it works now \o17:02
buZzwith 149 commented out17:02
buZzwant me to PR that?17:02
buZzmaybe i should try it with commtest enabled again17:03
buZzoh, commtest -is- enabled again :D hahaha17:03
uvos__buZz: no commenting it out is not a solution17:04
uvos__i need to write a real fix17:04
buZzalright, either way, with that line removed its functional17:04
uvos__buZz: yeah you dident follow my instructions and not edit /usr/share/sphone/sphone.inii17:05
uvos__:)17:05
buZzyes, i am a rebel17:05
buZz:D17:05
uvos__you supposed to edit ~/.sphone/sphone.ini17:05
uvos__:P17:05
buZzi'm just happy it works :)17:05
buZzso i can finally initiated conversations17:06
joergpoweroff might only fake being fast17:14
buZzit seems to be legit, it can powerup aswell when it finishes17:15
buZzi think i can boot whole device before a 'sudo reboot' even powers off the device :P17:16
buZzs/powers off/powercycles/17:16
joergit's easy to shut off RF, LEDs and LCD17:16
buZzright but you can see it being legit if you press powerbutton and motorola logo comes :)17:16
joergyep17:16
joergmake sure you got no power source (USB) connected17:18
joergor "power off" may be complete fake17:19
buZzyeah i rarely do17:19
uvos__poweroff dosent fake anything17:23
uvos__mce (ie shutdown via power menu) fakes it a bit by instantly turning off the display17:24
buZzsometimes i'm considering trying to get boot animations17:24
uvos__but it keeps the status led on untill real power off17:24
buZzor maybe just a bootsplash screen during kernel msgs17:24
uvos__buZz: plymouth should just work ootb17:24
uvos__on d417:24
uvos__so just install it17:25
buZzyeah? just apt install plymouth?17:25
buZzi'll try17:25
uvos__and activate the service17:25
uvos__should work, but for early boot you would need plymouth in initramfs17:25
uvos__i dont like hideing the kernel anyhow17:25
buZz'package plymouth is not available'17:25
uvos__kernel messages that is17:25
uvos__buZz: hmm17:26
buZzi'm still on buster17:26
uvos__dunno if its even in devuan17:26
bencohit is17:27
buZzhttps://git.devuan.dev/devuan/plymouth17:27
uvos__cant find it on my d4 either17:27
uvos__strange17:27
buZzuvos__: are you on chimeara?17:27
uvos__no17:27
buZzoh ok17:27
buZzmaybe the package couldnt get built for arm?17:28
bencohuvos__: is there a way to disable that poweroff black screen and get system/kernel logs instead?17:28
uvos__well not with this device anyhow17:28
uvos__bencoh: besides using poweroff _17:28
bencohI'd rather have my device report about poweroff going awry than just a black screen17:28
uvos__?17:28
bencohuvos__: yeah17:28
buZzit exists on my x86 devuan ; plymouth/stable 0.9.5-2+devuan2 amd6417:28
bencohI mean, if poweroff is the only answer it's fine17:28
uvos__bencoh: no17:28
uvos__not atm17:29
bencohokay17:29
bencohis poweroff really fine though, or does it skip on some stuff that leste ecosystem needs to take care of before shutdown?17:29
uvos__should be fine, the shutdown dbus signal is not activated17:30
uvos__but if something relies on that so hard that it causes problems its a bug17:30
uvos__i dont think there is any user of this signal at all17:31
uvos__besides mce and dsme17:31
uvos__buZz: hmm17:32
Wizzupbencoh: yes it skip stuff, but it's probably not super harmful17:34
buZzWizzup: any idea if plymouth is available on chimaera?17:43
buZz(on d4)17:43
Wizzuprafael2k_: do you need me to do anything for the pp atm?18:40
Wizzupother than fixing the arm64 image builder for chimaera:)18:40
rafael2k_nope, all good!18:52
rafael2k_A suspend button in the power menu would be great (may be just triggering suspend directly)18:53
rafael2k_btw, my pp keyboard did not arrive yet... but it coming18:53
Wizzupcheck18:56

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