**** BEGIN LOGGING AT Wed Feb 14 03:00:02 2018 Feb 14 06:18:26 Tofe: Got test_hwcomposer to work! Feb 14 07:58:08 Herrie: oh great ! What was the missing point ? Feb 14 08:11:00 Tofe: I got the bootloop back due to firmware not being fixed in new image yet, but it was the android_property_service PR I pointed at yesterday Feb 14 08:44:00 I still don't have luna-next working though... Any clues? Feb 14 08:56:47 Let me first push firmware back Feb 14 08:56:52 TO get rid of bootloop Feb 14 08:59:12 Tofe: I still needed to manually do export EGL_PLATFORM=hwcomposer in order to get test_hwcomposer to work Feb 14 08:59:21 that's correct Feb 14 08:59:31 that's how it is supposed to work Feb 14 08:59:43 Herrie|Laptop: re luna-next, do you have logs? Feb 14 09:00:55 Herrie|Laptop: for luna-next, keep in mind you'll need to rebuild the qpa recipe with the correct QTI_* cflags Feb 14 09:03:13 Tofe: Ah yes Feb 14 09:03:36 bshah: Still have bootloop due to wcnss after placing files in /etc/firmware Feb 14 09:03:42 So retracting my steps from last week Feb 14 09:04:00 hm Feb 14 09:04:15 I find it curious that it still bootloops after that kernel patch Feb 14 09:04:18 :/ Feb 14 09:04:25 bshah: It was my firmware bits Feb 14 09:04:34 I was playing around last week for that Feb 14 09:04:38 And did some things Feb 14 09:04:43 Could be I forgot a step now Feb 14 09:05:11 Herrie|Laptop: persist partiton? Feb 14 09:08:00 It would help if I would put stuff in lib/firmware instead of etc/firmware I guess Feb 14 09:10:46 Seems it doesn't bootloop now at least :P Feb 14 09:11:56 bshah: test_hwcomposer gives me a white rectangle artifact after a while on top right. Is this "normal" ? Feb 14 09:12:09 probably not Feb 14 09:12:24 Herrie|Laptop: --enable-adreno-quirks in libhybris please Feb 14 09:12:47 bshah: OK let me try Feb 14 09:17:48 Tofe: You mean I need this one? https://github.com/webOS-ports/meta-webos-ports/blob/pyro/meta-luneos/recipes-qt/qt5/qt5-qpa-hwcomposer-plugin/0002-Add-QCOM_BSP-define-switch.patch Feb 14 09:17:58 yeah Feb 14 09:18:09 with QTI_BSP as well included Feb 14 09:21:47 Would be good when GitHub would show search results in forks :P Feb 14 09:23:15 bshah: The --enable-adreno-quirks didn't do the trick here Feb 14 09:23:22 :-( Feb 14 09:24:09 if you strace hwcomposer test... do you see any messagees about it running out of file descripters eg? Feb 14 09:24:28 (when flickering or rectangle artifact is shown that is..) Feb 14 09:25:47 Herrie|Laptop: This patch was made for tenderloin, and only activates QCOM_BSP; you'll need QTI_BSP and so on, exactly like in the libhybris recipe Feb 14 09:26:03 bshah: Bad file descriptor I see a number of times Feb 14 09:26:15 https://bpaste.net/ Feb 14 09:26:25 Oops https://bpaste.net/show/4d3d699d9f20 Feb 14 09:26:25 wrong paste ^ Feb 14 09:29:16 hm possibly that is not --enable-adreno-quirks thingi Feb 14 09:29:54 Herrie|Laptop: see: https://github.com/libhybris/libhybris/issues/352 Feb 14 09:30:44 bshah: That makes sense Feb 14 09:31:21 I guess I can try that Feb 14 09:32:44 bshah: Might be good to introduce another flag for libhybris for this? Feb 14 09:32:55 Seeing it can take forever to sort upstream and trickle down? Feb 14 09:33:06 maybe dunno.. well first let's verify if it is same issue Feb 14 09:33:25 Yeah Feb 14 09:33:27 Doing that now Feb 14 09:49:23 bshah: With that change the spiral doesn't spin and lock up Feb 14 09:49:26 So does strace Feb 14 09:49:59 Then again, the code snippet that krnlyng pasted differed quite a bit from my libhyrbis code Feb 14 09:50:04 So could be I patched it wrongly Feb 14 09:50:37 I.e. I didn't have _hybris_hook_my_printf and also no #ifdef WANT_INITIALIZE_BIONIC in my hook.c from upstream Feb 14 09:51:06 Did have static struct _hook hooks_common in there, so simply pasted the added lines there, but could be I need more work there Feb 14 09:51:23 I.e. this is what I did: https://github.com/Herrie82/libhybris/commit/1d6b16dc194078c49b50c3721ce80d5c26d2ff52 Feb 14 10:36:03 Tofe: I'm inclined to drop the BSP patch for tenderloin in favor of https://github.com/Herrie82/qt5-qpa-hwcomposer-plugin/commit/5c048c23223abb9c10b7b1480dcd6e8b74b9c560 Feb 14 10:36:45 And then using https://github.com/webOS-ports/meta-webos-ports/blob/pyro/meta-luneos/recipes-luneos/webos-keyboard/webos-keyboard.bb#L32 Feb 14 10:36:52 with _append_devicename Feb 14 10:36:56 How does that sound? Feb 14 10:37:01 Looks like a more generic approach to me? Feb 14 10:47:04 bshah/Tofe: This is what I get when I grep around: https://bpaste.net/show/9fc2c3be28c2 Feb 14 10:47:28 So that would mean I should do QCOM_BSP and QCOM_HARDWARE? And not QTI_BSP? Feb 14 10:47:52 If I understood correctly QTI_BSP replaced QCOM_BSP that existed previously? Feb 14 10:48:22 However there are targets that still use QCOM_BSP? Feb 14 10:49:59 I think some code does yeah Feb 14 10:52:22 Well I guess I could define all 3 Feb 14 10:52:29 Not sure that makes a difference Feb 14 10:55:16 Doesn't seem to make a difference if I use QCOM_BSP or QTI_BSP for test_hwcomposer Feb 14 10:56:12 Checking now for qt5-qpa-hwcomposer-plugin Feb 14 10:56:23 bshah: FYI strace on luna-next: https://bpaste.net/show/577b6f75b74e Feb 14 11:05:38 Hmmz no luck with qt5-qpa-hwcomposer it seems Feb 14 11:06:45 New strace: https://bpaste.net/show/ab7f7ecbfdab Feb 14 11:38:21 OK some more clue as to why the UI doesn't come up: ERROR: Caught a segmentation fault while loading plugin file: /usr/lib/gstreamer-1.0/libgstlibav.so Feb 14 11:56:17 Herrie|Laptop: pulseaudio-droid-module also needs this kind of define Feb 14 11:56:32 Tofe: I thought I had that Feb 14 11:56:33 Let me check Feb 14 11:57:02 Herrie|Laptop: as for your proposal, well, why not Feb 14 11:58:23 Tofe: Well we shouldn't be the only ones needing this I guess? Feb 14 11:58:30 SFOS would also need it at some point Feb 14 12:24:58 Tofe: Well I do, but PA still not happy Feb 14 12:25:44 https://bpaste.net/show/eef965faa61e Feb 14 12:32:27 well, not sure then... Feb 14 12:35:55 Tofe: Well PA is a bit of a black box at time Feb 14 12:35:57 +s Feb 14 12:36:08 I guess that can cause the gstreamer to segfault :P Feb 14 12:36:38 For mako we had some alsa-lib configuration: https://github.com/webOS-ports/meta-webos-ports/blob/pyro/meta-luneos/recipes-multimedia/alsa/alsa-lib/0002-Add-UCM-configuration-for-Nexus-4-Mako.patch Feb 14 12:36:42 Not sure I might need something similar Feb 14 12:37:01 I'll browse a bit around on halium mer-hybris etc to see Feb 14 12:37:30 Herrie|Laptop: I remember we also patched our PA webos config to disable alsa completly Feb 14 12:38:09 Tofe: Ah could be Feb 14 12:50:30 Tofe: We did that for Mako yes Feb 14 12:50:35 I guess I could try the same here? Feb 14 12:51:04 And for Tenderloin but not for Hammerhead it seems :S Feb 14 12:53:52 It doesn't hurt to try I guess Feb 14 12:59:19 Log seems better now Feb 14 12:59:26 paplay allows me to play .wav Feb 14 12:59:34 So sound seems to work through PA then? Feb 14 13:03:27 yep Feb 14 13:03:28 good ! Feb 14 13:03:47 Still same crash in luna-next though :S Feb 14 13:03:53 Herrie|Laptop: yes we could do the same patch for all libhybris targets I think Feb 14 13:06:18 Tofe: OK so we'd need to test it for Hammerhead... Feb 14 13:06:35 The environment.conf seems fine. Same values as the mer guys: https://github.com/piggz/droid-config-mido/blob/master/sparse/var/lib/environment/compositor/droid-hal-device.conf Feb 14 13:06:57 https://github.com/webOS-ports/meta-webos-ports/blob/pyro/meta-luneui/recipes-luneui/luna-next/luna-next-conf/mido/environment.conf Feb 14 13:07:02 So it seems to be gstreamer somehow Feb 14 13:13:46 Do we have anything related to libhybris in gstreamer ? Feb 14 13:21:36 Let me check Feb 14 13:21:42 Tofe: I think we could drop: https://github.com/webOS-ports/meta-webos-ports/blob/herrie/qt5qpa/meta-luneos/recipes-qt/qt5/qt5-qpa-hwcomposer-plugin/0002-Fix-4.4.2-hwcomposer-build.patch ? Feb 14 13:22:37 Seems to be for 4.4 specifically? Feb 14 13:31:24 Tofe: If I read https://github.com/mer-hybris/pulseaudio-modules-droid/blob/d53995823d335a06a25b98d9a7ecd25f06afbcea/src/common/droid-util-audio.h correctly, we'd only need to define QCOM_BSP? QCOM_DIRECTTRACK doesn't seem to do anything. Or we could define QCOM_HARDWARE directly I guess Feb 14 13:31:42 QTI_BSP doesn't seem to do anything for pulseaudio-modules-droid Feb 14 13:39:00 Tofe: Seems we don't do anything gstreamer ourselves, but qtmultimedia used by camera and luna-next depends on it Feb 14 13:43:43 Herrie|Laptop: I think the safest way to handle the android headers is that whenever they are used, we define the same things as in Android for that target. Feb 14 13:44:17 Tofe: OK so everywhere where we have virtual/android ? Feb 14 13:44:25 android-headers Feb 14 13:44:55 Yeah Feb 14 13:45:57 doid-util-audio.h includes hardware/audio.h, which maybe includes other things, and looking into each one to check if there is an #ifdef or not is tedious; it's far simpler to just have the same build environment as during the Halium build Feb 14 13:46:05 libhybris, pulseaudio-modules-droid, qt5-qpa-hwcomposer-plugin, qtscenegraph-adaptation, qtsensors-sensorfw-plugin, sensorfw and nyx-modules-hybris based on grep Feb 14 13:46:22 ok, yes, looks correct Feb 14 13:47:08 you'll probably already find tenderloin patches for these Feb 14 13:47:14 Tofe: ehm nope Feb 14 13:47:36 oh? Feb 14 13:47:54 no QCOM_BSP and QCOM_DIRECTTRACK ? Feb 14 13:53:13 Tofe for Tenderloin we have the QCOM_BSP for qt5-qpa-hwcomposer-plugin and QCOM_DIRECTTRACK and QCOM_HARDWARE for pulse-audio-modules-droid Feb 14 13:53:23 We don't have anything in the other recipes Feb 14 13:53:44 Then again the 5.1 build for Tenderloin isn't a stable as the 4.4 used to be Feb 14 13:53:49 That could be explained by this :P Feb 14 13:54:11 Herrie|Laptop: maybe, or when I began working I got a bit lazy... Feb 14 13:54:17 s/I/it/ Feb 14 13:54:54 Tofe: Also possible Feb 14 13:55:07 But you suggest to add these flags to all recipes? Feb 14 14:10:20 Herrie|Laptop: do you think it's a bit too much? Feb 14 14:10:40 Tofe: You ask me :P ? Feb 14 14:10:46 I've got no clue whatsoever Feb 14 14:14:14 I'd say, yes, we should include it in these recipes. Though I'd like to find a better way, like putting it directly in android-headers somehow Feb 14 14:16:54 To me it seems to make sense.. Whenever I add these flags things seem to start magically working :P Feb 14 14:17:43 bshah: Are you aware of QCOM_DIRECTTRACK? From what I can tell it seems to be mainly 8960 chips (like our good old Tenderloin) and not something for recent targets Feb 14 14:17:54 QCOM_BSP and QTI_BSP seem to be interchangable? Feb 14 14:26:28 Herrie|Laptop: QTI_BSP doesn't exist for the tenderloin build Feb 14 14:26:54 Tofe: OK. QCOM_BSP does? Feb 14 14:26:59 yup Feb 14 14:27:19 And if you grep the DIRECTTRACK? Feb 14 14:30:28 I didn't grep, I say that from memories :p DIRECTTRACK does exist too Feb 14 14:41:58 Tofe: Seems you might be right: https://github.com/mer-hybris/audioflingerglue/blob/master/services/audioflinger_5_1_0.h#L75 Feb 14 14:42:05 Seems to be there for 5.1, not for 7.1 anymore Feb 14 14:48:11 QCOM_DIRECTTRACK seems audio only though Feb 14 15:46:58 bshah: You have any idea how I can get test_sensors to find my sensors? Feb 14 15:47:18 see if sensorservice is running? Feb 14 15:47:25 https://bpaste.net/show/3e0d4bf15f4f Feb 14 15:49:46 bshah: In logcat or the sensorfw one? Feb 14 15:50:06 in android side Feb 14 15:51:01 slim_daemon: [NDK] bindNDKSensors: Sensor server is unavailable. Feb 14 15:51:15 no I mean Feb 14 15:51:17 02-12 08:54:00.307 0 3053 W qti_sensors_hal: sensors_get_sensors_list: handle 17 is not registered! Feb 14 15:51:21 is sensorservice process is running? Feb 14 15:52:14 How I figure that out? Feb 14 15:52:37 ps? :P Feb 14 15:56:04 I guess I need some params there because it only returns very little info... Feb 14 15:56:14 https://bpaste.net/show/b1eb0c57c358 Feb 14 15:56:30 ps -ef Feb 14 15:56:39 ps -ef | grep sensorservice Feb 14 15:59:03 root 10861 7732 0 09:11 pts/2 00:00:00 grep sensorservice Feb 14 15:59:14 okay Feb 14 16:00:50 Herrie|Laptop: please add followig in system/core/rootdir/init.rc ; https://ptpb.pw/QQG- Feb 14 16:03:11 Does it matter where? Feb 14 16:03:36 not really no Feb 14 16:04:05 I just have it at end Feb 14 16:04:49 OK Feb 14 16:04:56 Any reason why this is not upstream yet? Feb 14 16:04:59 Or it's device specific? Feb 14 16:09:16 Seems it's in the 5.1 branch but not in 7.1 one yet? Feb 14 16:56:12 bshah: That partially worked.... I.e. It seems it's trying to start it but gets Feb 12 08:53:52 mido init: cannot find '/system/bin/sensorservice.disabled' (No such file or directory), disabling 'sensorservice' Feb 14 16:56:23 I can manually start it and it seems to run then Feb 14 16:56:40 /system/bin/sensorservice.disabled .. o.o Feb 14 16:56:51 But test_sensors still the same output Feb 14 16:56:55 Any suggestions? Feb 14 16:56:55 that looks wrong patch in initrc? Feb 14 16:57:43 I'm grepping around a bit now ;) Feb 14 16:58:00 In my halium-luneos-7.1 folder to see where that comes from Feb 14 17:05:15 grep doesn't find any sensorservice.disabled in my halium dir :P Feb 14 17:07:37 OK found the culprit Feb 14 17:08:48 Seems to come from https://github.com/shr-distribution/meta-smartphone/blob/pyro/meta-android/recipes-core/android-system/android-system/20-remove-services#L6 Feb 14 17:10:07 I guess I need to have a look at this with Tofe Feb 14 17:10:12 Seems we need some cleanup of bits Feb 14 17:42:03 Herrie: ah, too bad I didn't look at your discussion earlier, I could have pointed to that lxc patch right away Feb 14 17:42:42 For the last two, we might want to remove the patching Feb 14 17:43:03 now that we use a Halium system/core, it's not so much ubuntu oriented Feb 14 18:01:38 Tofe: ok will try that. We need the sensorservice from Android in general right? Feb 14 18:02:03 well, it seems so... it worked well until now, but maybe we were lucky Feb 14 18:03:08 Tofe: Do sensors work? Not 100% sure Feb 14 18:03:20 Recall we had some issues Feb 14 18:03:50 rotation is a sensor Feb 14 18:10:13 Tofe is armhf = aarch64*n Feb 14 18:11:09 pmos has issues with luna-next on armhf Feb 14 18:15:15 i know nothing about libhybris, but probably we don't need sensorservice in android, as sensorfw/libhybris uses libhardware.so directly Feb 14 18:16:49 Herrie: I didn't understand the question... was is a question ? Feb 14 18:17:37 nizovn: it could be the android side does some initialization, though Feb 14 18:19:16 Herrie: our builds are all armhf, since the hardware supports it (i.e. there is a FPU). Aarch64 is no exception here. Feb 14 18:41:58 Tofe: ok Feb 14 18:52:24 I guess should run test_sensors on other targets Feb 14 19:04:03 Tofe: Was just wondering if their armhf issue was related to my gstreamer issue somehow Feb 14 19:04:06 But seems it's not Feb 14 19:07:05 Tofe: Can you see if test_sensors works for you on N4/N5? Feb 14 19:07:27 My N5 doesn't work with adb it seems Feb 14 19:11:03 ah hum I won't be much available tonight :) big diner to prepare and so on Feb 14 19:12:37 Tofe: No rush Feb 14 19:13:05 Lazy sushi here, some champagne and other things :) **** ENDING LOGGING AT Thu Feb 15 03:00:01 2018