libera/#maemo-leste/ Monday, 2024-05-27

arno11Wizzup: freemangordon: sorry guys it's a bit late but my N900 is in a *strange* but really interesting state: after the last conversations update, it has been impossible to boot (freeze when pin query appears) so00:03
arno11i first check if the problem was the new n900 perf conf, but that's ok00:04
arno11then00:04
arno11i checked h-s-m00:04
arno11and removed my hack to start it later00:05
dsc_arno11: which conv. version?00:05
dsc_0.7.2?00:05
arno11yep00:05
arno11now it's ok00:05
arno11but ofc h-s-m starts in safe mode apparently00:06
arno11and pin query works but i can't get the gsm network00:06
arno11and...everything is very fast !00:06
arno11qt5 apps start in 1 or 2 sec !00:07
Wizzupwhat problems are you seeing still, it's not clear to me00:08
Wizzupgsm doesn't work?00:08
arno11yep no gsm, no availibility in hsm00:08
Wizzupwell there were some other updates but just moving things to stable00:09
arno11yep i know00:09
Wizzupmaybe those tripped you up somehow00:09
* Wizzup zzz00:12
arno11well, i'll try to keep the device in this state and have a look tomorrow, but that's weird that qt5 apps launch time dicreases so much00:25
siceloarno11: that 'no gsm' issue does happen once in a while for me. i think ofono sometimes gets confused by something pin-entry does (because of the freezing probably?). you can try to stop ofono, wait a second or two, then restart it again05:15
arno11sicelo: yes you're right, pin query seems to affect ofono sometimes.06:40
arno11i rebooted my device, got pin query and ofono working properly, h-s-m crashed but 'killall h-s-m' makes it working again06:42
arno11qt5 is still fast06:43
arno11so it seems that conversations improvements affects all qt5 apps06:47
arno11(i didn't make any other update yesterday btw)06:49
arno11Wizzup: btw, is jenkins able to recursively update submodules ? (both pico and pcsx use them)08:07
arno11it builds fine locally using git submodule update --init --recursive08:10
Wizzuparno11: yes it can pick up submodules10:06
WizzupI don't know about recursively but I imagine so10:06
arno11ok that's good news :)10:11
uvos__Wizzup: i dont think allowing portait on all apps is a good idea11:13
uvos__but i think this logic would be good (and i intend to implement it at some point):11:14
uvos__1. if one hildon attom is set, respect that11:14
uvos__2. if icccm aspect ratio limits is set, respect that11:14
uvos__3. if neither is set respect the minwidth/hight icccm prop11:15
uvos__4. if nothing is set force landscape11:15
Wizzupok, I think that makes sense11:20
sicelohehe, i never knew about https://packages.debian.org/buster/ssh-contact ...12:32
sicelo"SSH-Contact is a client/service tool that makes easy to connect your telepathy IM contacts via SSH. No need to care about dynamic IP, NAT, port forwarding or firewalls anymore; if you can chat with a friend, you can also SSH him."12:32
d4dsco/12:48
freemangordonWizzup: by looking in  TelepathyProviderPlugin::initialize()13:18
freemangordonand https://telepathy.freedesktop.org/doc/telepathy-qt4-0.4.x/a00024.html13:18
freemangordonI see no handle types registration code13:18
freemangordonlike registrar->registerClient(handler, "myhandler");13:19
freemangordonor at least I cannot recognize it13:19
freemangordonWizzup: it is also possible that abook is requesting wrong channel type13:47
freemangordonwell, it just calls tp_account_channel_request_new_audio_call() so I don;t see how it can be doing something stupid13:53
Wizzupfreemangordon: I will take a look, I've just been busy earlier today, but they use telepathyqt just like conversations14:07
Wizzupso I think I should be able to figure it out somehow14:10
freemangordonok, thanks14:24
freemangordonmaybe they register the UI as a handler, not vcm14:24
freemangordonwhich makes sense14:25
WizzupI don't see it in dbus so I doubt it14:26
Wizzupbut maybe14:26
freemangordondo we have the UI code?14:26
Wizzupthey make their own tp like dbus interface to talk to voicecallmanager14:26
freemangordonyes, exactly14:26
WizzupI don't want to look at the UI code as I am fairly certain that it must be voicecallmanager14:27
Wizzupit literally has handleChannels14:27
freemangordonand UI registers itself as TP handler and calls vcm through dbus to initiate call14:27
Wizzupno, the UI does not do that14:27
Wizzupwhat makes you think this?14:27
freemangordonif you know where UI code lives, I can have a look14:27
Wizzupbut this is just not how it works14:27
freemangordonbecause vcm dbus code hvs dial() methods14:27
Wizzupif that was how it works, we would not have working calls at all14:27
freemangordonhmm14:28
Wizzuplet me debug some stuff.14:28
freemangordonok14:28
Wizzup$ mdbus2 org.freedesktop.Telepathy.Client.voicecall /org/freedesktop/Telepathy/Client/voicecall14:33
Wizzup[PROPERTY] org.freedesktop.Telepathy.Client.Interfaces(Interfaces:as)14:33
Wizzuplook, it is there14:33
Wizzup[METHOD]   org.freedesktop.Telepathy.Client.Handler.HandleChannels(o:Account, o:Connection, a(oa{sv}):Channels, ao:Requests_Satisfied, t:User_Action_Time, a{sv}:Handler_Info) -> ()14:33
Wizzupmaybe my .client file just is not ok14:33
WizzupI run it like so:14:33
WizzupQT_FORCE_STDERR_LOGGING=1 QT_LOGGING_RULES='org.nemomobile.voicecall.debug=true' G_MESSAGES_DEBUG=all GST_DEBUG=3 /usr/bin/voicecall-manager14:33
Wizzupin /usr/share/telepathy/client I made14:34
Wizzupvoicecall.client14:34
Wizzup[org.freedesktop.Telepathy.Client]14:34
WizzupInterfaces=org.freedesktop.Telepathy.Client.Handler;org.freedesktop.Telepathy.Client.Interface.Requests;14:34
freemangordondid you restart mission-control?14:34
Wizzup[org.freedesktop.Telepathy.Client.Handler]14:34
WizzupBypassApproval=true14:34
WizzupI restarted the whole device14:34
Wizzup[org.freedesktop.Telepathy.Client.Handler.HandlerChannelFilter 0]14:34
freemangordonok14:34
Wizzuporg.freedesktop.Telepathy.Channel.ChannelType s=org.freedesktop.Telepathy.Channel.Type.StreamedMedia14:34
freemangordonno, we need InitialAudio interfac e14:35
Wizzupit is possible that steamedmedia is not the right line14:35
freemangordonright14:35
Wizzupbut thi sis what is set on rtcom-call-ui.client14:35
WizzupIIRC14:35
freemangordondoes not matter14:35
freemangordonsec14:35
WizzupI mean CallUI.client14:36
Wizzupalso maybe voicecall needs to be uppercased, I do not know14:36
WizzupI mean camelcased14:36
freemangordonsee https://telepathy.freedesktop.org/spec/Channel_Type_Call.html14:37
freemangordon"Call         channels supersede the old StreamedMedia         channel type."14:37
Wizzupoh14:37
Wizzupso just audioCall then14:38
freemangordonsec, to see what dbus-monitor provides14:38
WizzupCall114:38
Wizzup      dict entry(14:38
Wizzup         string "org.freedesktop.Telepathy.Channel.ChannelType"14:38
Wizzup         variant             string "org.freedesktop.Telepathy.Channel.Type.Call1"14:38
Wizzup      )14:39
freemangordonstring "org.freedesktop.Telepathy.Channel.ChannelType"14:39
freemangordon         variant             string "org.freedesktop.Telepathy.Channel.Type.Call1"14:39
freemangordonyes14:39
Wizzupcan I pkill mission control, or?14:39
freemangordonmhm14:39
freemangordonand then go offline->online (from hsm applet)14:39
Wizzupit did not come back14:39
Wizzupah ok14:40
Wizzupstill same problem, but maybe file is not ok yet14:41
Wizzupthere's also targethandletype14:41
Wizzupand I do not know what this is:14:41
Wizzup[org.freedesktop.Telepathy.Client.Handler.HandlerChannelFilter 0]14:41
Wizzupin conversations we repeat this for 0,1,214:41
freemangordonmhm14:42
freemangordonbecause 0 is none14:42
freemangordonbut we want it for contact14:42
Wizzupwhat is 0?14:42
WizzupI don't understand14:42
freemangordonHANDLE_TYPE_NONE I guess14:42
freemangordon1 should eb   p, li { white-space: pre-wrap; }  TP_HANDLE_TYPE_CONTACT14:43
freemangordontypedef enum {     TP_HANDLE_TYPE_NONE = 0,     TP_HANDLE_TYPE_CONTACT = 1,     TP_HANDLE_TYPE_ROOM = 2,     TP_HANDLE_TYPE_LIST = 3,     TP_HANDLE_TYPE_GROUP = 4, } TpHandleType;14:43
freemangordonso we want TP_HANDLE_TYPE_NONE and TP_HANDLE_TYPE_CONTACT14:43
freemangordonthis is what tp-ring expects as well14:44
Wizzupso both 0 and 114:44
freemangordonhttps://github.com/maemo-leste-upstream-forks/telepathy-ring/blob/maemo/chimaera/src/ring-media-manager.c#L85914:44
freemangordonyes14:44
Wizzuphttps://pastebin.com/raw/qn1r1Qug14:45
freemangordonyep, should be that one14:45
freemangordonlemme try it14:45
freemangordonwhat is the file name?14:45
WizzupI called it voicecall.client14:45
Wizzupbut that might not be correct14:45
freemangordonis is org.freedesktop.Telepathy.Client.voicecall14:46
freemangordonso should be correct14:46
Wizzupyes14:47
Wizzupall I see in mission-control-5 is14:47
Wizzup(process:11966): mcd-WARNING **: 14:47:10.284: Channel request /org/freedesktop/Telepathy/ChannelDispatcher/Request1 failed, error: Not implemented14:47
Wizzupso that's not very useful14:47
Wizzupgoing to reboot just in case14:47
freemangordonok14:47
Wizzupsame problem after reboot14:53
freemangordonexpected14:54
freemangordonlike, restarting mc is enough14:54
freemangordonlemme check how to enable mc traces14:55
freemangordonMC_DEBUG=all MC_TP_DEBUG=all14:56
WizzupI wonder if the call1 channel is in the channel spec list of voicecallmanager14:56
freemangordonCalling AddRequest on default handler org.freedesktop.Telepathy.Client.voicecall for request /org/freedesktop/Telepathy/ChannelDispatcher/Request114:57
freemangordonstring "No such interface 'org.freedesktop.Telepathy.Client.Interface.Requests' at object path '/org/freedesktop/Telepathy/Client/voicecall'"14:58
Wizzupso some of this is 'normal'14:59
WizzupI do see the above also for conversations14:59
Wizzupbut then it tries something els that works14:59
Wizzuptry to start a sms from abook and compare14:59
freemangordonI did15:00
freemangordonand I don;t see that error15:00
Wizzupinteresting, I see it15:00
freemangordonoh, wait15:00
freemangordonit is there15:00
Wizzupso I don't think the voicecall code is set up wrong but it looks like it might be15:04
Wizzuplet me try gdb and attach to handleChannels15:04
freemangordonlemme try something15:04
Wizzupempathy?15:05
Wizzuphmm somehow no dbgsym pkg was made for voicecall15:05
freemangordonno, org.nemomobile.voicecall.client as a name15:05
freemangordonbut it didn't help15:06
Wizzupok15:06
Wizzupso handleChannels () in voicecall is never called15:06
Wizzupat least according to gdb15:06
freemangordonugh15:07
freemangordon_mcd_request_predict_handler: Default handler org.freedesktop.Telepathy.Client.voicecall15:07
freemangordonwhy it is still 'voicecall' only?15:07
Wizzupwell that is correct though right?15:07
freemangordonI renamed the file15:07
Wizzupinteresting, I think with that file in place now starting calls from sphone also does not work anymore15:08
freemangordonwell, it is org.freedesktop.Telepathy.Client.voicecall15:08
Wizzupwith voicecall.client file gone at least I can start calls from sphone again15:11
Wizzupso maybe out contents is wrong still15:12
freemangordonwhat does sphone do to start a call?15:12
freemangordonstreamedmedia?15:12
WizzupI will check, but it uses the voicecall lib.15:12
Wizzupyeah apparently it uses StreamedMedia15:13
Wizzuplet me add it then15:13
Wizzupstrange15:13
Wizzupmaybe abook should request streamedmedia?15:13
freemangordonbut abook does not use StreamedMedia15:13
freemangordonmaybe15:13
freemangordonI can try15:13
freemangordonlemme check if tp-ring supports Call115:14
Wizzupwith streamedmedia added to the .client file sphone works15:14
Wizzupat least calling directly from sphone15:14
Wizzupso maybe try to make abook use streamedmedia for now15:14
freemangordonseems CallChannel is supported as well15:14
Wizzupthat might just make it work15:14
WizzupI don't know what callchannel is15:14
freemangordonshould be Call115:16
Wizzupok, well, I think that is audioCall() in tpqt and it is set by vociecall15:16
Wizzupvoicecall15:16
Wizzupbut let's try streamed15:17
freemangordonok, but I want to see if tp-ring supports Call1 first15:17
freemangordonseems like no15:18
freemangordonok, will check if Call1 is supported and if not will fallback to StreamedMedia15:20
arno11Wizzup: i pushed picodrive and pcsx rearmed in extras15:23
Wizzupfreemangordon: great, let's see if that solves the problem15:27
Wizzuparno11: ok, great, I will try to add them to jenkins15:28
freemangordonok, will need some time15:28
Wizzuparno11: what arches do I build these for15:28
Wizzupfreemangordon: maybe just swap out call1 with streamedmedia first and see if it works as a test15:28
Wizzupdo you need voicecall.client file with streamedmedia, or?15:28
Wizzupif it works I will add the file to voicecall pkg15:29
Wizzuparno11: there is armhf, aarch64 and amd6415:30
Wizzupbut we can only build for specific15:30
Wizzupif better15:30
arno11ah yes indeed i forgot that15:30
arno11yes better build only armhf first15:31
freemangordonWizzup: perhaps we don't (need the file)15:31
Wizzupfreemangordon: ok, I think we probably do, but ok :)15:31
freemangordonseems tp-glib has dropped support for SrtreamedMedia15:31
Wizzuparno11: we can just try all and see what fails?15:31
freemangordontha's why I need time15:31
Wizzupfreemangordon: really? huh15:31
arno11Wizzup: yes indeed15:32
Wizzupok, let's start with picodrive then15:32
arno11okay15:32
Wizzuparno11: so maemo/chimaera branch is missing15:34
Wizzupand a tag too15:34
Wizzupshall I add these?15:34
arno11yep please15:34
Wizzupok, for the record:15:34
Wizzupgit tag 1.93.215:34
Wizzupgit push origin15:34
Wizzupgit checkout -b maemo/chimaera15:34
Wizzupgit push origin maemo/chimaera15:34
Wizzuphttps://phoenix.maemo.org/job/picodrive-source/1/console15:35
Wizzuplooks like it failed15:35
Wizzupbadly formatted changelog15:35
arno11ah yes15:35
arno11indeed it was buggy15:36
Wizzupdo you want me to try to fix it?15:36
arno11i had to create a kind of fake one to be able to build locally15:36
arno11and i forgot to check again15:36
arno11yes plz :P15:36
arno11ofc if you have a bit of time15:36
WizzupI do15:37
Wizzupdpkg-genbuildinfo: error: badly formed line in files list file, line 215:38
Wizzupdo we need debian/files ?15:38
arno11let me check15:38
WizzupI would be inclined to remove it15:38
Wizzupalso the section should be user/games I think, not user/games/picodrive15:39
Wizzup(in debian/control)15:39
Wizzupand the Standards-Version something like 4.3.015:39
Wizzupnot 1.92.3+leste1 - that's the pkg version, not the debian control standards version15:39
arno11yes indeed for standards15:39
Wizzuplet me clone this in my vm15:39
freemangordonWizzup: will do what vcm dos: for 'tel' will ask for StreamedMedia, for all others: Call115:40
Wizzuparno11: btw you can use:15:41
Wizzupgbp buildpackage --git-ignore-branch --git-submodules15:41
Wizzupfreemangordon: ok then15:42
Wizzupsdl-config is missing; please install libsdl (libsdl1.2-dev)15:42
Wizzupthis is not in build-depend15:42
arno11Wizzup: ah15:43
arno11is it the only one missing ?15:43
Wizzuparno11: working through it now15:44
Wizzupfreemangordon: so you found streamedmedia?15:44
Wizzupbrb, coffee time15:46
WizzupI started a new build15:46
Wizzuphttps://phoenix.maemo.org/job/picodrive-binaries/15:46
freemangordonno, I am creating the request by hand, you will see15:46
arno11Wizzup: ok, bbl, kids time15:51
arno11thx for your help btw15:51
freemangordonWizzup: hmm, yeah, seems the file is needed, lemme confirm15:52
Wizzuparno11: do we need the chown user? I don't think so, right?15:56
freemangordonWizzup: yep, works with streamedmedia, at least in VM16:00
Wizzupfreemangordon: great16:01
WizzupI will add the voicecall.client with both Call1 and StreamedMedia then16:01
freemangordonsec16:01
Wizzupfor 0 and 1 contact types16:01
freemangordonWizzup: https://pastebin.com/ySxFVR5h16:01
freemangordongoing to push abook16:01
Wizzupyes I hve the same locally16:01
freemangordonok16:01
freemangordonWizzup: building abook, now we only need the .client file16:14
freemangordonalso, something strange happens on VM:16:14
WizzupI just started building voicecall too16:14
Wizzupwith the file16:14
freemangordonI am using USB modem that can;t do voice calls16:14
freemangordonvcm sees "channel closed", but sphone does nothing and just hangs16:15
freemangordoncannot close it either16:15
Wizzup ok, worth investigating for sure :)16:17
freemangordonseems like vcm plugin does not handle that16:17
freemangordonnow rebooting the vm to be sure I can repro on clean boot16:18
Wizzupwell if vcm closes it then my vcm sphone module should at least not hang16:18
freemangordonmhm16:20
freemangordonlemme try to get logs from vcm16:20
Wizzupnow it works16:22
Wizzup(on d4)16:22
freemangordoncool :)16:22
Wizzupok, so now the only thing that remains are sicelo's reports of not having audio sometimes when he gets called16:23
WizzupI mean and other various bugs, but like big things16:23
Wizzupwell that and sphone group_uid logging and such16:23
freemangordonWizzup: https://pastebin.com/NtPX5vkt16:24
Wizzupfreemangordon: that all looks fine I think, from the voicall side16:24
freemangordonat that point sphone says "dialing" of the number16:24
Wizzupmhm16:24
freemangordonI can press the "hangup" and sphone closes16:24
freemangordonif I dial second time, I see *two* 'dialing' lines, to the same number16:25
Wizzupyes, I have seen this, the call doesn't actually get closed according to sphone or the vcm plugin16:25
freemangordonand sphone UI does not react anymore16:25
freemangordonthis is 100% reproducible with my quectel USB modem16:26
Wizzupok16:27
d4dscstill noticing unwarranted mem increase after 1 day of uptime in conversations, so not out of the woods yet16:27
Wizzupunfortunately all the quectel usb modems that I have reset shortly after power up on my QEMU setup16:27
Wizzupit's very frustrating16:27
freemangordonWizzup: use virtualbox16:28
WizzupI mean, if that is the problem..16:28
freemangordonhmm?16:29
WizzupWhy would virtualbox solve it?16:29
WizzupIt might, but I am not sure why it would16:29
freemangordonno matter what maybe it handles usb redirect diffrently16:29
Wizzupright16:30
Wizzupso what happens to me is that they are seen fine16:30
Wizzupbut when I go online, they drop shortly after16:30
freemangordonah, same here16:30
Wizzuphow do you deal with that?16:30
freemangordonin maybe 5 minutes or so16:30
freemangordonjust reconnect :D16:30
Wizzupugh :)16:30
freemangordonwell, not physically16:30
WizzupI understand16:31
freemangordonin virtualbox UI you can connect/disconnect a device16:31
Wizzupok, so from my perspective what I would need now to be mostly happy with my switch is proper group_uid logging in sphone and some way to do dtmf I suppose16:31
Wizzupfreemangordon: oh it auto shows up again in qemu16:31
Wizzupbut it's still annoying, as it's not 5 minues for me but more like 5 esconds16:31
freemangordonah, this is another issue then16:31
freemangordonworths trying virtualbox16:32
Wizzupdo you have the USB CAP?16:32
Wizzuphttps://www.olimex.com/Products/USB-Modules/USB-CAP/16:32
freemangordonwhat is this?16:32
Wizzupit might help with your issue16:32
freemangordonno16:32
freemangordonactually modem is not reset here, but goes offline16:33
freemangordonbut it is not really a bug issue for me16:33
freemangordonas I have plenty of time for development before it happens16:33
Wizzupok16:33
freemangordonnot to say this happens with corner-cases processing :)16:34
freemangordons/happens/helps16:34
freemangordonshall I push abook to stable?16:34
freemangordonWizzup: ^^^16:36
Wizzupfreemangordon: I think you can do that regardless16:37
WizzupI pushed voicecall to chimaera-devel only16:37
freemangordonok16:37
Wizzupsince the voicecall manager module for sphone is still devel only16:37
freemangordonwill do, to not forget it16:37
Wizzupok, I won't forgte ;)16:37
Wizzupbut feel fre16:37
Wizzupe16:37
arno11Wizzup: yes (i saw the console logs), we could probably remove chown16:55
arno11tbh i don't remember all stuff: it was 8 months ago :P16:55
arno11but i don't see such error on local build16:57
Wizzupbecause you have the user called 'user' locally16:58
arno11yep...16:58
arno11hope it will build fine now17:03
Wizzupok, let me remove the chown17:04
Wizzuphmm why does it make a .picodrive in /home/user from install17:05
Wizzupcan we just remove that?17:05
arno11nope17:05
arno11because of the user conf file17:06
arno11irrc17:06
Wizzupthis is not possible from a package fwiw17:06
Wizzupso I removed it for now17:06
arno11hmm ok17:07
Wizzupit's in repos now17:09
arno11ok cool (but i doubt that the emulator will work OOTB with no config file directory)17:11
Wizzupthat would be suprising since it only did mkdir -p17:11
Wizzupso it didn't put any config there17:11
arno11it is in postinstall script iirc17:12
WizzupI see no postinst17:12
Wizzupin any case, packages cannot install to user home, they should install into /usr/... and then just load config from there17:12
Wizzupand then let user override config through $HOME/.config/...17:13
arno11ah it's in install17:14
arno11not postinstall17:14
arno11i really don't remember exactly17:15
arno11what was the issue17:15
Wizzupcan you see if it works?17:15
WizzupI don't know what to run in picodrive17:15
arno11i have another sd with fresh leste install, i'll have a look (but with no config file it will be a nightmare lol)17:17
Wizzupwell, like I said, we'll just have to make some adjustments for it to use a system wide config by default17:18
arno11yes17:18
Wizzuplooking at emu.c it does look like maytbe the author of picodrive did not think about this, which would be unfortunate17:19
arno11indeed17:20
arno11bbl, i'll try from another sd17:21
arno11Wizzup: ok, the emulator works fine :) only minor issues:17:36
arno11the icon in HAM but that's normal17:37
arno11the launcher not working but normal as well17:37
arno11and the config file not found17:37
arno11to launch it atm, it works with /usr/games/picodrive/picodrive17:38
arno11the UI with sdl input just work17:38
arno11'backspace' for validate, 'e' for back17:40
arno11after few modifs it will rock :)17:41
arno11we will have exactly same troubles with pcsx btw17:42
Wizzupit seems like the code will need to be modified to check system wide config and user config, and prefer user config over system wide config17:43
Wizzupwhat is the thing with the icon and the launcher not working? those should be pretty straightforward fixes17:43
arno11easy fixes indeed17:45
arno11for the launcher i was probably drunk or something17:45
arno11it woks now (locally)17:45
arno11*works17:45
arno11and for the icon...there is no icon in debian/control17:46
arno11i'll have a look this evening/night17:48
arno11i'll have a look @pcsx as well, to avoid same issues17:49
Wizzupthe icon in debian/control is only for displaying in hildon application manager17:53
Wizzupto actually have an in icon in the launcher you need a .desktop file with an entry that specifies what icon to use, for which you probably also need to install a icon .png file17:53
arno11i know, the icon works in hildon desktop17:54
arno11i was talking about the icon in HAM17:54
Wizzupok17:55
Wizzupthat's less important, but not hard to do, the wiki has instructions17:55
arno11ok17:55
arno11the main issue is indeed the config file17:55
arno11bbl18:07
Wizzupwhy is busctl so bad compared to mdbus2, sign20:27
Wizzupsigh20:27
Wizzupyou cna't pass --verbose or --system before 'call' or anything else, otherwise it just exits and says nothing20:28
siceloi find it good enough20:40
sicelowhat do you want to do? there's also gdbus20:40
Wizzupok, how do I list all the methods on org.ofono /motmdm_0 ?20:40
Wizzupin a way that mdbus2 does: mdbus2 -s org.ofono /motmdm_020:41
sicelobusctl introspect org.ofono /motmdm_020:41
sicelo'system' is default20:41
Wizzuphmmm, ok, maybe I can work with this20:42
sicelobut you can also explicitly specify it, `busctly --system introsp....`20:42
Wizzupso you can't do that20:42
Wizzupit has to be busctl introspect ... --system20:42
Wizzupotherwise it says nothing and just exits with exit code 120:42
Wizzupor maybe that is the case with --verbose20:42
sicelouh, what version of busctl is that?20:42
Wizzupwhatever we have in chimaera20:43
WizzupI'll start my razr and pull the command history20:43
sicelosomething's totally odd with that20:43
Wizzupyeah that is what I thought too20:44
sicelo --system doesn't go at the end20:44
Wizzuptry this:20:45
Wizzupbusctl call org.ofono /motmdm_0 org.ofono.NetworkRegistration Register --verbose --system20:45
Wizzupthat just says/does nothing for me20:45
Wizzupand it might do something in the background, but it writes nothing20:46
Wizzupand the exit code is 120:46
siceloi'm not at D4 right now (or system with ofono)20:46
Wizzupbusctl --verbose --system call org.ofono /motmdm_0 org.ofono.Modem.GetProperties20:47
Wizzupthis also did nothing for me20:47
Wizzupanyway20:47
WizzupI was trying to switch my d4 sim to my razr and then put my main sim in my droid420:47
Wizzupbut the razr is getting denied by the network somehow20:47
WizzupI'll see if I can pull readline7 from the beowulf repo and then just run mdbus2 on it later to debug20:48
siceloprobably the verbose ... i've never used it20:48
Wizzupit's mentioned in the synopsis20:48
sicelo Wizzup: try `busctl --verbose --system call org.ofono /motmdm_0 org.ofono.Modem GetProperties`21:07
sicelowith busctl, the method is not 'attached' to the interface :-)21:08
sicelothe only issue i have with busctl is that you need to be root in order to monitor the system bus.21:10
arno11Wizzup: in fact the user config from $HOME/.picodrive works :)21:22
arno11there is just a permission issue with it21:22
arno11config2.cfg works with chmod 77721:24
arno11but if iirc, it doesn't work from debian/rules21:25
arno11the /.picodrive directory is created from install file21:29
arno11maybe setting permission from there works (?)21:30
arno11if we find a solution for that, picodrive works fine OOTB :)21:31
arno11should be the same for pcsx btw, but everything is in /usr/games so maybe it shold work as is21:32
arno11*should21:32
arno11btw uninstalling/reinstalling pico works as expected (and remove/add .picodrive directory with the config file properly)21:38
arno11i fixed the .desktop file on gh btw (for launch)21:40
freemangordonarno11: dpkg/apt is executed with root account, you cannot set anything user related21:46
freemangordonwell, you can, but that's hacky21:46
freemangordonthat's why whatever directories are needed in $HOME are created by the application itself when started21:47
arno11ok but the app absolutely needs write permission on this $HOME directory21:51
arno11so what is the hacky way ? :P21:51
arno11my idea: adding the chmod stuff in .desktop exec line lol21:56
freemangordonuser always has write permission in the user's $HOME, I don't understand the problem22:01
arno11it works only with chmod 77722:02
arno11i got the same issue with pcsx iirc22:03
freemangordonwhat only works with "chmod 777"?22:03
freemangordonwhat is "it"?22:03
arno11i mean the config file from $HOME/.picodrive works only if i run chmod 77722:05
arno11on it22:05
freemangordonso, you run the applications as user arno11 (for example), which means that application has all the rights in /home/arno1122:05
Wizzupfile permissions as in 777 are directly linked to who owns the file22:05
freemangordon:nod:22:05
Wizzupsee it as uga, where u is user, g is group, a is all22:05
freemangordonarno11: so, if you file was created by root, no wonder you have to chmnod it22:05
Wizzupso 644 means that only the user can read and write, the group can read and all can read22:06
freemangordon*chmod it22:06
arno11yes ok but trust me or try it and you will see22:06
Wizzupthe point is that whether you need chmod 777 or depend on the file ownership as mentioned above22:06
freemangordonsee what? who is the owner of that file you have to chmod?22:07
arno11it was long time ago but i remember spending very long time on this issue22:07
Wizzuplike, if the file is root owned and the group is root, and you want to write to it as user 'user', not as root, then yes, you need xx722:07
Wizzupor rather xx622:07
freemangordonplease, provide the owner of the file22:07
arno11to do it i need to reinstall the app to be sure22:07
arno11let me check22:07
arno11(btw that's not the first time i have weird permissions issue in $HOME, even on fresh install)22:08
arno11so it is -rw-r--r-- 1 root root (and i can't save settings)22:16
arno11then if i chmod 77722:16
Wizzuparno11: sudo chown user:users /path/to/file22:16
Wizzupand then chmod 644 /path/to/file22:16
arno11-rwxrwxrwx 1 root root22:17
arno11doesn't work with 64422:17
Wizzuparno11: please22:17
arno11ok22:17
Wizzupthe file mod bits are instrinsically linked to who owns it22:17
Wizzupso in this case22:17
Wizzuprwx rwx rwx yeah22:17
Wizzupthis is22:17
Wizzupfile owner=rwx, file groups=rwx everyone=rwx22:18
Wizzupso if your file is22:18
Wizzuprw- r-- r--22:18
Wizzupthen22:18
Wizzupin your example22:18
Wizzuproot=rw-, root=r--, everyone=r--22:18
Wizzupso yes, then you can't write to it as user since you only have r--22:18
Wizzupbut if you run, 'sudo chown user:users /path/to/file'22:19
Wizzupthen it becomes22:19
Wizzupuser=rw-, users=r--, everyone=r--22:19
Wizzupand suddenly you can write to it22:19
arno11yes it works :)22:19
Wizzupso gain, the first number or rwx combination is the file owner, the second is everyone who is part of the group that is mentioned as file group, and then the rest is every other user including the file owner22:19
Wizzupchmod 777 is just a hack around this but in practice not good / secure22:20
arno11yes sure22:20
Wizzupso first get the file owner/group right, and then set the right perms22:20
Wizzupand in general there should never be a file that is root:root (user:group) in $HOME22:20
arno11yes ofc22:20
Wizzupbecause then the user (in this case literally called 'user' which is confusing) could never remove the file, assuming the file isn't --722:21
Wizzupok22:21
Wizzupthen I think we probably have a common understanding now22:21
arno11yes22:21
Wizzuplikewise, files in /usr/share or /usr/lib or whatever should almost always be root owned, perhaps some other group, and almost never writable by world22:21
Wizzup(world being everyone)22:21
Wizzupand debian packages upon install never install to $HOME, because then the files would be root owned, and also because the package managers likes to own the files it installs22:22
Wizzupwhatever files are created in $HOME are typically created upon starting an applicationh as user22:23
Wizzupand then they get created (or copied from /usr/share etc, but then the owner becomes user)22:23
arno11so the question now is what would be the cleanest way to set this bloody config file from debian pkg22:25
Wizzupunfortunately the right answer is that you don't, and that it gets installed into /usr/share/picodrive/config2, ad then picedrive reads it from that place, or upon startup copies it from /usr/share/picodrive/config2 to ~/.picodrive/config222:26
Wizzupthis way there is a file that is owned by the package, root owned, in /usr/share, which can get updated independently from user config, and there is a file in ~/.picodrive that gets created upon startup that the user can modify22:26
WizzupI can help write some of the C code if it's heplful22:27
arno11yes could be really cool :)22:29
arno11otherwise isn't it possible to do that from a postinstall script ?22:30
arno11ofc not lol22:33
arno11forget that question22:33
arno11ty for the clear explaination btw22:38
Wizzupno worries22:45
Wizzupok, uh, maybe tomorrow I can help write the code22:46
Wizzupdo we have similar problems with pcsx_rearmed?22:46
arno11yes probably22:53
arno11i'll have a look tomorrow but pcsx directories (for config, bios, memcards) are really tricky. it was similar in fremantle btw22:55
arno11i'll LYK22:56
Wizzupokay23:09
Wizzupit's suprising to me the sw can't do that right :D23:09
arno11yes, btw i just tried to reinstall pcsx from my local deb and it works almost OOTB:23:10
arno11but other permissions issue from /usr/games23:10
arno11and the bios we can't provide ofc23:11
arno11but the HLE generic bios included in the code works with lot of games23:11
arno11otherwise it is fine, i just need to doublecheck default config parameters23:12
arno11anyway, let's see tomorrow23:12
arno11and thx again for your help23:14
Wizzupall good, glad to help and thanks for your work too23:15
arno11ty :)23:16

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