**** BEGIN LOGGING AT Thu Jan 29 03:00:00 2015 Jan 29 09:07:22 Hello .... Got some questions on the HAL layer for the LED-controller. Jan 29 09:10:12 was trying to get the notification LED to blink on the Nexus 4 device. The nyx layer has the flashing mode set to LIGHT_FLASH_HARDWARE Jan 29 09:10:40 but the HAL layer ignores it, because it expects FLASH_TIMED for the blinking to work. .... Jan 29 09:10:47 djichtys: morning Jan 29 09:11:15 Cage1___: I noticed a successfully sent SMS remains yellow and not green like you said? Jan 29 09:11:30 Probably something small to fix? Jan 29 09:11:42 yes, prob just need to bind the status to class. Jan 29 09:11:49 djichthys: I guess you need morphis for that :P Jan 29 09:12:03 would it be preferable to change the Nexus 4 HAL layer to add support for LIGHT_FLASH_HARDWARE or to set the nyx-layer to LIGHT_FLASH_TIMED... Jan 29 09:12:39 Herrie | Veer : I suppose ... yes. Any other guys who have worked at the HAL layer ? Jan 29 09:13:03 Herrie | Veer : or gals ??? :) Jan 29 09:13:19 morphis has been doing heavy lifting on kernel side of things Jan 29 09:13:33 The rest has mainly been working on other bits ;) Jan 29 09:13:45 Anything C is out of my league :P Jan 29 09:13:58 I do more harm then good there :P Jan 29 09:14:20 Its about the only thing I know though .... cant be any use anywhere else :) Jan 29 09:14:51 We need quite some help on c/kernel side of things still :) Jan 29 09:14:55 So that's good :) Jan 29 09:15:53 Im a dinosaur with all the other stuff ...(no jokes about my age) :P ...... would like to learn if I have the time or chance Jan 29 09:16:06 morphis: does it change when you exit app and come back in? Jan 29 09:17:09 It's me not morphis: But no, also not on luna-next-restart Jan 29 09:17:40 Also thread list only contains the received SMS as last message but that could be related I guess Jan 29 09:19:09 can you show me a screenshot? Jan 29 09:20:02 right now the class is bound to folder...if in outbox=> yellow, if in sent=> green, if in inbox => blue Jan 29 09:24:02 and you're saying that thread list disappears except for the lasat message? or that a new thread list appears with just that one message? Jan 29 09:24:51 No in the main screen where you have an overview of your different conversations Jan 29 09:25:04 It shows the received sms content Jan 29 09:25:15 Let me screenshot that too Jan 29 09:25:33 While I would expect it to show the last message content from the thread Jan 29 09:25:34 well that is supposed to show the "summary" and i make it the last message in thread Jan 29 09:26:02 It shows the last with "inbox" Jan 29 09:26:18 Doesn't show the "pending" or "sent" as last ;) Jan 29 09:26:42 hmm this may be a bit more difficult than anticipated. i commit the message, sending to palmservice, if successful commit, i can refresh the message list....but what if palmservice returns that message is still pending when that successhandler is fired??? does palmservice automatically send a message to app when the status changes? if so, what is the Jan 29 09:26:42 eventname? Jan 29 09:26:59 Let me get the screenshots up Jan 29 09:28:35 okay. does it do change it when send button is clicked? but then reverts to last with inbox when you restart app? Jan 29 09:29:10 because in browser, it does change it when send button is clicked...if above is true, then maybe an issue with chatthreader Jan 29 09:32:58 Yeah seems it OK when I go back to list Jan 29 09:33:08 But when I close app it reverts back to first msg Jan 29 09:33:36 okay so the chatthreader is not correctly setting the summary... Jan 29 09:37:57 What's your real name so I can copy you in the issue in the issue tracker Jan 29 09:39:04 i dont know if this why: https://github.com/webOS-ports/org.webosports.messaging/blob/c7aaac41c7bc8638de5ad685243cca0840782ff5/service/javascript/assistants/AssignMessages.js#L53 Jan 29 09:39:16 it's only looking at outbox, not sent folder... Jan 29 09:39:51 github is psarin, name is Cage :) Jan 29 09:42:37 You registered for our bug tracker at issues.webos-ports.org? Jan 29 09:42:45 Because I cannot find you there :P Jan 29 09:44:53 prob not Jan 29 09:45:01 i dont like being assigned bugs :) Jan 29 09:46:03 Ah ok :) Assigned it to Garfonso since he made the chatthreader :P Jan 29 09:46:19 http://issues.webos-ports.org/issues/843 Jan 29 09:46:43 now registered Jan 29 09:46:54 warpuser Jan 29 09:47:17 any thoughts on: "does palmservice automatically send a message to app when the status changes? if so, what is the eventname?" Jan 29 09:48:11 Isn't this what db8 watches are used for? Jan 29 09:48:18 * Herrie|Veer is db8 n00b Jan 29 09:48:36 probably :) but what is it and how do i use it for my evil purposes :) Jan 29 09:51:40 morphis : ping Jan 29 09:51:47 http://bpaste.net/show/28b113e9c276 Jan 29 09:51:59 That should give you some clues ;) Jan 29 09:52:24 Line 794 and down Jan 29 09:52:33 This is copied from 2.x messaging app Jan 29 09:58:30 I could look for 3.x if that's more useful because it's Enyo at least Jan 29 10:00:37 prob i dont know what MessagingDB is Jan 29 10:26:27 Cage1___: That seems to be something mojo Jan 29 10:26:44 You might want to look at the 3.x messaging app instead Jan 29 10:26:53 It has watches in there as well Jan 29 10:45:58 from the other end it looks like that's how it should be used Jan 29 10:46:16 IIRC the imlibpurple-thingy for example writes to a buddies and a messages table Jan 29 10:53:40 djichthys: pong Jan 29 10:54:17 morphis : Got some questions on the HAL layer for the LED-controller. Jan 29 10:54:33 morphis : was trying to get the notification LED to blink on the Nexus 4 device. The nyx layer has the flashing mode set to LIGHT_FLASH_HARDWARE Jan 29 10:54:45 morphis : but the HAL layer ignores it, because it expects FLASH_TIMED for the blinking to work. .... Jan 29 10:55:01 morphis : would it be preferable to change the Nexus 4 HAL layer to add support for LIGHT_FLASH_HARDWARE or to set the nyx-layer to LIGHT_FLASH_TIMED... Jan 29 11:02:25 djichthys: let me look Jan 29 11:03:22 djichthys: you mean https://github.com/webOS-ports/nyx-modules-hybris/blob/master/src/led_controller/led_controller.c#L126? Jan 29 11:04:14 djichthys: fine for me to change that if that is the way it works Jan 29 11:06:31 morphis : yeah thats the one ...... Just needed to know which way is prefereable. Either way works... Ideally I think its the Android HAL that should support that state, because atleast for Nexus 4, both TIMED and HARDWARE are setting up the pwm .... Jan 29 11:07:40 djichthys: maybe its not support by the n4 hardware so the module doesn't support that way Jan 29 11:08:04 djichthys: you checked what the Mer guys are doing? Jan 29 11:08:37 morphis : no ..... let me have a look ..... Jan 29 11:18:30 morphis: i have built the kernel without msm_v4l2, but can't test because wifi stopped working. Is there simple way to enable it? guess i need to install somewhere modules too? Jan 29 11:18:47 nizovn: how did you build it? Jan 29 11:19:07 morphis: For sounds should we convert them all into a single format? We now have wav, pcm and mp3, might be good to unify a bit? Jan 29 11:19:29 morphis: using instructions from https://github.com/webOS-ports/tenderloin-prebuilt Jan 29 11:19:45 nizovn: ah ok Jan 29 11:20:22 and grabbed ramdisk from uImage from build.webos-ports.org Jan 29 11:20:31 nizovn: wifi drivers are at https://github.com/milaq/android_hardware_atheros_wlan Jan 29 11:20:48 nizovn: the way we're building the kernel currently is that we let the Android build system handle that Jan 29 11:21:07 nizovn: that gives us what you see on http://build.webos-ports.org/cm-wop-11.0/ Jan 29 11:21:23 the *-kernel-parts* package includes the kernel and the modules Jan 29 11:21:37 the initrd is build within OE Jan 29 11:21:50 nizovn: but do it simple: don't care about not working WiFi for the moment Jan 29 11:22:08 when you verified that without msm_v4l2 things are not crashing Jan 29 11:22:17 send me the change and I will integrate it into a new build Jan 29 11:22:46 morphis: i can't verify without wifi in browser Jan 29 11:23:28 ah Jan 29 11:24:15 nizovn: https://github.com/webOS-ports/android_device_hp_tenderloin/blob/wop-11.0/BoardConfig.mk#L97 Jan 29 11:24:21 that shows you how to build the module Jan 29 11:30:04 morphis : looked at the Nemo stuff ...... on the hammerhead device, they are adding LIGHT_FLASH_TIMED and LIGHT_FLASH_HARDWARE in a single switch and falling through to the same functionality. Looked at the CM11 and CM12 branches of mako ... still the same as our code on the webos branch ...... Jan 29 11:30:34 djichthys: at which code from them did you look? Jan 29 11:32:10 https://github.com/CyanogenMod/android_device_lge_hammerhead/blob/cm-11.0/liblight/lights.c#L173 for hammerhead Jan 29 11:33:07 djichthys: and what is the mer code? Jan 29 11:33:18 ah but I see Jan 29 11:34:09 djichthys: basically I would like to avoid modifying the android bits Jan 29 11:34:54 so the best thing we can do right is choosing the TIMED one Jan 29 11:35:04 that one seems to satisfy also what we have for the touchpad: https://github.com/webOS-ports/android_device_hp_tenderloin/blob/wop-11.0/liblights/lights.c Jan 29 11:37:08 OK ..... cool then ....... does that mean that we will have to put switches around the nyx-code for other devices apart from Mako ? Jan 29 11:37:42 possible Jan 29 11:37:58 but that should be ok as we're building nyx-modules-hybris differently for each device anyway Jan 29 11:38:58 Ok thanks for clarification ....... next question ..... Im mapping NYX_LED_CONTROLLER_CENTER_LED to the notification LED in android HAL ...... is that reasonable ... I dont know what the App guys will be using this for ... Jan 29 11:40:04 djichthys: basically we don't have any user of this API right now Jan 29 11:40:13 so we're free to do the way which suites us most Jan 29 11:40:44 the Pre devices had some LEDs in the bottom area which they controlled with the led controller (left, center, right) Jan 29 11:41:15 as we only have one LED which is for most devices in the middle I think center is absolutely fine Jan 29 11:41:48 djichthys: https://github.com/openwebos/luna-sysmgr/blob/master/Src/base/CoreNaviLeds.cpp should be the reference for this Jan 29 11:41:52 ok .... thanks for the clarification....... Another question .... sorry for the bombardment. Jan 29 11:42:04 no problem :) Jan 29 11:42:14 just ask as much as you want Jan 29 11:43:53 I was going to add the command-line args for the led-tests into the nyxtestledcontroller program ........ I also see that there is a nyx-cmd program on the device ...... it currently does not have ledcontroller on it, but should we be adding it to the nyx-cmd as well ? Jan 29 11:44:37 djichthys: would be nice but if you're fine with the nyxtestledcontroller program then I am ok Jan 29 11:45:05 ok ..... let me dig around and see if those can be added as well. Jan 29 11:45:15 if we would work full time on this I would say "add it to nyx-cmd" but as we're not going the simpler way is ok Jan 29 11:45:30 djichthys: we would only use the nyx-cmd for testing and development, nothing else Jan 29 11:46:53 morphis : ok thanks. that makes me sweat a little less ,if it helps others with testing and development, then let me see if I can add all that stuff to nyx-cmd as well........ Jan 29 11:47:50 djichthys: ok :) Jan 29 11:47:58 djichthys: but you got the LED blinking already? Jan 29 11:48:51 yeah ...... the only problem is that the "Q(&*$" led wouldnt stop blinking .... Jan 29 11:49:02 because I hard-coded it in Jan 29 11:49:31 so now have to expand to get a stop command Jan 29 11:50:25 ok Jan 29 11:51:23 thanks for the link to the android hal..... Thats the missing bit that i needed to see. Its starting to come together in my head. Hopefully I can start doing things faster. Jan 29 11:57:13 djichthys: :) Jan 29 12:36:15 morphis: it doesn't crash! Jan 29 12:50:11 nizovn: yeah! Jan 29 12:50:24 nizovn: then lets deactivate it until we need it again Jan 29 12:50:41 I am not sure if it is used for the way we need to interface with the camera later Jan 29 12:50:51 but until then we can safely do that Jan 29 12:52:53 .. i disabled v4l2 completely, not only msm_v4l2, so seems it will be needed for camera Jan 29 13:55:14 nizovn: hm Jan 29 13:55:56 nizovn: you can check on https://github.com/webOS-ports/android_device_hp_tenderloin/tree/wop-11.0/camerahal Jan 29 15:29:13 Herrie: ping Jan 29 15:57:27 nizovn: feel free to send a patch for our kernel then Jan 29 16:07:03 morphis: you mean new kernel config without v4l2? Jan 29 16:07:38 yeah Jan 29 16:07:54 if we need it we can enable it again later Jan 29 16:08:41 so our kernel is https://github.com/shr-distribution/linux? Jan 29 16:43:07 Cage1___: for db8 quries (i.e. calls to find or get (?)) you can specify watch: true in the parameters. Then some callback is called if something changed in the db. IIRC you have to "renew" the watch for every change, i.e. you have to do the query yourself again and have the watch: true also again. See here Jan 29 16:43:07 https://developer.palm.com/content/api/reference/services/db8.html#find 3rd Example Jan 29 16:44:23 there is also a dedicated watch method for db8.. I think that is what the code Herrie pasted uses. MessagingDB is probably only one of those https://developer.palm.com/content/api/reference/javascript-libraries/foundations/foundations-data-db.html Jan 29 18:26:01 morphis: pong Jan 29 18:26:25 Herrie: you saw my comments on firstuse PR? Jan 29 18:36:11 morphis: Yeah trying to rework it now Jan 29 18:36:15 Hope to have it done shortly Jan 29 18:36:16 Herrie: good Jan 29 18:36:22 Also did a PR for LNC Jan 29 18:36:32 Tune the carrier string + DockMode a bit Jan 29 18:37:13 + Added text for unlock ;) Jan 29 18:37:34 For the sounds: I think it would be good to unify the format into either PCM, WAV or MP3 Jan 29 18:37:41 What would be your prefered format? Jan 29 18:38:35 puuh Jan 29 18:38:41 wav and pcm maybe too big Jan 29 18:38:45 mp3 might take more cpu Jan 29 18:39:02 Herrie: are you just using playFeedback or also the Audio QML component? Jan 29 18:39:21 they feedback onces need to stay in pcm Jan 29 18:40:13 Audio QML for now because we don't have playFeedBack yet I think? Jan 29 18:43:03 we have playFeedback Jan 29 18:43:14 for quite some time Jan 29 18:43:36 sound files are in /usr/share/systemsounds Jan 29 18:43:54 I think those are mostly what you need Jan 29 18:59:09 OK Jan 29 18:59:56 Just type fixed? Jan 29 19:02:25 Herrie: mostly Jan 29 19:05:09 :D Jan 29 19:07:56 the only missing fix is that we get a white screen within the app card for a very short moment Jan 29 19:10:21 nizovn: kicked kernel build with your fix Jan 29 19:12:48 morphis: OK well that's not ideal but at least a big improvement : Jan 29 19:12:49 :D Jan 29 19:12:50 morphis: thanks Jan 29 19:13:48 Herrie: yeah, we have that still for some time and it got more worse with qt 5.4 Jan 29 19:13:57 but it's nothing critical Jan 29 19:14:08 more critical is the memory problem on the touchpad Jan 29 19:15:42 YEah Jan 29 19:15:50 Well at least the browser problem got fixed :) Jan 29 19:15:56 That's a good one for the release :) Jan 29 22:58:50 hmm, seem to understand how watch works. just not sure how to specify watch with new code. is watch same as "subscribe" in ServiceRequest? Do i just send in "watch:true" as option and that will get passed on to LuneOs backend? Jan 29 23:05:54 Cage1___, I am me and I am here. **** ENDING LOGGING AT Fri Jan 30 03:00:00 2015