/srv/irclogs.ubuntu.com/2017/03/21/#ubuntu-touch.txt

=== Jucato_ is now known as Jucato
=== Isla_de_Muerte is now known as NwS
=== pleia2_ is now known as pleia2
=== Elleo_ is now known as Elleo
=== hggdh is now known as vittnet
=== vittnet is now known as ayd
=== salem_ is now known as _salem
=== enthusi_ is now known as enthusi
=== chihchun_afk is now known as chihchun
=== autra_ is now known as autra
=== _salem is now known as salem_
javier4abeato: hi. I'm porting UT to an mt6795 based device. I'm issuing some problems with ril. Can you help me?12:45
abeatojavier4, sure, first of all make sure you are selecting the mtk ofono driver12:46
abeatojavier4, for that, change /etc/init/ofono.override12:47
javier4abeato: i tried both mtk both mtk2. The first one give a generic error. This is the log in debug mode of ofono with the second one.12:48
javier4https://www.irccloud.com/pastebin/siM2juou/12:49
javier4Sorry, wrong link12:50
javier4Give me a minute12:50
abeato:)12:50
abeatojavier4, anyway, is that list-modems output for the device?12:51
javier4Yes. :)12:51
javier4abeato: and this is the debug12:52
javier4https://www.irccloud.com/pastebin/VmO4u6KB12:52
abeatojavier4, ok,  I see that you are not able to register apparently, although things do not look too bad in fact12:54
abeatojavier4, try to add these two variables to ofono.override:12:54
abeato OFONO_RIL_HEX_TRACE=""12:54
abeatoOFONO_RIL_TRACE=""12:54
abeatothen grab again the trace12:54
javier4abeato: sorry for the delay. Syslog decided to be less cooperative. I hope I'll be able to post the log soon.13:26
mterrytedg: bug 1669546 -- are you familiar with those issues mentioned in last few comments?  Do you know of an easy fix for disabling systemd units in certain xdg desktop sessions?13:30
ubot5bug 1669546 in mediascanner2 (Ubuntu) "[MIR] mediascanner2" [Undecided,Fix committed] https://launchpad.net/bugs/166954613:30
tedgmterry: Well if it gets bus activated there's not much we can do, but otherwise it should only start if required by something else, like unity8.13:32
tedgmterry: It shouldn't be "disabling" as much as "not enabling"13:32
mterrytedg: sounds like it should always be dbus-activated instead of just started by upstart13:33
tedgI'm not familiar with the specific issues they're talking about though.13:33
javier4abeato: here we are, finally13:33
tedgmterry: Then if someone starts it, it'll be there. I mean, that's the joy of dbus activation no control and random services.13:34
javier4abeato: http://pastebin.com/SwhPJ5jv13:34
mterryjamesh_: ^ you around?  Do you have some of the context for mediascanner2?13:35
tedgmterry: I mean you could always add a preexec to check for the environment, but it seems to me if someone asked for it they want it running.13:35
javier4abeato: Probably you need to know that this tree doesn't use the standard rild daemon, but a mtk-customized one.13:35
mterrytedg: yeah I think most things in unity7 won't start it by default -- though if the user downloads a touch-written snap it may become started and they'd have the problems again13:36
mterryseb128: so mediascanner2 -- sorry for surprising you on that, I didn't know it had a bad history with unity7.  Would a patch that cleanly exits if it detects non-unity8 environment work do you think?13:41
seb128mterry, hey, no worry, yes it would be better to have it exit if it's not tested/useful on those sessions13:42
abeatojavier4,hmm, this is suspicious: MTK2_RIL_UNSOL_RESPONSE_REGISTRATION_SUSPENDED13:43
tedgI'd say just make it not dbus activated... it doesn't make sense to not have it running on u8 (you want it to scan things in the background) and it doesn't make sense to have it running anywhere else. Doesn't seem like a candidate for dbus activation.13:43
dobeyi think the main issue would be that it scans everything on start, and causes lots of disk i/o, which is not very nice to do13:43
abeatojavier4, probably you need to send a request to get the registration to re-start13:43
abeatojavier4, iirc this was done by mtk2 driver at some point, maybe there is some change in this device. It looks like there is no hook for that event13:44
mterrytedg: most of it isn't dbus-activated.  There's a main daemon that is upstart/systemd run.  Then a couple things that are dbus activated (extractor or whatever)13:44
javier4abeato: user NeKit point me to this patch to mtk.c driver (not mtk2)13:45
javier4https://github.com/rilmodem/ofono/commit/2c83eb87980b08435b072ab4209030c192ad354d13:45
javier4but it's not easy to replicate it for mtk213:45
abeatojavier4, how old is the device SoC? any idea? depending on that you should use mtk or mtk213:46
abeatojavier4, or, if none fits completely, try to port that patch to mtk213:46
javier4~end 2015. It's Helio X1013:46
abeatojavier4, hm, I'd say mtk2 would be better, but not 100% sure13:47
abeatojavier4, try to do something similar in mtk2 to what was done in mtk13:47
javier4porting that patch is really colpmex. mtk2.c is just a copule of functions, while mtk.c redefine a lot of ril.c ones.13:47
abeatojavier4, try register to the event with g_ril_register() in the networking atom, then send RESUME_REGISTRATION in the hook13:48
javier4i.e. to port that patch I had to add mtk_data struct to mtk2.c, but that struct uses a lot of mtk-customized function to initialize its fileds.13:49
abeatojavier4, no need to patch mtk2.c :)13:49
=== salem_ is now known as _salem
=== _salem is now known as salem_
javier4abeato: drivers/rilmodem/network-registration.c?14:04
abeatojavier4, yes, would be a good place: you could override delayed_register() in new file drivers/mtk2modem/network-registration.c14:08
javier4abeato: that's what I was thinking about. Could you explain the overriding chain of ofono? I.E. when a function is not present in one of the customized driver, it fallbacks to ril one? Same for plugins?14:10
abeatojavier4, drivers/{mtk2modem,rilmodem}/voicecall.c would be a good example14:53
abeatojavier4, note that how it works is that you create the mtk2modem driver in mtk2.c, and that some of the methods of that driver are taken from rilmodem/voicecall.c14:54
abeatojavier4, ups, actually not true, you do not need to modify mtk2.c :)14:55
javier4ok. Then it includes rilmodem/voicecall.h, and probably  links the object file from rilmodem/voicecall.c, i think.15:05
javier4But now, in my g_ril_register, what should I pass as function? Should I write something new like "ril_reg_suspend_notify()"?15:07
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
sayeed99is ubuport 5.1 really buildable atm??15:41
sayeed99I am facing a lot issues. And I am not sure if it because I am trying to force it to build with jre 1.815:42
sayeed99anyone??15:45
=== chihchun is now known as chihchun_afk
=== genii_ is now known as genii
=== JanC_ is now known as JanC
mterryjamesh_: when you get a chance, I'd appreciate a review of https://code.launchpad.net/~mterry/mediascanner2/only-in-u8/+merge/320505 -- it's blocking mediascanner2 being in main / on image17:57
dobeymterry: eh? i thought there was a way to do that with the systemd service file now?18:02
mterrydobey: is there?  I looked at systemd unit documentation, didn't see an easy way to filter by env variable or desktop session type18:03
dobeymterry: oh, that's what i thought from the discussion on this earlier18:04
mterryNot to my knowledge, but would be happy to be proven wrong.  Though the env variable parsing is a little tricky, I'm not sure built-in systemd support would handle regexes18:05
mterryThough if it natively understood desktop sessions, enough to offer something like OnlyShowIn=, that would be swell18:06
dobey09:35 < tedg> mterry: I mean you could always add a preexec to check for the environment, but it seems to me if someone asked for it they want it running.18:06
mterrydobey: yeah a preexec key doesn't exist in systemd, only upstart18:06
dobeyoh18:06
tedgmterry: ExecStartPre18:07
joe_whi, had a problem with dekko about a year ago, loading then not doing much else (not connwcting to server) having the problem again....was told to delete some files it worked last time but cant find the files (cant remember) can any one remind me...bq aquirous  thanks18:07
tedgmterry: man systemd.service18:08
mterrytedg: !? I will search for that, couldn't find it in docs or google, cool.  Though may not be any easier than what I ended up doing18:08
dobeymterry: ExecStartPre=18:09
mterrydobey, tedg: very cool, thanks.  But looking at the docs for that key, I think the in-code method is easier (for this particularly complicated env check) and consolidates the logic between upstart/systemd (which mediascanner2 still installs file for both)18:12
dobeymterry: i guess ExecStartPre=echo "${XDG_CURRENT_DESKTOP} ${XDG_SESSION_DESKTOP}"|grep -i unity818:13
mterryThat fails on Unity82  :P18:13
dobeymterry: that should do what you need i guess, or make a make a shell script18:13
dobeywe'll have mediascanner 22 by then :)18:14
mterryIs there a problem with the in-code method that you so favor a systemd-line?18:14
dobeyspecial env var, and extra code that requires running mediascanner itself to decide if it should be run. which seems weird18:16
dobeyi think using the systemd method might still allow it to be started by dbus activation too, when an app does need it18:17
mterryScanning daemon doesn't dbus-activate itself I don't believe, there is a separate dbus-activated daemon that spins up if needed18:17
mterryAnd a dbus-activated extractor.  Both of which should be fine to spin up if something happens to request them in u718:18
mterryAdded comment to MP explaining options; I still prefer in-code though18:23
TartanSpartanHey, does anyone have a Meizu Pro 5?18:57
TartanSpartanAnyone?19:20
=== ayd is now known as hggdh
=== salem_ is now known as _salem
carryonononhi i'm trying to install ubuntu touch on my kyocera.  Are there any premade ubuntu-touch images for that phone?23:32

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!