libera/#maemo-leste/ Sunday, 2022-07-24

freemangordonWizzup: it seems I am missing the point, all the time I was trying to find a way to *start* group chat, while you look for a way to somehow receive message for chats/rooms/groups the user has not joined to or somesuch09:09
freemangordonso, could you please explain the usecase (in terms of IRC, for example)09:09
Wizzupfreemangordon: is not about groups that the user hasn't joined10:11
Wizzupfreemangordon: but like, in xmpp, you are persistently in channels10:11
Wizzupas in slack10:11
Wizzupand others protocols10:11
Wizzupso you need to be able to get the list of channels / rooms you're in10:11
freemangordonhmm11:47
WizzupI think telepathy does send some of this info over, like your contacts, buddies, etc11:51
freemangordonwait11:52
freemangordonsee https://pastebin.com/rgWeh4HQ11:52
freemangordonthis is fremantle MessagingUI.client11:53
freemangordonso, it observes handle types 0, 1 and 211:53
freemangordonthe same does Empathy.Chat.client11:54
freemangordonin leste11:54
freemangordonhttps://pastebin.com/5MYE9xAS11:55
Wizzuphmm I am not sure if we ever made this file for conversations11:58
freemangordonI think we must11:59
freemangordonotherwise tp does not know what to call11:59
Wizzupwhat are these numbers?11:59
freemangordontrying to fin, but I guess this https://telepathy.freedesktop.org/doc/telepathy-glib/telepathy-glib-enums.html#TpHandleType11:59
freemangordonthis is for TargetHandleType12:00
freemangordonnot 100%sure though, still trying to find the docs12:01
WizzupI can make this file in a bit12:01
freemangordonsure, but maybe it somehow ionteracts with the code12:01
freemangordonalso, the name must be the dbus iface we expose, IIUC12:02
Wizzupmaybe I'm just not doing it right in conversations tp wise12:02
WizzupIt's so not clear how to do this in any case12:02
freemangordonmhm12:02
freemangordonlemme try to find how12:02
Wizzupwe currently expose a handler called "myhandler", but locally I have changed the name already12:02
Wizzupplease do check src/lib/tp.cpp in conversations12:03
freemangordonI did12:03
WizzupI also added Tp::ChannelClassSpec::textChatroom to the handler creation12:03
freemangordonbut honestly not sure what it is suppose to do12:03
Wizzupbut that didn't make a difference12:03
Wizzupfwiw12:03
Wizzupwell we need a handler to get anything at all12:03
Wizzupbut also to approve channel joins, etc12:03
freemangordonlike, it looks to me like a mix of functionalities12:03
Wizzuptelepathy-qt or the handler?12:03
freemangordonsrc/lib/tp.cpp12:04
freemangordonok, lemme try to find how are those handlers registered with tp-glib, then will try to map to qt12:04
Wizzupok12:04
Wizzupso the tp code in conversations registers a handler and then listens for incoming messages (logs them), and it can send messages back12:05
Wizzupthat's about it currently12:05
Wizzupthe logging part I plan to split out later into a separate component12:05
freemangordonhttps://telepathy.freedesktop.org/doc/book/sect.channel-dispatcher.clients.html12:05
Wizzup(process, really)12:05
freemangordon"An additional .client      file is used by the Channel Dispatcher to look up properties such as      what interfaces the client supports and what channels its interested      in (see Section 4.1.2 ― .client File      below).     "12:06
Wizzupah.. damn. ok12:06
freemangordon*what channels its interested      in*12:06
freemangordon:)12:06
WizzupI am not sure if this will do the trick but it's definitely something missing12:07
WizzupI guess we will also need this for sphone later then, for the tp module12:07
freemangordonwell, at least it worths reading12:08
Wizzupyes12:09
freemangordonWizzup: https://telepathy.freedesktop.org/doc/telepathy-qt/a08056.html12:12
freemangordonhere https://github.com/maemo-leste/conversations/blob/master/src/lib/tp.cpp#L1812:12
freemangordonI think you should add 2 more classes here12:12
freemangordonlike textChatroom() maybe12:13
Wizzupyeah, so I had that locally12:13
Wizzupand that didn't make a difference12:13
freemangordonhmm12:13
Wizzupbut maybe the .client file is also necessary12:13
freemangordoncould be12:13
Wizzupbtw, I have a jabber server for myself that also works with fremantle jabber12:14
Wizzupcould be useful for testing somehow12:14
freemangordonmhm12:14
freemangordonbtw, you may start telepathy-gabble with traces enabled, it will provide hints why handlers/observers are not called12:14
freemangordonGABBLE_PRESIST=1 etc (IIRC)12:15
Wizzupok12:15
Wizzuplet me take it one step at a time, first the file12:15
freemangordonok12:16
Wizzupglad you're back, btw :D12:17
freemangordonkinda :)12:17
Wizzupsure12:17
freemangordonbut yeah, will try to fully get back ASAP12:17
Wizzup:)12:18
freemangordonbtw, for the logging part, see empathy Logger12:18
Wizzupsrc link?12:21
freemangordontrying to find12:21
WizzupI did see a logger interface for telepathy, but at least telepathy-logger didn't seem like what we wanted12:24
Wizzupfreemangordon: wait which empathy file did you paste?12:25
freemangordonEmpathy.Chat.client12:26
freemangordonLoger.client comes with telepathy-logger12:26
freemangordonbut, it may serve as an example I guess12:26
Wizzupit contains less on my vm12:26
freemangordonlike what?12:27
Wizzupthe whole observerfilter is not there on my vm12:27
Wizzuphttp://dpaste.com/FPRRLTFD512:27
freemangordonsame here, maybe I made a mistake and pasted my ubuntu one12:28
* freemangordon checks12:28
freemangordonWizzup: wait, observers are on fremantle12:29
freemangordonMessagingUI.client12:29
freemangordonthis https://pastebin.com/rgWeh4HQ12:30
Wizzupcheck12:30
Wizzupyeah the ui also logs12:31
Wizzupok ty12:31
freemangordonWizzup: BTW, doing "new TelepathyAccount(acc)" for each account seems like an overkill to me12:32
freemangordonwhy is that needed?12:32
freemangordonthis https://github.com/maemo-leste/conversations/blob/master/src/lib/tp.cpp#L3412:33
Wizzupfreemangordon: this is needed to send messages12:34
Wizzupafaik12:34
freemangordonhmm12:34
freemangordonI am not sure this is the case, but well, will see when we get to it12:35
Wizzupnot sure why it is overkill, the accountmanager makes them anyway12:35
Wizzupyeah12:35
freemangordongoing afk, lunch12:35
Wizzup*nod*12:37
Wizzupwell, I do have my own jabber server working fine with fremantle, even for calls and history fetching, so that's nice14:11
buZzdoes jabber also do videocalls?17:21
buZzoh, i guess it does17:23
buZznice17:23
sixwheeledbeastxmpp can support voice and video17:23
Wizzupyeah they work on fremantle17:25
buZzvery nice17:26
buZzfremantle on d4? :D :D :D17:26
buZzhehe17:26
Wizzupno, n90017:27
buZzalright17:45
Wizzupstill struggling with telepathy and channels17:47
bencohIM with Conversation felt like nightmare to me, but ... ymmv18:01
bencohI mean, group chat18:01
Wizzupwhat parts in particular?18:02
bencohmostly the fact that closing a chat window meant leaving the group18:07
bencoh(or channel)18:07
Wizzupright18:07
bencoh(afair at least)18:07
buZzi noticed conversation now can even open multiple windows of the same chat, kinda annoying :P18:10
buZzalso it doesnt give full history, vs sphone's sms history18:11
WizzupbuZz: I haven't seen it open multiple windows of the same chat18:14
Wizzupwhere does this happen?18:14
Wizzupmaybe this is a qt bug where the windows do not stack18:14
Wizzupin any case it's not that important if the tp stuff doesn't work the way it should ;)18:15
buZzWizzup: just tap it a bunch of times18:15
buZzonly 1 window has arrow back, the others have the close X, on topright18:16
dsc_conversations is still in development18:17
bencoh(I was referring to fremantle's Conversations, btw, not leste's one)18:29
sixwheeledbeastthe leaving groups on close was obvious with the IRC plugin.18:31
buZzah18:33
_uvos_Wizzup: log still dosent work18:46
bencohsixwheeledbeast: indeed18:50
Wizzup_uvos_: ah shit18:50
Wizzuplel: ping18:52
Wizzuptest18:52
sixwheeledbeastI think it was only the plugins affected tho, SMS or IM isn't a issue to close?18:52
Wizzuplel: ping218:53
Wizzupok18:53
DavidTalmageIs Maemo Leste 20220618 known to work on the N900?  When mine tries to boot from it (on an SD card), it thinks for a little while then it presents the U-Boot menu.19:19
DavidTalmageIs there a way to turn on the display backlight in U-Boot?19:20
Wizzupdid you select to boot it from the uboot menu?19:22
Wizzupthe display backlight should be on, unless you started the n900 by plugging in the usb cable19:22
DavidTalmageYes, I selected the boot from SD option in the uboot menu.19:23
DavidTalmageI started the N900 by plugging in the USB cable.  Thanks for the clue!19:23
DavidTalmageI think maybe I see a problem.  On the dim display after first boot, it says "unable to read bootmenu.cf" or something like that.19:26
Wizzuplatest image you say?19:28
DavidTalmageyes.  I haven't tried other images.19:29
Wizzupfreemangordon: so even with empathy it (1) doesn't open existing chat rooms (2) doesn't know about existing chat rooms unless I add them20:03
Wizzupif I join the channel manually through TP then it does work it looks like20:11
DavidTalmage@Wizzup I just now tried 20220611. It won't boot, either.  The N900 keeps going back to the U-Boo menu20:12
DavidTalmageU-Boot20:12
DavidTalmageIt's as if U-Boot doesn't know where to look for the boot partitiion20:13
Wizzupfreemangordon: well it worked once in empathy20:14
WizzupDavidTalmage: weird... I can try tomorrow on my n90020:14
DavidTalmageThanks.20:16
DavidTalmageIs there a u-boot command I can type to make the N900 boot from the sd card?20:17
Wizzup'run sdboot'20:18
WizzupDavidTalmage: how did you dd the image, btw?20:18
DavidTalmagethe screen went black for a minute.  Then it rebooted.  Now I see the u-boot menu again.20:19
WizzupDavidTalmage: how did you copy the image to the sd card?20:21
DavidTalmagesudo dd status=progress bs=1M if=maemo-leste-1.0-armhf-n900-20220611.img of=/dev/sdc20:22
Wizzupok, so you did extract the xz part then :)20:23
Wizzupas in, you did un-xz'd20:23
DavidTalmageYes.  `unxz maemo-leste-1.0-armhf-n900-20220611.img.xz `20:24
WizzupI'll test tomorrow20:28
Wizzupbencoh: so I imagine this behaviour (leaving chat upon closing window) is likely related to what I am seeing20:31
Wizzupbencoh: I am not even sure if TP supports persistently joining rooms20:31
Wizzupwhich is kind of weird since xmpp definitely does20:31
Wizzupbencoh: looks like empathy is the same20:45
Wizzupclose window == lose chat20:46
Wizzupbencoh: so I suppose we'd have to keep track of channels ourselves21:09
Wizzupfreemangordon:21:13
Wizzup21:12 -!- wizzupvm [~user@78-3-105-124.adsl.net.t-com.hr] has joined ##maemotest21:13
Wizzup21:12 < wizzupvm> Maemo conversations says hi21:13
Wizzupthat's something :)21:13
Wizzupdsc_: ^^21:13
dsc_pretty cool21:13
dsc_but does it blend21:13
Wizzupthere's a lot more to do for sure, but it's something21:14
dsc_chatgroups imply a whole range of features, incl. keeping channel roster up2date (people leaving, entering), being able to PM specific people inside a groupchat, you yourself can join/leave specific groups, and this is all multi-protocol21:16
Wizzupthe roster you can also query, but yeah there are signals for it21:17
Wizzupjoin/leave is functional it seems, just doesn't work the way I thought it would21:17
dsc_this has implications for the amount of front-end work required21:17
siceloDavidTalmage: tried a different image then?21:33
DavidTalmageYes.  Same result.21:33
DavidTalmageI wonder if there is something wrong with my u-boot21:34
siceloWeird. I'll see if I can find my spare SD card and test.21:34
siceloI doubt it's u-boot. You can still boot Fremantle with it (u-boot)?21:35
DavidTalmageNo, I can't.21:35
sice|othat's a problem. are you able to find out why you can't boot Fremantle with u-boot?21:39
sice|ohttps://leste.maemo.org/Nokia_N900#Quick  .. try steps 1-4 from that link. that *should* get you to a booted Maemo Leste environment, unless there are other issues21:41
DavidTalmageso far, no.21:51
DavidTalmageThe n900 keeps rebooting into u-boot.21:51
sice|oeven using that link, i.e. via 0xFFFF?21:53
DavidTalmageyes21:54
DavidTalmagedmesg tells me that it found the N900.21:55
sice|othen your SD card is suspect. perhaps try a different SD card21:55
DavidTalmageI've tried two different sd cards.21:56
DavidTalmageWhat about the battery?21:56
DavidTalmageMust the n900 have a working battery?21:56
DavidTalmageI don't think the one it has is accepting a charge any more.21:56
sice|oyes, you do need it :-)21:57
sice|okeep the USB connected ... might be enough to supply power to the device21:57
DavidTalmageI'm going to order a new battery right now.21:58
DavidTalmageI'll return with the results.  It may be a few days.21:59
Wizzupmaybe leave the battery to charge over night to a wall charger21:59
DavidTalmageThank you @Wizzup and @sice|o for helping me.21:59
bencohWizzup: yeah, although I don't really know what this implies with telepathy22:16
WizzupI think it'll still be manageable22:19
Wizzupfreemangordon: ok yeah so there's some more handleChannels stuff to be done22:49
Wizzupfreemangordon: but I made some progress at least22:49
Wizzupfreemangordon: amongst other things empathy calls tp_channel_join_async23:28
WizzupI can't find that yet in telepathyqt23:28
Wizzuphm, it seems to call addmembers on the channel to add itself23:31
Wizzupmaybe I can use this https://telepathy.freedesktop.org/doc/telepathy-qt/a08112.html#acc945279bd4566ffb4ba8c0f904e50b723:45
Wizzupyup that calls addMembers23:46

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