Monday, 2020-08-03

T42<linusdan> @elros34 [@linusdan line 21-23, do you have device repo …], Yes, i have :(00:56
T42<linusdan> fstab path is correct00:56
T42<linusdan> I compiled the cm-11 with the same device tree00:57
T42<elros34> but for some reason all of those "find" can not find correct fstab: https://github.com/mer-hybris/hybris-boot/blob/master/Android.mk#L4701:02
T42<elros34> If I get it right according to your log, you don't even have $ANDROID_ROOT/device/motorola directory01:05
T42<kabouik> So we can get the cursor to render in LXC (and probably chroot too) when using `Xephyr` @elros34, but sadly the cursor coordinates are only updated when left- or right clicking. Confirmed visually and in `xev`. I think it's the same without `xephyr`, with just the evdevmouse option on SFOS side, but more obvious when the cursor is pai01:19
T42nted by `xephyr`.01:19
T42<kabouik> Also, with `xephyr` we lose touch support in Firefox with xinput2, and multitouch. :(01:19
T42<elros34> so not very usable:)01:20
T42<kabouik> So, some critical regressions, and yet some progress on other fronts. I didn't mention also that key changes made with `xmodmap` are no longer ignored when using `xephyr`, while they are with `xwayland`01:20
T42<kabouik> Sadly no, progress and regressions at the same time. :( I hope there are other ways01:21
T42<kabouik> remote-desktop/xrdp shows a cursor on the client, probably painted too, but it's moving in real time01:22
T42<kabouik> But I'm afraid it's just local on the client01:22
T42<kabouik> Perhaps it's possible also to make a permanent event with the mouse so coordinates are updated all the time. That's what it looks like when holding right click: https://youtu.be/6mzt5FMFcUw01:26
T42<kabouik> It's choppy because of OBS, but was relatively smooth otherwise.01:28
T42<elros34> I still think that some mouse tracking item in qml would the best. It could be even added as patch to lipstick.01:29
T42<kabouik> But that would make qt-5.12 a requirement, this was all in the container so no change on SFOS01:30
T42<kabouik> But it doesn't work as expected anyway so qt surely is worth a try01:30
T42<elros34> for sure it can be done on qt5.6 also: event filter to track mouse position. When I will sort out some issue in my rootless compositor I will try if I will be able to do this because qtwayland mouse tracker doesn't works correctly for me.01:33
T42<kabouik> What are you trying to do with your rootless compositor?01:34
T42<kabouik> Please do ping me if you find something interesting on mouse tracker01:35
T42<elros34> I want to start apps in chroot in separate windows with rotation support. So far it works it works partially01:36
T42<kabouik> Oh nice, using Xephyr/xnest for that too?01:37
T42<elros34> no, qtwayland + xwayland compositor01:37
T42<kabouik> I remember running Tilix in its own window with chroot when it was still sailfish_ubu_chroot after you spoonfed me to guide me with the corresponding script01:38
T42<kabouik> That was cool. Not rotating of course01:39
T42hassanh92 was added by: hassanh9202:32
T42<hassanh92> 024802:32
Mister_Magisterlbt_: asking for that patternization of testing:asus:5z10:13
Mister_Magistermal: looks like people can access wide angle (third) camera on lineage. Would it be possible to access it on sfos (customizing piggz'o'camera maybe? winkwink)11:08
vknechtthere's this MAX_CAMERAS = 2 in gstdroidcamsrc... https://github.com/sailfishos/gst-droid/blob/c21a53eb0a58b359b8a8d8dd2f77f27ad135c05a/gst/droidcamsrc/gstdroidcamsrc.h#L51 ... had to change the check against it to get cam app to even work when there's more than two...11:28
vknechtdon't know if POV depends on it11:28
Mister_Magistervknecht: what will happen if i do this https://github.com/Michal-Szczepaniak/gst-droid/commit/e0eb1cf164ae1828c646fa0b65af8eeee3b3d85511:29
vknechtdunno, if you're lucky it will use 3rd cam as if it's second one ?11:31
Mister_Magisteryeah XD11:31
Mister_Magisterentire sfos camera thing is based around primary and secondary, changing that won't be easy  but first  check if its even working11:33
Mister_Magistervknecht: sadly it just gives standard camera :/11:41
malMister_Magister: vknecht: it depends on how the camera is exposed in android12:17
malis it like other cameras or some special way12:17
Mister_Magistermal: it sounds like it's exposed like other 2 cameras are12:17
vknechtI guess for POV it's qtmultimedia support which matters ? and obviously add support for a "ternary" (or tertiary ?) cam in qml/pages/CameraUI.qml ?12:20
malfirst someone should test if and how camera is enumerated in sfos if any hardcoded 2 camera limitation from middleware is removed12:23
Mister_Magistermal: any idea how i can check this? https://github.com/sailfishos/droidmedia/blob/master/droidmediacamera.cpp#L27112:32
Mister_Magistermal: sfos has hardcoded id 'primary' and 'secondary' and it's based around them so adding more will be pita12:33
Mister_Magisternoone in 2013 thought about more than 2 cameras12:34
malMister_Magister: what does dr8id-camres show, afaik it asks for number of cameras, unless gst-droid hardcodes it12:36
piggzmal: spiiroin: is it possible to configre mce so that it doesnt use a notification LED? this device doesnt have one.  I probably dont need to do anything, just wondered if there was a way to tell the system no led exists12:37
malpiggz: have you checked what led configs mce has12:37
Mister_Magistermal: umm i don't think so12:37
Mister_Magisteror… it does12:38
Mister_Magisterhttps://paste.opensuse.org/c3c8c090 mal do you notice "resolution for :"12:38
Mister_Magistermissing name12:38
malif it doesn't print it then add some debug printing12:38
Mister_Magisterbut it seems to show resolutions for third camera12:39
malso it sees it12:39
piggzmal: its got to configs as part of mce package, 20hybris-led and 20debug-led12:39
Mister_Magisteryeah you can see resolution for primary resolution for secondary and resolutoin for : missing label means third12:40
piggzmal: i found how to override it12:40
piggz[featurehybris] notificationled -= false12:41
malpiggz: is there some null backend for led or something, I remember there was some other device without led, check channel logs12:41
malah12:41
piggzmal: i think that + hw-settings.ini should be enough12:44
Mister_Magistermal: if it sees third camera why setting id to 2 didn't work12:45
malnot sure12:46
Mister_Magisterhttps://github.com/Michal-Szczepaniak/gst-droid/blob/testing/gst/droidcamsrc/gstdroidcamsrcenums.c#L32 mhm mhm no name i bet if i added name here, droid-camres would display it12:50
piggzwhat are these 3rd cameras really for? on the volla, the rear cameras are 16mpx + 2mpx ... why would you take a pic with the 2mpx version? is it not for augmenting quality info for software processing on the main camera?12:50
Mister_Magisterpiggz: here it's wide angle camera, pretty useful12:50
Mister_Magistermal: it's even better, 0:00:03.099102684 11838 0xb30c1000 INFO             droidcamsrc gstdroidcamsrc.c:558:gst_droidcamsrc_get_hw:<droidcamsrc2> Found 4 cameras12:57
malhmm12:58
Mister_Magisteri'm checking id 312:59
Mister_Magistermal: behaviour is weird, first it shows normal back camera then i switched to front camera and when i switch back it shows front camera lmao maybe 3 is wrong but 2 is'nt right either13:06
TofeIf it's of any interest, I also get 4 cameras on tissot (xiaomi A1)13:06
Mister_Magisterits just plain weird it won't go into the third camera13:06
Mister_Magisterhttps://paste.opensuse.org/0611270a13:10
malmaybe some limitation in some middleware13:13
Mister_Magistermal: maybe i could try to add >2 camera support in gst-droid?13:20
Mister_Magisterlike for example here https://github.com/Michal-Szczepaniak/gst-droid/blob/testing/gst/droidcamsrc/gstdroidcamsrc.c#L57113:20
Mister_Magisterbecause it looks like you won't get any info for camera id 2 cause it's all only 0 and 113:21
Mister_Magisterbut idk if it makes sense, what do you think mal13:22
Mister_Magisteri am dumb after all so it might be dumb idea13:22
piggzon a side note, i dislike when line lengths are artificially limited like that, even if those 3 lines were on 1 it would barely be over 80, and its not like we use 80column displays anymore :D13:25
Mister_Magisterpiggz: it looks prettier but ye it would fit13:27
abransonI don't think it would be too bad to extend gst-droid to use all the cameras. it already fetches some metadata for them so it knows which ones are back and front mounted. but I think the tricky bits would be qtmultimedia and above. everything's geared up to one back, one front and a simple switch between them13:48
Mister_Magisterabranson: i know, jolla camera or piggzs camera just use primary and secondary but i was thinking of adding support to 3 cameras in gst-droid and just setting primary camera as third camera just for now to check if  its working. do you think it makes sense?13:49
abransonmaybe that would be quite simple if you just override the camera setting to droid13:51
Mister_Magisterabranson: wdym?13:52
abransonwell, right now it uses 0 and 1, so you just change that to use 0 and 2 or whatever. nothing above needs to know.13:52
Mister_Magisterno that doesn't work13:52
Mister_Magisteri already tested it13:52
abransonoh really?13:53
Mister_Magisteryeah13:53
Mister_Magisterit was my firrst dumb idea13:53
abranson:D13:53
Mister_Magister[13:29] <Mister_Magister> vknecht: what will happen if i do this https://github.com/Michal-Szczepaniak/gst-droid/commit/e0eb1cf164ae1828c646fa0b65af8eeee3b3d85513:53
Mister_Magisterbut id 2 is problematic cause gst-droid doesn't get any info for id 213:53
Mister_Magister[15:20] <Mister_Magister> like for example here https://github.com/Michal-Szczepaniak/gst-droid/blob/testing/gst/droidcamsrc/gstdroidcamsrc.c#L57113:54
abransoni don't know if that's enough. there are some hardcoded 1s in there13:55
Mister_Magisterabranson: dont you think we should add support for id 2 first like above?13:55
abransonsee gst_droidcamsrc_get_hw13:55
Mister_Magisterabranson: that's not the only place ofc13:55
Mister_Magisterit was just example13:55
abransonok13:56
Mister_Magisterbut if we added supoprt for id 2 and then changed 0 to 2 like the original dumb idea + some debugging it could just work?13:56
Mister_Magisteram i saying something sane?13:56
abransoni think it should work as far as gst-droid is concerned yet13:57
abransonthe higher ups might not like it. it's very hardcoded13:57
abransonbut I think it needs to be done at some point. it's not the first time it's been a problem. some devices only have one13:58
abransonand don't always count from 0 either :/13:58
Mister_Magisterabranson: but we would jsut fool higher ups into thinking its main camera13:58
Mister_Magisteri jsut want to test if camera 2 works at all13:59
abransonmaybe do it lower down than that. e.g. switch the number in droid_media_camera_connect?14:00
abransonor gst_droidcamsrc_dev_open to avoid rebuilding droidmedia14:00
abransonso even the rest of gst-droid thinks it's using camera 114:01
Mister_Magisterabranson: but info is gotten from gst_droidcamsrc_get_hw so i need to add 2 anyway14:02
abransonyou could fake it in gst_droidcamsrc_get_hw too14:04
abransoni.e. in gst_droidcamsrc_fill_info14:04
abransonsee what I mean? do it much lower down14:04
Mister_Magisterabranson: i could just go through entire file and add support for id 2 as in load info and increase max camera count  and stuff14:04
Mister_Magisterit would be same work14:04
abransonyeah. i think i tried that once, but didn't get very far. might be a branch somewhere14:05
Mister_Magisterwith some GST debugs i could get somewhere14:05
Mister_Magisterlooks simple enough14:05
Mister_Magisterabranson: what's worse is that when there are 3 cameras it reports 4 cameras14:05
abransonyeah that's not very nice :)14:06
Mister_Magisterrild is more rude tho14:07
Mister_Magisterabranson: so what i'm saying makes sense?14:09
Mister_Magistershould i get to coding?14:10
abransonyeah, but I don't think you'll really know until it works14:10
Mister_Magisterwhat do you mean14:10
Mister_Magisterhigher up just use 'primary' for id14:10
Mister_Magisterand i can replace id of primary to 2 and just add support for 214:11
Mister_Magisterso should work for higher levels14:11
abransonyeah, makes sense. but I couldn't say if there's some wall you might hit. you'll never know until you try.14:11
Mister_Magistersure, if gst-droid won't be enough i'll get through qtmultimedia and any wall i need14:11
Mister_Magisteri want my wide angle if its possible14:12
Mister_Magisterit gonna be revolutionary i'm telling ya14:12
Mister_Magisteri'm balls deep in it already anyway14:12
Mister_Magisterand looks liek interesting challenge14:12
abransonit needs doing tbh14:14
Mister_Magisteri'll try to do it. technically i should do it not with aliases as primary and secondary but we should assume unlimited amount of cameras14:18
Mister_Magisterbecause we will be updating into ethernity14:18
eduardashello, I would like to ask an oFono specific question. One particular line in the docs is slightly unclear.14:20
eduardashttps://git.kernel.org/pub/scm/network/ofono/ofono.git/tree/doc/features.txt#n46514:20
eduardas'silent' modem reset is mentioned14:20
eduardaswhat does this really mean from a technical standpoint. Is this related to power cycling the modem via an SoC GPIO pin?14:21
eduardasor is this something else14:21
eduardasany connman or ofono contributors here?14:22
monicheduardas: that doesn't ring a bell, really14:25
monichbesides, the ril driver used by sfos doesn't talk directly to the modem, god only knows what happens on the android side of the ril interface14:25
eduardasmonich: AFAIK Sailfish uses ofono + connman as the userspace stack to get cellular internet connectivity14:26
monichyep, that's right14:26
monichbut we are insulated from gpio-level stuff by several layers of abstractions14:27
eduardasmonich: I am currently working with connman + ofono in a Yocto/OE context with a simcom modem14:27
monichwith atmodem driver?14:27
eduardasmonich: the guy who does the modem integration pushes for a handcrafter C binary to do power cycling of the modem via GPIO when it supposedly hangs14:28
Mister_Magistermonich: stupid rild even on 1.2 doesn't return registration state :<14:28
eduardasmonich: QMI14:28
eduardasmonich: I am totally new to this, first day I am seriously reading up on ofono and this cellular stuff14:29
eduardasthough I had experience with connman for regular Wi-fi before14:30
monicheduardas: afaict ofono itself won't be much of a help here - whatever hw-specific recovery you need to do, most likely needs to be done in your hw specific code14:30
monichMister_Magister: are you working with mal's code or did you write your own?14:31
eduardasmonich: can the kernel networking subsystem be made aware of the gpio pin that enables power to the modem?14:33
eduardasmonich: controlling the power pin from userspace via GPIO sysfs sounds kind of lame to me14:33
eduardasmonich: but that is how the guy working on it implemented it for the project I'm working on14:33
eduardasmonich: so I am looking for a better solution14:34
eduardasso that if the modem does need a hard reset for some reason, it can be done by whatever the standard cellular stack for Linux is considered to be14:35
eduardasi.e. in a non-custom fashion14:35
eduardasusing FOSS userspace or kernel code14:35
monicheduardas: sounds too hw specific to be done in a generic way, honestly14:36
eduardassince modem is connected via USB, there aren't any devicetree entries for it14:36
eduardasso I can not pass the info about the power on pin to the kernel that way14:37
eduardasmonich: do you know who is considered an expert in the community on connman + ofono and modem integration under embedded Linux?14:38
eduardasmonich: where should I go if I need an expert opinion on this?14:38
monicheduardas: I maintain sfos fork of ofono and have written most of the ril intergration code14:39
monichbut there's also upstream's chat14:40
monichor at least there was14:40
eduardasmonich: have not found an ofono channel on freenode or elsewhere14:40
eduardasmonich: there is only connman and ell14:40
monichhmm14:40
Mister_Magistermonich: mal's14:41
eduardasmonich: oh, there is one... just not listed in Konversation14:41
eduardasfor some reason14:41
eduardaswhen I tell it to list channels on server14:42
monicheduardas: try #ofono14:42
monichbut I haven't been there for quite some time, dunno who's there14:44
eduardasmonich: just curious.. what is this "RIL integration code" you speak of14:45
eduardasis this some kind of middleware on top of ofono?14:45
eduardasor the other way around?14:45
monichhttps://git.sailfishos.org/mer-core/ofono/tree/master/ofono/drivers/ril14:45
monichnot to me confused with upstream's rilmodem :D14:46
monichhistorically we've had our own even before upstream had one14:46
eduardasmonich: so this is an ofono backend? why is this one in particular needed?14:47
eduardasmonich: why did you need a new backend?14:47
monichwe talk to android's ril service rather than directly to the modem14:49
monichthat makes it easier to write an adaptation for a new platform14:49
eduardasmonich: isn't SFOS built more like a regular Linux distro, systemd and all, how do you still have an Android service running?14:50
monichthat would require a new adaptation, currently we are not 100% android-free14:51
monichthe first official android-free port of sfos is still to be made14:52
eduardasmonich: this is Android code running as a systemd service or something else entirely?14:52
monichit's typically android init and then systemd and the rest of the system on top of it14:52
eduardasmonich: oh boy, that sounds nasty14:53
monichas I said that's because it's easier14:53
monichnot because we like it that way14:53
Mister_Magistermonich: u gotta hit that stupid rild :<14:53
eduardasmonich: is there some all-encompassing SFOS architecture doc I could take a look at that shows how this works? with schematics or something14:54
T42<adampigg> <cough> pinephone </cough>14:54
monichyeah, <cough> pinephone </cough>14:55
monichwe've heard of it :D14:55
T42<adampigg> also, latte tablet is 99.9999999& android free14:56
T42<eugenio_g7> Working towards 100%!14:56
monichthat's nice14:56
eduardaskinda still waiting for my Librem 5, but I have asked for a later batch since I know how electronics get made in real life ;)14:57
eduardaswould not really risk it with early revisions14:58
eduardasthat is also supposed to be Android-free14:58
eduardasmonich: who is the current ofono maintainer and are they responsive to technical questions?15:00
monichMister_Magister: I would wait for mal to finish and merge his ril 1.2 stuff and then see what's still broken15:00
Mister_Magistermonich: but its faily working15:01
monicheduardas: that would be me, I guess15:01
Mister_Magistermonich: the getting request is handled so i don't know what you are talking about15:01
eduardasmonich: not just the SFOS ofono fork maintainer, but the ofono maintainer in general?15:03
monichMister_Magister: I haven't seen any patches from mal yet, and I don't really know what he's done so far15:03
eduardasmonich: the one hosted by kernel.org I mean15:03
Mister_Magistermonich: i've seen that _1_2 registration status is handled so…15:03
Mister_Magisterwhere is the code i'll show you15:03
monicheduardas: https://lists.ofono.org/hyperkitty/list/ofono@ofono.org/15:04
monicheduardas: that should give you an idea ^15:04
Mister_Magistermonich: https://github.com/mer-hybris/ofono-ril-binder-plugin/commit/f9383630a6643740356c18485b10d6e99d1b39d8#diff-2b7ad7bbdb95daee77049466092ecf5fR341315:05
monichon what's happening with upstream15:05
eduardasmonich: if so I feel you could really use a MAINTAINERS file on kernel.org or t least a note in the source README about who the active maintainers are15:06
eduardasmonich: not everyone would have the idea to get on sailfish-posrters on freenode to ask about ofono like me15:07
monicheduardas: with open source you quite often have to do some research just to figure out who's doing what and what's going on :)15:07
monichalthough in ofono's case it could've been done better, there's intel behind it15:08
eduardasmonich: I know, but just because it has become the norm, I do not feel that is very good... there are people who have been doing modem integration for years and are not aware of ofono or modemmanager15:09
monichand they still do it like it's something they're doing in their spare time15:09
eduardasstill doing handcrafted C and such15:09
eduardasmonich: I know corporations don't really want to fund this15:10
eduardasmonich: which is a huge shame15:10
eduardasmonich: since lots of people do in fact benefit from this work15:10
eduardasmonich: I am still thankful for the fact that there are people like you doing this work15:11
monichintel does, most of bluez, connman and ofono code are paid for by intel15:11
eduardasmonich: and willing to give me some kind of support15:11
eduardasmonich: perhaps it is just me being spoiled, but there is no real reference distro + hardware platform from Intel or someone else where all of this stuff comes together15:13
eduardasmonich: and then OEMs could use this as a starting point and example15:14
eduardasmonich: for various 4G related features, correct power management, etc.15:14
monicheduardas: which reminds me that we still don't support volte :|15:15
eduardasmonich: when I needed to work on a Linux handheld device in the past and use connman, SailfishOS and Mer were the closest examples on how to use this component in real life15:16
eduardasmonich: what is that?15:16
monichvoice over lte15:16
eduardasmonich: well, I am merely concerned about M2M and am thankful for it15:17
T42<ippokratis> @elros34 [I want to start apps in chroot in separate win …], that would be great.15:19
T42<ippokratis> but for you f(x)tec pro1 guys keyboard is no problem  .15:19
T42<ippokratis> we in ports need external keybord if chromium is not open from inside xfce415:19
eduardasmonich: so again to my initial problem, ofono has nothing to do with modem power management?15:19
monicheduardas: not much, other that providing more or less standard interfaces to power it on and off15:21
eduardasmonich: oh, but that IS important... perhaps I can bind GPIO to that?15:21
eduardasmonich: can one write a plugin/backend for that?15:22
eduardasmonich: if ofono has a d-bus call to power on the modem, it makes sense to bind the GPIO control that actually DOES power it on, doesn't it?15:24
eduardasmonich: or am I just being naive?15:24
monichin our ofono ril driver we have code which is tracking display state, charging etc15:24
monichhttps://git.sailfishos.org/mer-core/ofono/blob/master/ofono/drivers/ril/ril_devmon_ds.c15:24
monichlike this one ^15:24
monichbut that gets translated into appropriate ril calls15:25
monichand whatever happens there, is up to the ril service15:25
monichthat's speaking of power management15:26
eduardasmonich: the problem in my case that qmimodem is the one that should actually get used15:26
eduardasmonich: so if a USB modem disappers from the USB bus and then re-appears again because I toggle its power outside the connman + ofono framework, that is a-ok as far as the connman/ofono stack is concerned?15:28
eduardasmonich: or is it bad practice?15:28
eduardasmonich: I am kinda skeptical whether modems really hang that often in practice to require a hard reset15:29
Mister_Magisterabranson: gst_droidcamsrc_fill_info is so retarded15:29
eduardasmonich: bus some people are telling me that and I do not know how to respond15:29
eduardasmonich: do you ever see modems hang in a way that your stack can not really do anything about it without cycling power?15:30
monicheduardas: in ril setup it's often hard to say what exactly hangs - the modem itself or something in between us and the modem15:38
monicheduardas: denkenz is the upstream guy in the ofono channel15:39
eduardasmonich: what can userspace do when the stack hangs?15:40
eduardasmonich: what do you think is the reasonable response from the business logicc point of view?15:40
eduardasmonich: what do you do in your case? reboot? print error message in UI?15:41
monicheduardas: we actually do have a sfos specific dbus interface for reporting unrecoverable errors and then the ui can show a warning like "some kind of shit happened, you better restart your device if you want cellular connectivity to work reliably"15:43
eduardasmonich: any idea how often that happens in real life? though that might be a loaded question... :D15:44
monichit depends on the phone of course15:45
eduardasI do not own a Sailfish device, sadly.15:45
monichwith l500d/jollac that was happening often enough for us to implement that ui warning mechanism15:45
monichmaybe one person out of 100 was getting that once a month15:46
monichroughly15:46
eduardasmonich: do you attempt to do some kind of restart for connman or ofono or rild in userspace before you print that message or just give up right away?15:47
eduardasmonich: i.e. is there some kind of retry sequence?15:48
monichrild crash was the trigger for it15:48
monichwe reconnect to it but...15:48
monichthe question is whether it always comes back up successfully15:49
monichbasically, at startup it's a cold boot essentially15:49
monichand after crash rild comes up but the modem is in an unpredictable state15:50
monichwe also have an option to do a power-cycle sequence after connecting to rild15:50
monichsometimes it's necessary, sometimes rild doesn't like it15:51
monichon some multi-slot devices power state of both modems are tied to each other - either both are on or both off15:52
monichit's really case-by-case15:52
monichimpossible to do it in a way that would work everywhere15:53
eduardasmonich: but you did mention that ofono does in fact have a d-bus API call to cycle power?15:54
eduardasmonich: or did I misunderstand?15:54
eduardasmonich: what about my idea of adapting this to specific hardware?15:54
eduardasmonich: i.e. patching ofono15:55
monichhttps://git.kernel.org/pub/scm/network/ofono/ofono.git/tree/doc/modem-api.txt15:55
monichPowered and Online properties ^15:55
monicheduardas: for a specific hardware you may need to write a plugin15:56
monichalthough there is already one for qmi15:56
monichor do the call it a driver15:57
monichhttps://git.kernel.org/pub/scm/network/ofono/ofono.git/tree/drivers/qmimodem15:57
eduardasmonich: that is kinda my problem, qmi does everything I need except this... I wonder what qmi backend does for Powered property15:57
monichhttps://git.kernel.org/pub/scm/network/ofono/ofono.git/tree/plugins/15:59
monicheduardas: grep for qmi there ^16:00
monichmodem power up/down should be there16:00
monichif qmimodem driver does the right thing for you, you may only need a plugin which implements the modem abstraction16:02
monichhttps://git.kernel.org/pub/scm/network/ofono/ofono.git/tree/plugins/gobi.c16:03
monichthat ^ seems to be the qmi modem plugin16:03
eduardasmonich: yes, at first glance this seems to be what I wanted... guess I need a plugin for my specific hardware, though I am not sure about the relationship/difference between plugin and backend?16:03
Mister_Magisterabranson: now looking at (retarded) code its obvious, even if you set it to 2 it takes id 016:05
eduardasmonich:  I know you've already helped me a lot, but just one last question if I may: how does ofono know which plugins to load?16:07
monicheduardas: I think it's the plugin module which is responsible for detecting the hardware and providing the modem implementation which then tells the code which driver to use for each internal interface, see gobi_pre_sim and gobi_post_sim for example16:07
monichin that sense our ril thing isn't quite following that pattern16:08
monichit's all in one place, isn't broken into plugin and driver parts16:09
monichand in our case the modem configuration it fetched from the config file16:09
monichour case it generally mode complex, on some phones we are talking to rild via sockets, on some ohones via binder (android specific kernel ipc)16:11
monichso I ended up having plugins (socket vs binder) into our ril plugin16:12
monichand even a component that can be described as a plugin into a plugin into a plugin :D16:12
monichit's not something that I would recommend for studying as a reference implementation16:13
eduardasmonich: that is really interesting to know, but it still does not answer my question - how does ofono know which plugin it should use in a specific case? There is a config file or is this done automatically?16:15
Mister_Magisterabranson: I THINK ITS WORKING16:16
monicheduardas: https://git.kernel.org/pub/scm/network/ofono/ofono.git/tree/plugins/gobi.c#n46216:17
monichsee those ofono_netreg_create(modem, 0, "qmimodem", data->device); and so on&16:17
monichthat "qmimodem" string tells ofono core which driver modules to use16:17
Mister_Magisterlet me double cehck16:18
eduardasmonich: thank you for the useful answer, though I still do not understand how this relates to USB hotplugging16:25
eduardasand what calls what16:25
Mister_Magisterabranson: https://twitter.com/Mister1Magister/status/129032520766898176016:34
Mister_Magisteram i first in history? i think i am16:35
Mister_Magisteralso mal ^16:36
eduardasmonich: anyway, thank you a lot for your time. Your help is really appreciated. I think you've put me on the right track. Got to leave now. Will probably drop in here some time later.16:41
Mister_Magisterabranson: u there16:49
T42<ippokratis> @elros34  ubu-exec.sh is also start.sh now?16:52
Mister_Magistermal: abranson: when adding support for unlimited cameras… i think it should be per device config cause 5z is reporting 4 cameras but somehow droid-camres can get only 3 and some cameras are like 2mpix for bokmeh effect which won't be usable as camera either so we should pick which one to use16:52
Mister_Magisterdang this is retarded on so many levels19:53
Mister_Magistermal: abranson: i present you this https://twitter.com/Mister1Magister/status/129038337499402240920:26
Mister_Magisterhttps://github.com/sailfishos/gst-droid/pull/56 https://git.sailfishos.org/mer-core/qtmultimedia/merge_requests/34 my job is done here abranson mal20:47
Mister_Magisteri'm selling rpms if there is someone with 2+ cameras and if they want to try, just pm me20:57
malMister_Magister: the PR is just terrible, huge amount of unnecessary formatting changes like indentation etc21:08
malat least the gst-droid one21:08
Mister_Magistermal: i never said it isn't21:08
Mister_Magisterit's just proof of concept to be done properly21:08
Mister_Magisterit's not to be accepted, more like base to do it properly21:08
malwell reviewing that would be a pain with all the useless changes21:08
* Mister_Magister shrug21:09
Mister_Magistermal: well i'm sorry i cann't really roll it back21:09
malwhy not?21:09
Mister_Magisterehhh21:09
malwell don't expect anyone to look at such a mess21:09
Mister_Magisterehhh21:10
maldo you really think for example I would want to go through every single line in the file manually because you changed almost every line21:12
maltrying to find any actual changes would take way too long21:12
Mister_Magisterfine…21:12
Mister_Magistermal: what about now, lot better right?21:21
Mister_Magistermal: now i've removed your changes so it's only my changes now. super clean right? :)21:24
Mister_Magisteri was just tired21:24
* Mister_Magister lets see if it even compiles21:25
malat least it's readable now21:25
Mister_Magister:)21:26
Mister_Magisteri did good job then :321:26
malI think we should actually send to direction of the camera from droidmedia to gst-droid21:26
mal*the direction21:26
Mister_Magisterbut it's being done21:27
malhmm21:27
Mister_Magistermal: https://github.com/sailfishos/droidmedia/blob/master/droidmediacamera.cpp#L28621:27
Mister_Magisterinfo.facing is from android and from droidmedia21:27
malok, I thought it wasn't because of the comment in qtmm PR21:28
Mister_Magisterhttps://github.com/sailfishos/gst-droid/pull/56/files#diff-342a1c4301107bde6e204fb5f3cda8d8R450 and i grabbed it21:28
Mister_Magistermal: problem is here https://git.sailfishos.org/mer-core/qtmultimedia/merge_requests/34/diffs#32f812d7401e19e3d1b8c46b6eeec4a4b3f343e5_551_54221:28
Mister_Magisterfor testing i set it to back camera. There is no property with camera orientation (or there is and i'm unaware) but such property needs to be added, array or something21:29
Mister_Magistermal: some changes are missing i'll fix it as long as i'm councious21:32
malMister_Magister: also fix the remaining formatting issues in gst-droid PR if you are changing it at some point21:33
Mister_Magisterwhat formatting isssues?21:33
malspace messing between function name and (21:33
malif you look at the existing code there is always a space there21:33
Mister_Magisterah ok i'll handle it21:34
Mister_Magisternote for future: don't fix formatting when you aren't asked to21:37
Mister_Magistermal: oki fixes done, and it's compiling21:41
Mister_Magistermal: all good now?21:42
Mister_Magisteri've also added sfos-meeting topic about that21:51
Mister_Magisteralso if somebody wants to test hit me up cause i'm interested if it's working on other devices21:52

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