**** BEGIN LOGGING AT Tue Oct 17 03:00:03 2017 Oct 17 05:04:34 Morning! Oct 17 05:05:06 Tofe: Look what just hit upstream ;) https://github.com/openembedded/openembedded-core/commit/28d2d47f2a4fc3eb649cf58e82bce0525ab0bc74 Oct 17 05:05:19 So a simple bump at our end in layers.txt will address it :) Oct 17 05:13:45 Herrie: hehe, good :) Oct 17 06:24:39 Morning! Oct 17 06:30:08 Herrie: I see the testing dirs for qemux86 have been cleaned up (old bins have been removed) - but no new image available yet. Perhaps there was a disc space problem - which now might be solved Oct 17 06:52:36 Morning:) Oct 17 07:24:37 Morning Oct 17 07:25:03 MartinHov: Yeah we ran out of space while rsync-ing so I deleted some files and restarted r-sync Oct 17 07:27:22 Herrie: thanks Oct 17 07:40:32 I just kicked off a new build with the wpa_supplicant fix ;) Oct 17 08:48:02 Herrie|Laptop: I've had a look at our current bluez extension in luna-webappmanager, and a first arises: why don't we just use connman-qt5 instead of directly calling bluez? Oct 17 08:48:07 +question Oct 17 08:48:41 connman is supposed to be generic and handle bluez4 and bluez5, right? Oct 17 08:48:52 Tofe: Yes correct Oct 17 08:48:57 Well up to 1.32 Oct 17 08:49:03 After 1.32 they dropped BlueZ4 Oct 17 08:49:07 yes right Oct 17 08:49:32 but you see what I mean: we shouldn't bother calling bluez directly, when we already have a nice qt5 layer ready to use Oct 17 08:50:26 in the same way, webos-connman-adapter seems dedicated to wifi, but for no good reason: as it calls connman, it could very well handle bluetooth as well Oct 17 08:52:01 I don't know yet if it would help rewriting it using Qt5 and libconnman-qt5 Oct 17 08:52:03 Tofe: I think webos-connman-adapter is there mainly to provide ls2 interface Oct 17 08:52:21 So apps can do certain luna-service calls Oct 17 08:52:23 Herrie|Laptop: yes, and the latter could be used by settings too Oct 17 08:52:39 Tofe: Yes, but for QML we could use the qtconnman bits directly no? Oct 17 08:52:51 Without bothering about the webos-connman-adapter Oct 17 08:52:56 yes correct Oct 17 08:53:01 We should see what API webos-connman-adapter provides Oct 17 08:53:09 I suspect it's mainly to check network status Oct 17 08:53:11 but the webappmanager extension are just useless imho Oct 17 08:53:28 Some apps on legacy used to check networkstatus Oct 17 08:54:06 Herrie|Laptop: is settings the only app that uses the webappmanager wifi and bluetooth extensions ? or do legacy apps also use it? Oct 17 08:55:52 I'd rather extend the LS2 wifi API, add a similar bluetooth LS2 API, do it in webos-connman-adapter, and in the latter eventually use connman-qt5 if it helps (not sure about that) Oct 17 08:56:12 and drop the webappmanager wifi & bt extensions Oct 17 08:59:19 Tofe: BT might be used in LNC Oct 17 08:59:22 Not sure about that Oct 17 08:59:25 But not by apps Oct 17 09:00:47 Herrie|Laptop: https://github.com/webOS-ports/luna-next-cardshell/blob/master/qml/Connectors/BluetoothService.qml uses a directy DBus connection to bluez Oct 17 09:00:52 Tofe: OK Oct 17 09:00:58 Then it's Settings only Oct 17 09:01:08 for the wifi, it uses LS2... Oct 17 09:01:27 kind of a waste of energy here :) let's migrate all this to connman-qt5's QML Oct 17 09:01:28 There were some issues that nizovn mentioned in the past. He wasn't too happy with the plugin & qml variants Oct 17 09:01:34 They didn't always sync properly Oct 17 09:01:36 Or soemthing Oct 17 09:02:15 Tofe: I can scan legacy apps to see where they call com.palm.wifi and com.palm.connectionmanager Oct 17 09:02:25 I just wonder why people avoided using connman for BT, it's a bit strange isn't it ? Oct 17 09:02:25 See what it's actually being used for in apps Oct 17 09:02:33 Do we really need extensive LS2 interface? Oct 17 09:03:03 Wouldn't it be easier to just directly use the connman-qt5 bits and only provide basic functionality via webos-connman-adapter? Oct 17 09:03:11 Should make it less prone for errors as well? Oct 17 09:03:13 Herrie|Laptop: well, no, I mainly want to see if someone else uses the webappmanager extensions Oct 17 09:03:18 And less code to maintain ? Oct 17 09:04:07 Herrie|Laptop: I agree, that's my target too Oct 17 09:05:00 It's just that if we don't provide a LS2 API for BT, then the current settings app will definitely not work Oct 17 09:05:26 Maybe it's just a matter of planning in the right order Oct 17 09:07:12 Tofe: I checked navigator.BluetoothManager and navigator.WifiManager on GitHub and only used by our Settings app Oct 17 09:07:20 ok, that's good Oct 17 09:08:34 Herrie|Laptop: currently we only have bluez4 installed in the image ? or both 4 & 5 ? Oct 17 09:08:35 I checked whole of GitHub, so there is nobody else using it somehow either Oct 17 09:08:42 Tofe: Only 4 Oct 17 09:08:49 I don't think you can do 4 & 5 at the same time Oct 17 09:08:53 ah ok Oct 17 09:08:56 well well Oct 17 09:09:16 then we'll have to migrate all this together Oct 17 09:09:35 JaMa offers: https://github.com/webOS-ports/meta-webos-ports/pull/245/commits/7bdd9634d5eacf289f4d4966ca7b19d6f05327d5 Oct 17 09:09:44 our current connman already has dropped bluez4 ? Oct 17 09:09:56 Tofe: Ehm let me check Oct 17 09:12:16 Tofe: Seems JaMa updated us to 1.33 so we're without BlueZ4 support already it seems, since last version is 1.31 with BlueZ4 support and there's no patch in our layer or oe-core to add BlueZ4 functionality back Oct 17 09:12:31 So I guess we could just switch to BlueZ5 and take it from there Oct 17 09:12:53 While we're at this, we might want to see if it makes sense to use mer's ConnMan Oct 17 09:13:00 Since we use their oFono & VoiceCall too Oct 17 09:13:20 And their qt connman bits too Oct 17 09:13:51 Herrie|Laptop: if I understood correctly, sailfishos uses it and has a kind of frankenconnman with both bluez support Oct 17 09:13:58 Tofe: Correct Oct 17 09:14:06 They don't use upstream and have a ton of patches Oct 17 09:14:11 I'm not sure what's their reasoning Oct 17 09:14:29 Seems Slava Monich is doing a lot of commits & cherry picks Oct 17 09:14:37 Herrie|Laptop: I'm not fond of "ton of patches" approach :p Oct 17 09:14:52 Tofe: Me neither, but they must have them for a reason probably Oct 17 09:15:12 but they have a Bluetooth certification, so I guess that makes the transition to bluez5 more complex Oct 17 09:16:25 SailfishOS you mean? Oct 17 09:16:38 yes Oct 17 09:16:48 Tofe: I'd say more the 3.4 hard kernel requirement Oct 17 09:17:16 ah, yes, thatt's a good reason too :) Oct 17 09:19:56 the main annoying this with connman is that it's nearly impossible to test out of a device Oct 17 09:20:02 thing* Oct 17 09:20:19 Tofe: Yeah... Oct 17 09:20:39 Might be good to get in touch with Slava and figure out why they deviate so much from upstream ConnMan Oct 17 09:21:08 Might be valid reasoning. Just seeing we're using their oFono, VoiceCall etc, it might make sense to use their ConnMan too because they might interact better Oct 17 09:21:33 could be Oct 17 09:22:13 But seems they're still on 1.31 for most part Oct 17 09:22:17 + tons of patches Oct 17 09:49:32 Herrie|Laptop: https://bpaste.net/show/4d76fe696999 Oct 17 10:00:05 Tofe: OK that's useful :() Oct 17 10:00:07 :) Oct 17 10:03:59 Seems quite some stuff made it to 1.35 as well Oct 17 10:05:37 Difficult call to make without testing... Oct 17 10:27:16 Tofe: There seems little specific for voicecall or ofono in Mer's ConnMan Oct 17 10:28:10 At least from what I can see here while scanning quickly Oct 17 10:29:43 Herrie|Laptop: 2 more build failures http://errors.yoctoproject.org/Errors/Build/47549/ Oct 17 10:31:42 JaMa: Seems that for the qtcharts you'll need your own patch :P https://patchwork.openembedded.org/patch/143142/ Oct 17 10:32:06 Adopted for qtcharts of course :P Oct 17 10:35:46 Let me do a quick test for those 2 Oct 17 10:59:23 JaMa: I added this one: https://github.com/webOS-ports/meta-webos-ports/commit/05e646ad1c5eaee913a5672033d20438fe7e626f Oct 17 10:59:37 I had errors while building clean Oct 17 10:59:42 This solves it Oct 17 11:03:10 for which branch? Oct 17 11:03:17 JaMa: pyro Oct 17 11:03:27 For me clean build of Pyro wouldn't work somehow :S Oct 17 11:03:30 it's included in oe-core/rocko Oct 17 11:03:40 didn't you remove meta-systemd from your bblayers.conf? Oct 17 11:04:36 I bet you did when testing some rocko build, but you should put it back as it provides this recipe and then revert this Oct 17 11:04:36 JaMa: I only touch layers.txt :P Oct 17 11:05:00 JaMa: I have separate folders on my machine for Rocko & Pyro Oct 17 11:05:11 this is in webos-ports-setup/conf/bblayers.conf Oct 17 11:05:12 I.e. LuneOS\pyro and LuneOS\rocko Oct 17 11:05:25 then check your bblayers.conf in those dirs Oct 17 11:05:32 pyro should have meta-systemd Oct 17 11:05:39 JaMa: qtcharts and qtnetworkauth work for me now with: https://github.com/Herrie82/meta-qt5/commit/09280b5b89aad3e7782c7c3536ec18ceccd260e1 For the other 2 issues, these are not qt5 specific? Oct 17 11:05:54 and it has ./meta-systemd/recipes-core/systemd/systemd-machine-units_1.0.bb Oct 17 11:06:28 is this commit the same one you gave me yesterday? Oct 17 11:06:38 od did you fix those 2 qt* related? Oct 17 11:06:53 JaMa: Yeah 1 SRCREV was wrong and added gold fix Oct 17 11:06:54 https://github.com/webOS-ports/webos-ports-setup/blob/testing/conf/bblayers.conf Oct 17 11:07:00 ok Oct 17 11:07:01 That one doesn't have meta-systemd :P Oct 17 11:07:19 it has, see line 20 Oct 17 11:08:09 JaMa: Hmmzm weird Oct 17 11:08:27 Seems a local issue then Oct 17 11:08:49 I have 2 versions of bblayers.conf in my pyro folder which aren't equal :P Oct 17 11:11:05 Ok fixed that locally Oct 17 11:11:13 Will remove this from pyro then in meta-webos-ports Oct 17 11:45:46 Tofe: I guess we're OK to move to BlueZ5 then, since BlueZ4 is effectively not working anyway already? Oct 17 11:46:00 Herrie|Laptop: that's a way to put it :) Oct 17 11:46:18 Herrie|Laptop: I propose we stay on the same connman for the moment Oct 17 11:47:29 Tofe: Rocko offers 1.34 Oct 17 11:47:33 We're on 1.33 Oct 17 11:48:24 Changelog is at: https://01.org/connman/blogs/pflykt/2017/connman-1.34 Oct 17 11:49:44 Herrie|Laptop: there are minor fixes for bluetooth, but I don't anything necessary for now; and rocko isn't a good place to experiment yet, as it's less stable than pyro Oct 17 11:49:56 +see Oct 17 11:51:06 1.35 changes aren't that shocking it seems: https://01.org/connman/blogs/pflykt/2017/connman-1.35 Oct 17 11:51:30 Tofe: Well we can just bump connman Oct 17 11:51:39 Without rest of Rocko Oct 17 11:52:06 why not Oct 17 11:53:12 Seeing the number of fixes might be worth it Oct 17 11:53:19 Let me do a quick local build for connman to test Oct 17 11:53:21 And I'll PR it Oct 17 12:01:12 I've bumped oe-core a bit for wpa security fixes and few other changes, new builds are in queue now Oct 17 12:01:28 JaMa: Thnx I did the same already for testing this morning Oct 17 12:01:35 Good to see it got onto OE so quickly :) Oct 17 12:01:45 Now the long wait for router patches :P Oct 17 12:02:19 router isn't so important as the client devices Oct 17 12:02:35 lets see how long until it's on the TVs :) Oct 17 12:02:46 and e.g. roomba Oct 17 12:03:26 JaMa: I understood that both need patching, but clients are most critical Oct 17 12:03:38 And of course most Android devices won't receive an update as usual Oct 17 12:03:51 This is one of the few things Apple does right... Oct 17 12:04:24 because Apple has only handful of devices to take care of Oct 17 12:04:30 JaMa: True ;) Oct 17 12:04:46 Google is catching up finally with the way they structure things Oct 17 12:04:52 Anyway our home is Apple free :P Oct 17 12:05:06 our as well Oct 17 12:05:20 gtg, bbl Oct 17 12:14:05 Tofe: I can get both 1.34 and 1.35 to build Oct 17 12:14:11 With 1.35 we can drop 2 patches :P Oct 17 12:14:32 https://github.com/openembedded/openembedded-core/blob/rocko/meta/recipes-connectivity/connman/connman/CVE-2017-12865.patch and https://github.com/openembedded/openembedded-core/blob/rocko/meta/recipes-connectivity/connman/connman/0001-firewall-nftables-fix-build-with-libnftnl-1.0.7.patch Oct 17 12:49:33 Herrie|Laptop: but we have our own connman recipe already ? Oct 17 12:49:47 Tofe: So it's your call. Seeing 1.35 doesn't have much critical changes except for some CVE and minor things we could just as well do 1.35 right away and not be bothered for a while :) Oct 17 12:49:59 Tofe: No I'll take those from Rocko release and slightly adjust it Oct 17 12:50:14 And once Yocto gets to 1.35 JaMa will drop it again ;) Oct 17 12:50:17 That's how it works :) Oct 17 12:50:26 We have a .bbappend Oct 17 12:51:01 Currently version specific while it shouldn't be, so can address that by making it % instead of hardcoded version number Oct 17 12:52:07 I.e. we have connman_1.33.bbappend now, which should better be: connman_%.bbappend Oct 17 12:52:15 So we don't need to rename it every time connman is updated ;) Oct 17 12:55:04 The bbappend takes care of the patch for correct start order for systemd Oct 17 12:55:16 For the rest we use plain vanilla upstream connman Oct 17 12:55:27 Herrie|Laptop: let's go to 1.35; but if we run into issues with pyro, then we rollback and do the bluez5 migration with our current working version Oct 17 12:55:42 With upstream I mean Yocto ;) Oct 17 12:55:45 Not ConnMan itself Oct 17 13:09:26 https://github.com/libhybris/libhybris/pull/360 <-- nice ! Oct 17 13:11:43 Tofe: Yeah! Oct 17 13:19:54 MartinHov: New image for you to play with :P Oct 17 13:22:51 Herrie: I've just seen this. downloading .. Oct 17 13:25:33 Tofe: I noticed we can drop our libconnman-qt5 as well since we have it in meta-qt5 now. I'll test this locally first and will drop it (rebuilding qtbase :P) Oct 17 13:32:30 ok Oct 17 13:43:24 OK seems to build fine Oct 17 13:48:29 Tofe: https://github.com/webOS-ports/meta-webos-ports/commit/2a901a2b6c95e8e69eaea5747fb4484766d2fc18, https://github.com/webOS-ports/meta-webos-ports/commit/ea5a2903765b4c3814e4a80732089740c5485080 and https://github.com/webOS-ports/meta-webos-ports/commit/2c3f629bf442461efa3f1a3fc8a0f8bd1a0d63c7 Oct 17 13:49:52 I kicked off a Hammerhead build locally Oct 17 13:50:37 ok great, thanks Oct 17 13:51:08 So next step is to be able to see bluetooth devices from a connmanctl shell Oct 17 13:52:10 Tofe: Yeah Oct 17 13:52:26 Well we might need to hook up our BT properly with the new Halium kernel Oct 17 13:52:29 Due to the Ubuntu bits Oct 17 13:52:44 They have backported BT stack from 4.2 kernel in 3.4 kernel for Mako & Hammerhead Oct 17 13:54:19 I mean start it properly Oct 17 13:54:25 But that shouldn't be rocket science really Oct 17 13:54:33 I.e. we have these patches in our kernel now: https://wiki.ubuntu.com/Touch/BluetoothEnablement Oct 17 13:57:27 Herrie|Laptop: I'm not sure what they mean about the backports/driver part Oct 17 13:57:45 Tofe: Well they have basically backported the BlueZ BT stack from 4.2 kernel to 3.4 kernel Oct 17 13:58:00 Everything should work in general since it does for UBPorts/Halium Oct 17 13:58:42 ok Oct 17 13:59:25 Tofe: I mean we might need to tweak something like: https://github.com/shr-distribution/meta-smartphone/blob/da5e96d9e49ce3a8803f1b85b9d79a410946f53e/meta-lg/recipes-core/systemd/systemd-machine-units/hammerhead/hcismd.service Oct 17 13:59:34 And https://github.com/shr-distribution/meta-smartphone/blob/da5e96d9e49ce3a8803f1b85b9d79a410946f53e/meta-lg/recipes-core/systemd/systemd-machine-units/hammerhead/hci-smd-enable.sh Oct 17 13:59:44 To get BT up, but that shouldn't be too hard really Oct 17 14:00:47 yes it should be fine, I'll play with it tonight Oct 17 17:05:42 Tofe: My local build is almost ready Oct 17 17:05:54 Just another 22% of webengine Oct 17 17:06:06 mine is still running, not even yet at qtwebengine... Oct 17 17:27:35 Tofe: Well still need 15%, not very quick Oct 17 17:35:09 Herrie: where is the documentation for the appinfo.json file? Oct 17 17:44:10 oops, the fuse went off... Oct 17 18:19:04 Tofe: You got mail with specs Oct 17 18:19:12 Or you're looking for something else? Oct 17 18:19:16 yep, thanks! Oct 17 18:19:47 no that was fine; I was looking at how to organize things for the settings app and the various sub-apps Oct 17 18:28:47 OK build ready Oct 17 18:28:54 When WiFi works things should be OK right? Oct 17 18:29:19 right Oct 17 18:29:55 I did a clean Google 5.1 install and our image works ;) Oct 17 18:30:01 I mean in general with Halium bits Oct 17 18:30:05 So no CM 12.1 ;) Oct 17 18:30:20 DId that this morning Oct 17 18:30:37 That was on a to-do list Oct 17 18:30:38 ah, great idea! Oct 17 18:30:49 Since my Hammerhead needed a fresh start anyway decided to do that Oct 17 18:30:55 so we can now officially say it's fine :) Oct 17 18:30:58 And back to CWM instead of TWRP Oct 17 18:31:12 I like the adb sideload more compared to installing from SDCArd with TWRP Oct 17 18:31:30 Also TWRP was flaky for me at times Oct 17 19:01:33 Tofe: N% stuck @ Google logo :S Oct 17 19:01:56 Building TP now Oct 17 19:02:14 Doesn't seem to bootloop though :S Oct 17 19:02:36 Could also just be my flaky N5 Oct 17 19:39:43 Tofe, do you still need docs on appinfo.json? Oct 17 19:45:06 DougReeder: I sent some by email Oct 17 19:45:12 But if you have some more would be good Oct 17 19:45:29 I found some link on Google Books about webOS and from WebOS Internals Oct 17 19:45:32 + LG WebOS one Oct 17 19:45:37 But I know there were more Oct 17 20:02:40 docs? but we have the code! haha Oct 17 20:05:06 EricBlade1: LOL Oct 17 20:11:44 The page on webostv.developer.lge.com is not very useful for us. Oct 17 20:14:30 My computer is in the shop for a week, so I can't send samples that show Just Type integration, etc. Oct 17 20:15:04 Herrie: same here, my N5 doesn't boot completely. Android subsystem isn't even started. Oct 17 20:15:28 Tofe, which properties were you most interested in? Oct 17 20:15:53 DougReeder: I wanted to know if we can pass parameters to a program through appinfo Oct 17 20:16:40 Hrm, I don't think so. What's the use case? Oct 17 20:17:29 I'm looking at the alternatives to start the various "settings" sub-apps Oct 17 20:18:17 so far what I have is several appinfo.json (of course), with appIds like "org.webosports.app.settings.wifi", which all start the same qml app; the latter will determine what page to show based on the appId. Oct 17 20:18:17 Just Type would read certain fields, do its search, then call the app with launxh parameters, but that's not a general mechanism. Oct 17 20:19:30 Well, that's why webOS had separate apps for settings. Oct 17 20:20:33 DougReeder: I'm quite satisfied with the solution I have right now, so I'm not looking for appinfo fields anymore :) Oct 17 20:20:43 Herrie: reflashing helped, now it boots Oct 17 20:20:52 It would be possible to have stub apps that just launch another app with parameters, but you'll all recall how slow luanching YouTube on the Touchpad was. Oct 17 20:22:27 ah yes :) Oct 17 20:22:50 Ideally, launching an app would allow a path, as well as an app ID Oct 17 20:23:28 That's more aligned with the web platform. Oct 17 20:24:19 Tofe: My Tenderloin image flashed, rebooting Oct 17 20:25:43 I do appreciate you're working on that. Oct 17 20:27:13 DougReeder: :) Oct 17 20:27:18 s/you're/your/ Oct 17 20:28:30 DougReeder: I'd believe the code we have is a lot more straightforward and it should be less slow Oct 17 20:28:52 We're also moving to QML based Settings app which will mean no more plugins to load for BT and WiFi so should load a lot quicker Oct 17 20:32:17 TP made boot sound :P Oct 17 20:32:20 Let me try wifi Oct 17 20:34:04 Tofe: OK I'm missing topbar but that's something else Oct 17 20:34:16 I bumped the dbus a bit Oct 17 20:34:24 And now get module "org.nemomobile.dbus" is not installed Oct 17 20:34:29 Which is due it being renamed Oct 17 20:34:33 That should be an easy fix Oct 17 20:34:43 the nemo-dbus I mean Oct 17 20:36:40 ah, yes Oct 17 20:38:11 That's something I did locally Oct 17 20:38:15 You shouldn't have that Oct 17 20:38:24 nope Oct 17 20:39:07 I'll prepare some PR Oct 17 20:39:11 For once I have it fixed Oct 17 20:54:04 Herrie: I've managed to get a bluetooth device list on N5 Oct 17 20:55:10 Tofe :D Oct 17 20:55:20 That seems like it's not too much work ? Oct 17 20:55:29 it's ok :) Oct 17 20:56:07 what I did was: Oct 17 20:56:07 /usr/bin/hciattach ttyHS99 bcm43xx 4000000 flow sleep /persist/bluetooth/.bdaddr ; rfkill unblock bluetooth ; hciconfig hci0 up Oct 17 20:56:26 I also did " ln -s /system/vendor/firmware /etc/" previously, which I think helped a bit Oct 17 20:57:24 So we'd need something a bit like https://github.com/mer-hybris/droid-config-hammerhead/blob/master/sparse/lib/systemd/system/hciattach.service Oct 17 21:00:19 Tofe: OK I got the DBUS stuff working more or less. I have statusbar back Oct 17 21:00:38 Just have this: Oct 17 16:58:31 tenderloin luna-next[1993]: INFO: 16:58:31.694: file:///usr/palm/luna-next/shells/card/qml/Connectors/BluetoothService.qml:45:5: QML DBusInterface: QDBusError("org.freedesktop.DBus.Error.UnknownMethod", "Method \"DefaultAdapter\" with signature \"\" on interface \"org.bluez.Manager\" doesn't exist\n") Oct 17 21:00:47 Which I guess is BlueZ4->5 Oct 17 21:02:16 yep, exactly Oct 17 21:04:29 one annoying thing is that connman doesn't look very receptive to the bluetooth devices Oct 17 21:04:42 it can power it on&off, but that's mostly all about it Oct 17 21:08:02 I begin to wonder if it's supposed to do more or not... Oct 17 21:13:43 anyway, time for bed. Oct 17 21:15:28 Tofe: Well connman doesn't do that much Oct 17 21:15:42 Rest is mainly via dbus I think Oct 17 21:15:45 Anyway good night Oct 17 21:15:55 I'll prepare some PR's and will go to sleep too Oct 17 21:26:23 OK PR's are in, 3 pieces **** ENDING LOGGING AT Wed Oct 18 03:00:00 2017