xmn has quit [Quit: ZZZzzz…]
sunshavi has joined #maemo-leste
l_bratch has joined #maemo-leste
xmn has joined #maemo-leste
xmn has quit [Ping timeout: 245 seconds]
mdz has joined #maemo-leste
Daanct12 has joined #maemo-leste
akossh has quit [Ping timeout: 256 seconds]
akossh has joined #maemo-leste
akossh has quit [Remote host closed the connection]
mdz has quit [Ping timeout: 252 seconds]
xmn has joined #maemo-leste
joerg has quit [Ping timeout: 260 seconds]
joerg has joined #maemo-leste
xmn has quit [Read error: Connection reset by peer]
xmn has joined #maemo-leste
<freemangordon> Wizzup: yes, with haze
<freemangordon> weather app uses 70MB
<freemangordon> so I am started to think this is qml
<freemangordon> Wizzup: hmm, not sure if group chats do not work properly in 0.6, will checj
<freemangordon> *check
<freemangordon> arno11: how did you set-up the account?
<freemangordon> I can confirm purple-facebook works properly though, in both pidgin and haze
<dsc_> qml did not change much since few months
<freemangordon> did we check the memory usage back then?
helslwed has quit [Ping timeout: 268 seconds]
<dsc_> Wizzup has been monitoring it and claims it has onl recently increassed
<dsc_> I also took some tests months ago but did not remember the values, but nothing out of the ordinary
<dsc_> < freemangordon> weather app uses 70MB <== how much is conversations currently?
<freemangordon> 98
<dsc_> iirc was always in this range, maybe even more
<dsc_> but not a lot more
<freemangordon> this is huge
<freemangordon> mem usage shall be no more than 40MB
<freemangordon> (lets say)
<freemangordon> OMP, which is qt as well, uses ~50
<dsc_> hmm
<freemangordon> but conversations being resident all the time shall use less
<freemangordon> so, my bet is on QML engine
<dsc_> freemangordon: do you still have that hello-world example around? could you check that?
* freemangordon checks
<freemangordon> qml_hello uses 52MB
<freemangordon> the other one uses 65
DaRiX has joined #maemo-leste
<freemangordon> that's the one that uses QQuickWidget
arno11 has joined #maemo-leste
<freemangordon> dsc_: ^^^
<dsc_> there was a plan to decouple conversations such that a daemon is always running to register incoming messages, and the GUI be a seperate process that communicates with it
<dsc_> this was resident mem is low
<dsc_> this way*
<dsc_> so that is one "solution"
<freemangordon> no, we shall find a way to reduce mem usage to a sane value
<dsc_> yes
<freemangordon> like using qtwidgets
<dsc_> and removing the QML?
<freemangordon> instead of QQuickWidget
<freemangordon> not sure
<freemangordon> but we shall remove QQuickWidget at least
<freemangordon> this one alone gives 15MB diff in sample apps
<dsc_> hmm
<arno11> freemangordon: i can confirm it worked once (with very last tp haze update) then, catastrophical after reboot
<freemangordon> and is also not recommended by qt docs
<freemangordon> arno11: ok, but please, explain what did you do
<freemangordon> and what is catastrophical
<dsc_> freemangordon: why do you think I made it via QQuickWidget
<freemangordon> because I am looking into the code
<arno11> fresh install, update to devel + FB plugin and ui
<dsc_> yes, but why
<freemangordon> no idea
<dsc_> so I can remove the widget when 10 windows are opened and only 1 is active ^^
<dsc_> was a attempt at reducing mem footprint
<freemangordon> see, I am not blaming you for qml being mem hungry :)
<freemangordon> what I am saying is that we have an issue that shall be fixed
<dsc_> yes :)
<freemangordon> if theat measns that we shall remove qml, so be it
<freemangordon> *means
<dsc_> quite a lot of work went into that
<freemangordon> sure, if you find other way, that's fine
<freemangordon> but I am afraid there is no, given that simple sample app showing just a drawing takes 65MB
<dsc_> we've had this interface for a while, only now I am receiving this constraint ^^
<freemangordon> dsc_: how do you think, how usable is app that takes nearly half of the RAM?
<freemangordon> also, I still don;t understand why do you take that personally
<arno11> freemangordon: i think someone (other than me) must check what's going on from a fresh install
<freemangordon> arno11: please elaborate on "catastrophical"
<freemangordon> ok, I will check when I have time
<freemangordon> but still, I see nothing obviously wrong with the latest changes that can result in catastrophe
<arno11> i'm totally agree
<freemangordon> so, please give me some details on what's going on
<freemangordon> are you sure you start tp-haze properly?
<arno11> yes
<freemangordon> because if account is set to be online, then TP start it for you
<freemangordon> and you cannot have 2 instances running
<arno11> let me explain (a bit long)
<freemangordon> ok
<dsc_> I think for the n900 it is def. a problem
<dsc_> for the d4 not so much
<dsc_> I suggest a QtWidgets only version for n900
<arno11> from a fresh install with devel upgrade and FB plugin and ui, it worked once...then after reboot i got some weird troubles like presence-ui disappering, some apps thinking there is no network, pidgin running @100% cpu, starting PA and python3 threads
<dsc_> even if QML goes down to 50mb its still too much
<dsc_> for something that ought to just render text chats...
<dsc_> so, support to switch between QtWidgets/QtQuick
<dsc_> im not removing the QML interface completely, ill let you know right now, someone else can do that
<dsc_> technical implementation would be: 2 binaries that have different linkage
<dsc_> < dsc_> im not removing the QML interface completely, ill let you know right now, someone else can do that <== what I mean is, if it is decided to get rid of the QML interface in favor of QtWidgets, I wont do that
<freemangordon> dsc_: lets not take any decisions, it my turn out it can be optimized
<freemangordon> arno11: I would bet you OC too much
uvos__ has joined #maemo-leste
<dsc_> and for both cases, the daemon/client architecture could mitigate the remaining resident memory fears
<arno11> no even with boost deativated, it doesn't work
<arno11> and troubles start just after boot so overclock can't be involved
<uvos__> we could also just have sphone be the default message ui for very memory constrained devices (n900 essentally)
<uvos__> sure atm that comes with reduced feature set (no group chats, text only messaging) but its tiny
<uvos__> and i will have to maintain sphones message ui anyhow since i use it oustide of maemo
<uvos__> i think trying to reduce the memory usage of qml is a fools errand
<freemangordon> arno11: no idea what's going on with your device, but I can assure you it is not related to fb plugin
<freemangordon> so, if I were you, I would flash new image, install whatever needed and do not OC until proven stable
<freemangordon> then I would OC to 720 and keep it like that for a week or so
<freemangordon> then to 805
<freemangordon> and no more
<arno11> freemangordon: again, overclock is not in use...
<uvos__> i used to run my droid 1 (also omap3) at 1050MHz
<uvos__> :P
<freemangordon> but, did you OC before it broke?
<arno11> overclock can't work on boot
<uvos__> 1ghz wasent usual on those
<uvos__> *unusual
<freemangordon> yeah, there are some samples of n900 that were reported to run at 950
<freemangordon> no idea how stable and for how long :)
<uvos__> arno11: well one thing is that if you over oc you get memory corruption, which can end up as disk corruption
<freemangordon> arno11: did you run the device OCed even for a while?
<freemangordon> exactly
<uvos__> so you might be hosed even after removeing oc
<freemangordon> right
<freemangordon> arno11: and given that you flashed new image because your old one had similar symptoms, I would say it it the OC to blame
<freemangordon> and you should not push to 850
<arno11> i use 805 max
<freemangordon> the same applies
<freemangordon> even that is high
<freemangordon> could you run fsck on the fs?
<freemangordon> thoug, it might show noting
<uvos__> time for btrfs xD
<freemangordon> :)
<uvos__> might actually be a good way to check a oc long term
<freemangordon> arno11: really, I would recommend to start from scratch and *do not* enable OC
<freemangordon> that way if you hit the same issue, we will know it is not OC to blame
<arno11> ok but i'm writing from the device and got no time to answer to all stuff...
<freemangordon> I just rebooted my d4, which uses exactly the same fb/haze as your n900
<freemangordon> and it has absolutely no issue whatsoever
<freemangordon> have to run, bbl
arno11 has left #maemo-leste [#maemo-leste]
xmn has quit [Ping timeout: 256 seconds]
<dsc_> its a branch with all qml removed, but rtcom/TP still working
<dsc_> so could check the difference between with/without QML there
<dsc_> cmake -DCMAKE_BUILD_TYPE=Release -Bbuild .
<dsc_> make -Cbuild -j4 conversations-tiny
<dsc_> ./build/bin/conversations-tiny
<Wizzup> dsc_: I get:
<Wizzup> /home/user/conversations/src/chatwindow.cpp:69:20: error: ‘class Ui::ChatWindow’ has no member named ‘quick’ 69 | auto *qctx = ui->quick->rootContext();
<dsc_> Wizzup: make -Cbuild -j4 conversations-tiny
<Wizzup> ok
<Wizzup> it does save some ram
<Wizzup> max heap usage for just the first5 seconds is about 100MB without and 168MB with
pere has quit [Ping timeout: 255 seconds]
<Wizzup> but I am not sure if we need to care at this point
elastic_dog has quit [Ping timeout: 260 seconds]
<Wizzup> rtcom-messaging-ui on fremantle uses 6.7% memory on the n900 with some windows open, conversations is 17% on the n900 atm, QML is maybe half of that
<Wizzup> there is still plenty of ram available on the n900 too
elastic_dog has joined #maemo-leste
<dsc_> still, its quite easy for me to make something switch between QtWidgets/QtQuick
<dsc_> by having 2 binaries
<dsc_> so that option is available
<Wizzup> I think we stay the course for now but keep this in mind
<Wizzup> there's still the other 60% of memory that goes to non-qml things
<Wizzup> I'd rather have a fully functional conversations with no memleaks and qml than nothing
<dsc_> :)
<Wizzup> also splitting things out in two binaries at this point is also not a good idea, we're still figuring out how to it fully pt aware
<Wizzup> s/pt/tp/
<dsc_> no I meant we'd have `conversations` and `conversations-tiny`, the latter would omit linkage against Quick
<dsc_> what you just ran does not link against quick
<dsc_> so I only need to add a QTextBox for the chat
<dsc_> etc.
<Wizzup> I mean, you can if you want to toy with it
<dsc_> above PR is like 70% of that hehe
<dsc_> and via `cmake -> make` it would generate those 2 targets
<dsc_> anyway I rather look into room registration right now
<Wizzup> I think both are fine yes
<Wizzup> wrt room registration, we'll have to join on various times from tp (reconnect due to network, or when the account is first online)
<Wizzup> and I would use the local_uid as key
<dsc_> alright
<Wizzup> and we might want to offer some interface to get the current channels from the tp account class
<Wizzup> osso-addressbook uses 12.1% ram on n900 btw (compared to 10.3 conversations atm)
<Wizzup> plus, most of qml might just be shared with other qml apps
mdz has joined #maemo-leste
<dsc_> < Wizzup> and we might want to offer some interface to get the current channels from the tp account class
<dsc_> ^-- u haz hint as to what method to use or shall I look?
<Wizzup> doesn't exist yet
<dsc_> i know
pere has joined #maemo-leste
<dsc_> they are doing it by directly asking dbus
rafael2k has joined #maemo-leste
<dsc_> even though they use Tp
<dsc_> ill look
<Wizzup> freemangordon: I don't think that is tp
<Wizzup> they are talking to themselves there I think
arno11 has joined #maemo-leste
<arno11> freemangordon: overclock is not involved, still the same issue, but doing expandcard then reboot, dist-upgrade then reboot, extras installing stuff then reboot, setting up an account with pidgin works (works in every cases with bitlbee and bitlbee-FB), with almost no cpu usage
<Wizzup> freemangordon: whatever empathy does to read purple vars, it doesn't use dbus
<arno11> purple-facebook refuses to connect and presence-ui doesn't work
<arno11> maybe that's just an issue with my account btw
<Wizzup> freemangordon: seems to deal with a tmp file /var/tmp/haze-59dFiV/accounts.xml
<freemangordon> Wizzup: sorry, I am missing the context
<freemangordon> arno11: please, please, try to not use "does not work" etc, explain what does not work instead
<freemangordon> does purple-fb work through pidgin?
<freemangordon> if it does not, then there is no point to test it with presence-ui, accounts-ui, conversation s, empathy etc
<Wizzup> freemangordon: I am trying to understand how empathy gets the purple-specific settings through haze
<freemangordon> ah
<freemangordon> they are visible through tp interfaces
<Wizzup> weird, I did dbus-montor
<Wizzup> monitor
<Wizzup> grepped for it with empathy running
<freemangordon> sec, lemme try to find it
<Wizzup> nothing matched the key names
<freemangordon> yes, they register pidgin properties as connection/protocol properties
<Wizzup> btw, in empathy I now see a channel with the new haze code in slack
<Wizzup> but the messages come in as HandleTypeContact
<arno11> freemangordon: ?? as previoulsy mentioned, pidgin works well with purple-FB, and purple-FB + FB UI refuses to connect (with presence UI not working/displaying)
<freemangordon> Wizzup: yes, how should they come? Like, how do you know who wrote?
<Wizzup> freemangordon: they are part of a TextChannel that is a room
<freemangordon> wait
<freemangordon> how do you know who exactly typed that particular message?
<freemangordon> if we are 3 peuple in a chat
<freemangordon> *people
<freemangordon> for example
<Wizzup> freemangordon: message.sender()->id()
<freemangordon> if message handle is the room handle, how do you know which of the 3 typed that message?
<Wizzup> that is not the same as the channel->targetHandleType()
<freemangordon> what is message?
<Wizzup> any incoming message
<freemangordon> sac
<Wizzup> the channel facilitates the sending and receiving of messages, and the message itself contains who sends it
<Wizzup> the channel reports if it is a single 1:1 or room (multi user) channel
<Wizzup> it looks like in this case in haze this is not correct yet, BUT
<Wizzup> somehow empathy gets it ok
<Wizzup> maybe it looks at the supported interfaces
<freemangordon> Wizzup: yes, empathy gets it ok
<freemangordon> that's why I think I am doing it properly
<freemangordon> I guess you mean TpMessage or QTpMessage (made-up qt wrapper)
<freemangordon> then again, you have sender there
<Wizzup> It's not correct when compared to telepathy-gabble or telepathy-irc (whatever it is called)
<freemangordon> is it?
<Wizzup> it doesn't matter what struct the message is in
<freemangordon> right
<Wizzup> so in telepathy-gabble and the telepathy-idle (irc)
<freemangordon> do you have tp-gabble message structure for multi-user chat incomming message?
<freemangordon> dbus would do the job as well
<Wizzup> a channel that is a room has a targethandletype that is not HandleTypeContact
<Wizzup> sure
<freemangordon> right
<Wizzup> sec
<freemangordon> and it is not in case of haze as well
<freemangordon> sender != target handle type, IIUC
<Wizzup> empathy gets in the way so much lol
<freemangordon> Wizzup: BTW, I am not saying I didn't do something stupid in tp-haze, feel free to have a look at the code
<freemangordon> but i looked in idle code and they set the sender handle as contact
<freemangordon> not as a room
* freemangordon checks again
<Wizzup> freemangordon: same @ conversations code :p
<Wizzup> 12:45 < freemangordon> but i looked in idle code and they set the sender handle as contact
<Wizzup> for every channel?
<Wizzup> freemangordon: I see a lot of matches for TP_HANDLE_TYPE_ROOM in telepathy-gabble at least
<Wizzup> I don't have telepathy-idle src here, but will get it
<Wizzup> freemangordon: btw check your dm
<freemangordon> Wizzup: ok, look at MessageReceived
<freemangordon> message-sender
<freemangordon> is 26
<freemangordon> I can bet this is contact handle, not room
<Wizzup> of course it is
<Wizzup> but look at EnsureChannel
<Wizzup> string "org.freedesktop.Telepathy.Channel.TargetHandleType"
<Wizzup> dict entry(
<Wizzup> variant uint32 2
<Wizzup> )
<Wizzup> That is uint32 2
<Wizzup> not uint32 1, as it seems to be with haze muc
<freemangordon> this is the room handle
<Wizzup> yes, but with haze muc it is 1
<freemangordon> but this is for ensure_channel
<Wizzup> yes, that's the point
<freemangordon> umm...
<Wizzup> let me explain again :)
<freemangordon> this is handle, not handle type, or?
<Wizzup> when we get an incoming message, the message arrives on a channel
<Wizzup> ok?
<freemangordon> ah, it is
<freemangordon> wait, wait
<Wizzup> sure
<freemangordon> just a sec to check something
<Wizzup> there is another thing to check, it's called channeltype, I don't know what it is
<Wizzup> ah no, that is just text or not
<freemangordon> so I don;t know where did you gat that 1 from
<freemangordon> *get
<Wizzup> ok, let me log and try again
<freemangordon> are you sure it is MU channel?
<freemangordon> perhaps run tp-haze with all logs enabled
<Wizzup> k dict entry(
<Wizzup> string "org.freedesktop.Telepathy.Channel.TargetHandleType"
<Wizzup> variant uint32 1
<Wizzup> )
<Wizzup> dict entry(
<Wizzup> string "org.freedesktop.Telepathy.Channel.TargetHandleType"
<Wizzup> variant uint32 1
<Wizzup> )
<Wizzup> rom dbus-monitor
<Wizzup> i'll paste it, sec
<freemangordon> what is the path?
<Wizzup> see dm
arno11 has left #maemo-leste [#maemo-leste]
<freemangordon> hmm
<freemangordon> where does that come from?
<Wizzup> sorry?
<freemangordon> member=NewChannels
<freemangordon> I mean - where that target handle type comes from
<freemangordon> like, I am sure I set to to room everywhere
<Wizzup> cm
<Wizzup> it is not impossible that the purple slack plugin does something odd
<Wizzup> but conversations receives the wrong type
<Wizzup> the channel is made on demand when a message is entered in it
<Wizzup> also, I can't join channels from empathy, but that might again be a thing in this specific purple plugin
<freemangordon> the same happens with purple-fb, channel is created on-demand
<freemangordon> you can't because it is still not supported :)
<Wizzup> right
<Wizzup> maybe check if the handle is 1 or 2 in purple-fb
<freemangordon> that's another thing to be implemented (rooms list)
<freemangordon> going to
<Wizzup> I think a room list is a list of joinable channels, I don't think you need that implemented to be able to join a channel
<Wizzup> that is just for searching channels
<dsc_> i also came to that guessing conclusion 1hr ago
<dsc_> while looking at RoomListChannel
<freemangordon> Wizzup: hmm, target handle type is 1 for fb as well
* freemangordon checks idle
<Wizzup> dsc_: yeah just lmk what you need from tp and I can add it
<Wizzup> dsc_: we already have a qlist of channels per account
<Wizzup> so I can return those
<dsc_> Wizzup: where do you have that?
<Wizzup> tp code, in TelepathyAccount class, also see hasChannel
<Wizzup> but I still need to write you an iface to get them
<dsc_> Wizzup: conversations starts
<dsc_> then I'd like to ask TP what channels there are (per account)
<dsc_> er sec
<dsc_> hasChannel is empty
<dsc_> channels is empty*
<dsc_> while Tp is connected to one
<dsc_> so what do you mean?
<dsc_> :d
<dsc_> handleChannels is also not called
<Wizzup> wait
<freemangordon> variant uint32 2
<freemangordon> :)
<freemangordon> ok, will push that
<dsc_> freemangordon: im interested in your memory measurements of this `conversations-tiny`
<dsc_> 98-(conversations-tiny) = qml overhead
<freemangordon> do you still use qquickwidget?
<dsc_> no, im not linking against quick anymore at all
<freemangordon> ok
<freemangordon> will do later on
<freemangordon> have work mtg in 10 minutes
<dsc_> but it still links rtcom/gtk/telepathy/osso
<dsc_> so its a good measurement
<dsc_> sure, thanks
<freemangordon> also, I saw abook_init is called twice
<freemangordon> Wizzup: please upgrade tp-haze and check if it is op now
<freemangordon> *ok
<freemangordon> keep in mind invites are still not implemented
<Wizzup> freemangordon: now it works
<freemangordon> cool
<Wizzup> logging it as a channel and sending back messages
<freemangordon> "as a channel"?
<freemangordon> you mean mu channel I hope
<Wizzup> room
<Wizzup> we have to come up with the same terminology I guess
<freemangordon> muc == room
<Wizzup> I still use channel as analogous to room
<freemangordon> i prefer muc
<Wizzup> except specifically in tp context
<Wizzup> but this is the #maemo-leste channel
<freemangordon> this is what tp plugins use
<Wizzup> not the #maemo-leste muc :)
<freemangordon> heh
<freemangordon> this is not TP ;)
<freemangordon> in TP terms IM channels are still channels
<Wizzup> yeah
<Wizzup> but when I say 'logs as a channel' I mean room
<Wizzup> since everything is a channel in tp so the statement wouldn't make sense otherwise
<Wizzup> but I will try to do it better
<freemangordon> that's why MU vs IM
<freemangordon> brb
maemouw has joined #maemo-leste
pere has quit [Ping timeout: 246 seconds]
xmn has joined #maemo-leste
<maemouw> Does Maemo Leste with Pinephone Convergence dock support route 4G connection internet to ethernet?
<maemouw> Any hints would be welcome how I should route internet to Raspberry Pi2 Industrial from Pinephone?
<Wizzup> the usb cable should expose usb net
sch has quit [Ping timeout: 255 seconds]
<maemouw> so USBA - USB-A from Pinephone to Raspberry PI?
<maemouw> *USB-A - USB-A cable
sch has joined #maemo-leste
<Wizzup> yes
<gnarface> you might need RNDIS support compiled in the kernel and the usbnet driver loaded on the rpi?
<Wizzup> yeah, we currently have rndis...
<Wizzup> sicelo: should we switch back frmo rndis?
<Wizzup> to what we had befofe?
<Wizzup> before*
<gnarface> is there something besides RNDIS that can do usb networking on these?
<gnarface> i wasn't aware there were alternatives, but it would be nice to have a second option now that RNDIS is being purged from newer kernels
<gnarface> i didn't need it for anything but the usbnet part
<maemouw> these questions put me back to think is it possible route 4G connection to ethernet, because if so I dont have to configure Pi at all.
<gnarface> maemouw: yea, routing should work like any other linux box
<freemangordon> Wizzup: it is safe to delete rtcom el db, right?
<dsc_> yes
<freemangordon> thanks
<Wizzup> gnarface: yeah there is, the one we were using before
<Wizzup> I don't recall the name, we just went for rndis for windows support, but then windows said they'd drop support for it
pere has joined #maemo-leste
<maemouw> gnarface: Docking bar ethernet port shows up and I am as far that here (how to ping from Pinephone with that port): https://talk.maemo.org/showthread.php?t=101354
<maemouw> that question might to to opposite direction...but anyway..
Daanct12 has quit [Quit: WeeChat 4.1.2]
<Wizzup> btw, conversations does not yet notice new accounts if they are added after conversations is started
<maemouw> actual question might be how to get that port to "in use". I am newbie with this kind of stuff..maybe I have forget some basic stuff.
<Wizzup> I'll fix that now
<dsc_> Wizzup: afraid to ask but leaving a channel? :>
<dsc_> *without having a channel instance yet
<dsc_> i.e: tp is already connected to a room but conversations doesnt know it yet
<dsc_> i'd like to leave the room (without calling joinChannel manually first)
<dsc_> or maybe a different question: do we currently have other chat clients that could use telepathy?
<dsc_> if not; the state between conversations:tp could always be 1:1 without having to ask TP for its state (yes, hacky)
<dsc_> since conversations would be the only way to join a room, hence it should also know which rooms it is in
<Wizzup> hang on
<Wizzup> i'll dm
<sicelo> Wizzup: what did we have before RNDIS? maybe should do NCM now
<Wizzup> sicelo: I don't know tbh, just what I thought was 'generic'
<bencoh> wait, windows is dropping support for rndis?
<freemangordon> dsc_: /home/user/tmp/conversations/src/chatwindow.cpp:69:20: error: ‘class Ui::ChatWindow’ has no member named ‘quick’
<sicelo> bencoh: i doubt. but linux has.
<Wizzup> freemangordon: use other make command
<Wizzup> see backlog
<bencoh> sicelo: uh
<sicelo> let's go NCM ... it's successor of ECM
<freemangordon> Wizzup: ok
<Wizzup> freemangordon: did you find it?
<Wizzup> make -Cbuild -j1 conversations-tiny
rafael2k has quit [Ping timeout: 246 seconds]
maemouw has quit [Quit: Client closed]
<Wizzup> sicelo: fine by me
<Wizzup> sicelo: btw, it seems to me that currently in leste the static ip is not longer configured
sixwheeledbeast has left #maemo-leste [#maemo-leste]
<sicelo> for USB?
<Wizzup> yes
<Wizzup> if you connect the usb cable and just type 'ifconfig', do you see the ip assigned?
fab_ has joined #maemo-leste
<Wizzup> hm... it is
<Wizzup> I must remember wrong
<gnarface> oh, maemouw left... if maemo-leste doesn't have some custom tool for this someone tell him to just install ufw or something like that
<Wizzup> the wiki mentions how to do it I think
<Wizzup> but yeah it needs to be improved
<Wizzup> ideally the dialog that pops up when you plug in would just say "share with pc"
<gnarface> oh, cool
<Wizzup> it does have "PC Suite mode"
<Wizzup> we just never added the code to set up the routing
<Wizzup> freemangordon: btw, rtcom accounts ui won't let me add accounts if my disk is 99% full even though I have 1GB free
<Wizzup> not really a problem but yeah
<sicelo> great @IP. was getting worried for a moment :-)
<freemangordon> dsc_: so, tiny one uses 50MB on startup
<freemangordon> and 60 MB when it shows the window
<freemangordon> 'normal' uses 55 on startup and 80 with window
<freemangordon> opening conversation makes it increase to 91MB
<freemangordon> I wonder how much a simple QMainWindow app will use
<Wizzup> it does clever things with multiple windows btw
<Wizzup> freemangordon: btw, I saw 100MB on startup, so that's funny
<freemangordon> it seems to depend on the history you have
<freemangordon> I cleaned rtcom db beforehand
<freemangordon> so I have only one message there
<Wizzup> right
<freemangordon> in the same time h-d uses ~23MB, Xorg less than 20MB
<Wizzup> osso-addressbook used more ram when it was open for me on fresh n900 install with no contacts
<Wizzup> to provide some perspective
<freemangordon> here, with lots of contacts it uses 26MB
<freemangordon> including my FB contacts with avatars
<freemangordon> maybe about 40, no sure
<freemangordon> all the time I am talking about RES value in top
<freemangordon> not sure how correct is that
<Wizzup> it won't account for shared ram I think
<Wizzup> rather, it does account for it, but not for the fact that it is shared with others
<freemangordon> I wonder if making it .launch will have any visible effect
<freemangordon> at least GTK stuff should be stripped
<Wizzup> the qml libraries are already shared through linux
<freemangordon> not really
<freemangordon> no other process is using qml
<Wizzup> so loading a .so and now changing anything means every application will have the exact same copy open in its own ram?
<Wizzup> I don't think that's how it works right
<freemangordon> agree, but that's not what I am saying
<freemangordon> "The non-swapped physical memory a task has used."
<freemangordon> that's what RES is
<freemangordon> lemme remove the swap
<freemangordon> this is with no swap https://pastebin.com/ZWKPNJFz
<freemangordon> adressbook is opened though
<freemangordon> see osso-abook-home-applet usage
<freemangordon> it also uses libabook and I have 2 contacts on the desktop
<dsc_> so the qml overhead is 20mb
<freemangordon> at least
<freemangordon> I will make a simple qwidgets app, to check what is qt minimum
<freemangordon> simple qapplication app uses ~30MB
<freemangordon> simple gui application with one QPushButton: ~42MB
<dsc_> its possible to create a custom Qt5 build with features carved out, often applied for embedded devices
<dsc_> but its a headache
<freemangordon> 40 MB for qt UI application is not that bad
<freemangordon> I will try to make it .launch to see if it will get better
<dsc_> :)
<freemangordon> from only GTK booster we gain 1MB
<Wizzup> guys I am without power, bbl
<freemangordon> dsc_: https://pastebin.com/YKqq1bfW
<dsc_> freemangordon: what is .laucher?
<dsc_> thats nice
<freemangordon> yeah
<freemangordon> unfortunately we don;t have qt booster
<freemangordon> though I can try to make one :)
<dsc_> for me its not so much effort to make QtWidgets version as previously suggested
<dsc_> so thats -20mb
<freemangordon> or even more
<freemangordon> so to me it makes sense
<freemangordon> but again, as Wizzup said, lets first have it functional
<dsc_> you'd like to get rid of qml completely?
<dsc_> for both n900 and d4?
<freemangordon> perhaps, dunno
<freemangordon> what do we gainfrom using it?
<freemangordon> also, does it make sense to support 2 applications?
<freemangordon> still, lets not focus on that now
<freemangordon> lets have the functionality in place first
<dsc_> what do we gain from not using QML?
<freemangordon> memory :)
<dsc_> how much?
<freemangordon> given that omp uses less than half of the memory conv uses, I would say a lot
<dsc_> that's not a number
<freemangordon> 45 vs 100
<dsc_> qml uses 100mb? the overhead was 20
<dsc_> (or more)
<dsc_> im mostly interested about what percentage it is of d4's total memory
<freemangordon> with non-empty db it uses more
<freemangordon> dsc_: it is not about d4 vs n900
<freemangordon> I have a tablet on my desk with 512 MB
<freemangordon> n950 has 512 as well
<freemangordon> if we are to support it someday
<dsc_> indeed it is not about the device, but about how much resident memory is acceptable
<dsc_> but if we gain max 20mb/30mb then one wonders how much percentage that is of total
<dsc_> my point is that if QML is not acceptable then maybe Qt in general is not acceptable
<dsc_> C/Gtk is always going to be more efficient
<freemangordon> yeah, but I would trade 10MB for programming efficiency
<bencoh> tbh I'd tend to think core applications should be written in c/gtk, unless <insert reason here>
<freemangordon> for conversations it will be a nightmare
<bencoh> indeed
<freemangordon> because of the UI part
<freemangordon> so I would trade some RAM
<freemangordon> also, if I manage to make qt booster, then the penalty will not be that big
<freemangordon> but we cannot avoid JS engine penalty, it will always allocate some amoutns of RAM, even if not needed
<freemangordon> (8MB they are saying)
<dsc_> picking a framework merely on how efficient it is will always lead to C/Gtk, or some minimalist framework, or assembly... ;)
<dsc_> people use Qt for speed of development
<freemangordon> agree
<dsc_> however like bencoh says it is quite core to the OS
<inky> but what about the future? i remember firefox on d4 was okay till chimaera. qt js engine may become much hungrier after one release.
rafael2k has joined #maemo-leste
<inky> i am afraid just recompiling same code could cause more and more memory usage.
<inky> on future platforms.
<freemangordon> sorry guys, ahve to leave
<freemangordon> ttyl
sch has quit [Ping timeout: 268 seconds]
<inky> about 20 years ago i was only using very weak macihnes. gtk was always much faster than qt, i felt it.
<inky> don't know about today, i think gtk4 is very heavy.
<freemangordon> actually qt's js engine is google's V8 one
sch has joined #maemo-leste
<freemangordon> hard to predict what would happen
uvos has joined #maemo-leste
<uvos> if anything gtk4 is heavier than qt5/6 besides qml
<uvos> so gtk istent going to save you for long
<uvos> the gtk booster dosent gain 1mb
<bencoh> let's move to LVGL :>
<uvos> that absurd it gains about 100kb per process, while takeing an to me unkown amount of memory for the deamon itself
<uvos> it probubly bearly breaks even with few apps running
<uvos> the 100kb is also very generously mesured
<freemangordon> well, according to top it is slightly > than 1MB
<uvos> we mesured this in detail before with the script that devides for shared memory regions and accounts for xorg surfaces
<uvos> its essentally nothing
sixwheeledbeast has joined #maemo-leste
<freemangordon> uvos: how much memory does it take for all the sybols resolution and gtk/pango/cairo statically allocated data?
<freemangordon> *symbols
<uvos> i dont know it in that detail
<uvos> but the way we mesured it was takeing private memory, adding the shared memory regions per region devided by the number of procesies that map that region
<uvos> and then adding the increase in memory usage of maemo-launcher that is incured when launching the app
<uvos> the last part is the vast majoraty of the memory usage in the launcher case
<uvos> because somhow launcher ends up with most of the allocations for some reason
<uvos> not sure how that works
<uvos> in the non launcher case you do the same, just no launcher obv
<uvos> i did this back when .launches where binaries not shared lib
<uvos> so you could execute them directly
<freemangordon> so, how would you explain the pastebin ^^^
<freemangordon> I did that several times
<uvos> wel i cant see it
<uvos> its not available
<freemangordon> oh, sorry
<freemangordon> 12022 user 20 0 137524 42216 35772 S 0.0 4.1 0:01.55 qttest .launcher
<freemangordon> 12081 user 20 0 136384 43324 36964 S 3.9 4.3 0:01.00 qttest normal
<freemangordon> 43324 vs 42216
<uvos> launcher changes accounting
<freemangordon> this is a simple application with one push button
<uvos> you will note that the launcher will end up with more memory used after the launch
<freemangordon> launcher just forks and calls main()
<freemangordon> I don't see how would that increase any memory of the daemon
<uvos> it dose for gtk programs, its possible it dosnt here because that happens because of somehting the booster dose
<freemangordon> booster does nothing for qt (still)
<freemangordon> but qt also uses gtk and pango and cairo (via gtk)
<freemangordon> so all the data thise FW allocate an process startup is savesd
<uvos> anyhow its using more shared memory
<freemangordon> ald the glib objects etc
<uvos> which is probubly meaningless
<freemangordon> just imagine how much we save from not creating glib object classes
<freemangordon> I would argue
<uvos> well i did this mesurement in high detail on osso-xterm and came up with about 100kb
<Wizzup> wasn't it more about startup speed than memory saving?
<uvos> Wizzup: no it saves no speed
<uvos> i also did that mesurement
<uvos> that one is still on github
<uvos> it saves no speed over the readahead replay case
<uvos> on d4
<uvos> but it dose decrease cpu usage some, but launching is io bound so it ends up a tie in terms of speed
<uvos> also it causes the libs to be in memory allready on first launch
<uvos> so first launch is faster if you dont have something like systemd-readahead
<freemangordon> then your measurements are broken, because it saves all the symbols resolution
<freemangordon> because libs are already there, with symbols resolved
<uvos> saveing symbols resolution is the reason why it takes less cpu time
<uvos> but this has no effect on launch speed
<freemangordon> how's that?
<uvos> because the whole process is io bound
<uvos> the cpu _is_ more busy but the if you go gtk_init(); return 0; in main the launcher and non launcher process will end up exiting within mesurement error time wise
<uvos> but the non launcher process will have kept the cpu more busy
<uvos> i gues this may not be true on n900 since the io is the same speed but the cpu is slower
<uvos> anyhow launcher dose help here since we dont have systemd to help us and i keeps all the often used libs in ram
<freemangordon> doing simply gtk_init() is not the usual case
<freemangordon> usually you create lots of glib classes
<freemangordon> and this is where it makes the difference
<freemangordon> because the static memory is already allocated
<freemangordon> by static I mean it is heap mamory but allocated only once per process lifetime
<uvos> well the intention was to make symbol resolution the main part of the execution time
<Wizzup> did we ever try ksm?
<freemangordon> also, all the so symbols are resolved only once
<Wizzup> or did this incur pm hit?
<uvos> to maximise the launcher efect
<uvos> Wizzup: i did
<uvos> Wizzup: it helps some
<uvos> dont remember the numbers
<uvos> but maybe a couple meg on d4 at the expense of a lot of cpu time
<Wizzup> seems worth doing in any case
<Wizzup> hmm
<uvos> n900 cant do it imo
<Wizzup> a lot of cpu time?
<uvos> yeah so theres 2 problems with this
<uvos> i started it on boot and then stoped it after it was done with a pass, it takes a huge amount of cpu time just after boot while its doing its thing (pegging one core)
<uvos> and it only helps with stuff launched while its active
<uvos> it could be used on d4 since you have another core to service the user
<uvos> but on n900 its going to suck
<uvos> and a pass takes like 10 minutes
<uvos> so in the end i dont think its usefull atm
<uvos> since d4 has no problems with ram anyhoiw
<uvos> anyhow so my over arching point is that yes maemo launcher helps some, but most of the ram is shared allready so it only helps a little, and you have to take into account the amount of ram used by the launcher itself devided by the launch procesies
<uvos> also for speed it helps not very mutch besides being effectively a good disk catch (which is nothing to sneeze at) and maybe a bit more on devices with fast io realtive to cpu (n900)
<uvos> but it aint magic
<uvos> *cache
<freemangordon> sure it is no magic
<freemangordon> but it is not useless as well
<uvos> i never said its useless, i have questioned the matiniance burde to usefullness ratio in the past (esp problems with glibc) but not the absoult merit. and besides as long as i dont have to maintain it i dont care mutch
<uvos> also since qt internals change pretty rapidly i question the wisdom of trying to hack around in those internels with a boost module, but if you want to keep up with that, thats fine.
<freemangordon> at least we can try
<uvos> sure
<freemangordon> like, having QApplication ang QWidget loaded byt the booster
<uvos> sure yeah, also maybe qt has some special proparties that make it mutch more sutable to having more stuff in shm than gtk2 is
<uvos> i have no idea
<Wizzup> uvos: wrt ksm using a lot of cpu, was it something that could be tweaked?
<uvos> i mean not really
<uvos> fundamentally it needs to compute a hash of every page
<uvos> thats very expensive no matter how you cut it
uvos__ has quit [Ping timeout: 264 seconds]
<Wizzup> uvos: right, but if it runs every 15 mins or so
<Wizzup> set to 0 to stop ksmd from running but keep merged pages,
<Wizzup> would also allow for these tricks
<Wizzup> btw, I think since we fixed the ants, some of the shortcuts on the home page sometimes lack an icon
<Wizzup> could be completely unrelated, but when I touch them they get their icon back
<Wizzup> freemangordon: should there be two create_advanced_settings_page calls in the rtcom accounts plugin
<Wizzup> freemangordon: I am not seeing my advanced page params being saved somehow
<Wizzup> should we perhaps call rtcom_account_item_save_settings or something
<Wizzup> or does this work for the fb plugin for sure?
fab__ has joined #maemo-leste
fab_ has quit [Ping timeout: 246 seconds]
fab__ has quit [Client Quit]
<uvos> yes i know thats exactly the trick i used
<uvos> i let it run for a while on boot and then shut it off
<uvos> it uses a huge amount of cpu and power, we could not turn it on often
<uvos> but i saves some ram for the allways resident applications
<uvos> since we fixed the ants the gpu hangs way more often
<uvos> at least here
<Wizzup> hm, I only have that when I go to fullscreen in mpv or so
<Wizzup> or leave fullscreen
<uvos> it seams to happen randomly quite often here
<Wizzup> when doing what?
<uvos> seams random really, when opening the menu in xterm, when opening menus in firefox, when selecting an application in tasknav
<uvos> anything that creates a surface seams to be liable to cause it
<Wizzup> I never have firefox open
<sicelo> i also see gpu hangs frequently... i think I've mentioned it a number of times
<sicelo> no FF involved... i don't even have it installed
<freemangordon> Wizzup: fb plugin works for sure
<freemangordon> please just copy the code and tailor it to your needs
<Wizzup> I copied it 1:1
<freemangordon> it woirks
<freemangordon> *works
<freemangordon> so, advanced page does not open?
<Wizzup> it does
<freemangordon> sec, I'll clone it
<freemangordon> ah
<freemangordon> but?
<Wizzup> one sec I need to find the vim
<Wizzup> basically none of the advanced settings are saved
<freemangordon> how do you know that?
<freemangordon> checked with mc-tool?
<Wizzup> they don't end up in the .cfg file
<Wizzup> is this the field that is used to set the key?
<freemangordon> yes
<Wizzup> or is somehow the widget id key being parsed
<Wizzup> ok
<freemangordon> are you sure it is with underscore?
<Wizzup> yes
<freemangordon> sec, want to check something
<freemangordon> Wizzup: /home/user/.local/share/telepathy/mission-control/accounts.cfg?
<freemangordon> also, are there any errors if you run account-ui from console?
<Wizzup> freemangordon: yes that file, and I can controlpanel
<Wizzup> I can try this, in a bit, I'm going to get pulled into another work mtg
<freemangordon> ok, I will try to debug in the meanwhile
<freemangordon> how to register an account?
<Wizzup> not possible
<Wizzup> it's an organisational thing
<freemangordon> heh
<freemangordon> :)
<Wizzup> we could request a free one for maemo
<freemangordon> so, how to test?
<Wizzup> but I don't think you need to register to try to save things
<Wizzup> just fill in whatever
<freemangordon> no, it will not save the account if you don;t login
<freemangordon> IIRC
<freemangordon> but ok, lemme try
<Wizzup> when I typed garbage for the irc setup it worked
<Wizzup> like the server was asdfasdf
<freemangordon> ok
<freemangordon> Wizzup: https://pastebin.com/3q3s9ghT
<Wizzup> freemangordon: it is for sure
<Wizzup> empathy sets the same keys, and if I set them in the cfg then it works too
<freemangordon> I cannot add through empathy
<Wizzup> what do you mean?
<freemangordon> nothing happens when I press add button
<Wizzup> freemangordon: how did you get these errors btw? G_DEBUG_MESSAGES=all accounts-ui ?
<freemangordon> yes
<Wizzup> freemangordon: it looks like they are with - in mc-tool
<Wizzup> (bool) open-chat = true
<Wizzup> (bool) open-history = true
<Wizzup> so does haze just convert _ to - ?
<freemangordon> seems like
<freemangordon> also, if you cannot create new account, do not expose "new account" button
<Wizzup> yes, this is not a pkg yet :)
<freemangordon> ah, ok :)
<Wizzup> g_object_set(G_OBJECT(service),
<Wizzup> "display-name", "Facebook Messenger",
<Wizzup> NULL);
<Wizzup> you didthis
<Wizzup> so what's wrong with "Slack" ?
<freemangordon> Because it was "Facebook", which is misleading
<freemangordon> but I suspect the default name for slack, that comes from the plugin is ok
<freemangordon> that's why the reis no need to set it
<freemangordon> I mean - if you don;t set it explicitly, it uses whatever is provided by the plugin
<freemangordon> and usually it is fine
<freemangordon> Up to you ofc
<freemangordon> Wizzup: G_MESSAGES_DEBUG=all /usr/bin/rtcom-accounts-ui
<Wizzup> ah ok ty
<Wizzup> freemangordon: changing the _ to - makes it work
<Wizzup> ty
<Wizzup> freemangordon: btw you're saying that for facebook you're getting the messages you write elsewhere reported to tp?
<Wizzup> say if you write it on some web client or so
<Wizzup> freemangordon: also, for the slack purple plugin one can provide either a password or api-token, but I don't really know how to do this wrt rtcom ui
<Wizzup> I suppose I could remove the password cap and then have password and api-token in teh advanced page
<Wizzup> cool, have icons now too in slack :p
<Wizzup> sicelo: uvos: when you mean gpu hang, do you mean device reset, or?
<uvos> Wizzup: no its the never returing ioctl thing - or at least the symptoms are the same
<uvos> the device fails to render any new frames, the last frame is displayed forever but the kernel is alive enough to never trigger a wdr
rafael2k has quit [Ping timeout: 260 seconds]