System_Error has joined #maemo-leste
Kryder has quit [Ping timeout: 248 seconds]
Wikiwide has joined #maemo-leste
Wikiwide has quit [Remote host closed the connection]
Wikiwide has joined #maemo-leste
Wikiwide has quit [Remote host closed the connection]
Wikiwide has joined #maemo-leste
Wikiwide has quit [Remote host closed the connection]
Wikiwide has joined #maemo-leste
Wikiwide has quit [Remote host closed the connection]
Wikiwide has joined #maemo-leste
Wikiwide has quit [Remote host closed the connection]
Wikiwide has joined #maemo-leste
Wikiwide has quit [Remote host closed the connection]
Wikiwide has joined #maemo-leste
Wikiwide has quit [Remote host closed the connection]
Wikiwide has joined #maemo-leste
Wikiwide has quit [Remote host closed the connection]
Wikiwide has joined #maemo-leste
Wikiwide has quit [Remote host closed the connection]
Wikiwide has joined #maemo-leste
Wikiwide has quit [Remote host closed the connection]
Wikiwide has joined #maemo-leste
joerg has quit [Ping timeout: 252 seconds]
joerg has joined #maemo-leste
<freemangordon> Wizzup: what is the username format for that tank thing? why do you need username to start with @?
<freemangordon> ok, "They are in the format @username:homeserver.tld "
<freemangordon> so, this needs username and server fields, no?
Livio has joined #maemo-leste
<freemangordon> Wizzup: so, I propose to introduce servername_separator property that defaults to '@'
<freemangordon> that way you can enter matrix username properly
<freemangordon> or, have separate username and server fields
<freemangordon> where is matrix accounts-ui plugin code?
Livio has quit [Ping timeout: 265 seconds]
Blasius has joined #maemo-leste
Wikiwide has quit [Remote host closed the connection]
Wikiwide has joined #maemo-leste
Wikiwide has quit [Remote host closed the connection]
Wikiwide has joined #maemo-leste
Wikiwide has quit [Remote host closed the connection]
Wikiwide has joined #maemo-leste
Wikiwide has quit [Remote host closed the connection]
Wikiwide has joined #maemo-leste
Wikiwide has quit [Read error: Connection reset by peer]
<freemangordon> this renders launcher scrolling on n900 with > 40 fps, please test. If there are no regressions I'll push to -devel
System_Error has quit [Remote host closed the connection]
<freemangordon> on d4 fps increases from ~55 to ~75
System_Error has joined #maemo-leste
<Wizzup> morning
<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'
<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'
<Wizzup> freemangordon: so we have separate server and username fields already, btu the validation as far as I can see it, is done on the *account* property
<Wizzup> freemangordon: re: hd above, this should have a better saturation shader, or?
arno11 has joined #maemo-leste
<Wizzup> freemangordon: or do you just test launcher scrolling?
<freemangordon> saturation shader is the same
<Wizzup> oh
<freemangordon> but it is not applied on every frame ;)
<Wizzup> ok, so this might still have the delay when starting start menu, or?
<freemangordon> yes
<Wizzup> or was that delay also the reason
<Wizzup> ok
<freemangordon> but scrolling is ok
<freemangordon> start menu?
<arno11> freemangordon: launcher scrolling is ok now but the rest of the UI is still slow compared to no-blur
<freemangordon> what is "rest of UI"?
<Wizzup> start menu and hildon menu I think
<arno11> hsm, the 'opened window' menu
<freemangordon> start menu == entering launcher?
<freemangordon> please...
<arno11> in fact everywhere blur is visible
<freemangordon> we have:
<freemangordon> task navigator
<freemangordon> launcher:
<freemangordon> desktop edit
<Wizzup> I meant to type status menu
<freemangordon> and h-s-s menu
<Wizzup> not start menu
<freemangordon> *h-s-m
<freemangordon> ok
<Wizzup> but arno and I might be talking about different things too
<arno11> so...task navigator is slow
<arno11> and hsm and all sub menus
<freemangordon> it is *slower*
<freemangordon> no slow
<freemangordon> for n900 25 fps is not *slow*
<arno11> it is under 25 fps and laggy
<freemangordon> right
<freemangordon> but it is the same in fremantle
<Wizzup> and 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 appear
<arno11> yes quite the same
<Wizzup> same for the power menu
<Wizzup> this went away with arno's transitions
<freemangordon> it is not blur that makes it slow
<freemangordon> because blur takes 250 ms (in theory)
<Wizzup> indeed, but it's gone with the other transitions so it's not in h-s-m
<freemangordon> sure, but we have to check which change makes it faster
<Wizzup> yeah
<freemangordon> but, first, lets confirm for few hours I did not regress something with those chages in h-d
<Wizzup> I suspect because hsm is on top of something, maybe it takes time to snap it's current background and then blur it
<Wizzup> but I might not understand how it works
<freemangordon> will check
<freemangordon> Wizzup: but, I need my n900 booting :p
<arno11> freemangordon: imo hsm is quite ok compared to the task manager which is unresponsive (need to click 2-3 times to switch windows)
<arno11> and zoom animation is laggy
<arno11> huge diff with the launcher
<Wizzup> freemangordon: right
<Wizzup> arno11: I don't have this unresponsiveness nithe task manager I think
<Wizzup> I think what happens if you might click on a window before the animation is done?
<arno11> even if i wait, that's a lot slower than no-blur
<freemangordon> arno11: I don;t see such issue with tasknav as well
<arno11> ok let me have a look again
<freemangordon> but, my n900 battery went flat
<freemangordon> so cant test ATM
<freemangordon> have to run, ttyl
<Wizzup> freemangordon: ok, when you have some time, pls see my messages above re: matrix
pere has quit [Ping timeout: 255 seconds]
arno11 has quit [Quit: leaving]
arno11 has joined #maemo-leste
<arno11> Wizzup: 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)
<arno11> on my device with no blur and no overclock, the ui feels as fast as my redmi proot
<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'
<dsc_> the Matri *username* starts with @, not the mission-control account
<dsc_> afaik account can be anything
<dsc_> its just a rtcom UI display string
Wikiwide has joined #maemo-leste
<Wizzup> dsc_: yes, you said that yesterday and I touched on it above too
<Wizzup> 10: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'
<Wizzup> also the way the rtcom account plugins work the account param has to make sense
<Wizzup> only in mc-tool it doesn't
<Wizzup> note to self: fix the power button being used to unlock to then show the power menu
<Wizzup> very annoying, I really press 'power off' bi accident more than a few times a month because uf it
<dsc_> Wizzup: for IRC it is idle/irc/accountname0
<dsc_> from the top of my head
<dsc_> and not idle/irc/accountname@server.tld0
<dsc_> right?
Livio has joined #maemo-leste
Wikiwide has quit [Remote host closed the connection]
Wikiwide has joined #maemo-leste
<inky> folks, 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.
<inky> so 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.
<sicelo> for pmos, you can make an issue on gitlab and post there, or in their matrix room (they have dozens)
<freemangordon> Wizzup: so, where is plugin code?
<inky> oh! 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.
<freemangordon> I think we can use current API with no changes, just by setting some properties
Wikiwide has quit [Remote host closed the connection]
Wikiwide has joined #maemo-leste
<freemangordon> hmm, seems 6.6 does not detect charger on boot
akossh has joined #maemo-leste
<Wizzup> freemangordon: ok, but the code isn't ready yet, but I'll push
<Wizzup> freemangordon: I will push, just a moment
<freemangordon> yes, but I want to do some tweaks
<Wizzup> I pushed
<Wizzup> let me add a bit more code now, 1 minute
<freemangordon> ok
<freemangordon> ok, fremantle renders with 20 fps
<Wizzup> I will get my n900 on serial now
<freemangordon> ok
<Wizzup> (will take 20-30 mins)
<freemangordon> sure
<freemangordon> arno11: so, fremantle renders with 20fps all over the place
<dsc_> what should I do with conversations today?
<dsc_> the media attachments stuff will probably take a while
<Wizzup> dsc_: I think we should talk about new sms / new message
<dsc_> alright
<Wizzup> and a way to resolve the mc 'account names' to more human readable names
<freemangordon> arno11: so, my gut feeling tells me it feels faster becaue *gtk* renders way faster
<Wizzup> this requires more osso-abook integration I think, for the new message / new sms
<freemangordon> please, I want to finish connui-cell first
<freemangordon> I have 2-3 days of work
<dsc_> new message -> spawn gtk contact dialog
<freemangordon> mhm
<arno11> freemangordon: @20 fps, ok so not a surprise if i feel my device a way faster than fremantle then :D
<freemangordon> I assume you'll want me to help
<dsc_> or maybe just open the contacts GUI and then click on people there?
<arno11> @gtk, ah ok
<dsc_> freemangordon: does it need to be embedded?
<freemangordon> sure
<Wizzup> freemangordon: I pushed new code btw
<Wizzup> freemangordon: sure @ connui-cell :D
<freemangordon> yeah, but I doubt I'll be able to do connui-cell, while doing conversations abook integration, while improving h-d performance :D
<arno11> the price of succes ;)
<freemangordon> arno11: so, we have to fix gtk rendering
<Wizzup> freemangordon: feel free to pick whichever
<dsc_> you can just type like 3 sentences
<dsc_> and then ill do it
<dsc_> re: abook
<dsc_> but I dont know where to look currently
<dsc_> :D
<dsc_> #include <abook>
<Wizzup> I 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 integration
<freemangordon> no, it is not that simple
<freemangordon> yeah, as wizzup said
<freemangordon> ok, lemme try to boot my n900 to downgrade the kernel
<Wizzup> what do you want to test with downgrade
<freemangordon> h-d rendering
<Wizzup> hm, I doubt this changed?
<Wizzup> what makes you think it changed?
<freemangordon> yes, but I can boot ;)
<Wizzup> ah.
<dsc_> ill go test some Matrix stuff some more
<dsc_> in the meantime :p
<Wizzup> ok, I have serial going
<Wizzup> let's see how this boot goes
<freemangordon> btw, I have the feeling the hang is related to wifi
<Wizzup> if you blacklist the module we can test that pretty easily I guess
<freemangordon> yeah
<freemangordon> lets see if you can get something on the setial first
<Wizzup> I am struggling to get my n900 in a position where it doesn't lose power through the pins when I touch it, hang on.
<freemangordon> or there is something wring with charger driver
<freemangordon> *wrong
<Wizzup> no, it's clearly contact
<Wizzup> for me it looks like swap is started about 30 seconds in, at least last boot
<Wizzup> [ 36.180053] ext2 filesystem being mounted at /boot supports timestamps until 2038-01-19 (0x7fffffff)
<Wizzup> [ 36.464538] Adding 1048572k swap on /swap. Priority:-2 extents:10 across:1294336k SS
<arno11> i can confirm (from device logs), around 30-35 sec
<arno11> *always around
<Wizzup> last message is iphb being loaded
<Wizzup> then devices is frozen
<Wizzup> device is frozen
<arno11> same for me (from logs)
<Wizzup> have you tried to blacklist iphd?
<Wizzup> iphb
<arno11> nope
asriel has quit [Quit: Don't drink the water. They put something in it to make you forget.]
Danct12 has quit [Quit: ZNC 1.9.1 - https://znc.in]
<Wizzup> I will boot again but I might try that next
Danct12 has joined #maemo-leste
<arno11> (good idea, but difficult for me to reproduce since i'm able to boot 75% of time now)
<arno11> ok
<freemangordon> how is iphb related?
<Wizzup> just the last thing that is on serial
<arno11> but even if there is no freeze, iphb is the last msg from boot
<Wizzup> ok
<Wizzup> then serial seems useless
<arno11> probably
<arno11> the probs arrive when H-D is loading
<Wizzup> so what did you try so far, you tried to remove some things from starting throug the xsession?
<arno11> yes i tried almost every combinations lol
Wikiwide has quit [Remote host closed the connection]
Wikiwide has joined #maemo-leste
<freemangordon> oh, wpasupplicant in backports?
<Wizzup> well I can confirm that the ts stopped responding when iphb was loaded
<Wizzup> but there's more messages
<Wizzup> [ 179.888946] iphb: loading out-of-tree module taints kernel.
<Wizzup> [ 183.210479] omap-mcbsp 49022000.mcbsp: TX Buffer Overflow!
<Wizzup> [ 184.939208] omap-mcbsp 49022000.mcbsp: TX Buffer Overflow!
<Wizzup> [ 179.925872] iphb: Keepalive handler module registered
<Wizzup> [ 185.063568] omap-mcbsp 49022000.mcbsp: TX Buffer Overflow!
<Wizzup> and those keep coming
<Wizzup> might not be the real cause though
<freemangordon> yeah, I saw that too
<Wizzup> but it's not a kernel panic at least it seems
<freemangordon> could be related
<freemangordon> but should not happen, no?
<Wizzup> I will make some lunch and leave it in this state
<freemangordon> lemme downgrade
<Wizzup> I don't know, I think I've probably seen it before
<Wizzup> I also don't remember what mcbsp is :)
<Wizzup> I think openrc doesn't log to serial after a certain time
<freemangordon> audio
<Wizzup> ok, so that could just be responding to the ts touch
<Wizzup> it happens mostly when I touch the ts
<Wizzup> so that could be m-i-s
<freemangordon> yes, but should not cause device to hard lock :)
<freemangordon> oh, we don;t have 6.1 anymore?
<Wizzup> arno11: did you try to remove any of your sysctl swap related things?
<freemangordon> :(
<Wizzup> freemangordon: we do in stable
<freemangordon> it is 6.1.8 there
<freemangordon> but ok
<arno11> Wizzup: yep, already tried
<freemangordon> Wizzup: this looks like either hard device lock or endless loop in kernel
<freemangordon> allso, once booted, it never locks
<arno11> Wizzup: atm what is working @75% of time: blocking modest (network troubles related ?) and loading custom vm from userspace.
<arno11> freemangordon: if it boots fine it is really stable
<freemangordon> yes
<freemangordon> so, it is some driver that hangs it
<freemangordon> I guess we shall blacklist all and enable one by one
<freemangordon> though, if it is sgx nothing will help
<Wizzup> well it's not hanging
<Wizzup> serial shows kernel as alive
<Wizzup> so I would not rule out OOM yet
<arno11> ah
<Wizzup> I can't get a shell though
<Wizzup> [ 1100.258697] omap-mcbsp 49022000.mcbsp: TX Buffer Overflow!
<Wizzup> but that's still going
narodnik has quit [Quit: WeeChat 4.3.5]
Livio has quit [Ping timeout: 252 seconds]
<freemangordon> is it not?
<freemangordon> hmm
<freemangordon> ugh
<freemangordon> it just hanged with 6.1
<freemangordon> so OOM
<freemangordon> but how's that possible given there is swap?
<arno11> (the issue first appeared with 6.1.48 iirc btw)
<freemangordon> this is 6.1.8
<Wizzup> arno11: what is your swap size
<arno11> 2 x 1GB actually
<freemangordon> it was booting happily with 768MiB on emmc
<Wizzup> that is fine, but if it is related to oom then this is a good thing to look into @ happily
<Wizzup> what if we install earlyoom or something?
<Wizzup> (as test)
<Wizzup> I am booting again
<freemangordon> how is swap enabled?
<freemangordon> fstab
<arno11> (it was booting happily with emmc only for a short period btw)
<arno11> yes fstab
<freemangordon> with 6.1 I had no issues whatsoever
<freemangordon> I'll revert swap to emmc to see if it fixes boot issue
<arno11> i already tried
<arno11> same story
<freemangordon> and?
<freemangordon> with 6.1?
<arno11> yes
<freemangordon> so we run OOM with swap?
<freemangordon> that does not make sense
<arno11> 6.1 or 6.6, same boot issues
<arno11> like i said, first troubles appeared with 6.1 and emmc 7 months ago
<freemangordon> but, now it failed to boot with 6.1.8
<freemangordon> do you say this is something userland?
<arno11> yes
<freemangordon> could it be VM settings related?
<arno11> i already tried to remove them
<freemangordon> ok, seems Wizzup has some ideas
<arno11> ok
<Wizzup> booted ok this time
<Wizzup> when h-d started I used the slider to turn off the screen
<Wizzup> not sure if it is related
<arno11> hard to say, the issue is so random, difficult to say what helps or not, until 4-5 reboots
<freemangordon> ok, does not boot with 6.1 and swap on emmc
<freemangordon> lemme revert VM settings
<Wizzup> right there is /etc/sysctl.d/n900-perf.conf.leste
<freemangordon> mhm
<Wizzup> well without .leste
<freemangordon> umm....
<freemangordon> could you have a look at /var/lib/n900-pm?
<Wizzup> do you mena /etc/init.d/n900-pm?
<Wizzup> I don't see /var/lib/n900-opm
<freemangordon> sorry, /var/log
<Wizzup> I don't have this file
<Wizzup> btw, /etc/init.d/leste-config has code to change nr_requests for mmcblk0/1, wonder if this is related to emmc slowness
<freemangordon> how's that?
<freemangordon> oh, does it?
<Wizzup> freemangordon: what writes this file for you in /var/log/
<freemangordon> no idea
<freemangordon> I guess it is /etc/init.d/n900-pm
<freemangordon> oh, maybe this is sopmething I have to remove
<Wizzup> I don't think we have a n900 pm package yet
<Wizzup> since starting it causes lot sof problems
Wikiwide has quit [Remote host closed the connection]
<Wizzup> so you file you probably made by yourself
<arno11> i already tried to remove nr_request
Wikiwide has joined #maemo-leste
<arno11> true for n900-pm
<arno11> i meant the nr_request stuff from leste-config
<arno11> in fact i tried to remove almost every custom n900 stuff, with no more succes on boot
<arno11> the real question for me is why this issue happens randomly. why so much diff between boots
<freemangordon> first boot after removing custom VM stuff here (and nr_requests) is ok
<arno11> for me too (sometimes), but you must try to reboot 3-4 times to be sure
<freemangordon> sure will do
<arno11> ok
<freemangordon> also, to improve responsiveness we shall put h-d (and systemui) in a special cgroup
<freemangordon> that's what fremantle does
<arno11> ah ok interesting
<arno11> for nr request and vm, the issue appeared long time before btw
<arno11> for cgroup: maybe that's why TS latency feels better
<freemangordon> mhm
<arno11> *on fremantle
<Wizzup> I would like to use cgroups yes :)
<arno11> bbl
<freemangordon> second boot in a row, no issue whatsoever
<freemangordon> lemm eupgrade the kernel
Wikiwide has quit [Remote host closed the connection]
Wikiwide has joined #maemo-leste
Wikiwide has quit [Remote host closed the connection]
<Wizzup> it might be worth installing earlyoom, it's a daemon that will kill processes if you get near oom
<Wizzup> (for debugging)
Wikiwide has joined #maemo-leste
<freemangordon> Wizzup: I don;t think we have OOM
<freemangordon> but lemme confirm it
<freemangordon> upgrading to 6.6 now, lemme see if it will boot ok
<freemangordon> with default VM settings/nr_requests
<arno11> sometimes i get 6 freezes with default vm and nr request btw
<arno11> *6-8 freezes
<freemangordon> on boot?
<arno11> but with 6.6
<arno11> don't remember exactly with 6.1
<arno11> bbl
Livio has joined #maemo-leste
<freemangordon> 66 boots fine too
<Wizzup> maybe try a few more times for good measure
<Wizzup> I will also try
<freemangordon> will do
<Wizzup> I will try too
<Wizzup> btw, looks like maybe sapwood-server is not stopped properly and tries to restart while rebooting
<Wizzup> same for him
<Wizzup> but I did type 'reboot' in ssh, so..
<freemangordon> might
<freemangordon> be
<freemangordon> that could be the reason for slow reboot/poweroff
Livio has quit [Ping timeout: 258 seconds]
<freemangordon> second boot in a row with no issue, 6.6
<Wizzup> trying to boot with sysctl and nr_requests disabled too
<arno11> looking @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 cause
<arno11> i currently boot without them for a while but still get troubles
<freemangordon> what troubles?
<arno11> freezes
<freemangordon> temporal?
<arno11> nope
<freemangordon> can;t repro here
<arno11> same troubles as usual
<freemangordon> did you remove nr_requests change?
<arno11> yes
<arno11> uh, actually not
<freemangordon> I think it is nr_requests
<freemangordon> that breaks it
<arno11> iirc i got freeze without it but it was better
<arno11> could explain at least emmc troubles
<Wizzup> first boot was good for me too
<arno11> let me try as well
arno11 has left #maemo-leste [#maemo-leste]
<freemangordon> Wizzup: BTW, if we renice Xorg h-d and system-ui to some sane priorities, we get a very responsive system
<Wizzup> did you try this with renice, or?
<freemangordon> yes
<Wizzup> ok
<freemangordon> fremantle does something through ohm/cgroups/nice
<Wizzup> we might need to enable some cgroup stuff in kernel if not already
<freemangordon> at least Xorg is stared with dsmetool -n 8, but I am not sure what 'nice 8' means to dsme
<freemangordon> we already have some cgroups support
<freemangordon> but I have no idea how to use it
<Wizzup> what do you mean 'we already have some cgroups support'
<freemangordon> see /sys/fs/cgroup
<Wizzup> ok, I see what you mean
<freemangordon> elogind does things
<Wizzup> ok, I think we should do this through openrc
<Wizzup> but I will check kernel
<freemangordon> ok
<freemangordon> anyway, I think nr_requests shall be removed
<freemangordon> lemme check VM stuff
<Wizzup> agree @ nr_requests
<Wizzup> I have two good boots as wlel so far
<Wizzup> # CONFIG_BLK_CGROUP_IOLATENCY is not set
<Wizzup> # CONFIG_BLK_CGROUP_IOCOST is not set
<Wizzup> # CONFIG_BLK_CGROUP_IOPRIO is not set
<Wizzup> # CONFIG_BFQ_CGROUP_DEBUG is not set
<Wizzup> # CONFIG_CGROUP_PIDS is not set
<Wizzup> # CONFIG_CGROUP_RDMA is not set
<Wizzup> others are set
<freemangordon> maybe we want CONFIG_BLK_CGROUP_IOPRIO
<Wizzup> we have this:
<Wizzup> CONFIG_CGROUP_FREEZER=y
<Wizzup> CONFIG_CGROUP_DEVICE=y
<Wizzup> CONFIG_CGROUP_PERF=y
<Wizzup> CONFIG_CGROUP_CPUACCT=y
<freemangordon> sounds like something useful :)
<Wizzup> CONFIG_CGROUP_WRITEBACK=y
<Wizzup> CONFIG_CGROUP_SCHED=y
<Wizzup> so we can play with some other stuff first maybe
<freemangordon> yeah
<freemangordon> have to check what fremantle does
<Wizzup> we should decide what goes in what I think
<freemangordon> we may want to either take ohmd or see if we can achieve the same in elogind
<freemangordon> well, we already have fremantle settings
<Wizzup> what are they?
<Wizzup> I also think nr requests should go
<Wizzup> will reboot again but two successes in a row so far
<Wizzup> and previously it failed 4 times in a row
<Wizzup> I also removed sysfs
<freemangordon> see /usr/share/policy/etc/rx51
<freemangordon> syspart.conf
<freemangordon> I don;t know if elogind implements systemd cgroups support
<Wizzup> on fremantle?
<freemangordon> no, in devuan
<freemangordon> in fremantle it is ohmd plugin that does the job
<Wizzup> I meant /usr/share/policy/etc/rx51
<freemangordon> yes
<freemangordon> syspart.conf
<Wizzup> on fremantle
<freemangordon> yes
<Wizzup> ok
<freemangordon> /usr/share/policy/etc/rx51/syspart.conf on fremantle
<freemangordon> so, 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 systemd
<freemangordon> unless I am missing something
<Wizzup> ok, my fremantle has been off for weeks
<Wizzup> let me try
<Wizzup> freemangordon: why?
<Wizzup> why not use openrc?
<Wizzup> we have it right now
<freemangordon> how would it distribute user started processes?
arno11 has joined #maemo-leste
<freemangordon> like, the ones from the launcher?
<freemangordon> or based on executable?
<arno11> seems ok for me too (on boot) :)
<Wizzup> 3/3 so far
<Wizzup> freemangordon: I will check
<freemangordon> ugh, page-cluster == 8?!?
<freemangordon> this is 2^8 pages
<freemangordon> why is that?
<Wizzup> it looks like cgroups more recently has been taken over by systemd
<freemangordon> yes, and IIUC all that code is disabled in elogind
<Wizzup> gotta love these people
<freemangordon> arno11: why is page-cluster 8?
<freemangordon> this is 128KiB IIUC
<Wizzup> freemangordon: in any case /sys/fs/cgroup is well populated with both openrc and elogind, so I think we can at least test this relatively easily
<freemangordon> Wizzup: it is populated, bu we have no idea how
<Wizzup> what do you mean?
<Wizzup> most of this is set up by kernel initially
<freemangordon> how do you assign process to cgroup?
<arno11> freemangordon: see issue 737, cssu/tmo stuff
<Wizzup> the only thing I see is elogind directory with my ssh login cgroup
<Wizzup> that's it
<freemangordon> so, who says that h-d shall have higher CPU shares that let's say a browser?
<Wizzup> A 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.
<freemangordon> Wizzup: that's clear
<Wizzup> seems to me like dsme and openrc should just put the processes in their right cgroup
<Wizzup> and that's it
<freemangordon> the question is - who moves processes between cgroups and based on what criteria?
<Wizzup> nobody moves things, you just assign them at start
<freemangordon> based on?
<Wizzup> on what starts it?
<Wizzup> and what is started?
<freemangordon> no, that won;t fly
<Wizzup> in any case I suggest we defer this until later - connui-cell, rtcom accounts, etc
<freemangordon> how do you assigh mediaplayer higher prio that ssh?
<Wizzup> that's something that is true for any cgroup software, systemd or not
<freemangordon> arno11: so, because I was there, I cna assure you that the *only* thing that maskes sense to change is swappiness
<Wizzup> it could perhaps be based on .desktop or something, but we weren't talking about OMP
<freemangordon> Wizzup: with systemd you can assign rules baesd on which to move process to a cgroup
<arno11> freemangordon: ok i trust you
<Wizzup> link?
<freemangordon> the same with fremantle/ohmd
<Wizzup> so cgconfig?
<Wizzup> this is not part of systemd
<freemangordon> sec
<Wizzup> yes, systemd incorporated will push for systemd incorporated
<Wizzup> so will you make a .service for OMP?
<freemangordon> the point is that you can manage processes
<Wizzup> what you just linked is exactly what openrc can do *now*
<freemangordon> did you look at the syspart.conf?
<Wizzup> no, I have not started fremantle yet
<Wizzup> please look at the cgroup-tools that I linked
<Wizzup> since it seems to be what you asked
<freemangordon> lemme check
<freemangordon> "These scripts are useless on a modern linux with unified cgroup-v2 hierarchy."
<freemangordon> :D
<Wizzup> no
<Wizzup> with *systemd*
<Wizzup> as far as I read it
vectis has quit [Ping timeout: 276 seconds]
<freemangordon> ok, this https://manpages.debian.org/testing/cgroup-tools/cgrules.conf.5.en.html *looks* like what we need
<Wizzup> if it works with v2 then yes
<Wizzup> looks like you're right and it doesn't work on v2
<Wizzup> I think we can pick if we want v1 or v2, but yeah
<arno11> freemangordon: which renice value did you use for h-d, Xorg and system-ui btw ?
<freemangordon> -8 for h-d and Xorg
<freemangordon> -19 for mce and system-ui
<freemangordon> but that was just for test
Wikiwide has quit [Ping timeout: 252 seconds]
<arno11> ok thx
<freemangordon> I guess -8 for all should be fine
<freemangordon> or even higher
<arno11> ok
<arno11> i'll try in a bit
<freemangordon> also, we shall revert swap to emmc
<Wizzup> freemangordon: did you check if it works?
<freemangordon> yes
<freemangordon> I am booting all the time with swap on emmc
<Wizzup> so its not slow for you compared to mmc?
<Wizzup> sd card is faster for me
<Wizzup> (and has more ram)
<Wizzup> well, swap
<freemangordon> how do you measure it?
<Wizzup> it was unusable with emmc :)
<Wizzup> literally
<freemangordon> well, with nr_requests=512
<Wizzup> why not both, btw?
<Wizzup> btw, no need for serial anymore, yeah?
<freemangordon> because to my understanding there is no way RW on the same device to be faster than R on device a and W on device 2
<freemangordon> no need
<Wizzup> freemangordon: that depends if there is i/o load or not
<freemangordon> there is always io load when you start a program
<freemangordon> ugh, managed to start chromium on n900 :)
<Wizzup> bbl
<Wizzup> freemangordon: let me know if you want me to make leste-config-n900 changes and let me know what to keep in sysctl
<Wizzup> the block requetss will just go
<freemangordon> I think we shall keep just swappiness
<arno11> swappiness is already =60 by default iirc
<freemangordon> so all shall go then
<freemangordon> unless you have hard evidence that a particular setting improves responsiveness or startup times or whatever
<freemangordon> bbl
<arno11> again, i already asked weeks ago to remove stuff, so...totally agree :P
<Wizzup> ok, cool
<Wizzup> will do when I get back
<Wizzup> freemangordon: btw, what about forcing 500mhz as min freq
<Wizzup> in dts or otherwise
<freemangordon> why?
<Wizzup> since it's so much more responsive
<Wizzup> and doesn't cost power
<freemangordon> is it?
<Wizzup> ye
<freemangordon> lemme check
<arno11> yes really no change in power usage
<arno11> even better
<Wizzup> bbiab
<arno11> 500-550-600 seems really ideal imo
<freemangordon> ttyl
<arno11> wow...@805MHz with hd, xorg and systemui reniced, we can't say anymore n900 is slow lol
<Wizzup> what renice did you use?
<arno11> -8
<arno11> for h-d, xorg and systemui
<arno11> (and no blur)
<arno11> bbl
Livio has joined #maemo-leste
<arno11> ok, i'm able to speed up things with fmg shader stuff, tweaking transitions again
<arno11> now task nav is very fast
<arno11> h-s-m as well
<arno11> the key is to decrease radius and modify animations time again when blur is enable
<arno11> it is still 'a bit' slower than no-blur but really acceptable imo
<Wizzup> sweet, can you share it
<arno11> if you want to try it now: radius and radius_more = 3 (or 1) and
<arno11> [popup] duration_in and out = 100
<arno11> *in [home] for radius
<arno11> (no need to restart H-D)
<arno11> with that, you can even switch between windows in task nav before the end of the zoom animation (with blur)
<dsc_> freemangordon: how much time do you have? ^^
<freemangordon> I want to see if I can help with account plugin
<freemangordon> otherwise I have some time
<dsc_> explaining that room name thing has to do with how -tank works right now
<dsc_> due to some shortcomings in Telepathy some hacky stuff was done
<dsc_> which is described in this document: https://plak.infrapuin.nl/selif/bdxo2zx1.txt
<dsc_> under "possible solutions" number 4 was chosen
<dsc_> this, ultimately, has the requirement that TextChannels are always passed on *with* room name
<dsc_> because room name represents the Matrix room alias
<dsc_> on the conversations side we need both alias and underlying ID
<dsc_> at all times
<freemangordon> hows's that? you can;t connect by ID only?
<freemangordon> if that's the case, I would say there is an issue in the manager
<dsc_> nope its not possible
<freemangordon> however, my point is that hardcoding protocol-specific support in conversations is bad
<dsc_> its not how matrix works basically
<freemangordon> but then id is alias+id, no?
<freemangordon> IIRC room id (or user id in that regard) should unique identify the resource in question
<freemangordon> if that's not the case, then mamager is broken
<freemangordon> manager
<dsc_> no Matrix is broken :P
<freemangordon> ok, lemme re-red that wall of text
<dsc_> yes
<dsc_> as I said, how much time do you have
<freemangordon> some time
<dsc_> 1. joinchannel from Conversations by alias
<dsc_> 2. libquotient creates a channel (async, which is a problem but lets forget that)
<dsc_> 3. libquotient returns a Room object without any room alias
<dsc_> 4. after 2 seconds or so, the Matrix protocol will send the alias event
<dsc_> (so I had to wait for that in the manager)
<dsc_> actually
<dsc_> this is not something to discuss on IRC
<freemangordon> umm, why?
<dsc_> because I will post an unreadable wall of text
<freemangordon> ah
<dsc_> i want time to sketch out situations
<freemangordon> so, wait a bit
<dsc_> its very complicated
<freemangordon> you say you have async event from Matrix, right
<freemangordon> ?
<dsc_> sure
<dsc_> everything is async, also the creation of rooms
<freemangordon> so, what is the issue with posting "channelEnsured" as async event too, when you have the alias?
<dsc_> im not following
<dsc_> when joining a channel from conversations, it is by alias, and it calls `ensureTextChannels` (I think)
<freemangordon> dsc_: ok, this will take time (as you said), lemme first try to help with accounts ui applet
<dsc_> and in the manager, it wants a TextChannel back
<freemangordon> lets spend some time tomorrow on that
<dsc_> which is not possible, because the creation of rooms is async
<dsc_> as well as waiting for the room state
<freemangordon> I am still not convinced that's the case
<freemangordon> but I want to look at the code first
<freemangordon> but not now, as account ui plugin is easier
<dsc_> alright
<dsc_> but above we are talking about async stuff
<dsc_> which is actually seperate from requiring room alias over at conversations (maybe)
<dsc_> the reason is, because Matrix wants you to use a room alias everywhere
<dsc_> if I remember correctly
<dsc_> e.g: create a channel (by alias), close conversations, join by ID <== failure
<dsc_> so
<dsc_> we can have a "meeting" about this tomorrow :P
<freemangordon> yes
<dsc_> i will need to prepare all the relevant information, because its very complex
<freemangordon> how do I register with matrix?
<dsc_> matrix is complicated protocol, and telepathy is a complicated framework :P
<dsc_> here:
<freemangordon> "Your browser can't run Element"
<dsc_> but honestly I will just leave the code as it is
<freemangordon> WTF is that?
<dsc_> you can fix it, sure
<dsc_> freemangordon: what browser?
<freemangordon> FF
<dsc_> im also on FF
<freemangordon> a bit older, but still
<freemangordon> 91esr
<dsc_> 128.0
<dsc_> ok freemangordon simple question
<dsc_> conversations does `ensureTextChatroom()`
<dsc_> `createChannelCB()` needs to return a connection, that wraps a Tp::TextChannel
<dsc_> so when we do join `#test:utwente.io`
<dsc_> which is an async call
<dsc_> how do we return a valid TextChannel
<freemangordon> it returns PendingChannelRequest *
<freemangordon> which you can use to wait for async completion
<freemangordon> it will emit finished() when pending operation has completed
<dsc_> Tp::BaseChannelPtr MatrixConnection::createChannelCB(const QVariantMap &request, Tp::DBusError *error)
<dsc_> return type is Tp::BaseChannelPtr
<freemangordon> lemme check
<freemangordon> where is the code?
<dsc_> the `PendingChannelRequest` you're talking about is from the perspective of conversations
<freemangordon> yes
<dsc_> which does a dbus call, which is always async yes
<dsc_> so its pending
<freemangordon> so, there *must* be a way to do it in async way from the manager
<dsc_> but on the manager side its sync
<dsc_> well i hope ^^
<dsc_> > Telepathy-Morse also needs to delay Connection.Interface.Requests CreateChannel() to get a native identifier of created group chat.
<dsc_> we have the same issue as he describes
<freemangordon> also, you can always block in event loop
<dsc_> "wait for something in CreateChannel"
<dsc_> yes im blocking right now
<freemangordon> where?
<dsc_> well, its actually not a true block, you introduce a nested event loop
<dsc_> sorry wrong branch, sec
<freemangordon> yes, that's what I mean
pere has joined #maemo-leste
<freemangordon> QEventLoop
<dsc_> the sync stuff is above that
<freemangordon> in createRoomSync I guess
<freemangordon> so, I don;t see any issue with that
<freemangordon> just wait until you get the alias from Matrix
<freemangordon> also, I don;t understand how 1to1 is a room
<dsc_> heh'
<dsc_> it is
<freemangordon> what defines room as a room?
<dsc_> RoomType IIRC
<dsc_> on the libquotient side, that is
<Wizzup> well, in matrix it is
<dsc_> on the telepathy side, its handletype
<freemangordon> handletype is either contact or room, no?
<dsc_> yes
<freemangordon> ah, I think I see what you mean
<freemangordon> for TP there is a difference, for Matrix it is always MUC, right?
<freemangordon> so, I assume by 'room' you mean MUC, correct?
<dsc_> right exactly
<dsc_> so
<dsc_> sec
<freemangordon> ok, it is the same for haze/facebook
<freemangordon> IIUC
<freemangordon> however, I think this is unrelated to that room alias
<dsc_> yes
<dsc_> here's another thing to discuss
<dsc_> but we can do that later
<dsc_> basically all managers are doing it wrong I guess
<freemangordon> that was my point - fix the managers
<freemangordon> do not hardcode special code per protocol
<freemangordon> in conversations that is
<dsc_> maybe
<dsc_> depends how much time it costs
<dsc_> i dont have unlimited time
<freemangordon> well...
<freemangordon> ask for help maybe
<dsc_> ?
<dsc_> i just worked on this for 3 weeks
<freemangordon> ask for somebody to help with making it properly
<freemangordon> if you are short on time that is
<dsc_> its properly
<dsc_> im sharing this link to discuss it right now
<dsc_> i dont know if its good/bad
<dsc_> the problem is, we are calling `ensureTextChat` regardless if its a group or direct chat
<freemangordon> ok
<dsc_> the reason this worked in the past, is because I *assume* the managers are ignoring the handle type
<freemangordon> you don;t have direct chats, anyways, roght?
<dsc_> we do, if someone initiated the message first
<freemangordon> but you receive the handle type still
<freemangordon> and if remote party initiated the chat and if there is only MUC, then the handle type must be room, no?
<dsc_> eh
<freemangordon> that's what hase does
<freemangordon> *haze
<Wizzup> for now I think this works ok, but yes, eventually the tp-qt limiations needs to be fixed
<freemangordon> otherwise I don;t understand what's going on :)
<freemangordon> Wizzup: what are the limitations that have to be fixed?
<freemangordon> no need to do that
<freemangordon> you can simpy run a local QEventLoop until you are done with whatever you have to be
<Wizzup> I am not sure if blocking progress potentially indefinitely is good either
<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?
<dsc_> do you know?
<freemangordon> yes
<dsc_> if someone messages you on IRC, and you send a message back, whats the handle type?
<Wizzup> in any case what we have now works well enough
<freemangordon> IM?
<dsc_> im assuming Contact
<Wizzup> it would be nice to have the account splugin worknig though
<freemangordon> dsc_: IM or room?
<dsc_> direct message
<freemangordon> because IRC supports both
<freemangordon> it is contact
<freemangordon> not room
<dsc_> ok
<dsc_> then my question is
<dsc_> is calling `ensureTextChat` on a contact OK?
<freemangordon> but, underlying protocol supports both IM and MU chats
<freemangordon> if it accepts handle type room, then yes
<freemangordon> on a contect
<freemangordon> *contact
<freemangordon> sure
<sicelo> (potentially unhelpful , but afaict there's not really IM with matrix ... everything, including one-to-one chat, is treated like a room)
<Wizzup> a direct message isn't a room though?
<freemangordon> in what context?
<Wizzup> sicelo: well yes but it needs to be mapped to TP
<freemangordon> and TP supports rooms
<freemangordon> I don't understand the issue here
<freemangordon> if you do not support IM chats, you dont; announce it
<freemangordon> IM == 1to1
<sicelo> Wizzup: map the matrix 'IM' to a room under TP as well?
<dsc_> lets stick to one subject
<Wizzup> then it will be a group chat
<Wizzup> do you want to see three people icons next to every matrix chat?
<freemangordon> isn;t it? a group chat?
<freemangordon> if it is
<Wizzup> clearly no client does this
<freemangordon> if matrix supports group chats only...
<dsc_> guys
<dsc_> ensureTextChat
<dsc_> please
<Wizzup> ?
<freemangordon> dsc_: just a second
<dsc_> so we're using this for both rooms and 1:1
<dsc_> just wondering if thats ok
<freemangordon> Wizzup: well, UI wise we can play smart and put 3 people icon anly for chats with more than 2 people :)
<freemangordon> dsc_: checking
<dsc_> freemangordon: ty
<Wizzup> freemangordon: yeah, and how would you know?
<freemangordon> dsc_: yes, absolutely
<Wizzup> are you going to paste all the remote_uids?
<Wizzup> s/paste/parse/
<dsc_> freemangordon: ill remove that matrix specific check
<freemangordon> Wizzup: no, you just need the count of
<freemangordon> you have atendees, no?
<Wizzup> if you're online yeah
<freemangordon> attendees
<Wizzup> but this is not how rtcom works
<freemangordon> ah, I see
<freemangordon> well, if matrix does not support IM chats, why shall we pretend it does?
<freemangordon> if you can always add another user, is that IM chat?
<freemangordon> I would not say so
<freemangordon> dsc_: remote_uid is room id when this is MUC and contact id for IMC
<dsc_> i dont think you can add another user, its E2EE 1:!
<dsc_> 1:1
<dsc_> not sure how that would work
<freemangordon> ok, what makes it room then? :)
<Wizzup> no remote_uid is never the room id
<freemangordon> sure it is
<Wizzup> nope
<freemangordon> well...
<Wizzup> remote_uid is who the message comes from
<freemangordon> that's how haze works
<Wizzup> regardless of whether it is in a channel or not
<Wizzup> the remote uid of a textchannel, yes
<freemangordon> in ensureChannel context? no
<Wizzup> but not of a message
<dsc_> freemangordon: from the Tp and conversations side, a 1:1 chat is 1:1, in Matrix its called a 'room'
<dsc_> conversations will show the 1 person icon
<Wizzup> why does it matter? just map it to 1:1 and be done with it as we did now
<freemangordon> Wizzup: we are discussing ensureChannel, not when message comes
<dsc_> honestly we are discussing 3 things at once
<freemangordon> you create a channel to a room
<freemangordon> heh :)
<dsc_> so just to be clear fmg, you want everything to be a room on the Tp/conversations side
<freemangordon> no
<freemangordon> I want room to be room and IM to be IM
<dsc_> ok, Matrix has IMs :)
<dsc_> its 1:1 E2EE
<freemangordon> you said it has rooms only :)
<dsc_> yes, Matrix protocol wise
<dsc_> but in conversations it shows as direct / 1:1
<dsc_> like a real contact
<freemangordon> could you ad another user there?
<freemangordon> if not, that's IM
<dsc_> you cant
<freemangordon> so this is IM
<freemangordon> not a room
<dsc_> its encrypted chat :P
<freemangordon> great
<dsc_> person to person
<Wizzup> if that is what you call im then yes
<Wizzup> they call it a room
<Wizzup> :D
<dsc_> 49048 bit ARC4
<freemangordon> and, could you have a group chat?
<freemangordon> where you can add users?
<dsc_> yes
<dsc_> i support both types
<freemangordon> so, thats a room, or MultiUserChat
<dsc_> yes
<freemangordon> I still fail to see the issue :D
<dsc_> i know
<dsc_> we are discussing nothing
<dsc_> so can we get back to ensureTextChat
<dsc_> lol
<freemangordon> yes
<dsc_> so, that one can be used for both IM and room
<dsc_> question mark
<dsc_> this is *the* way to send a text message
<dsc_> what is called after doing `ensureTextChat` on the manager side?
<dsc_> its createChannelCB right?
<dsc_> which provides a textchannel
<Wizzup> I think there is ensureTextChatroom
<Wizzup> (not sure if relevant)
<freemangordon> ensureTextChatroom
<freemangordon> yes
<dsc_> right
<freemangordon> when you want to connect to a room
<Wizzup> but it's probably just with a different handle type
<dsc_> is wrong
<dsc_> because it only does `ensureTextChat`
<dsc_> ?
<dsc_> it needs to take into account the type
<freemangordon> wait
<freemangordon> I think the logic is wrong there
<freemangordon> you should not be allowed to write to a chat if you don;t have channel
<dsc_> exactly
<freemangordon> and you don;t do 'ensureChannel" only when you want to send a message
<freemangordon> you should do ensureChannel(room) when a chat window is created
<freemangordon> agree?
<dsc_> im thinking
<Wizzup> lol
<dsc_> so you're only in a channel when you are in the chat window
<Wizzup> I don't agree at all
<freemangordon> or vice versa
<dsc_> i.e: you join a channel on IRC only when you open the chat window
<dsc_> seems weird
<Wizzup> this is just a convenience function to write a message, regardless of whether the Tp::TextChannel exists or not
<Wizzup> if it doesn't exist ,it makes it for you
<Wizzup> whether it's correct for multi user rooms I don't know
<Wizzup> but the logic is sane
<freemangordon> then you shoudl pass channel type somehow
<dsc_> i agree Wizzup but im wondering what fmg thinks
<freemangordon> no, wait
<freemangordon> the end result of that now is that messages get lost
<dsc_> that also yes
<dsc_> :P
<freemangordon> because you write them, press enter and conversations tries to send them
<Wizzup> the matrix specific hack? yes
<freemangordon> no, in general
<Wizzup> why?
<freemangordon> but when it cannot send them, for whatever reason, the message gets lost
<Wizzup> there's a closure there
<Wizzup> sure we need to handle not being able to send messages in general
<Wizzup> but the problem is not there
<freemangordon> that's part of the problem
<freemangordon> if you cannot connect to a channel, why should ypou be allowed to write a message?
<Wizzup> ???
<freemangordon> try it in fremanlte
<Wizzup> it will allow me to send a sms to anything or anyone
<freemangordon> to write a message to contact that's not online
<Wizzup> regardless of whether it will work or not
<freemangordon> sms is anotehr story, as sms has no concept of presence
<Wizzup> again, very basic, just handle the failure of channel creation
<dsc_> hmm
<Wizzup> there's nothing wrong with the logic there: it will create a channel when you try to write something
<freemangordon> and your message is gone :)
<Wizzup> nope
<Wizzup> It's not going to make 100000000 channels for all potential users
<freemangordon> umm.... do you have that number of chat windows opened?
<Wizzup> you just want the text box disabled in certain cases
<Wizzup> that's all fine, but it's so unrelated to what we're discussing i'm a little tired
<Wizzup> disregard the idea that ever, ever, ever, it is a good idea to map open window to a channel
<Wizzup> just forget about it now, it's a stupid idea and it doesn't work
<freemangordon> how it is not related? ensureChannel(room) user has to know the channel type that has to be created
<Wizzup> we can check for an open window whether it makes sense to allow to send a message
<Wizzup> that's about it
<Wizzup> this check is there because if you offline/online you lose all the channels
<freemangordon> where that message comes from?
<freemangordon> anyway, lets go back to ensureChannel
<dsc_> i got my answer
<freemangordon> it is manager's job to provide the correct handle type
<dsc_> i was just wondering if `ensureTextChat` covered both handle types
<dsc_> which it doesnt
<dsc_> but
<freemangordon> right, but that's true regardless of matrix or not
<dsc_> we've had this for a long time, at which point I concluded that some managers are just accepting those wrong handle types regardless
<freemangordon> I don;t see how would that be correct
<Wizzup> yes they are, and for room we already have open channels anyway since we re-open them immediately upon online
<dsc_> or ehm, not the wrong handle type, but e.g `ensureTextChat` for something that is a group
<Wizzup> so this branch is never hit for channels
<Wizzup> it already exists, so there's np
<dsc_> Wizzup: aaah yes that makes sense
<freemangordon> ok, but if you want to join a room, then there will be
<freemangordon> no?
<Wizzup> then you must use the "join channel" widget
<freemangordon> yes
<Wizzup> and until then you won't get a window
<freemangordon> have to go for a while, ttyl
<Wizzup> I'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 ;)
<dsc_> discussing about this, like this, is hard with telepathy being telepathy.
<dsc_> thats why I would prefer a github issue
<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 full
<dsc_> because chat goes at 200kmph :P
<dsc_> bbl
<sicelo> you can use GH issue of course :-)
<dsc_> i will, if someone posts an issue
Livio has quit [Ping timeout: 265 seconds]
Livio has joined #maemo-leste
<freemangordon> dsc_: 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 solve
<freemangordon> Wizzup: so, you want that @ before username?
<freemangordon> I mean, can we just as the user to not write it?
<freemangordon> *ask
<Wizzup> freemangordon: well it seems to be the proper way to write the matrix address
<freemangordon> also, I registered matrix account, what packages do I need install to be able to test account ui?
<Wizzup> I can't say I like it but it is what they decided
<freemangordon> telepathy-tank?
<Wizzup> I think you just install the repo I linked
<Wizzup> it will pull in telepathy-tank
<freemangordon> ah, ok
<Wizzup> What is a MXID?
<Wizzup> Matrix 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.
<freemangordon> wait, we have chatbot in the channel?!?
<Wizzup> ?
<freemangordon> oh, you just pasted
<Wizzup> yeah
<freemangordon> yeah
<Wizzup> so we have two choices the way I see it:
<freemangordon> I though that you asked a question to a chatbot in the channel :)
<Wizzup> 1. use regular matrix format and fix rtcom accounts ui
<Wizzup> 2. make account something else like nickname and make the user just the user name so 'wizzup' and then the server the hostname.tld
<Wizzup> I think (1) is cleaner but then we need to decide whether we also keep 'user' and 'server' as telepathy-tank properties
<Wizzup> both account as @user:hostname.tld AND user AND server seem a bit overkill
<Wizzup> hm I think I actually have a dead polarcell n900 battery
<Wizzup> strange
<freemangordon> if we enter @user:hostname.tld then there is no need for user and server fields
<Wizzup> ah no it is ok (battery)
<Wizzup> freemangordon: yes I think so
<freemangordon> but, we can also have separate username and server fields
<Wizzup> yes
<freemangordon> so, which one do you prefer?
<Wizzup> I don't know, it depends on how much we care about 'account' parameter
<freemangordon> we care, it is a must
<freemangordon> IIRC
<Wizzup> so tank.manager has always had:
<Wizzup> [Protocol matrix]
<Wizzup> param-account=s required
<Wizzup> param-user=s required
<Wizzup> param-password=s secret required
<Wizzup> param-server=s required
<Wizzup> param-device=s required
<Wizzup> (except for the 'secret' word, I added that)
<Wizzup> it's not clear to me why it has this many
<Wizzup> like: account, user, server
<Wizzup> gabble doesn't do this for example
<freemangordon> IIRC rtcom accounts ui splits account and creates user/server fields
<Wizzup> actually it does also have server, interesting
<Wizzup> [Protocol jabber]
<Wizzup> param-account=s required register
<Wizzup> param-password=s register secret
<Wizzup> param-server=s
<Wizzup> (gabble)
<freemangordon> ok, lemme build it and see
<Wizzup> so you make an account using mc-tool initially (I didn't test creating accounts yet, just editing)
<freemangordon> Makefile.am: error: required file './AUTHORS' not found
<Wizzup> if you try to make it through the UI it will force you throug the 'sign up' button which I don't think works yet)
<Wizzup> ah yes touch it
<Wizzup> apologies
<Wizzup> (touch AUTHORS)
<freemangordon> yeah
<Wizzup> back in 5-10 minutes
<freemangordon> Wizzup: what is 'device' field?
<Wizzup> the protocol supports multiple devices at the same time
<Wizzup> so just a name for the device, but I suppose it also plays some role in e2ee
<Wizzup> we can make it Maemo for now and allow editing through advanced
Livio has quit [Ping timeout: 252 seconds]
<freemangordon> Wizzup: ok, so I am going to implement +
<freemangordon> ...
<freemangordon> @ character property
<Wizzup> ok, what is the property set on
<freemangordon> Wizzup: do you know, what is the name of '@' in email address?
<Wizzup> edit/login widget?
<Wizzup> it is called 'at'
<freemangordon> yeah, I know it is at
<freemangordon> but, ....
<freemangordon> what type of separator it is
<freemangordon> like, something short for "@ is a separator between username and domain'
<freemangordon> like 'at_char' or 'account_separator' or...
<freemangordon> dunno how to name the property
<freemangordon> PROP_AT_CHAR seems stupid to me
<Wizzup> separator char
<Wizzup> user/server separator
<freemangordon> user-domain-separator?
<freemangordon> is that ok?
<Wizzup> sure
<freemangordon> ok, thanks
<dsc_> freemangordon: to answer a earlier thing; waiting on the alias event in createChannelCB
<dsc_> please consider:
<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..
<freemangordon> right, but this is not really "blocked", events are being processed
<freemangordon> also, you can do it by using lambda in the same function
<freemangordon> in createChannelCB that is
<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* createChannelCB
<freemangordon> so no need of some fancy signal/slots
<dsc_> at which point you have some recursion thing
<dsc_> or at least some spaghetti to sort out
<dsc_> both are not "impossible" problems
<freemangordon> I understand, but how do you attach to an object you still don't have access to?
<dsc_> but they show that I cannot quickly answer you
<dsc_> i may have forgotten all the details
<dsc_> or I just cannot context switch so fast
<dsc_> github issues exist for a reason
<dsc_> anyway, issue #2 was particularly annoying
<dsc_> < freemangordon> right, but this is not really "blocked", events are being processed <== right
<freemangordon> how is that different if the initisl call blocks?
<freemangordon> *initial
<freemangordon> it is still the same
<dsc_> i dont follow sorry
<dsc_> issue please
<freemangordon> so, you have an initial call to libwhatever that establishes a channel with matrix
<freemangordon> then you have another http call that does some other magic (like getting alias)
<freemangordon> correct?
<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"
<freemangordon> no
<freemangordon> see ^^^
<dsc_> right, the alias comes in automatically
<dsc_> but nevertheless its an async 'event'
<dsc_> under-the-hood it does some HTTP calls, but thats up to the lib
<dsc_> initially you just have the room->id()
<freemangordon> where that comes from?
<freemangordon> client side?
<dsc_> from the Matrix server API
<dsc_> so you call create
<dsc_> or join
<freemangordon> ok, so you have at least one http call :)
<dsc_> sure, multiple probably
<freemangordon> exactly
<dsc_> god knows what libquotient does
<dsc_> it logs in
<freemangordon> exactly
<dsc_> actually those are so-called 'sync' calls
<dsc_> they fetch state, like what rooms you are in
<freemangordon> and it is even worse than doing local loop, as most-probably the lib just blocks
<freemangordon> mhm
<dsc_> no
<dsc_> the lib is Qt
<freemangordon> how do you know?
<dsc_> i looked at the code ^^
<freemangordon> regardless
<dsc_> it returns a JoinRoomJob *job
<freemangordon> with id?
<dsc_> Quotient::JoinRoomJob*
<dsc_> no
<freemangordon> yes, buit it has id that is retreived from the servers
<freemangordon> no?
<dsc_> the resulting of the job will have an id
<dsc_> yeah
<dsc_> room->id()
<dsc_> it returns Quotient::Room*
<freemangordon> so, before you get Quotient::Room*, there has been at least one http call
<freemangordon> correct?
<dsc_> what flow are we discussing right now?
<dsc_> there is join, or join+create, or just "nothing"
<freemangordon> auto *job = m_connection->createRoom(visibility, alias, alias.replace("#", ""), topic, invites);
<freemangordon> so, when createRoom() call returns, do you have id or not?
<dsc_> let me check
<dsc_> well yes if it returns ofc
<dsc_> room_id = joinJob->roomId();
<freemangordon> so, it got that id from the servers, so there is at least one http call
<freemangordon> which blocked
<dsc_> yes
<dsc_> no
<dsc_> well yes, because we actively spawn an eventloop
<dsc_> but generally it doesnt block
<freemangordon> how's that? it was wunning local loop?
<dsc_> because libquotient implements that HTTP call asynchronously as well
<freemangordon> please -re-read my question
<freemangordon> "so, when createRoom() call returns, do you have id or not?"
<freemangordon> in "auto *job = m_connection->createRoom(visibility, alias, alias.replace("#", ""), topic, invites);" call
<dsc_> i would assume no
<freemangordon> ok
<dsc_> 90% sure it wont
<freemangordon> ok
<dsc_> it cant know
<dsc_> without a HTTP call
<freemangordon> so it has issued the calls but not waiting for reply
<freemangordon> so, if we want the result, we must wait
<freemangordon> anyway, lemme finish what I am doing
<dsc_> what do you mean
<freemangordon> (rtcom accounts ui)
<dsc_> "we must wait"
<dsc_> we are waiting, no?
<freemangordon> QEventLoop().exec()
<freemangordon> yes
<freemangordon> we are
<dsc_> ok, just checking
<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 work
<dsc_> and then you say "why dont you just do it properly"
<Wizzup> guys, the current thing works well :)
<dsc_> can we *please* focus on the technical stuff
<dsc_> yes
<dsc_> i cant deal with that, sorry
<dsc_> ill go play some videogames :P
<dsc_> bbl
Blasius_ has joined #maemo-leste
leste has quit [Ping timeout: 252 seconds]
lel has quit [Ping timeout: 252 seconds]
lel has joined #maemo-leste
n900 has quit [Ping timeout: 252 seconds]
joerg has quit [Ping timeout: 248 seconds]
Blasius has quit [Ping timeout: 248 seconds]
LeePen has quit [Ping timeout: 248 seconds]
jrayhawk has quit [Ping timeout: 248 seconds]
aat596_ has joined #maemo-leste
aat596 has quit [Ping timeout: 252 seconds]
Blikje has quit [Ping timeout: 272 seconds]
aat596_ is now known as aat596
joerg has joined #maemo-leste
n900 has joined #maemo-leste
Blikje has joined #maemo-leste
jrayhawk has joined #maemo-leste
<Wizzup> lel: test
<freemangordon> Wizzup: " create_account_cb: account could not be created: missing required parameter 'user'"
<freemangordon> now, we set 'account' property, that is in the shape of "@userrname:server.com"
<freemangordon> what else does it want?
<freemangordon> IIUC it should require either account or username/server, but not both
<Wizzup> freemangordon: tank.manager says user as required too
<Wizzup> and it uses user
<Wizzup> this is what I mentioned above
<Wizzup> required are: account,user,password,server,device
<Wizzup> but like I said, we need to choose what makes the most sense here I guess
<Wizzup> I don't know why there is user and account
<freemangordon> mhm
<freemangordon> ok, will fix that
<Wizzup> this is a decision the tp-tank people made before we ever knew it existed
<freemangordon> ok, ok
<Wizzup> I think technically we probably want user to just be @user or just user and the server to be the server
<Wizzup> so maybe we can take account and set user and server up that way, and then we just patch tp-tank to handle that nicely
<freemangordon> I'll implement that in accounts-ui plugin
<Wizzup> that being? what exactly?
<Wizzup> (also thx)
<freemangordon> will split account to username/server
<freemangordon> and will provide all that's needed
<Wizzup> btw, /etc/init.d/leste-config-n900 - I will remove the nr_request
<Wizzup> does it make sense to keep the script, maybe to set boost mode and min freq 500? or a combination of those?
<Wizzup> I prefer setting it from the script to changing it in dts, until we figure out how to make the freq changing better/faster with governors
<freemangordon> TBH I don;t think we shall set min freq to 500, but OTOH I don't use n900 with leste so...
<Wizzup> it does seem to make a big difference in resposiveness
<Wizzup> responsiveness
<Wizzup> and pw wise there is no difference
<Wizzup> (since we don't do RET or OFF)
<freemangordon> yeah, but we don;t know how it affect device lifespan
<Wizzup> if the device is still alive now, 16 years later... :D
<freemangordon> yeah
<freemangordon> no strong preference, as you decice
<freemangordon> *decide
<arno11> Wizzup: using the script for 500MHz sounds good imo
<Wizzup> building new leste-config but without 500mhz for now, but have the statements there commented
dsc_ has left #maemo-leste [#maemo-leste]
<arno11> ok cool
narodnik has joined #maemo-leste
<freemangordon> Wizzup: yeah, signing in does not work
<freemangordon> but I have
<freemangordon> plugin working
<freemangordon> are you sure 'device' belongs to advanced settings?
<freemangordon> as it is required
<Wizzup> we can default to Maemo
<Wizzup> but you can take it out of advanced just the same
<Wizzup> then we don't need advanced code
<Wizzup> freemangordon: can we not get rid of the 'sign in' stuff?
<freemangordon> why would we?
<freemangordon> how do you know account is correctly setup?
<freemangordon> anyway, will finish it tomorrow
<freemangordon> ttyl
<arno11> guys, with renice stuff, 250MHz freq is 'usable' with no lags
<freemangordon> mhm
<freemangordon> with proper cgroups it will be even better
<arno11> yes :)
<Wizzup> why do we not use -n for these on dsmetool ?
<freemangordon> no reason
<freemangordon> but we have to check what -n means
<freemangordon> still ,someday we will want proper cgroups
<freemangordon> someday... :)
<Wizzup> -n --nice=N Set used nice value (priority)
<Wizzup> for started process
<Wizzup> seems pretty clear to me
<freemangordon> ok, but in fremantle xorg is started with -n 8
<freemangordon> so I think we shall check what dsme does
<Wizzup> freemangordon: did you push the plugin code
<Wizzup> -n 8 seems like it should be -n -8
<freemangordon> exactly
<freemangordon> or rather - maybe dsme put that minus
<freemangordon> thus - we shall check ;)
<freemangordon> Wizzup: will push plugin code tomorrow, when it is ready
<freemangordon> as rtcom-accounts-ui needs more changes
<Wizzup> ok
<arno11> freemangordon: thanks a million btw for shader stuff and renice tweaks
wiesenfee has quit [Ping timeout: 260 seconds]
wiesenfee has joined #maemo-leste
<Wizzup> freemangordon:
<Wizzup> /etc/init.d/xorg: XDG_SESSION_TYPE=x11 /usr/sbin/dsmetool -n -8 -r "autologin user startx -- $XORG_OPTIONS"
<Wizzup> it is -8
<Wizzup> not 8
arno11 has quit [Ping timeout: 276 seconds]
arno11 has joined #maemo-leste
arno11 has left #maemo-leste [#maemo-leste]
<freemangordon> Wizzup: this is not fremantle
<freemangordon> ok, that's correct
<freemangordon> exec /usr/sbin/dsmetool -n -8 -r "/usr/bin/Xorg $XORG_OPTIONS"
<freemangordon> this is from fremantle
<Wizzup> sure it's the same
<freemangordon> systemui has nice of 20
<freemangordon> weird
<freemangordon> mce 15
<freemangordon> h-d hase 20
<freemangordon> *has
<freemangordon> but it is in a special cgroup
Wikiwide has joined #maemo-leste
<Wizzup> 20 or -20?
<Wizzup> they were 0 on my device
<freemangordon> 20
<freemangordon> on fremantle that is
<Wizzup> probably the special cgroup makes the diff
Wikiwide has quit [Remote host closed the connection]
Wikiwide has joined #maemo-leste
akossh has quit [Quit: Leaving.]
System_Error has quit [Remote host closed the connection]
System_Error has joined #maemo-leste
Wikiwide has quit [Remote host closed the connection]
Wikiwide has joined #maemo-leste