**** BEGIN LOGGING AT Wed Jan 13 02:59:57 2021 Jan 13 07:43:38 Morning! Jan 13 07:44:15 Herrie: and can even be further simplified, as they also provide a native implementation which will work for recent androids (or maybe even the older ones) Jan 13 07:52:48 Tofe: yeah wasn't sure you saw it so just pasted it here for reference Jan 13 07:54:54 Herrie: iirc, nyx isn't supposed to use Qt, right? Jan 13 07:55:00 as it's lower level stuff Jan 13 07:56:19 and the vibrator is mainly used through LS2, i.e. through nyx, skipping Qt Jan 13 07:56:44 however, we could very well take their native implementation and put it into ours Jan 13 07:58:08 Yeah I don't think nyx works in Qt, nizovn might know Jan 13 07:58:13 speaking of which, isn't there already a non-hybris nyx vibrator module ? Jan 13 07:58:37 nizovn: ^ Jan 13 07:59:47 https://github.com/webOS-ports/nyx-modules/blob/webOS-ports/webOS-OSE/src/haptics_timedoutput/haptics.c here Jan 13 08:01:26 so we need to change things like https://github.com/webOS-ports/meta-webos-ports/blob/gatesgarth/meta-luneos/recipes-webos/nyx-modules/nyx-modules/rosy.cmake#L34 and disable the hybris haptic module Jan 13 08:03:18 Tofe: Ah yes Jan 13 08:03:32 So it could be something even more simple to fix? Jan 13 08:03:50 yes, we already have the code ! Jan 13 08:03:57 we'll need to make https://github.com/webOS-ports/nyx-modules-hybris/blob/master/CMakeLists.txt#L33 more flexible Jan 13 08:11:31 Tofe: Any thoughts on why my oFono doesn't like the RIL ? Jan 13 08:11:34 'Via binder Jan 13 08:12:26 Herrie: can you paste your .conf ? Jan 13 08:12:40 maybe there's a typo or something Jan 13 08:13:20 though "Unknown RIL transport: binder " would mean that it doesn't find the ril-binder plugin for some reason Jan 13 08:14:19 morning Jan 13 08:21:30 Hey JaMa ! long time no see Jan 13 08:21:57 We've been playing with Halium 9.0 these last few weeks Jan 13 09:21:30 JaMa: Morning! Jan 13 09:21:41 I remember you had issues with Tissot as well? Jan 13 09:22:03 I have issues with touchscreen, just cannot figure our how to fix it... Jan 13 09:22:10 Seems touch coordinates are off Jan 13 09:24:16 Tofe: Don't we need to add it in depends somewhere or in packageconfig? Jan 13 09:24:19 For the ril-binder? Jan 13 09:27:01 on it Jan 13 09:31:23 Herrie: done Jan 13 09:31:49 See :P Jan 13 09:31:55 "off", what do you mean ? offsetted ? Jan 13 09:32:06 Tofe: Yeah like wrong coordinates Jan 13 09:32:42 In such a way it's completely not possible to do anything... Jan 13 09:40:12 Even in TWRP Jan 13 09:40:28 Tried flashing factory 7.1.2 image, latest one from Xiaomi to no avail Jan 13 09:44:23 mmh weird... firmware issue ? Jan 13 09:47:03 Probably Jan 13 09:48:27 Seems so, but factory reset should solve that Jan 13 09:48:31 Which it didn Jan 13 09:48:32 't Jan 13 09:48:39 I recall JaMa also had some issues Jan 13 09:59:02 Tofe: I noticed that the boot of Android part seems a bit slow, but you noticed that also right? Jan 13 09:59:08 The wait-for-android stuff probably Jan 13 10:11:29 Herrie: wait-for-android probably doesn't work anymore Jan 13 10:11:58 actually it's pretty sure :) Jan 13 10:12:25 as we used to patch on the fly the anroid init.rc, and now it's read-only because it's system-as-root Jan 13 10:13:10 but we can probably change the shell to take benefit from the other way implemented in halium 9 + patches Jan 13 10:13:18 (through properties) Jan 13 10:13:58 so you're just experiencing a systemd timeout for the .sh Jan 13 10:14:18 just remove it from the android-system.service file Jan 13 10:14:32 Yeah I noticed they did some things in init now Jan 13 10:14:58 Also reboot takes very long, but that issue was there before too Jan 13 10:20:18 reboot is probably some process that's not responding to TERM signal Jan 13 10:23:19 Herrie: yes, I had the issues with android on tissot as well, in the logs it was complaining about the firmware version of the TS itself, don't remember the details, but IIRC I got it working only after reflashing older version and then going back to newer which finally updated the fw correctly, before it was stuck in some inconsistent state Jan 13 10:24:18 JaMa: Hmmz OK.. I tried oldest & newest stock but no luck for some reason Jan 13 10:24:23 Still have off offsets in TWRP Jan 13 10:29:32 in my case it looked like this: Jan 13 10:29:35 2019-03-21.log:16:32 <+JaMa> dmesg.tissot_images_7.12.19_7.1:[ 1.740509] ft5435_ts 3-0038: Firmware version = 10.0.0 Jan 13 10:29:38 2019-03-21.log:16:32 <+JaMa> dmesg.tissot_images_7.12.19_7.1:[ 1.740676] ft5435_ts 3-0038: Current firmware: 0x0a.0.0 Jan 13 10:29:41 2019-03-21.log:16:32 <+JaMa> dmesg.tissot_images_7.12.19_7.1:[ 1.740681] ft5435_ts 3-0038: New firmware: 0x10.0.0 Jan 13 10:29:44 2019-03-21.log:16:32 <+JaMa> dmesg.tissot_images_7.12.19_7.1:[ 12.450463] ft5435_ts 3-0038: Firmware version = 16.0.0 Jan 13 10:30:38 16:33 <+JaMa> future JaMa: bad TS fw is 0x0a, good one is 0x10 and 7.12.19_7.1 is what you need to flash Jan 13 10:38:51 JaMa: Thnx that's helpful Jan 13 10:40:26 [ 1.091069] ft5435_ts 3-0038: Firmware version = 10.0.0 Jan 13 10:40:26 [ 1.091211] [Fu]fw_vendor_id=0x3b Jan 13 10:40:27 [ 1.091215] upgrade,fts_fw_vendor_id=0x3b Jan 13 10:40:27 [ 1.091219] ft5435_fw_upgrade_by_array_data, suspended=0 Jan 13 10:40:27 [ 1.091225] ft5435_ts 3-0038: Current firmware: 0x0a.0.0 Jan 13 10:40:27 [ 1.091229] ft5435_ts 3-0038: New firmware: 0x0a.0.0 Jan 13 10:40:27 [ 1.091234] ft5435_ts 3-0038: Exiting fw upgrade... Jan 13 10:40:39 That's what I have Jan 13 10:40:52 In my TWRP dmesg Jan 13 10:42:05 JaMa: YOu don't happen to have that version laying around? Jan 13 10:42:59 7.12.19_7.1 I mean Jan 13 10:50:34 yes tissot_images_7.12.19_20171219.0000.00_7.1_d39fa89aaf.tgz Jan 13 10:50:53 https://androidfilehost.com/?fid=673791459329072901 Jan 13 10:52:33 Thnx Jan 13 10:52:44 md5 of my .tgz d39fa89aafcaaaa2203324313c964706 , if it cannot be downloaded from here or has different checksum let me know will upload it somewhere Jan 13 10:52:58 Well I guess it should be OK Jan 13 10:53:44 I tried 7.8.23_7.1 and latest 9.0 from Xiaomi without results Jan 13 10:53:47 So good to have this one Jan 13 10:54:04 Can get the Halium 9.0 to build for it as well, so can work with Tofe on the same target :P Jan 13 10:54:14 Easier v.s. Mido and Rosy at the same time Jan 13 10:54:22 Though they are pretty similar Jan 13 10:54:29 And we're almost at the same state Jan 13 10:56:26 Herrie: as long as we're not blocked, it's a bit more practical to have a halium build ready at home Jan 13 10:57:22 I still have two daemon (camera and time_daemon) spamming a bit my logs Jan 13 10:57:31 Yeah time_daemon here too Jan 13 10:57:34 and the firmware loading is sometimes crashing the phone Jan 13 10:58:02 I'm missing adsp firmware it seems Jan 13 10:58:07 Which gives me a lot of spam Jan 13 10:59:40 Sorry msadp that should be Jan 13 10:59:47 Jan 12 11:15:42 mido ueventd: firmware: could not find firmware for msadp Jan 13 11:00:21 I have /android/vendor/firmware_mnt/image/adsp.b00 Jan 13 11:01:05 Ah, I have wifi too -- I forgot to unmask the wifi module service :p Jan 13 11:01:14 Hhee Jan 13 11:01:17 Wifi is OK for me Jan 13 11:01:23 Status a bit flaky at times, but it connects Jan 13 11:01:26 We had similar on 7.1 Jan 13 11:01:35 In FirstUse, but it's merely cosmetics, it connects Jan 13 11:02:06 OK Tissot is back working Jan 13 11:02:14 JaMa: ^ Thanks :) Jan 13 11:02:37 mmh I don't have bluetooth though Jan 13 11:02:49 but that's fine for now. Sound is more important. Jan 13 11:03:11 Well mine scans & connects Jan 13 11:05:48 I think I found the sound change I talked about: "Thaodan: either use pulseaudio-modules-droid-glue+audioflingerglue OR use pulseaudio-modules-droid-hidl+audiosystem-passthrough" Jan 13 11:06:38 cool, let me crawl back to bed :) Jan 13 11:07:28 Herrie: for sound, I think we can rely on that https://github.com/mer-hybris/audiosystem-passthrough/blob/master/README.md Jan 13 11:11:20 JaMa: tired at noon ? or in different TZ ? Jan 13 11:14:54 Tofe: Yeah seems decent Jan 13 11:25:26 Seeing Mer is being used on "Production" devices, I'm happy to piggyback on their work :P Jan 13 11:41:24 Tofe: still being sick a bit and sleepy a lot Jan 13 13:04:43 Tofe: Since my Tissot is up and running, will try a quick build for it Jan 13 13:05:16 :) ok Jan 13 13:12:07 Should be easy now hopefully since we're using the same common ;) Jan 13 13:14:10 Interesting would be the 4.9 kernel Jan 13 13:14:17 That should make Anbox easier as well ;) Jan 13 13:32:54 Halium build OK, no vendor.img but a large system.img it seems Jan 13 13:38:32 system.img contains /vendor then ? Jan 13 13:49:19 Didn't check yet Jan 13 13:49:24 Building image now, will flash and see Jan 13 13:55:28 looks like lineageos for tissot isn't treble-compatible, they don't separate vendor.img Jan 13 13:55:44 maybe because it's a A/B device, and there's only one "cust" partition Jan 13 14:04:55 Yes LOS isn't Treble it seems Jan 13 14:05:05 Hmmzm black screen, no ADB Jan 13 14:05:24 Though also no reboot Jan 13 14:05:27 I'll wait a bit Jan 13 14:07:30 Could be I need to tweak my defconfig a bit still Jan 13 14:11:47 Ah I was using the LuciferKerne;l Jan 13 14:12:01 Not helping ;) Jan 13 14:15:24 OK found an issue... Seems my fork was still using 3.18 kernel not 4.9 which device tree specifies 4.9 for Tissot Jan 13 14:15:29 So they got out of sync somewhere Jan 13 14:15:32 Retry :P Jan 13 14:24:55 hoepfully we're getting good at it Jan 13 14:31:25 Tofe: Well if this kernel check script has the right flags it's very quick :P Jan 13 14:31:44 100's of defconfig settings updated in a second :p Jan 13 14:32:37 315 changes in LOS defconfig :P Jan 13 14:41:59 Kernel doesn't like to compile, so cherry picking a few fixes from Lucifer Jan 13 15:06:37 Too many changes it seems Jan 13 15:06:50 Let's try luciferkenel with standard tissot_defconfig instead of the tweaked one Jan 13 15:52:10 Hmmz failing on do_configure :S Jan 13 15:52:17 Taking 15 mins and then failing Jan 13 15:52:20 Maybe just need to reboot Jan 13 16:05:58 Nope :S Jan 13 16:06:24 mmh Jan 13 16:06:59 Log from do_configure: 101GB :S Jan 13 16:07:01 WTF Jan 13 16:07:44 Per run Jan 13 16:07:48 Let me do cleanall Jan 13 16:07:51 That's weird Jan 13 16:08:23 ahah, wow Jan 13 16:08:27 Nope Jan 13 16:08:31 1GB within seconds :S Jan 13 16:08:49 what does it contain ? must be the same thing over and over ? Jan 13 16:09:33 Too big to check :P Jan 13 16:09:43 Probably some loop somehow Jan 13 16:09:46 with "less", "more" or even vim Jan 13 16:14:19 https://imgur.com/a/viK88au Jan 13 16:14:23 Seems the bitmask stuff Jan 13 16:22:55 must be a bug in the yocto script Jan 13 16:26:21 Probably somehow Jan 13 16:26:23 Weird Jan 13 16:26:27 Just with this defconfig... Jan 13 16:26:33 Let me try our 7.1 defconfig.... Jan 13 16:27:09 Though it's 3.18 kernel Jan 13 16:27:12 Probably not a good idea Jan 13 16:29:39 Herrie: I suggest you remove any occurrence of CONFIG_LITTLE_CPU_MASK and retry Jan 13 16:33:08 Well I took LOS defconfig with changes now Jan 13 16:33:12 For Halium Jan 13 16:33:15 And see Jan 13 16:33:21 If thta doesn't work will try that Jan 13 16:42:49 ok, heading back home... Jan 13 16:43:29 ... ok, done Jan 13 16:55:50 Hmmz same, weird stuff Jan 13 17:04:18 Herrie: I... I just heard a sound ?! and I didn't touch anything regarding the pulseaudio studd Jan 13 17:04:20 stuff Jan 13 17:04:40 I've just modified wait-for-android to make it work with the new init Jan 13 17:07:51 Tofe: I had sound from the start on Mido Jan 13 17:08:35 Tofe: After I added these 5 config values (taken from Lucifer defconfig) it at least starts to compile again https://github.com/Herrie82/LuciferKernel/commit/b4a08a4dbbb8b7386049d212bfbca267563105be Jan 13 17:10:27 ok, quite weird behavior Jan 13 17:10:30 Yup Jan 13 17:10:37 Fails with some redefinitions now :S Jan 13 17:12:26 I've pushed the latest stuff to meta-smartphone Jan 13 17:25:32 Tofe: nice Jan 13 17:26:10 yes, the waiting script looks good now Jan 13 17:26:38 could the persist mount explain your firmware issues ?... Jan 13 17:26:48 I think you already had it Jan 13 17:32:20 mmh I have the same error as this one: https://review.lineageos.org/c/LineageOS/android_device_motorola_griffin/+/241011 Jan 13 17:33:31 looking at the pointed change in Android https://android.googlesource.com/platform/frameworks/native/+/47f876b74be0a2d6d417f5ff385f85d835a97fe9%5E%21/#F4 I wonder if this error is a consequence of having added BOARD_VNDK_VERSION and/or BOARD_VNDK_RUNTIME_DISABLE Jan 13 18:08:06 Herrie: https://github.com/webOS-ports/nyx-modules-hybris/pull/6/commits/8fc4296392cf2b5a34345ab70718e919a3717d44 and https://github.com/Tofee/meta-webos-ports/commit/2a02246a2e850cacbacbaaed4dc72ab72a155504 should work; I've migrated only rosy.cmake Jan 13 19:13:00 Tofe: Nice for the fixes, I'll check Jan 13 19:13:08 My Mido didn't build with the VNDK flags Jan 13 19:13:36 Since Mido/Tissot/Rosy share the same common, it's probably in my device tree somewhere Jan 13 19:14:56 Tofe: PR https://github.com/webOS-ports/nyx-modules-hybris/pull/6/files still includes the commit from yesterday. Is that still needed? Jan 13 19:16:03 Herrie: well, it's pretty sure it'll crash anyway on Halium 9+, so... Jan 13 19:16:21 Ah OK Jan 13 19:16:24 I thought you fixed it? Jan 13 19:16:38 no, I deactivated it :) Jan 13 19:16:42 with this commit Jan 13 19:17:20 Ah OK Jan 13 19:17:21 but in the end, maybe it's better to let it crash ? Jan 13 19:17:32 so that we don't search why nothing vibrates Jan 13 19:17:36 I don't know... Jan 13 19:17:56 As long as it does it gracefully and not SEGFAULTS ;) Jan 13 19:18:43 I'll leave the commit as-is for now Jan 13 19:19:00 OK Jan 13 19:19:10 So vibration works or doesn't now? Jan 13 19:19:13 Not clear to me Jan 13 19:23:04 Just started a build ;) Jan 13 19:23:17 I didn't rebuild yet, but with my commit, it should work *on rosy* Jan 13 19:25:25 Yeah I kniw Jan 13 19:25:32 I did the same change but for Mido now ;) Jan 13 19:25:56 Head was tortured by 3 running and shouting kids today, so brain is a bit boiled LOL Jan 13 19:29:05 at least, you can relax and look at those beautiful stairs Jan 13 19:29:21 Yup ;) Jan 13 19:29:28 Which reminds me I should do some more painting LOL Jan 13 19:29:31 But it's final bits now Jan 13 19:29:34 And a lot less Jan 13 19:29:46 Touch up of damages on wall etc Jan 13 19:29:51 So a quick roller does the trick Jan 13 19:29:55 Spots here and there Jan 13 19:30:02 And some door frames so all small stuff :) Jan 13 19:30:18 And a few wooden panels, but it's altogether < 1hr work I guess Jan 13 19:30:32 So will first try a new build and have some tea Jan 13 19:31:34 I'm rebuilding halium from scratch, but without the VNDK stuff, to see if it still work as well as before -- or better Jan 13 19:32:02 Might be good to do a file compare of the 2 images Jan 13 19:32:08 See what's different inside Jan 13 19:33:45 BTW I love how quickly images install on the Xiaomi devices :D Jan 13 19:35:56 yes, that's quite nice ! Jan 13 19:36:58 Hmmz mine reboots :S Jan 13 19:38:43 And now boots :S Jan 13 19:39:11 And now crashes in firstuse Jan 13 19:39:13 Weird Jan 13 19:39:47 Maybe it didn't flash properly somehow Jan 13 19:48:02 2nd flash it's behaving better Jan 13 19:48:08 No vibration though in Testr Jan 13 20:23:55 ah Jan 13 20:24:15 OK testing some changes in the common for time_daemon and adsprpcd Jan 13 20:24:25 I.e.: https://github.com/Herrie82/android_device_xiaomi_msm8953-common/commits/halium-9.0 Jan 13 20:28:45 Tofe: I get "com.palm.vibrate" is not available it seems Jan 13 20:29:23 At least in UI Jan 13 20:30:35 In /var/log/messages: 2021-01-13T19:50:57.960607Z [514.801420113] user.warning ls-hubd [] ls-hubd LSHUB_NO_SERVICE {} _LSHubSendQueryNameReplyMessage: Failed Connecting to Service err_code: -3, service_name: "com.palm.vibrate", unique_name: "(null)", static, fd -1 Jan 13 20:31:27 Tofe: Ah Jan 13 20:31:38 I need to revert my "fix" in luna-sysmgr :P Jan 13 20:33:12 Where I disabled the whole castle haptics bits :P Jan 13 20:33:42 That's quick enough to test Jan 13 20:36:57 OK installed new IPK, rebooting Jan 13 20:39:19 Ok now it works for 1/3 of the tests Jan 13 20:39:40 "500" 0.2S doesn't work, "1000" 0.4S also not, but "300" 0.6S works Jan 13 20:40:45 ok, well, it's better than nothing I guess Jan 13 20:41:47 And journal for all 3 calls: https://paste.ubuntu.com/p/G4c8MqG5Df/ Jan 13 20:41:53 Tofe: Yeah and it works somewhat Jan 13 20:41:56 the native nyx code probably needs some attention Jan 13 20:44:41 I've rebuilt my halium, now let's see if it's better or worse Jan 13 20:48:01 My Halium also ready Jan 13 20:48:05 Redoing image and will test too Jan 13 20:48:10 See if I got rid of the logspam :P Jan 13 20:48:12 it boots as well as before :) Jan 13 20:48:28 In both journalctl and logcat Jan 13 20:48:36 That would help to debug stuff a bit Jan 13 20:53:55 looks like I'm missing some things: libts_face_beautify_hal.so , libtime_genoff.so , libsdm-disp-vndapis.so Jan 13 20:54:38 face_beautify is OK to miss Jan 13 20:54:44 It's one of the things we don't build Jan 13 20:54:54 Because it requires Java bits Jan 13 20:55:02 At least that's my initial thought with it Jan 13 20:55:42 well, it's present in lineage's vendor bits Jan 13 20:55:55 and require by some camera service Jan 13 20:55:59 required* Jan 13 20:56:18 I think Snap uses it which we removed: https://github.com/Herrie82/android_device_xiaomi_msm8953-common/commit/d074102d607bef455a8f3a8f0cc28b37938097a0 Jan 13 20:56:22 If memory serves me well Jan 13 20:56:52 I'll just add the library itself Jan 13 20:57:12 Anyway it shouldn't be to hard to add if needed Jan 13 20:57:33 sure Jan 13 20:58:12 Flashing new image here Jan 13 20:59:56 ah, it's just a proprietary file Jan 13 21:06:39 Herrie: when a proprietary file is missing, what's the best fix ? add it to the device-vendor.mk file ? Jan 13 21:07:38 there's this proprietary-files.txt, and I never know which one is the right source Jan 13 21:08:49 Well it's a bit tricky Jan 13 21:09:04 Since the Halium setup script does "magic" ;) Jan 13 21:09:14 I.e. is will regenerate based upon the .txt Jan 13 21:09:45 ok, so it's the .txt that is important Jan 13 21:09:59 https://github.com/Halium/halium-devices/blob/halium-7.1/setup#L77 Jan 13 21:10:22 If my mind serves me well, it will take the .txt and then regenerate the .mk ;) Jan 13 21:11:35 But sometimes you need to change things in both... Jan 13 21:11:49 It's always hit & miss with me too Jan 13 21:12:01 With poor device trees it's usually problematic Jan 13 21:12:05 well I'll never be able to push the .mk Jan 13 21:12:10 The LOS ones are OK usually Jan 13 21:14:21 My adsprpc spam is gone ;) Jan 13 21:14:33 so maybe it was the persist mount ? Jan 13 21:15:16 Tofe: No I disabled it in the init.rc ;) Jan 13 21:17:38 all mounts are disabled with the Halium patches Jan 13 21:18:02 oh you mean adsprpc Jan 13 21:18:53 Yes Jan 13 21:19:05 That one was spamming my journalctl & logcat Jan 13 21:19:10 Logcat is nice and clean now: https://paste.ubuntu.com/p/5dGVSJ5wVR/ Jan 13 21:19:18 Killed time_daemon as well ;) Jan 13 21:19:50 good idea :) Jan 13 21:22:42 09-20 10:16:17.409 145 145 E QSEECOMD: : Init dlopen(libspl.so, RLTD_NOW) is failed.... dlopen failed: library "libspl.so" not found Jan 13 21:22:51 Still not sure what Qseecomd does exactly Jan 13 21:22:56 I think I killed it in 7.1 Jan 13 21:24:06 it's not just libspl.so that's missing in vendor? Jan 13 21:25:02 Tofe: Yeah it probably is Jan 13 21:25:23 Also I have this: 09-20 10:16:17.640 156 156 I LocSvc_xtra2: dlopen for libqdma_file_agent.so failed, error = dlopen failed: library "libqdma_file_agent.so" not found Jan 13 21:26:31 Seems it's not there for 8953, I do see it for sdm845 and msm8998 :S Jan 13 21:26:40 libspl.so that is Jan 13 21:28:18 Ah here's some description of what qseecom does: https://github.com/Halium/android_kernel_fairphone_msm8974/blob/8772974506c3b9909d0fb28f85f98a5fc06b67b5/Documentation/devicetree/bindings/qseecom/qseecom.txt Jan 13 21:35:23 I don't really see why we don't copy all the vendor/lib and vendor/lib64 content Jan 13 22:10:04 Tofe: Yeah might be a good thing to do Jan 13 22:10:20 Probably just being lazy :P Jan 13 22:10:34 Because it's generated from the proprietary-files.txt and you'd need to update it completely Jan 13 22:16:46 ok now the only spam left is time_daemon Jan 13 23:34:45 Tofe: Well I killed that one at my end Jan 13 23:34:51 When you would re-build it's gone ;) Jan 13 23:35:03 Since it's in 8953-common **** ENDING LOGGING AT Thu Jan 14 02:59:57 2021