libera/#maemo-leste/ Thursday, 2023-03-16

uvosi know nothing of sutch00:00
arno11Wizzup: you should try overclocking as well00:01
arno11no difference with pm00:01
Wizzuparno11: if you can make an issue on gh and share kernel patches that will help00:01
arno11why not00:02
WizzupI will find a new sd card and flash chimaera to it meanwhile00:02
arno11overclock stuff is already on the n900 wiki00:04
arno11fyi00:04
Wizzupaight :)00:04
Wizzupissue would be useful, just because it's easier for me/us to track that way00:04
arno11ok00:04
Wizzupit can point to the wiki for all I care :D00:04
arno11:)00:05
Wizzuphm I get no wifi on chimaera image on n90001:02
Wizzupoh, something happens now01:04
WizzupI think I need to give it more time :)01:04
WizzupRemoving xserver-xorg-legacy (2:1.20.11.2-1+m7) ...01:33
WizzupKilled01:33
Wizzupno swap- oof :)01:33
freemangordonuvos: please have a look https://github.com/maemo-leste/libhildonmime/commit/aa4ab14b370268d7e0fe83c434466bf83797470a08:53
freemangordonsorry, that one https://github.com/maemo-leste/libhildonmime/commit/6b28559fca1659904fa369aec4bd7550a18730c108:55
uvos__freemangordon: looks good, one small concern i have is that you removed the check for the return value of g_desktop_app_info_launch_uris_as_manager09:33
uvos__this will return false if a .desktop file is availble to handle the sheme, but its exec line points to an application that dose not exist.09:33
uvos__err g_app_info_launch_uris_async09:34
freemangordonuvos: yes, that was on purpose, because the original code does the same10:42
arno11Wizzup: i forgot to mention the missing swap on first boot11:44
arno11apologies11:44
Wizzuparno11: what did you find causes the slowness?11:44
Wizzupor did you just solve that with overclocking11:44
arno11after two reboots no more slowness11:45
arno11with swap enable and extand root11:46
arno11with no overclock it is relatively smooth11:46
arno11overclock helps espacially for video decoding11:49
arno11sdcard under class 10 causes slowness as well especially with aptitude11:51
arno11iirc the slowness after booting is due to automatic apt update every 5 min11:55
arno11disabling it helps a lot11:56
arno11sorry to forgot all of that11:56
freemangordonuvos: also, I changed to use g_app_info_launch_uris_async() which returns void11:57
Wizzuparno11: I see12:26
Wizzuparno11: interesting that it's so slow the first few times12:26
arno11yes weird12:27
Wizzuplike, after I dd'd it, it was unbearably slow12:27
Wizzuplike I tried to connect to wifi 5 times but the dialog wouldn't even show12:27
Wizzupand I did wait a while12:27
Wizzupthis could be swap related, potentially12:27
Wizzupor rather, the lack of it12:27
arno11yes probably12:27
uvos__what, are we oom, or close to it on boot on n900 now?12:35
Wizzupprobably12:35
uvos__uff12:35
WizzupI thought we had zswap enabled by default12:35
arno11yes close to oom12:36
uvos__dosent bode well12:36
uvos__we still have a lot of features to implement and any move away from gtk2 will use  more ram12:36
Wizzupsure12:37
Wizzupfremantle also has 750MB of swap12:37
WizzupI doubt it would work without12:37
arno11honestly after few tweaks it runs well12:37
arno11i have created a simple 1G swap with no zram and it works perfectly12:41
arno11even a big ram consuming app like kodi 17 works great12:42
arno11be optimistic guys your work on leste is fantastic even on n90012:43
maemish_I am following this everyday and I so much appreciate your work. Did not get any answer for my question about getting with new release instructions for getting the swap and for overclocking. The 250/900 setup for overclock worked perfectly on Maemo 5.12:47
uvos__there are instructions on overclock on the wiki, and activateing swap is no different than any other linux distro12:54
uvos__but it seams we will have a swap partition on sdcard soon anyhow...12:54
arno11hi Maemish. yes you could use wiki to overclock 250-80012:55
arno11and for swap i will update the wiki asap12:57
freemangordonuvos__: I still think we shall use emmc dedicated swap13:05
WizzupI think ideally we would have these patches in our kernel13:05
Wizzup12:44 < arno11> be optimistic guys your work on leste is fantastic even on n90013:05
Wizzup:)13:05
freemangordon:)13:05
Wizzupfreemangordon: for emmc dedicated swap, if you can share fstab line we can just put it in our images13:06
freemangordonarno11: seems you played a bit, do you have any thoughts about whether it is better to use swap on uSD or emmc13:06
Wizzupand hope that people didn't reformat their emmc13:06
freemangordonit is another partition anyways13:06
Wizzupor have one on sdcard by default, and make it easier for people to switch13:06
uvos__what patches exactly?13:07
Wizzupuvos__: https://leste.maemo.org/Nokia_N900#Overclocking_.2F_Undervolting13:08
Wizzuplooks like 'just' some dts changes13:08
freemangordonarno11: given that rootfs is on uSD too13:08
freemangordonWizzup: I am reluctant to patch the kernel to OC by default13:09
uvos__Wizzup: wat? you want to overclock our stock kernel?13:09
uvos__no way13:09
arno11freemangordon: swap better on usd13:09
freemangordonwhy?13:09
uvos__we can provide another dtb to boot sure13:09
Wizzupwe can provide a package for it in any case13:09
freemangordonok13:09
Wizzupuvos__: right, I didn't mean by default per se13:09
freemangordonthat's better13:09
Wizzupbut it's better than requiring users to manually modify images13:10
Wizzupthat will cause trouble later13:10
freemangordonuvos__: what about providong dtb that enables OC frequencies, but limit through debugfs by default?13:10
freemangordon*providing13:10
freemangordonhmm, was it on debugfs13:11
freemangordonwherever it is13:11
freemangordonarno11: why is better on uSD?13:11
arno11freemangordon: better on usd to avoid mistakes on emmc and break everythig from user point of view13:13
freemangordonmy question was rather from performance POV13:13
arno11oh ok13:13
Wizzupfreemangordon: I think we can just add two lines to /etc/fstab, one with swap on usd, and one with swap on emmc, the emmc one commented13:14
Wizzupfreemangordon: do you have such a fstab line for me? I will try it now13:14
freemangordonwe can make smart enough script that enables emmc swap if there is one and create swap loop file or somesuch otherwise13:14
freemangordonWizzup: no, but I can provide one13:14
freemangordonI gues13:14
freemangordons13:14
freemangordonnot now though, sorry13:14
Wizzupok, i'll figure it out13:14
arno11sounds good13:14
Wizzupswapon /dev/mmcblk1p313:15
Wizzupworks in any case13:15
arno11Wizzup: freemangordon: maybe a bash script is enough to provide overclock and avoid issue with users13:17
Wizzupright, but we would want it to run on kernel upgrades13:18
freemangordonumm, why?13:19
Wizzupuvos__: is patch for idlest1 included in our kernel?13:19
freemangordonit should run on boot13:19
Wizzupuvos__: I don't see it13:19
Wizzupthere was a patch for extra pm info13:20
freemangordonWizzup: so, do we have -testing repo now?13:20
uvos__freemangordon: btw fast sdcard was this onehttps://geizhals.de/sandisk-extreme-r100-microsdxc-64gb-kit-sdsqxaf-064g-gn6ma-sdsqxaf-064g-gn6aa-a1620820.html13:20
Wizzupuvos__: this is 'Allows seeing the deeper idle state blockers in...'13:20
uvos__it saturates d4 bus in all modes as tested by "iozone -s 10M -r 512 -i 0 -I -i 1 -i 2 "13:20
uvos__maybe run that on n900s emmc13:21
Wizzupuvos__: 8ee02090a5bd936bf0feb806fbfb6de5366ac6b8 on maemo-5.1513:21
uvos__Wizzup: ok13:21
freemangordonI don;t have n900 around to play with, maybe arno11 can do it13:21
Wizzuplet me see if it applies cleanly13:21
freemangordonarno11: can you test emmc on n900 with that uvos__ provided?13:22
uvos__what dose this do exactly?13:22
Wizzupuvos__: it exposes the blocker bits from omap to userspace13:22
Wizzupso we can see what blocks RET, OFF, etc13:22
freemangordongives more info on who blocks idles states13:22
uvos__Wizzup: ok, yeah i just read it from the registers13:22
Wizzuplet me clean up the commit, just a moment13:23
* freemangordon is back to work work13:23
freemangordonttyl13:23
Wizzupuvos__: I pushed the commit to branch maemo-idle-report-6.1.y - when you have a chance please look at including it13:24
uvos__Wizzup: o13:24
uvos__k13:24
Wizzupwith this we can use n900-pm scripts to debug blockers13:25
Wizzuparno11: I see the power jump constantly from 0.04A to 0.18A with 3.7V with screen off (no way to read it out programatically with this PSU I am afraid), so I guess that gets us to about what you were seeing13:28
Wizzupwait, let me turn off htop over ssh :)13:28
uvos__lol13:28
Wizzup:D13:28
Wizzupseems to stay at 0.04A or so, and my serial module always draws a bit of power there13:29
arno11cool :)13:29
arno11sorry guys i have to go13:29
Wizzupttyl13:29
arno11i can help with emmc stuff this evening13:29
WizzupI have swap on emmc already, it's ... fine, I guess13:30
arno11if needed13:30
siceloWizzup: that 0.04A is with the blacklist in place?13:32
Wizzupyes13:34
Wizzupshall I push renewed blacklists (for pm and remove modem) to chimaera-testing ?13:38
Wizzupor just to chimaera?13:38
Wizzup(for n900)13:38
uvos__are we blacklisting something important?13:38
Wizzuppm blacklist is omap3_isp / ehci_omap / omap_hdq / hci_nokia / hci_uart13:39
WizzupI am not sure (anymore) what these are used for13:39
Wizzupmaybe ehci_omap could be relevant for charger detection or something13:39
uvos__ehci_omap sounds bad13:39
uvos__do we have 1w devices?13:40
Wizzupone-wire ?13:40
uvos__otherwise load it with the same trick as on d413:40
uvos__that disables bus scanning13:40
uvos__omap_hdq is the 1w bus driver13:40
uvos__used on d4 to comunicate with the battery13:40
uvos__we add a module param there13:40
uvos__to make it behave pm wise13:40
uvos__the hci stuff probubly breaks bluetooth13:41
uvos__so not to great all in all13:41
Wizzupright, I don't mind so much breaking bt atm13:41
Wizzupwe also blacklist it on the d4 after all13:41
Wizzupfor similar reasons (idle)13:41
uvos__no13:41
uvos__we backlist it because its broken13:41
Wizzupwell, that and the loading race13:41
uvos__right13:42
sicelothe blacklist is safe. none of those modules are critical for anything on n90013:42
WizzupI am not sure if omap hdq is actually used for battery btw13:42
sicelono. it isn't. it's there because omap2plus has bq27xxx-hdq, which N900 doesn't use. our bq27 is on i2c13:43
Wizzupcheck13:43
uvos__why dont you look at /sys/bus/w1/13:43
WizzupI guess the isp we know we don't use now, and for ehci_omap, I guess it could impact potentially charger vs pc detection?13:43
uvos__to see if anything is useing this bus13:43
siceloWizzup: no, not that either :-)13:43
Wizzupuvos__: will check once I finish the pm test13:44
sicelocheck what? 1-wire?13:47
Wizzup/sys/bus/w1/ doesn't exist on my system now, but I guess that is because I blacklisted the module :)13:50
uvos__yes13:50
uvos__you have to load it13:50
uvos__just load it by hand13:51
Wizzup# find /sys/bus/w1/devices/13:54
Wizzup/sys/bus/w1/devices/13:54
Wizzup/sys/bus/w1/devices/w1_bus_master113:54
Wizzup/sys/bus/w1/devices/01-00000000000013:54
Wizzup# cat /sys/bus/w1/devices/01-000000000000/name13:54
Wizzup01-00000000000013:54
siceloi think i already mentioned a number of times - nothing uses it on N900. it's insufficient?13:54
Wizzupsicelo: no, that's fine, I'm just following up on uvos' question13:54
siceloi'm referring to it too13:55
uvos__i hardly see the harm looking at the bus to make sure13:55
sicelowe're sure already13:55
uvos__you are sure13:56
siceloWizzup: ehci_omap isn't connected with charger detection in any way on N90013:56
uvos__anyhow yes apearantly nothing uses it13:56
WizzupI'll make the changes, thanks guys13:56
uvos__so ehci_omap, used for host mode i presume?13:56
sicelothe blacklist is global or n900-only?14:00
uvos__n900 only ofc14:00
uvos__otherwise you would be breaking d4 pretty hard14:00
uvos__yes i know n900 dosent do otg (ie autoswiching host mode)14:01
Wizzuprafael2k: did the pkg rename14:12
WizzupI get p=230 or so on n90015:40
freemangordonI think it is better to not blacklist 1w, but instead to the same as on d416:10
freemangordonas we cannot be sure in what state bootloader leaves it16:11
Wizzupfreemangordon: what do you suggest?16:20
WizzupI don't see the point of not blacklisting a module that isn't even used for anything16:20
Wizzuplike, not sure why we would complicate it16:21
freemangordonbecause it initializes the HW17:26
freemangordonand puts it in a well known state17:27
freemangordonin theory ofc17:27
freemangordonotherwise we count on the bootloader to init it17:27
freemangordonand not, it is not more complex than blacklisting17:27
freemangordon*no17:27
freemangordonWizzup: this https://github.com/maemo-leste/leste-config/blob/master/leste-config-mapphone/etc/modprobe.d/wire.conf.leste17:28
freemangordonis not more complicated than https://github.com/maemo-leste/leste-config/blob/master/leste-config-mapphone/etc/modprobe.d/blacklist-bluetooth.conf.leste17:29
freemangordonfor n900 we need https://github.com/maemo-leste/leste-config/blob/master/leste-config-mapphone/etc/modprobe.d/wire.conf.leste as is17:29
Wizzupfreemangordon: ok, can you make the leste-config changes then?17:58
Wizzup(don't forget gen-displace)17:58
Wizzupfwiw I won't be around much tonight, back tomorrow18:57
freemangordonWizzup: done21:47
freemangordonsomeone shall test on n900 though22:04
freemangordonugh, no iphb module :(22:05
freemangordonI wonder why current draw increases drastically when I enable my sip account22:05
freemangordonWizzup: iphb-dkms is installed, but module is not build, I wonder why22:07

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