libera/#maemo-leste/ Saturday, 2024-08-10

dsc_fine by me @ rtcom-accounts-ui, since mc-tool allows it00:52
inkyhttps://www.linaro.org/blog/upstream-linux-support-now-available-for-the-the-qualcomm-snapdragon-8-gen-3-mobile-platform/02:06
freemangordonWizzup: what is the username format for that tank thing? why do you need username to start with @?06:57
freemangordonok, "They are in the format @username:homeserver.tld "06:59
freemangordonso, this needs username and server fields, no?06:59
freemangordonWizzup: so, I propose to introduce servername_separator property that defaults to '@'07:50
freemangordonthat way you can enter matrix username properly07:52
freemangordonor, have separate username and server fields07:53
freemangordonwhere is matrix accounts-ui plugin code?07:53
freemangordonarno11: Wizzup: http://95.43.220.235/leste/hildon-desktop_2.2.194_armhf.deb09:28
freemangordonthis renders launcher scrolling on n900 with > 40 fps, please test. If there are no regressions I'll push to -devel09:29
freemangordonon d4 fps increases from ~55 to ~7509:34
Wizzupmorning10:12
Wizzupso the problem for rtcom-accounts-ui is that the account indeed starts with an '@', so the 'full' address of the account is '@username:hostname.tld'10:12
Wizzupwe could concievably skip validating it like sander said, and just have user be username nad the server be hostname.tld, but I don't think this makes sense since for example for jabber we force the account to be the 'user@hosntame.tld'10:13
Wizzupfreemangordon: so we have separate server and username fields already, btu the validation as far as I can see it, is done on the *account* property10:14
Wizzupfreemangordon: re: hd above, this should have a better saturation shader, or?10:14
Wizzupfreemangordon: or do you just test launcher scrolling?10:16
freemangordonsaturation shader is the same10:16
Wizzupoh10:16
freemangordonbut it is not applied on every frame ;)10:16
Wizzupok, so this might still have the delay when starting start menu, or?10:17
freemangordonyes10:17
Wizzupor was that delay also the reason10:17
Wizzupok10:17
freemangordonbut scrolling is ok10:17
freemangordonstart menu?10:17
arno11freemangordon: launcher scrolling is ok now but the rest of the UI is still slow compared to no-blur10:17
freemangordonwhat is "rest of UI"?10:18
Wizzupstart menu and hildon menu I think10:18
arno11hsm, the 'opened window' menu10:18
freemangordonstart menu == entering launcher?10:18
freemangordonplease...10:18
arno11in fact everywhere blur is visible10:18
freemangordonwe have:10:18
freemangordontask navigator10:19
freemangordonlauncher:10:19
freemangordondesktop edit10:19
WizzupI meant to type status menu10:19
freemangordonand h-s-s menu10:19
Wizzupnot start menu10:19
freemangordon*h-s-m10:19
freemangordonok10:19
Wizzupbut arno and I might be talking about different things too10:19
arno11so...task navigator is slow10:19
arno11and hsm and all sub menus10:19
freemangordonit is *slower*10:19
freemangordonno slow10:19
freemangordonfor n900 25 fps is not *slow*10:20
arno11it is under 25 fps and laggy10:20
freemangordonright10:20
freemangordonbut it is the same in fremantle10:20
Wizzupand then from my side: the main pain point is the responsiveness of the status menu ,when you touch it, it can take 3-4 seconds for it to appear10:21
arno11yes quite the same10:21
Wizzupsame for the power menu10:21
Wizzupthis went away with arno's transitions10:21
freemangordonit is not blur that makes it slow10:21
freemangordonbecause blur takes 250 ms (in theory)10:21
Wizzupindeed, but it's gone with the other transitions so it's not in h-s-m10:22
freemangordonsure, but we have to check which change makes it faster10:22
Wizzupyeah10:22
freemangordonbut, first, lets confirm for few hours I did not regress something with those chages in h-d10:23
WizzupI suspect because hsm is on top of something, maybe it takes time to snap it's current background and then blur it10:23
Wizzupbut I might not understand how it works10:23
freemangordonwill check10:23
freemangordonWizzup: but, I need my n900 booting :p10:24
arno11freemangordon: imo hsm is quite ok compared to the task manager which is unresponsive (need to click 2-3 times to switch windows)10:28
arno11and zoom animation is laggy10:28
arno11huge diff with the launcher10:29
Wizzupfreemangordon: right10:29
Wizzuparno11: I don't have this unresponsiveness nithe task manager I think10:29
WizzupI think what happens if you might click on a window before the animation is done?10:30
arno11even if i wait, that's a lot slower than no-blur10:30
freemangordonarno11: I don;t see such issue with tasknav as well10:30
arno11ok let me have a look again10:31
freemangordonbut, my n900 battery went flat10:31
freemangordonso cant test ATM10:31
freemangordonhave to run, ttyl10:31
Wizzupfreemangordon: ok, when you have some time, pls see my messages above re: matrix10:35
arno11Wizzup: freemangordon: i took time to test and the changes are ok and improve things a bit compared to stock H-D and transitions. but still a way slower than no-blur (in term of speed and responsiveness)11:23
arno11on my device with no blur and no overclock, the ui feels as fast as my redmi proot11:26
dsc_< Wizzup> so the problem for rtcom-accounts-ui is that the account indeed starts with an '@', so the 'full' address of the account is '@username:hostname.tld'11:31
dsc_the Matri *username* starts with @, not the mission-control account11:31
dsc_afaik account can be anything11:31
dsc_its just a rtcom UI display string11:32
Wizzupdsc_: yes, you said that yesterday and I touched on it above too11:38
Wizzup10:13 < Wizzup> we could concievably skip validating it like sander said, and just have user be username nad the server be hostname.tld, but I don't think this makes sense since for example for jabber we force the account to be the 'user@hosntame.tld'11:38
Wizzupalso the way the rtcom account plugins work the account param has to make sense11:39
Wizzuponly in mc-tool it doesn't11:39
Wizzupnote to self: fix the power button being used to unlock to then show the power menu11:40
Wizzupvery annoying, I really press 'power off' bi accident more than a few times a month because uf it11:40
dsc_Wizzup: for IRC it is idle/irc/accountname011:42
dsc_from the top of my head11:42
dsc_and not idle/irc/accountname@server.tld011:43
dsc_right?11:43
inkyfolks, pmos has no forum to post there, and chat is silent about it, so anyway, i would like to share with you these screenshots, because uvos told me to check powertop status. i also tried to compare to powertop on maemo but the versions are very different, and powertop on maemo doesn't show percentages.11:51
inkyhttps://xn--89ave6c.xn--cbbu1a.xn--y9a3aq:5281/upload/Lzh2weDodm2qYOrN-Td0kArT/1970-01-01_04:07:47.png11:51
inkyhttps://xn--89ave6c.xn--cbbu1a.xn--y9a3aq:5281/upload/kMoCqJ4H3O9nxBs93JUqt0h6/2024-08-06_00:14:45.png11:51
inkyhttps://xn--89ave6c.xn--cbbu1a.xn--y9a3aq:5281/upload/0OYqGNScaMJfKC8--585qD3P/2024-08-06_00:15:08.png11:51
inkyso apparently constantly runtime-1c28000.serial, runtime-musb-hdrc.2.auto, runtime-1c28c00.serial runtime-1c22e00.codec, Radio device : hci_uart_h5. processes take 100% of cpu time each. in pmos.11:52
sicelofor pmos, you can make an issue on gitlab and post there, or in their matrix room (they have dozens)11:54
freemangordonWizzup: so, where is plugin code?11:55
inkyoh! gitlab is an idea. matrix i don't use. maybe one day i could setup a xmpp gateway to it. but so far my experience with matrix was frustrating.11:55
freemangordonI think we can use current API with no changes, just by setting some properties11:55
freemangordonWizzup: please push to https://github.com/maemo-leste-extras/rtcom-accounts-plugin-matrix11:59
freemangordonhmm, seems 6.6 does not detect charger on boot12:04
Wizzupfreemangordon: ok, but the code isn't ready yet, but I'll push12:16
Wizzupfreemangordon: I will push, just a moment12:16
freemangordonyes, but I want to do some tweaks12:17
WizzupI pushed12:17
Wizzuplet me add a bit more code now, 1 minute12:17
freemangordonok12:17
freemangordonok, fremantle renders with 20 fps12:18
WizzupI will get my n900 on serial now12:18
freemangordonok12:19
Wizzup(will take 20-30 mins)12:19
freemangordonsure12:19
freemangordonarno11: so, fremantle renders with 20fps all over the place12:19
dsc_what should I do with conversations today?12:20
dsc_the media attachments stuff will probably take a while12:20
Wizzupdsc_: I think we should talk about new sms / new message12:20
dsc_alright12:20
Wizzupand a way to resolve the mc 'account names' to more human readable names12:20
freemangordonarno11: so, my gut feeling tells me it feels faster becaue *gtk* renders way faster12:20
Wizzupthis requires more osso-abook integration I think, for the new message / new sms12:21
freemangordonplease, I want to finish connui-cell first12:21
freemangordonI have 2-3 days of work12:21
dsc_new message -> spawn gtk contact dialog12:21
freemangordonmhm12:21
arno11freemangordon: @20 fps, ok so not a surprise if i feel my device a way faster than fremantle then :D12:22
freemangordonI assume you'll want me to help12:22
dsc_or maybe just open the contacts GUI and then click on people there?12:22
arno11@gtk, ah ok12:22
dsc_freemangordon: does it need to be embedded?12:22
freemangordonsure12:22
Wizzupfreemangordon: I pushed new code btw12:22
Wizzupfreemangordon: sure @ connui-cell :D12:22
freemangordonyeah, but I doubt I'll be able to do connui-cell, while doing conversations abook integration, while improving h-d performance :D12:23
arno11the price of succes ;)12:24
freemangordonarno11: so, we have to fix gtk rendering12:24
Wizzupfreemangordon: feel free to pick whichever12:25
dsc_you can just type like 3 sentences12:25
dsc_and then ill do it12:25
dsc_re: abook12:25
dsc_but I dont know where to look currently12:25
dsc_:D12:25
dsc_#include <abook>12:25
WizzupI think we can look at some of this dsc, but iirc we have to use dlsym and such to load in some gtk parts for the main loop integration12:25
freemangordonno, it is not that simple12:25
freemangordonyeah, as wizzup said12:26
freemangordonok, lemme try to boot my n900 to downgrade the kernel12:26
Wizzupwhat do you want to test with downgrade12:27
freemangordonh-d rendering12:29
Wizzuphm, I doubt this changed?12:29
Wizzupwhat makes you think it changed?12:30
freemangordonyes, but I can boot ;)12:30
Wizzupah.12:30
dsc_ill go test some Matrix stuff some more12:37
dsc_in the meantime :p12:37
Wizzupok, I have serial going12:43
Wizzuplet's see how this boot goes12:43
freemangordonbtw, I have the feeling the hang is related to wifi12:44
Wizzupif you blacklist the module we can test that pretty easily I guess12:45
freemangordonyeah12:45
freemangordonlets see if you can get something on the setial first12:45
WizzupI am struggling to get my n900 in a position where it doesn't lose power through the pins when I touch it, hang on.12:51
freemangordonor there is something wring with charger driver12:52
freemangordon*wrong12:52
Wizzupno, it's clearly contact12:54
Wizzupfor me it looks like swap is started about 30 seconds in, at least last boot12:55
Wizzup[   36.180053] ext2 filesystem being mounted at /boot supports timestamps until 2038-01-19 (0x7fffffff)12:56
Wizzup[   36.464538] Adding 1048572k swap on /swap.  Priority:-2 extents:10 across:1294336k SS12:56
arno11i can confirm (from device logs), around 30-35 sec12:57
arno11*always around12:57
Wizzuplast message is iphb being loaded12:59
Wizzupthen devices is frozen12:59
Wizzupdevice is frozen12:59
arno11same for me (from logs)12:59
Wizzuphave you tried to blacklist iphd?12:59
Wizzupiphb12:59
arno11nope12:59
WizzupI will boot again but I might try that next13:00
arno11(good idea, but difficult for me to reproduce since i'm able to boot 75% of time now)13:01
arno11ok13:01
freemangordonhow is iphb related?13:02
Wizzupjust the last thing that is on serial13:02
arno11but even if there is no freeze, iphb is the last msg from boot13:02
Wizzupok13:02
Wizzupthen serial seems useless13:02
arno11probably13:02
arno11the probs arrive when H-D is loading13:03
Wizzupso what did you try so far, you tried to remove some things from starting throug the xsession?13:04
arno11yes i tried almost every combinations lol13:04
freemangordonoh, wpasupplicant in backports?13:05
Wizzupwell I can confirm that the ts stopped responding when iphb was loaded13:05
Wizzupbut there's more messages13:06
Wizzup[  179.888946] iphb: loading out-of-tree module taints kernel.13:06
Wizzup[  179.925872] iphb: Keepalive handler module registered13:06
Wizzup[  183.210479] omap-mcbsp 49022000.mcbsp: TX Buffer Overflow!13:06
Wizzup[  184.939208] omap-mcbsp 49022000.mcbsp: TX Buffer Overflow!13:06
Wizzup[  185.063568] omap-mcbsp 49022000.mcbsp: TX Buffer Overflow!13:06
Wizzupand those keep coming13:06
Wizzupmight not be the real cause though13:06
freemangordonyeah, I saw that too13:07
Wizzupbut it's not a kernel panic at least it seems13:07
freemangordoncould be related13:07
freemangordonbut should not happen, no?13:07
WizzupI will make some lunch and leave it in this state13:07
freemangordonlemme downgrade13:07
WizzupI don't know, I think I've probably seen it before13:07
WizzupI also don't remember what mcbsp is :)13:07
WizzupI think openrc doesn't log to serial after a certain time13:08
freemangordonaudio13:08
Wizzupok, so that could just be responding to the ts touch13:08
Wizzupit happens mostly when I touch the ts13:08
Wizzupso that could be m-i-s13:08
freemangordonyes, but should not cause device to hard lock :)13:09
freemangordonoh, we don;t have 6.1 anymore?13:09
Wizzuparno11: did you try to remove any of your sysctl swap related things?13:09
freemangordon:(13:09
Wizzupfreemangordon: we do in stable13:09
freemangordonit is 6.1.8 there13:09
freemangordonbut ok13:09
arno11Wizzup: yep, already tried13:10
freemangordonWizzup: this looks like either hard device lock or endless loop in kernel13:10
freemangordonallso, once booted, it never locks13:13
arno11Wizzup: atm what is working @75% of time: blocking modest (network troubles related ?) and loading custom vm from userspace.13:15
arno11freemangordon: if it boots fine it is really stable13:15
freemangordonyes13:15
freemangordonso, it is some driver that hangs it13:15
freemangordonI guess we shall blacklist all and enable one by one13:16
freemangordonthough, if it is sgx nothing will help13:16
Wizzupwell it's not hanging13:20
Wizzupserial shows kernel as alive13:20
Wizzupso I would not rule out OOM yet13:20
arno11ah13:20
WizzupI can't get a shell though13:20
Wizzup[ 1100.258697] omap-mcbsp 49022000.mcbsp: TX Buffer Overflow!13:20
Wizzupbut that's still going13:20
freemangordonis it not?13:26
freemangordonhmm13:26
freemangordonugh13:26
freemangordonit just hanged with 6.113:26
freemangordonso OOM13:26
freemangordonbut how's that possible given there is swap?13:27
arno11(the issue first appeared with 6.1.48 iirc btw)13:27
freemangordonthis is 6.1.813:27
Wizzuparno11: what is your swap size13:28
arno112 x 1GB actually13:28
freemangordonit was booting happily with 768MiB on emmc13:29
Wizzupthat is fine, but if it is related to oom then this is a good thing to look into @ happily13:29
Wizzupwhat if we install earlyoom or something?13:29
Wizzup(as test)13:30
WizzupI am booting again13:30
freemangordonhow is swap enabled?13:30
freemangordonfstab13:32
arno11(it was booting happily with emmc only for a short period btw)13:32
arno11yes fstab13:32
freemangordonwith 6.1 I had no issues whatsoever13:32
freemangordonI'll revert swap to emmc to see if it fixes boot issue13:34
arno11i already tried13:34
arno11same story13:34
freemangordonand?13:34
freemangordonwith 6.1?13:35
arno11yes13:35
freemangordonso we run OOM with swap?13:35
freemangordonthat does not make sense13:35
arno116.1 or 6.6, same boot issues13:35
arno11like i said, first troubles appeared with 6.1 and emmc 7 months ago13:36
freemangordonbut, now it failed to boot with 6.1.813:36
freemangordondo you say this is something userland?13:36
arno11yes13:36
freemangordoncould it be VM settings related?13:36
arno11i already tried to remove them13:37
freemangordonok, seems Wizzup has some ideas13:37
arno11ok13:37
Wizzupbooted ok this time13:38
Wizzupwhen h-d started I used the slider to turn off the screen13:38
Wizzupnot sure if it is related13:38
arno11hard to say, the issue is so random, difficult to say what helps or not, until 4-5 reboots13:40
freemangordonok, does not boot with 6.1 and swap on emmc13:40
freemangordonlemme revert VM settings13:41
Wizzupright there is /etc/sysctl.d/n900-perf.conf.leste13:41
freemangordonmhm13:41
Wizzupwell without .leste13:41
freemangordonumm....13:43
freemangordoncould you have a look at /var/lib/n900-pm?13:44
Wizzupdo you mena /etc/init.d/n900-pm?13:45
WizzupI don't see /var/lib/n900-opm13:45
freemangordonsorry, /var/log13:46
WizzupI don't have this file13:47
Wizzupbtw, /etc/init.d/leste-config has code to change nr_requests for mmcblk0/1, wonder if this is related to emmc slowness13:47
freemangordonhow's that?13:47
freemangordonoh, does it?13:47
Wizzupfreemangordon: what writes this file for you in /var/log/13:48
freemangordonno idea13:48
freemangordonI guess it is /etc/init.d/n900-pm13:48
freemangordonoh, maybe this is sopmething I have to remove13:48
WizzupI don't think we have a n900 pm package yet13:49
Wizzupsince starting it causes lot sof problems13:49
Wizzupso you file you probably made by yourself13:49
arno11i already tried to remove nr_request13:49
arno11true for n900-pm13:49
arno11i meant the nr_request stuff from leste-config13:51
arno11in fact i tried to remove almost every custom n900 stuff, with no more succes on boot13:54
arno11the real question for me is why this issue happens randomly. why so much diff between boots13:55
freemangordonfirst boot after removing custom VM stuff here (and nr_requests) is ok13:55
arno11for me too (sometimes), but you must try to reboot 3-4 times to be sure13:56
freemangordonsure will do13:56
arno11ok13:56
freemangordonalso, to improve responsiveness we shall put h-d (and systemui) in a special cgroup13:58
freemangordonthat's what fremantle does13:58
arno11ah ok interesting13:58
arno11for nr request and vm, the issue appeared long time before btw13:59
arno11for cgroup: maybe that's why TS latency feels better14:00
freemangordonmhm14:00
arno11*on fremantle14:00
WizzupI would like to use cgroups yes :)14:00
arno11bbl14:01
freemangordonsecond boot in a row, no issue whatsoever14:04
freemangordonlemm eupgrade the kernel14:04
Wizzupit might be worth installing earlyoom, it's a daemon that will kill processes if you get near oom14:06
Wizzup(for debugging)14:06
freemangordonWizzup: I don;t think we have OOM14:07
freemangordonbut lemme confirm it14:07
freemangordonupgrading to 6.6 now, lemme see if it will boot ok14:08
freemangordonwith default VM settings/nr_requests14:08
arno11sometimes i get 6 freezes with default vm and nr request btw14:09
arno11*6-8 freezes14:09
freemangordonon boot?14:09
arno11but with 6.614:09
arno11don't remember exactly with 6.114:10
arno11bbl14:10
freemangordon66 boots fine too14:23
Wizzupmaybe try a few more times for good measure14:24
WizzupI will also try14:24
freemangordonwill do14:24
WizzupI will try too14:25
Wizzupbtw, looks like maybe sapwood-server is not stopped properly and tries to restart while rebooting14:27
Wizzupsame for him14:27
Wizzupbut I did type 'reboot' in ssh, so..14:28
freemangordonmight14:30
freemangordonbe14:30
freemangordonthat could be the reason for slow reboot/poweroff14:30
freemangordonsecond boot in a row with no issue, 6.614:33
Wizzuptrying to boot with sysctl and nr_requests disabled too14:35
arno11looking @irc logs, i asked to remove custom vm stuff few weeks ago, because it seems to help on boot, and enabling them from usersspace causes no issue and speed up things. but definitely not the root cause14:37
arno11i currently boot without them for a while but still get troubles14:38
freemangordonwhat troubles?14:38
arno11freezes14:38
freemangordontemporal?14:39
arno11nope14:39
freemangordoncan;t repro here14:39
arno11same troubles as usual14:39
freemangordondid you remove nr_requests change?14:39
arno11yes14:39
arno11uh, actually not14:40
freemangordonI think it is nr_requests14:40
freemangordonthat breaks it14:40
arno11iirc i got freeze without it but it was better14:40
arno11could explain at least emmc troubles14:41
Wizzupfirst boot was good for me too14:41
arno11let me try as well14:41
freemangordonWizzup: BTW, if we renice Xorg h-d and system-ui to some sane priorities, we get a very responsive system14:46
Wizzupdid you try this with renice, or?14:47
freemangordonyes14:47
Wizzupok14:48
freemangordonfremantle does something through ohm/cgroups/nice14:48
Wizzuphttps://wiki.gentoo.org/wiki/OpenRC/CGroups#Activating_cgroup_feature_support14:48
Wizzupwe might need to enable some cgroup stuff in kernel if not already14:49
freemangordonat least Xorg is stared with dsmetool -n 8, but I am not sure what 'nice 8' means to dsme14:49
freemangordonwe already have some cgroups support14:49
freemangordonbut I have no idea how to use it14:49
Wizzupwhat do you mean 'we already have some cgroups support'14:49
freemangordonsee /sys/fs/cgroup14:50
Wizzupok, I see what you mean14:50
freemangordonelogind does things14:50
Wizzupok, I think we should do this through openrc14:51
Wizzupbut I will check kernel14:51
freemangordonok14:51
freemangordonanyway, I think nr_requests shall be removed14:51
freemangordonlemme check VM stuff14:51
Wizzupagree @ nr_requests14:51
WizzupI have two good boots as wlel so far14:51
Wizzup# CONFIG_BLK_CGROUP_IOLATENCY is not set14:52
Wizzup# CONFIG_BLK_CGROUP_IOCOST is not set14:52
Wizzup# CONFIG_BLK_CGROUP_IOPRIO is not set14:52
Wizzup# CONFIG_BFQ_CGROUP_DEBUG is not set14:52
Wizzup# CONFIG_CGROUP_PIDS is not set14:52
Wizzup# CONFIG_CGROUP_RDMA is not set14:52
Wizzupothers are set14:52
freemangordonmaybe we want CONFIG_BLK_CGROUP_IOPRIO14:52
Wizzupwe have this:14:52
WizzupCONFIG_CGROUP_FREEZER=y14:52
WizzupCONFIG_CGROUP_DEVICE=y14:52
WizzupCONFIG_CGROUP_CPUACCT=y14:52
WizzupCONFIG_CGROUP_PERF=y14:52
freemangordonsounds like something useful :)14:52
WizzupCONFIG_CGROUP_WRITEBACK=y14:52
WizzupCONFIG_CGROUP_SCHED=y14:52
Wizzupso we can play with some other stuff first maybe14:52
freemangordonyeah14:52
freemangordonhave to check what fremantle does14:53
Wizzupwe should decide what goes in what I think14:53
freemangordonwe may want to either take ohmd or see if we can achieve the same in elogind14:53
freemangordonwell, we already have fremantle settings14:53
Wizzupwhat are they?14:54
WizzupI also think nr requests should go14:55
Wizzupwill reboot again but two successes in a row so far14:55
Wizzupand previously it failed 4 times in a row14:55
WizzupI also removed sysfs14:55
freemangordonsee /usr/share/policy/etc/rx5114:55
freemangordonsyspart.conf14:57
freemangordonI don;t know if elogind implements systemd cgroups support14:57
Wizzupon fremantle?14:58
freemangordonno, in devuan14:58
freemangordonin fremantle it is ohmd plugin that does the job14:58
WizzupI meant /usr/share/policy/etc/rx5114:58
freemangordonyes14:58
freemangordonsyspart.conf14:58
Wizzupon fremantle14:58
freemangordonyes14:58
Wizzupok14:58
freemangordon/usr/share/policy/etc/rx51/syspart.conf on fremantle14:59
freemangordonso, if elogind is not able to distribute processes to various cgroups based on some rules, we shoudl either take ohmd or bite the bullet and go to systemd14:59
freemangordonunless I am missing something15:00
Wizzupok, my fremantle has been off for weeks15:01
Wizzuplet me try15:01
Wizzupfreemangordon: why?15:01
Wizzupwhy not use openrc?15:01
Wizzupwe have it right now15:01
freemangordonhow would it distribute user started processes?15:02
freemangordonlike, the ones from the launcher?15:02
freemangordonor based on executable?15:02
arno11seems ok for me too (on boot) :)15:02
Wizzup3/3 so far15:04
Wizzupfreemangordon: I will check15:04
freemangordonugh, page-cluster == 8?!?15:05
freemangordonthis is 2^8 pages15:05
freemangordonwhy is that?15:05
Wizzuphttps://www.freedesktop.org/wiki/Software/systemd/PaxControlGroups/15:06
Wizzupit looks like cgroups more recently has been taken over by systemd15:06
freemangordonyes, and IIUC all that code is disabled in elogind15:06
Wizzupgotta love these people15:06
freemangordonarno11: why is page-cluster 8?15:07
freemangordonthis is 128KiB IIUC15:07
Wizzupfreemangordon: in any case /sys/fs/cgroup is well populated with both openrc and elogind, so I think we can at least test this relatively easily15:07
freemangordonWizzup: it is populated, bu we have no idea how15:08
Wizzupwhat do you mean?15:08
Wizzupmost of this is set up by kernel initially15:08
freemangordonhow do you assign process to cgroup?15:08
arno11freemangordon: see issue 737, cssu/tmo stuff15:08
Wizzupthe only thing I see is elogind directory with my ssh login cgroup15:08
Wizzupthat's it15:08
Wizzuphttps://docs.kernel.org/admin-guide/cgroup-v2.html15:09
freemangordonso, who says that h-d shall have higher CPU shares that let's say a browser?15:09
WizzupA process can be migrated into a cgroup by writing its PID to the target cgroup’s “cgroup.procs” file. Only one process can be migrated on a single write(2) call. If a process is composed of multiple threads, writing the PID of any thread migrates all threads of the process.15:09
freemangordonWizzup: that's clear15:10
Wizzupseems to me like dsme and openrc should just put the processes in their right cgroup15:10
Wizzupand that's it15:10
freemangordonthe question is - who moves processes between cgroups and based on what criteria?15:10
Wizzupnobody moves things, you just assign them at start15:10
freemangordonbased on?15:10
Wizzupon what starts it?15:10
Wizzupand what is started?15:10
freemangordonno, that won;t fly15:11
Wizzupin any case I suggest we defer this until later - connui-cell, rtcom accounts, etc15:11
freemangordonhow do you assigh mediaplayer higher prio that ssh?15:11
Wizzupthat's something that is true for any cgroup software, systemd or not15:11
freemangordonarno11: so, because I was there, I cna assure you that the *only* thing that maskes sense to change is swappiness15:11
Wizzupit could perhaps be based on .desktop or something, but we weren't talking about OMP15:11
freemangordonWizzup: with systemd you can assign rules baesd on which to move process to a cgroup15:12
arno11freemangordon: ok i trust you15:12
Wizzuplink?15:12
freemangordonthe same with fremantle/ohmd15:12
Wizzupso cgconfig?15:12
Wizzuphttps://manpages.debian.org/testing/cgroup-tools/cgrules.conf.5.en.html15:13
Wizzupthis is not part of systemd15:13
freemangordonsec15:13
Wizzuphttps://packages.debian.org/bullseye/cgroup-tools15:13
Wizzuphttps://github.com/mk-fg/cgroup-tools15:13
freemangordonsee https://www.redhat.com/sysadmin/cgroups-part-four15:14
Wizzupyes, systemd incorporated will push for systemd incorporated15:14
Wizzupso will you make a .service for OMP?15:14
freemangordonthe point is that you can manage processes15:14
Wizzupwhat you just linked is exactly what openrc can do *now*15:15
freemangordondid you look at the syspart.conf?15:15
Wizzupno, I have not started fremantle yet15:15
Wizzupplease look at the cgroup-tools that I linked15:15
Wizzupsince it seems to be what you asked15:15
freemangordonlemme check15:15
freemangordon"These scripts are useless on a modern linux with unified cgroup-v2 hierarchy."15:16
freemangordon:D15:16
Wizzupno15:16
Wizzupwith *systemd*15:16
Wizzupas far as I read it15:17
freemangordonok, this https://manpages.debian.org/testing/cgroup-tools/cgrules.conf.5.en.html *looks* like what we need15:18
Wizzupif it works with v2 then yes15:19
Wizzuplooks like you're right and it doesn't work on v215:19
WizzupI think we can pick if we want v1 or v2, but yeah15:19
arno11freemangordon: which renice value did you use for h-d, Xorg and system-ui btw ?15:20
freemangordon-8  for h-d and Xorg15:22
freemangordon-19 for mce and system-ui15:22
freemangordonbut that was just for test15:22
arno11ok thx15:22
freemangordonI guess -8 for all should be fine15:23
freemangordonor even higher15:23
arno11ok15:23
arno11i'll try in a bit15:24
freemangordonalso, we shall revert swap to emmc15:27
Wizzupfreemangordon: did you check if it works?15:27
freemangordonyes15:28
freemangordonI am booting all the time with swap on emmc15:28
Wizzupso its not slow for you compared to mmc?15:28
Wizzupsd card is faster for me15:28
Wizzup(and has more ram)15:28
Wizzupwell, swap15:28
freemangordonhow do you measure it?15:28
Wizzupit was unusable with emmc :)15:28
Wizzupliterally15:28
freemangordonwell, with nr_requests=51215:29
Wizzupwhy not both, btw?15:29
Wizzupbtw, no need for serial anymore, yeah?15:30
freemangordonbecause to my understanding there is no way RW on the same device to be faster than R on device a and W on device 215:30
freemangordonno need15:30
Wizzupfreemangordon: that depends if there is i/o load or not15:30
freemangordonthere is always io load when you start a program15:30
freemangordonugh, managed to start chromium on n900 :)15:31
Wizzupbbl15:34
Wizzupfreemangordon: let me know if you want me to make leste-config-n900 changes and let me know what to keep in sysctl15:34
Wizzupthe block requetss will just go15:34
freemangordonI think we shall keep just swappiness15:35
arno11swappiness is already =60 by default iirc15:36
freemangordonso all shall go then15:36
freemangordonunless you have hard evidence that a particular setting improves responsiveness or startup times or whatever15:36
freemangordonbbl15:37
arno11again, i already asked weeks ago to remove stuff, so...totally agree :P15:38
Wizzupok, cool15:39
Wizzupwill do when I get back15:39
Wizzupfreemangordon: btw, what about forcing 500mhz as min freq15:41
Wizzupin dts or otherwise15:41
freemangordonwhy?15:42
Wizzupsince it's so much more responsive15:42
Wizzupand doesn't cost power15:42
freemangordonis it?15:42
Wizzupye15:42
freemangordonlemme check15:42
arno11yes really no change in power usage15:42
arno11even better15:42
Wizzupbbiab15:43
arno11500-550-600 seems really ideal imo15:44
freemangordonttyl15:45
arno11wow...@805MHz with hd, xorg and systemui reniced, we can't say anymore n900 is slow lol15:51
Wizzupwhat renice did you use?15:52
arno11-815:53
arno11for h-d, xorg and systemui15:53
arno11(and no blur)15:54
arno11bbl16:03
arno11ok, i'm able to speed up things with fmg shader stuff, tweaking transitions again16:49
arno11now task nav is very fast16:50
arno11h-s-m as well16:50
arno11the key is to decrease radius and modify animations time again when blur is enable16:52
arno11it is still 'a bit' slower than no-blur but really acceptable imo16:54
Wizzupsweet, can you share it16:55
arno11if you want to try it now: radius and radius_more = 3 (or 1) and16:57
arno11[popup] duration_in and out = 10016:58
arno11*in [home] for radius16:58
arno11(no need to restart H-D)16:59
arno11with that, you can even switch between windows in task nav before the end of the zoom animation (with blur)17:00
freemangordondsc_: Wizzup: what the? https://github.com/maemo-leste/conversations/blob/master/src/lib/tp.cpp#L28317:38
dsc_freemangordon: how much time do you have? ^^17:39
freemangordonI want to see if I can help with account plugin17:40
freemangordonotherwise I have some time17:40
dsc_explaining that room name thing has to do with how -tank works right now17:40
dsc_due to some shortcomings in Telepathy some hacky stuff was done17:40
dsc_which is described in this document: https://plak.infrapuin.nl/selif/bdxo2zx1.txt17:40
dsc_under "possible solutions" number 4 was chosen17:41
dsc_this, ultimately, has the requirement that TextChannels are always passed on *with* room name17:41
dsc_because room name represents the Matrix room alias17:41
dsc_on the conversations side we need both alias and underlying ID17:43
dsc_at all times17:43
freemangordonhows's that? you can;t connect by ID only?17:44
freemangordonif that's the case, I would say there is an issue in the manager17:45
dsc_nope its not possible17:45
freemangordonhowever, my point is that hardcoding protocol-specific support in conversations is bad17:45
dsc_its not how matrix works basically17:45
freemangordonbut then id is alias+id, no?17:45
freemangordonIIRC room id (or user id in that regard) should unique identify the resource in question17:46
freemangordonif that's not the case, then mamager is broken17:46
freemangordonmanager17:46
dsc_no Matrix is broken :P17:46
freemangordonok, lemme re-red that wall of text17:46
dsc_yes17:47
dsc_as I said, how much time do you have17:47
freemangordonsome time17:47
dsc_1. joinchannel from Conversations by alias17:47
dsc_2. libquotient creates a channel (async, which is a problem but lets forget that)17:47
dsc_3. libquotient returns a Room object without any room alias17:48
dsc_4. after 2 seconds or so, the Matrix protocol will send the alias event17:48
dsc_(so I had to wait for that in the manager)17:48
dsc_actually17:48
dsc_this is not something to discuss on IRC17:48
freemangordonumm, why?17:48
dsc_because I will post an unreadable wall of text17:49
freemangordonah17:49
dsc_i want time to sketch out situations17:49
freemangordonso, wait a bit17:49
dsc_its very complicated17:49
freemangordonyou say you have async event from Matrix, right17:49
freemangordon?17:49
dsc_sure17:49
dsc_everything is async, also the creation of rooms17:50
freemangordonso, what is the issue with posting "channelEnsured" as async event too, when you have the alias?17:50
dsc_im not following17:50
dsc_when joining a channel from conversations, it is by alias, and it calls `ensureTextChannels` (I think)17:51
freemangordondsc_: ok, this will take time (as you said), lemme first try to help with accounts ui applet17:51
dsc_and in the manager, it wants a TextChannel back17:51
freemangordonlets spend some time tomorrow on that17:51
dsc_which is not possible, because the creation of rooms is async17:51
dsc_as well as waiting for the room state17:51
freemangordonI am still not convinced that's the case17:52
freemangordonbut I want to look at the code first17:52
freemangordonbut not now, as account ui plugin is easier17:52
dsc_alright17:53
dsc_but above we are talking about async stuff17:59
dsc_which is actually seperate from requiring room alias over at conversations (maybe)17:59
dsc_the reason is, because Matrix wants you to use a room alias everywhere18:00
dsc_if I remember correctly18:00
dsc_e.g: create a channel (by alias), close conversations, join by ID <== failure18:00
dsc_so18:03
dsc_we can have a "meeting" about this tomorrow :P18:03
freemangordonyes18:03
dsc_i will need to prepare all the relevant information, because its very complex18:03
freemangordonhow do I register with matrix?18:03
dsc_matrix is complicated protocol, and telepathy is a complicated framework :P18:03
dsc_here:18:03
dsc_https://chat.utwente.io/18:03
freemangordon"Your browser can't run Element"18:04
dsc_but honestly I will just leave the code as it is18:04
freemangordonWTF is that?18:04
dsc_you can fix it, sure18:04
dsc_freemangordon: what browser?18:04
freemangordonFF18:04
dsc_im also on FF18:04
freemangordona bit older, but still18:04
freemangordon91esr18:04
dsc_128.018:05
dsc_ok freemangordon simple question18:06
dsc_conversations does `ensureTextChatroom()`18:06
dsc_`createChannelCB()` needs to return a connection, that wraps a Tp::TextChannel18:06
dsc_so when we do join `#test:utwente.io`18:07
dsc_which is an async call18:07
dsc_how do we return a valid TextChannel18:07
freemangordonit returns PendingChannelRequest *18:07
freemangordonwhich you can use to wait for async completion18:08
freemangordonit will emit finished() when pending operation has completed18:08
dsc_Tp::BaseChannelPtr MatrixConnection::createChannelCB(const QVariantMap &request, Tp::DBusError *error)18:08
dsc_return type is Tp::BaseChannelPtr18:09
freemangordonlemme check18:09
freemangordonwhere is the code?18:09
dsc_this one https://github.com/maemo-leste-upstream-forks/telepathy-tank/blob/2a72331767d6691e7876e4f7c4ff6bc280f23af2/src/connection.cpp#L29418:09
dsc_the `PendingChannelRequest` you're talking about is from the perspective of conversations18:09
freemangordonyes18:09
dsc_which does a dbus call, which is always async yes18:09
dsc_so its pending18:09
freemangordonso, there *must* be a way to do it in async way from the manager18:10
dsc_but on the manager side its sync18:10
dsc_well i hope ^^18:10
dsc_https://github.com/TelepathyIM/telepathy-qt/issues/518:10
dsc_> Telepathy-Morse also needs to delay Connection.Interface.Requests CreateChannel() to get a native identifier of created group chat.18:10
dsc_we have the same issue as he describes18:10
freemangordonalso, you can always block in event loop18:11
dsc_"wait for something in CreateChannel"18:11
dsc_yes im blocking right now18:11
freemangordonwhere?18:11
dsc_well, its actually not a true block, you introduce a nested event loop18:11
dsc_sorry wrong branch, sec18:11
freemangordonyes, that's what I mean18:11
freemangordonQEventLoop18:11
dsc_https://github.com/maemo-leste-upstream-forks/telepathy-tank/blob/maemo/chimaera-devel/src/connection.cpp#L35518:11
dsc_the sync stuff is above that18:12
freemangordonin createRoomSync I guess18:13
freemangordonso, I don;t see any issue with that18:13
freemangordonjust wait until you get the alias from Matrix18:13
freemangordonalso, I don;t understand how 1to1 is a room18:14
dsc_heh'18:14
dsc_it is18:14
freemangordonwhat defines room as a room?18:14
dsc_RoomType IIRC18:14
dsc_on the libquotient side, that is18:14
Wizzup well, in matrix it is18:14
dsc_on the telepathy side, its handletype18:14
freemangordonhandletype is either contact or room, no?18:15
dsc_yes18:15
freemangordonah, I think I see what you mean18:15
freemangordonfor TP there is a difference, for Matrix it is always MUC, right?18:15
freemangordonso, I assume by 'room' you mean MUC, correct?18:16
dsc_right exactly18:17
dsc_so18:17
dsc_sec18:17
freemangordonok, it is the same for haze/facebook18:17
freemangordonIIUC18:17
freemangordonhowever, I think this is unrelated to that room alias18:18
dsc_yes18:18
dsc_https://github.com/maemo-leste/conversations/blob/master/src/lib/tp.cpp#L75918:18
dsc_here's another thing to discuss18:18
dsc_but we can do that later18:18
dsc_basically all managers are doing it wrong I guess18:19
freemangordonthat was my point - fix the managers18:19
freemangordondo not hardcode special code per protocol18:19
freemangordonin conversations that is18:19
dsc_maybe18:19
dsc_depends how much time it costs18:19
dsc_i dont have unlimited time18:19
freemangordonwell...18:19
freemangordonask for help maybe18:19
dsc_?18:20
dsc_i just worked on this for 3 weeks18:20
freemangordonask for somebody to help with making it properly18:20
freemangordonif you are short on time that is18:20
dsc_its properly18:20
dsc_im sharing this link to discuss it right now18:20
dsc_i dont know if its good/bad18:20
dsc_the problem is, we are calling `ensureTextChat` regardless if its a group or direct chat18:21
freemangordonok18:21
dsc_the reason this worked in the past, is because I *assume* the managers are ignoring the handle type18:21
freemangordonyou don;t have direct chats, anyways, roght?18:21
dsc_we do, if someone initiated the message first18:22
freemangordonbut you receive the handle type still18:22
freemangordonand if remote party initiated the chat and if there is only MUC, then the handle type must be room, no?18:22
dsc_eh18:22
freemangordonthat's what hase does18:23
freemangordon*haze18:23
Wizzupfor now I think this works ok, but yes, eventually the tp-qt limiations needs to be fixed18:23
freemangordonotherwise I don;t understand what's going on :)18:23
freemangordonWizzup: what are the limitations that have to be fixed?18:23
Wizzuphttps://github.com/TelepathyIM/telepathy-qt/issues/518:24
freemangordonno need to do that18:24
freemangordonyou can simpy run a local QEventLoop until you are done with whatever you have to be18:24
WizzupI am not sure if blocking progress potentially indefinitely is good either18:24
dsc_<freemangordon> and if remote party initiated the chat and if there is only MUC, then the handle type must be room, no? <== i dont know?18:24
dsc_do you know?18:24
freemangordonyes18:24
dsc_if someone messages you on IRC, and you send a message back, whats the handle type?18:24
Wizzupin any case what we have now works well enough18:25
freemangordonIM?18:25
dsc_im assuming Contact18:25
Wizzupit would be nice to have the account splugin worknig though18:25
freemangordondsc_: IM or room?18:25
dsc_direct message18:25
freemangordonbecause IRC supports both18:25
freemangordonit is contact18:25
freemangordonnot room18:25
dsc_ok18:25
dsc_then my question is18:25
dsc_is calling `ensureTextChat` on a contact OK?18:25
freemangordonbut, underlying protocol supports both IM and MU chats18:25
freemangordonif it accepts handle type room, then yes18:26
freemangordonon a contect18:26
freemangordon*contact18:26
freemangordonsure18:26
sicelo(potentially unhelpful , but afaict there's not really IM with matrix ... everything, including one-to-one chat, is treated like a room)18:26
Wizzupa direct message isn't a room though?18:26
freemangordonin what context?18:27
Wizzupsicelo: well yes but it needs to be mapped to TP18:27
freemangordonand TP supports rooms18:27
freemangordonI don't understand the issue here18:27
freemangordonif you do not support IM chats, you dont; announce it18:27
freemangordonIM == 1to118:28
siceloWizzup: map the matrix 'IM' to a room under TP as well?18:28
dsc_lets stick to one subject18:28
Wizzupthen it will be a group chat18:28
Wizzupdo you want to see three people icons next to every matrix chat?18:28
freemangordonisn;t it? a group chat?18:29
freemangordonif it is18:29
Wizzupclearly no client does this18:29
freemangordonif matrix supports group chats only...18:29
dsc_guys18:29
dsc_ensureTextChat18:29
dsc_please18:29
Wizzup?18:29
dsc_https://github.com/maemo-leste/conversations/blob/master/src/lib/tp.cpp#L76418:29
freemangordondsc_: just a second18:29
dsc_so we're using this for both rooms and 1:118:29
dsc_just wondering if thats ok18:30
freemangordonWizzup: well, UI wise we can play smart and put 3 people icon anly for chats with more than 2 people :)18:30
freemangordondsc_: checking18:30
dsc_freemangordon: ty18:30
Wizzupfreemangordon: yeah, and how would you know?18:30
freemangordondsc_: yes, absolutely18:30
Wizzupare you going to paste all the remote_uids?18:30
Wizzups/paste/parse/18:30
dsc_freemangordon: ill remove that matrix specific check18:30
freemangordonWizzup: no, you just need the count of18:30
freemangordonyou have atendees, no?18:31
Wizzupif you're online yeah18:31
freemangordonattendees18:31
Wizzupbut this is not how rtcom works18:31
freemangordonah, I see18:31
freemangordonwell, if matrix does not support IM chats, why shall we pretend it does?18:31
freemangordonif you can always add another user, is that IM chat?18:32
freemangordonI would not say so18:32
freemangordondsc_: remote_uid is room id when this is MUC and contact id for IMC18:33
dsc_i dont think you can add another user, its E2EE 1:!18:33
dsc_1:118:33
dsc_not sure how that would work18:33
freemangordonok, what makes it room then? :)18:34
Wizzupno remote_uid is never the room id18:34
freemangordonsure it is18:34
Wizzupnope18:34
freemangordonwell...18:34
Wizzupremote_uid is who the message comes from18:34
freemangordonthat's how haze works18:34
Wizzupregardless of whether it is in a channel or not18:34
Wizzupthe remote uid of a textchannel, yes18:34
freemangordonin ensureChannel context? no18:34
Wizzupbut not of a message18:34
dsc_freemangordon: from the Tp and conversations side, a 1:1 chat is 1:1, in Matrix its called a 'room'18:34
dsc_conversations will show the 1 person icon18:35
Wizzupwhy does it matter? just map it to 1:1 and be done with it as we did now18:35
freemangordonWizzup: we are discussing ensureChannel, not when message comes18:35
dsc_honestly we are discussing 3 things at once18:35
freemangordonyou create a channel to a room18:35
freemangordonheh :)18:35
dsc_so just to be clear fmg, you want everything to be a room on the Tp/conversations side18:36
freemangordonno18:36
freemangordonI want room to be room and IM to be IM18:36
dsc_ok, Matrix has IMs :)18:36
dsc_its 1:1 E2EE18:36
freemangordonyou said it has rooms only :)18:36
dsc_yes, Matrix protocol wise18:37
dsc_but in conversations it shows as direct / 1:118:37
dsc_like a real contact18:37
freemangordoncould you ad another user there?18:37
freemangordonif not, that's IM18:37
dsc_you cant18:37
freemangordonso this is IM18:37
freemangordonnot a room18:37
dsc_its encrypted chat :P18:37
freemangordongreat18:37
dsc_person to person18:37
Wizzupif that is what you call im then yes18:37
Wizzupthey call it a room18:37
Wizzup:D18:37
dsc_49048 bit ARC418:38
freemangordonand, could you have a group chat?18:38
freemangordonwhere you can add users?18:38
dsc_yes18:38
dsc_i support both types18:38
freemangordonso, thats a room, or MultiUserChat18:38
dsc_yes18:38
freemangordonI still fail to see the issue :D18:38
dsc_i know18:38
dsc_we are discussing nothing18:38
dsc_so can we get back to ensureTextChat18:38
dsc_lol18:38
freemangordonyes18:39
dsc_so, that one can be used for both IM and room18:39
dsc_question mark18:39
dsc_this is *the* way to send a text message18:39
dsc_what is called after doing `ensureTextChat` on the manager side?18:39
dsc_its createChannelCB right?18:40
dsc_which provides a textchannel18:40
WizzupI think there is ensureTextChatroom18:40
Wizzup(not sure if relevant)18:40
freemangordonensureTextChatroom18:40
freemangordonyes18:40
dsc_right18:40
dsc_so https://github.com/maemo-leste/conversations/blob/master/src/lib/tp.cpp#L74918:40
freemangordonwhen you want to connect to a room18:40
Wizzupbut it's probably just with a different handle type18:40
dsc_is wrong18:40
dsc_because it only does `ensureTextChat`18:40
dsc_?18:40
dsc_it needs to take into account the type18:40
freemangordonwait18:40
freemangordonI think the logic is wrong there18:41
freemangordonyou should not be allowed to write to a chat if you don;t have channel18:41
dsc_exactly18:41
freemangordonand you don;t do 'ensureChannel" only when you want to send a message18:41
freemangordonyou should do ensureChannel(room) when a chat window is created18:42
freemangordonagree?18:42
dsc_im thinking18:42
Wizzuplol18:43
dsc_so you're only in a channel when you are in the chat window18:43
WizzupI don't agree at all18:43
freemangordonor vice versa18:43
dsc_i.e: you join a channel on IRC only when you open the chat window18:43
dsc_seems weird18:43
Wizzupthis is just a convenience function to write a message, regardless of whether the Tp::TextChannel exists or not18:43
Wizzupif it doesn't exist ,it makes it for you18:43
Wizzupwhether it's correct for multi user rooms I don't know18:43
Wizzupbut the logic is sane18:43
freemangordonthen you shoudl pass channel type somehow18:43
dsc_i agree Wizzup but im wondering what fmg thinks18:43
freemangordonno, wait18:44
freemangordonthe end result of that now is that messages get lost18:44
dsc_that also yes18:44
dsc_:P18:44
freemangordonbecause you write them, press enter and conversations tries to send them18:44
Wizzupthe matrix specific hack? yes18:44
freemangordonno, in general18:44
Wizzupwhy?18:44
freemangordonbut when it cannot send them, for whatever reason, the message gets lost18:44
Wizzupthere's a closure there18:45
Wizzupsure we need to handle not being able to send messages in general18:45
Wizzupbut the problem is not there18:45
freemangordonthat's part of the problem18:45
freemangordonif you cannot connect to a channel, why should ypou be allowed to write a message?18:45
Wizzup???18:45
freemangordontry it in fremanlte18:45
Wizzupit will allow me to send a sms to anything or anyone18:46
freemangordonto write a message to contact that's not online18:46
Wizzupregardless of whether it will work or not18:46
freemangordonsms is anotehr story, as sms has no concept of presence18:46
Wizzupagain, very basic, just handle the failure of channel creation18:46
dsc_hmm18:46
Wizzupthere's nothing wrong with the logic there: it will create a channel when you try to write something18:46
freemangordonand your message is gone :)18:46
Wizzupnope18:46
WizzupIt's not going to make 100000000 channels for all potential users18:47
freemangordonumm.... do you have that number of chat windows opened?18:47
Wizzupyou just want the text box disabled in certain cases18:47
Wizzupthat's all fine, but it's so unrelated to what we're discussing i'm a little tired18:47
Wizzupdisregard the idea that ever, ever, ever, it is a good idea to map open window to a channel18:48
Wizzupjust forget about it now, it's a stupid idea and it doesn't work18:48
freemangordonhow it is not related? ensureChannel(room) user has to know the channel type that has to be created18:48
Wizzupwe can check for an open window whether it makes sense to allow to send a message18:48
Wizzupthat's about it18:48
Wizzupthis check is there because if you offline/online you lose all the channels18:48
freemangordonwhere that message comes from?18:48
freemangordonanyway, lets go back to ensureChannel18:49
dsc_i got my answer18:49
freemangordonit is manager's job to provide the correct handle type18:50
dsc_i was just wondering if `ensureTextChat` covered both handle types18:50
dsc_which it doesnt18:50
dsc_but18:50
freemangordonright, but that's true regardless of matrix or not18:50
dsc_we've had this for a long time, at which point I concluded that some managers are just accepting those wrong handle types regardless18:50
freemangordonI don;t see how would that be correct18:51
Wizzupyes they are, and for room we already have open channels anyway since we re-open them immediately upon online18:51
dsc_or ehm, not the wrong handle type, but e.g `ensureTextChat` for something that is a group18:51
Wizzupso this branch is never hit for channels18:51
Wizzupit already exists, so there's np18:51
dsc_Wizzup: aaah yes that makes sense18:51
freemangordonok, but if you want to join a room, then there will be18:51
freemangordonno?18:51
Wizzupthen you must use the "join channel" widget18:51
freemangordonyes18:51
Wizzupand until then you won't get a window18:51
freemangordonhave to go for a while, ttyl18:52
WizzupI'm not arguing the code is perfect, I'm arguing that really this doesn't pertain to what we were trying to solve - the validation of the matrix account is rtcom accounts ui ;)18:52
dsc_discussing about this, like this, is hard with telepathy being telepathy.18:53
dsc_thats why I would prefer a github issue18:53
dsc_fmg can just throw in some cheap statements like "just make it properly" but its not so simple some times, and IRC is not a medium where I have time to explain it in full18:54
dsc_because chat goes at 200kmph :P18:55
dsc_bbl18:55
siceloyou can use GH issue of course :-)18:56
dsc_i will, if someone posts an issue18:58
freemangordondsc_: my statements may look cheap, but my experience tells me that adding protocol-specific workarounds usually just covers more serious issues, which will bite us, inevitably. But, lets see what I can do with rtcom account ui issue as it is way easier to solve19:15
freemangordonWizzup: so, you want that @ before username?19:16
freemangordonI mean, can we just as the user to not write it?19:16
freemangordon*ask19:16
Wizzupfreemangordon: well it seems to be the proper way to write the matrix address19:17
freemangordonalso, I registered matrix account, what packages do I need install to be able to test account ui?19:17
WizzupI can't say I like it but it is what they decided19:17
freemangordontelepathy-tank?19:17
WizzupI think you just install the repo I linked19:17
Wizzupit will pull in telepathy-tank19:17
freemangordonah, ok19:18
WizzupWhat is a MXID?19:18
WizzupMatrix user IDs (MXID) are unique user IDs. They are in the format @username:homeserver.tld (this format is used to avoid confusing them with email addresses.) They are intended to be fairly hidden (although right now they are not) - instead you will find and identify other users via 3PIDs.19:18
freemangordonwait, we have chatbot in the channel?!?19:18
Wizzup?19:18
freemangordonoh, you just pasted19:18
Wizzupyeah19:18
Wizzuphttps://matrix.org/docs/older/faq/19:18
freemangordonyeah19:18
Wizzupso we have two choices the way I see it:19:19
freemangordonI though that you asked a question to a chatbot in the channel :)19:19
Wizzup1. use regular matrix format and fix rtcom accounts ui19:19
Wizzup2. make account something else like nickname and make the user just the user name so 'wizzup' and then the server the hostname.tld19:19
WizzupI think (1) is cleaner but then we need to decide whether we also keep 'user' and 'server' as telepathy-tank properties19:20
Wizzupboth account as @user:hostname.tld AND user AND server seem a bit overkill19:20
Wizzuphm I think I actually have a dead polarcell n900 battery19:20
Wizzupstrange19:20
freemangordonif we enter @user:hostname.tld then there is no need for user and server fields19:20
Wizzupah no it is ok (battery)19:21
Wizzupfreemangordon: yes I think so19:21
freemangordonbut, we can also have separate username and server fields19:21
Wizzupyes19:21
freemangordonso, which one do you prefer?19:21
WizzupI don't know, it depends on how much we care about 'account' parameter19:21
freemangordonwe care, it is a must19:21
freemangordonIIRC19:21
Wizzupso tank.manager has always had:19:22
Wizzup[Protocol matrix]19:22
Wizzupparam-account=s required19:22
Wizzupparam-user=s required19:22
Wizzupparam-password=s secret required19:22
Wizzupparam-server=s required19:22
Wizzupparam-device=s required19:22
Wizzup(except for the 'secret' word, I added that)19:22
Wizzupit's not clear to me why it has this many19:22
Wizzuplike: account, user, server19:22
Wizzupgabble doesn't do this for example19:22
freemangordonIIRC rtcom accounts ui splits account and creates user/server fields19:22
Wizzupactually it does also have server, interesting19:22
Wizzup[Protocol jabber]19:22
Wizzupparam-account=s required register19:22
Wizzupparam-password=s register secret19:22
Wizzupparam-server=s19:22
Wizzup(gabble)19:22
freemangordonok, lemme build it and see19:23
Wizzupso you make an account using mc-tool initially (I didn't test creating accounts yet, just editing)19:23
freemangordonMakefile.am: error: required file './AUTHORS' not found19:23
Wizzupif you try to make it through the UI it will force you throug the 'sign up' button which I don't think works yet)19:23
Wizzupah yes touch it19:23
Wizzupapologies19:23
Wizzup(touch AUTHORS)19:23
freemangordonyeah19:23
Wizzupback in 5-10 minutes19:25
freemangordonWizzup: what is 'device' field?19:28
Wizzupthe protocol supports multiple devices at the same time19:30
Wizzupso just a name for the device, but I suppose it also plays some role in e2ee19:30
Wizzupwe can make it Maemo for now and allow editing through advanced19:30
freemangordonWizzup: ok, so I am going to implement +19:36
freemangordon...19:36
freemangordon@ character property19:36
Wizzupok, what is the property set on19:36
freemangordonWizzup: do you know, what is the name of '@' in email address?19:36
Wizzupedit/login widget?19:37
Wizzupit is called 'at'19:37
freemangordonyeah, I know it is at19:37
freemangordonbut, ....19:37
freemangordonwhat type of separator it is19:37
freemangordonlike, something short for "@ is a separator between username and domain'19:38
freemangordonlike 'at_char' or 'account_separator' or...19:38
freemangordondunno how to name the property19:38
freemangordonPROP_AT_CHAR seems stupid to me19:39
Wizzupseparator char19:39
Wizzupuser/server separator19:39
freemangordonuser-domain-separator?19:39
freemangordonis that ok?19:40
Wizzupsure19:40
freemangordonok, thanks19:40
dsc_freemangordon: to answer a earlier thing; waiting on the alias event in createChannelCB20:04
dsc_please consider:20:04
dsc_1) this is after potentially doing join/create, both also http calls, which take time so waiting on the alias event will take in total how long in the blocked loop..20:05
freemangordonright, but this is not really "blocked", events are being processed20:05
freemangordonalso, you can do it by using lambda in the same function20:06
freemangordonin createChannelCB that is20:06
dsc_2) a nested event loop, will still work "as a normal Qt eventloop", this means that after join/create, there is a Quotient::Room *room object, which has signals/slots attached that fire *inside the nested eventloop*, which in turn actually *call* createChannelCB20:06
freemangordonso no need of some fancy signal/slots20:06
dsc_at which point you have some recursion thing20:06
dsc_or at least some spaghetti to sort out20:06
dsc_both are not "impossible" problems20:07
freemangordonI understand, but how do you attach to an object you still don't have access to?20:07
dsc_but they show that I cannot quickly answer you20:07
dsc_i may have forgotten all the details20:07
dsc_or I just cannot context switch so fast20:07
dsc_github issues exist for a reason20:07
dsc_anyway, issue #2 was particularly annoying20:08
dsc_< freemangordon> right, but this is not really "blocked", events are being processed <== right20:08
freemangordonhow is that different if the initisl call blocks?20:09
freemangordon*initial20:09
freemangordonit is still the same20:09
dsc_i dont follow sorry20:10
dsc_issue please20:10
freemangordonso, you have an initial call to libwhatever that establishes a channel with matrix20:11
freemangordonthen you have another http call that does some other magic (like getting alias)20:11
freemangordoncorrect?20:11
dsc_you're asking about "what happens inside a nested Qt loop when the manager is trying to do bookkeeping between maybe-fully-synchronized Quotient::Room objects and the manager state"20:11
freemangordonno20:12
freemangordonsee ^^^20:12
dsc_right, the alias comes in automatically20:12
dsc_but nevertheless its an async 'event'20:12
dsc_under-the-hood it does some HTTP calls, but thats up to the lib20:12
dsc_initially you just have the room->id()20:13
freemangordonwhere that comes from?20:13
freemangordonclient side?20:13
dsc_from the Matrix server API20:13
dsc_so you call create20:13
dsc_or join20:13
freemangordonok, so you have at least one http call :)20:13
dsc_sure, multiple probably20:13
freemangordonexactly20:13
dsc_god knows what libquotient does20:13
dsc_it logs in20:13
freemangordonexactly20:13
dsc_actually those are so-called 'sync' calls20:14
dsc_they fetch state, like what rooms you are in20:14
freemangordonand it is even worse than doing local loop, as most-probably the lib just blocks20:14
freemangordonmhm20:14
dsc_no20:14
dsc_the lib is Qt20:14
freemangordonhow do you know?20:14
dsc_i looked at the code ^^20:14
freemangordonregardless20:14
dsc_it returns a JoinRoomJob *job20:14
freemangordonwith id?20:15
dsc_Quotient::JoinRoomJob*20:15
dsc_no20:15
freemangordonyes, buit it has id that is retreived from the servers20:15
freemangordonno?20:15
dsc_the resulting of the job will have an id20:15
dsc_yeah20:15
dsc_room->id()20:15
dsc_it returns Quotient::Room*20:15
freemangordonso, before you get Quotient::Room*, there has been at least one http call20:15
freemangordoncorrect?20:15
dsc_what flow are we discussing right now?20:16
dsc_there is join, or join+create, or just "nothing"20:16
freemangordonauto *job = m_connection->createRoom(visibility, alias, alias.replace("#", ""), topic, invites);20:16
freemangordonso, when createRoom() call returns, do you have id or not?20:16
dsc_let me check20:17
dsc_well yes if it returns ofc20:17
dsc_room_id = joinJob->roomId();20:17
freemangordonso, it got that id from the servers, so there is at least one http call20:17
freemangordonwhich blocked20:17
dsc_yes20:17
dsc_no20:17
dsc_well yes, because we actively spawn an eventloop20:18
dsc_but generally it doesnt block20:18
freemangordonhow's that? it was wunning local loop?20:18
dsc_https://github.com/maemo-leste-upstream-forks/telepathy-tank/blob/maemo/chimaera-devel/src/connection.cpp#L34020:18
dsc_because libquotient implements that HTTP call asynchronously as well20:18
freemangordonplease -re-read my question20:18
freemangordon"so, when createRoom() call returns, do you have id or not?"20:18
freemangordonin "auto *job = m_connection->createRoom(visibility, alias, alias.replace("#", ""), topic, invites);" call20:19
dsc_i would assume no20:19
freemangordonok20:19
dsc_90% sure it wont20:19
freemangordonok20:19
dsc_it cant know20:19
dsc_without a HTTP call20:19
freemangordonso it has issued the calls but not waiting for reply20:19
freemangordonso, if we want the result, we must wait20:19
freemangordonanyway, lemme finish what I am doing20:20
dsc_what do you mean20:20
freemangordon(rtcom accounts ui)20:20
dsc_"we must wait"20:20
dsc_we are waiting, no?20:20
freemangordonQEventLoop().exec()20:20
freemangordonyes20:20
freemangordonwe are20:20
dsc_ok, just checking20:20
dsc_<freemangordon> dsc_: my statements may look cheap <== to be clear, you asked me "why didnt you look for help" which I find cheap yes, I wrote a long markdown document before starting this Matrix work20:24
dsc_and then you say "why dont you just do it properly"20:24
Wizzupguys, the current thing works well :)20:24
dsc_can we *please* focus on the technical stuff20:24
dsc_yes20:24
dsc_i cant deal with that, sorry20:24
dsc_ill go play some videogames :P20:24
dsc_bbl20:25
Wizzuplel: test20:31
freemangordonWizzup: " create_account_cb: account could not be created: missing required parameter 'user'"20:41
freemangordonnow, we set 'account' property, that is in the shape of "@userrname:server.com"20:41
freemangordonwhat else does it want?20:41
freemangordonIIUC it should require either account or username/server, but not both20:44
Wizzupfreemangordon: tank.manager says user as required too20:49
Wizzupand it uses user20:49
Wizzupthis is what I mentioned above20:49
Wizzuprequired are: account,user,password,server,device20:49
Wizzupbut like I said, we need to choose what makes the most sense here I guess20:49
WizzupI don't know why there is user and account20:50
freemangordonmhm20:50
freemangordonok, will fix that20:50
Wizzupthis is a decision the tp-tank people made before we ever knew it existed20:50
freemangordonok, ok20:50
WizzupI think technically we probably want user to just be @user or just user and the server to be the server20:50
Wizzupso maybe we can take account and set user and server up that way, and then we just patch tp-tank to handle that nicely20:50
freemangordonI'll implement that in accounts-ui plugin20:50
Wizzupthat being? what exactly?20:51
Wizzup(also thx)20:51
freemangordonwill split account to username/server20:52
freemangordonand will provide all that's needed20:52
Wizzupbtw, /etc/init.d/leste-config-n900 - I will remove the nr_request20:53
Wizzupdoes it make sense to keep the script, maybe to set boost mode and min freq 500? or a combination of those?20:53
WizzupI prefer setting it from the script to changing it in dts, until we figure out  how to make the freq changing better/faster with governors20:53
freemangordonTBH I don;t think we shall set min freq to 500, but OTOH I don't use n900 with leste so...20:54
Wizzupit does seem to make a big difference in resposiveness20:55
Wizzupresponsiveness20:55
Wizzupand pw wise there is no difference20:55
Wizzup(since we don't do RET or OFF)20:55
freemangordonyeah, but we don;t know how it affect device lifespan20:55
Wizzupif the device is still alive now, 16 years later... :D20:56
freemangordonyeah20:56
freemangordonno strong preference, as you decice20:56
freemangordon*decide20:57
arno11Wizzup: using the script for 500MHz sounds good imo20:59
Wizzupbuilding new leste-config but without 500mhz for now, but have the statements there commented21:18
arno11ok cool21:26
freemangordonWizzup: yeah, signing in does not work21:54
freemangordonbut I have21:54
freemangordonplugin working21:54
freemangordonare you sure 'device' belongs to advanced settings?21:55
freemangordonas it is required21:55
Wizzupwe can default to Maemo21:55
Wizzupbut you can take it out of advanced just the same21:55
Wizzupthen we don't need advanced code21:55
Wizzupfreemangordon: can we not get rid of the 'sign in' stuff?21:55
freemangordonwhy would we?21:55
freemangordonhow do you know account is correctly setup?21:56
freemangordonanyway, will finish it tomorrow21:57
freemangordonttyl21:57
arno11guys, with renice stuff, 250MHz freq is 'usable' with no lags21:59
freemangordonmhm21:59
freemangordonwith proper cgroups it will be even better22:00
arno11yes :)22:00
Wizzupwhy do we not use -n for these on dsmetool ?22:01
freemangordonno reason22:02
freemangordonbut we have to check what -n means22:02
freemangordonstill ,someday we will want proper cgroups22:05
freemangordonsomeday... :)22:05
Wizzup  -n --nice=N                     Set used nice value (priority)22:05
Wizzup                                   for started process22:05
Wizzupseems pretty clear to me22:05
freemangordonok, but in fremantle xorg is started with -n 822:06
freemangordonso I think we shall check what dsme does22:06
Wizzupfreemangordon: did you push the plugin code22:07
Wizzup-n 8 seems like it should be -n -822:07
freemangordonexactly22:07
freemangordonor rather - maybe dsme put that minus22:08
freemangordonthus - we shall check ;)22:08
freemangordonWizzup: will push plugin code tomorrow, when it is ready22:08
freemangordonas rtcom-accounts-ui needs more changes22:09
Wizzupok22:17
arno11freemangordon: thanks a million btw for shader stuff and renice tweaks22:36
Wizzupfreemangordon:22:41
Wizzup/etc/init.d/xorg:    XDG_SESSION_TYPE=x11 /usr/sbin/dsmetool -n -8 -r "autologin user startx -- $XORG_OPTIONS"22:41
Wizzupit is -822:41
Wizzupnot 822:41
freemangordonWizzup: this is not fremantle23:01
freemangordonok, that's correct23:03
freemangordonexec /usr/sbin/dsmetool -n -8 -r "/usr/bin/Xorg $XORG_OPTIONS"23:03
freemangordonthis is from fremantle23:03
Wizzupsure it's the same23:07
freemangordonsystemui has nice of 2023:08
freemangordonweird23:08
freemangordonmce 1523:08
freemangordonh-d hase 2023:09
freemangordon*has23:09
freemangordonbut it is in a special cgroup23:13
Wizzup20 or -20?23:25
Wizzupthey were 0 on my device23:26
freemangordon2023:27
freemangordonon fremantle that is23:27
Wizzupprobably the special cgroup makes the diff23:31

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