**** BEGIN LOGGING AT Wed Dec 22 02:59:56 2021 Dec 22 06:43:55 Herrie: Good morning! Did you get audiosystem-passthrough built already? Dec 22 07:03:15 Morning! Dec 22 07:04:08 erikinkinenfi[m]: No not yet Dec 22 07:04:25 Herrie: I got it built. Dec 22 07:04:25 Was getting stuck with ld error Dec 22 07:04:36 Ah nice! Dec 22 07:04:49 https://pastebin.ubuntu.com/p/q392gBWQgr/ Dec 22 07:05:06 I was a bit side tracked with PPP but got most of sensors working there now :) Dec 22 07:07:13 Ah nice! I was missing the last bits at my end Dec 22 07:07:43 I always get confused with c++ code and how it all works when compiling with linkers etc Dec 22 07:08:11 I have a draft recipe for hidl but you might have figured that one out already too? Dec 22 07:14:59 Yeah, I did figure it out too but it doesn't seem to work at runtime. Dec 22 07:18:14 morning Dec 22 07:19:07 Herrie: https://pastebin.ubuntu.com/p/TgkJczF2Wf/ Dec 22 07:19:35 JaMa: Good morning to you too! Dec 22 07:24:26 Ah, I think the sink is suspended in call for an unknown reason. Dec 22 07:24:27 State: SUSPENDED Dec 22 07:38:21 It could be voicecall needs a bump somehow? Dec 22 07:39:35 It was not the suspension, something else is wrong. Values from pactl seem correct, so I'd say the problem is in the pa modules somehow. Dec 22 07:40:28 droid-card is set to voicecall mode which is correct. Dec 22 07:40:53 I cannot still hear anything from the other party in the call. Dec 22 07:42:29 Probably something in a .pa that needs adjusting Dec 22 07:44:40 Well, I adjusted that as well and the modules get loaded properly. Dec 22 07:54:17 But still doesn't work? Dec 22 07:56:32 Herrie: no Dec 22 08:05:26 Herrie: I think it is missing a dependency. Dec 22 08:06:09 audiosystem-passthrough should be able to communicate with pulseaudio via dbus but we do not have module-dbus-protocol at all. Dec 22 08:23:17 Herrie: fixed! Dec 22 08:23:18 https://pastebin.ubuntu.com/p/ZyB2hymccY/ Dec 22 08:23:53 Also, this needs top be in .pa file: load-module module-dbus-protocol Dec 22 08:24:04 What was missing? Dec 22 08:25:00 A dependency of: module-dbus-protocol Dec 22 08:25:26 Herrie: it needs top be installed on the system + loaded in pa. Dec 22 08:52:53 Don't you also need a local config file for the audio passthrough? Dec 22 08:54:07 HerrieTP_: No? Dec 22 08:54:48 I have never had a config file for that. Dec 22 08:56:04 OK well I was reading something in description of repo Dec 22 08:56:14 But maybe it's all automagic Dec 22 09:12:10 How does one write app for LuneOS? Dec 22 09:12:20 s/app/apps/ Dec 22 09:30:41 In QT/QML or JS with Enyo 1.0/2.0 or Enact framework Dec 22 09:31:08 What kind of app you'd be interested in? Dec 22 09:31:22 Services can also be with NodeJS Dec 22 09:39:09 HerrieTP_: First, I would like to make a helloworld app but then I would like to experiment with making a music player as I did not find one. Dec 22 09:41:43 Of those technologies, I have experience in Qt/Qml. Dec 22 09:56:34 There's this in webOS OSE: https://github.com/webosose/com.webos.app.mediagallery Dec 22 09:56:40 Just not sure it does music Dec 22 10:00:18 This should give you some guidance to get started: https://webos-ports.org/wiki/Getting_Started_-_QML_Apps Dec 22 10:08:36 BTW there is a legacy app you could sideload for music. It was included in HP's SDK I think, just they never released it Dec 22 10:08:40 Let me check Dec 22 10:16:32 Completely untested, so no idea what it does on LuneOS: https://github.com/Herrie82/core-apps/commit/cc74f8e10bd0c796678afe9c4e6f708cfe478cbd Dec 22 10:16:40 You can just push it to /usr/palm/applications Dec 22 10:17:06 Then do a "luna-send -n 1 luna://com.palm.applicationManager/rescan '{}'" and you should have the icon Dec 22 10:18:04 Let me quickly test it in my VirtualBox Dec 22 10:30:55 Herrie: So, you're partially using original core-apps and partially your own apps? Dec 22 10:32:50 erikinkinenfi[m]: Yeah HP only released some apps when they open sourced the OS Dec 22 10:32:58 However in their SDK there were more Dec 22 10:33:24 And we still have the legacy "Doctors" (read ROMS) where we can extract things from, but legal status of course is tricky Dec 22 10:33:42 MusicPlayer app needs some permission fixes it seems Dec 22 10:34:18 Herrie: So, the plan is to deprecate original apps at some point? Dec 22 10:35:02 Well it depends... The ones that work well, why not keep them. The ones that don't or missing, replace Dec 22 10:37:08 Herrie: Btw, why do the original apps scale differently? They are much smaller on my screen and a bit difficult to use. Dec 22 10:38:21 Well original apps are in JS (Enyo 1.0), our new apps either in Enyo 2.0 or QML Dec 22 10:38:29 They are rendered differently. Could be adjusted though Dec 22 10:39:07 Some of the original apps were "hacked" by HP to be running on a tablet with 1024 * 768 resolution. Could be some (minor) CSS tweaks are needed to have them behave on phones again Dec 22 10:39:41 They were originally running on phones with webOS 2.0/2.1/2.2, then HP rushed webOS 3.0 to the market for the HP Touchpad and did some hackidy hack things like fixing resolutions Dec 22 10:40:33 There is an app archive at: http://appcatalog.webosarchive.com/showMuseum.php Dec 22 10:40:56 The majority of the apps probably won't work, but you might find some that do Dec 22 10:48:22 It could be that some of the values you tweaked yesterday like gridUnit or compatDPI might help there Dec 22 10:54:44 Herrie: adjusting compatDPI seems to work. Dec 22 10:59:44 Ok good :) Dec 22 10:59:57 This musicplayer app makes my qtwebengine crash Dec 22 11:00:05 And there are some permission errors as well Dec 22 11:00:16 Not really sure what's up there, because it seems it should be working but well Dec 22 11:08:46 Tofe: for sensorfwd: You have any idea what these transformation_matrix values represent? https://github.com/webOS-ports/meta-webos-ports/blob/hardknott/meta-luneos/recipes-support/sensorfw/sensorfw/sensord-pinephone.conf#L12 Dec 22 11:09:25 I've been toying a bit with it, but not really working 100% yet. Either screen is rotated 180 degrees, 90 degrees or rotates in the wrong direction for example Dec 22 11:09:32 Good news is that they do work in general now Dec 22 11:09:52 Also curious where I could locate those interval values Dec 22 11:10:13 Seems it uses mpu6500 instead of mpu6050 Dec 22 11:18:55 erikinkinenfi[m]: Can you paste your .pa file? I'll prepare the PR so we can merge the bits for hidl & audiosystem-passthrough Dec 22 11:19:08 Just want to double check I have it right Dec 22 11:21:15 https://pastebin.ubuntu.com/p/nVJxdH3Zhy/ Dec 22 11:21:46 The interesting lines are 41 and 45 Dec 22 11:36:22 OK, shouldn't we check to make sure that load-module module-protocol-dbus exists as well? Dec 22 11:36:27 I can imagine cases where it's not there? Dec 22 11:47:15 Oh, yes it should. Dec 22 11:56:08 File is called module-protocol-dbus.so I guess? Dec 22 12:23:01 Herrie: module-dbus-protocol.so Dec 22 12:25:23 And: load-module module-dbus-protocol Dec 22 12:25:51 I think I sent an old version of my .pa file which had those the wrong way around. Dec 22 12:28:54 Herrie: I managed to write a helloworld app but it doesn't seem to handle scaling correctly. The text of 20pt is way too small. Dec 22 12:30:28 In JS or QML? Dec 22 12:30:39 Qml Dec 22 12:31:42 https://pastebin.ubuntu.com/p/Fd5j9qg4F7/ Dec 22 12:53:48 Good question, should work I would say.. You might want to add: https://github.com/webOS-ports/org.webosports.app.firstuse/blob/master/qml/TimeZonePage.qml#L23 Dec 22 12:53:54 This is on device or QtCreator? Dec 22 13:16:01 Herrie: on device Dec 22 13:17:38 Adding the line you suggested did not change anything. Dec 22 13:21:35 OK and how are you launching it? Dec 22 13:22:12 Herrie: tapping an icon it the shell. Dec 22 13:22:54 OK, did you add a proper appinfo.json? https://github.com/webOS-ports/org.webosports.app.firstuse/blob/master/appinfo.json Dec 22 13:23:07 You might want to have "useLuneOSStyle": "true", in there as well Dec 22 13:26:02 I have this: https://pastebin.ubuntu.com/p/MCDD7VC4Ny/ Dec 22 13:28:14 That should be OK I'd say Dec 22 13:28:19 Not really sure what's up then Dec 22 13:34:57 Let me try here Dec 22 13:40:34 Hmmz here nothing on screen even it seems Dec 22 13:42:43 Herrie: I have also a main.qml: https://pastebin.ubuntu.com/p/nXQ5gfvtFf/ Dec 22 13:54:32 OK now I get something on screen, also small indeed Dec 22 13:55:54 Really not sure what's up here Dec 22 13:56:39 The phone app uses the same font size in the text "No calls yet" but it seems much larger. Dec 22 14:03:54 Yes same for FirstUse Dec 22 14:07:27 No clues in journalctl? Dec 22 14:11:32 No but it seems to affect only text and label objects. a switch renders with correct size but the text attached to it renders too small. Dec 22 14:12:22 Herrie:https://pastebin.ubuntu.com/p/ZHcVhgBhFy/ Dec 22 14:24:46 I guess when you put it inside a Column it might work. As you can see here: https://github.com/webOS-ports/org.webosports.app.firstuse/blob/master/qml/FinishedPage.qml there's BasePage->Column->Label/Text/TextField Dec 22 14:29:39 Herrie: no, column did not help. Dec 22 14:50:14 And a BasePage? Dec 22 14:51:21 I tried that but didn Dec 22 14:51:23 't help Dec 22 15:00:24 Hmmz weird Dec 22 15:01:00 Sometimes it helps to do things in QtCreator, though getting those LuneOS Component & LuneOS Style bits setup is a bit of a pain (at least on Windows), not sure how it's on Linux Dec 22 15:14:58 If something is wrong syntax wise, journalctl should tell you too, but QtCreator has a "nice IDE" where you can see it while testing. It's pretty good for quick iterations & development Dec 22 15:25:58 Herrie: Nah, I just rewrote the app with enact. Dec 22 15:27:03 Hehe also an option Dec 22 15:27:19 Just there's not really a "mobile friendly" theme for Enact from what I know Dec 22 15:27:25 But maybe it's there by now Dec 22 15:27:34 All Enact stuff is for LG's TV's mainly Dec 22 15:27:46 So UI size is all a bit different scale factor ;) Dec 22 15:34:51 Herrie: yep, I noticed that. Dec 22 15:35:15 It works quite well, actually. Dec 22 15:44:42 Well in general it's some kind of React, so there should be "mobile friendly" UI/Themes Dec 22 16:00:08 Morning Dec 22 16:00:39 Sorry I'm not there that much these days, quite busy with the family stuff Dec 22 16:02:15 Herrie: for sensorfw rotation matrix, it's just a 3x3 rotation matrix, with the coordinates for the X,Y,Z vectors of the accelerator Dec 22 16:03:24 for pinephone we have x,y,z = Y,-X,Z Dec 22 16:04:33 of course, we usually have z=cross(x,y) so only 2 vectors are really tweakable Dec 22 16:49:13 erikinkinenfi[m]: You seem to know a thing or 2 about PulseAudio as well Dec 22 16:49:25 Any thought on how I can debug the playback on PinePonePro not working? Dec 22 16:49:41 Seems I finally got the alsa-ucm config OK and that works, however no sound yet Dec 22 16:50:47 My knowledge on PA is limited to Halium devices. In your case, I would test playing with aplay directly through alsa and see if it works. Dec 22 16:56:38 aplay also doesn't output any sound Dec 22 16:56:45 Maybe I need to fix the samplerate Dec 22 17:05:30 It all looks OK, but I don't hear anything Dec 22 17:05:32 Really weird Dec 22 17:18:23 Must be something silly really Dec 22 17:24:53 Ok will move back to Mobian where it works and do some more debugging there with alsa etc Dec 22 18:10:18 Herrie: does "pactl list" output something that matches your UCM config? Dec 22 18:11:00 Tofe: Yeah that all seems good Dec 22 18:11:36 Just UCM config is being changed between 1.2.5 and 1.2.6 so that's not helping Dec 22 18:11:48 Also some symbolic links need to be created etc Dec 22 18:12:15 Main diff I can spot is that Debian is on PA 15 and we're on 14.2 I think Dec 22 18:15:14 could it be the UCM is in UCM1 format and PA dropped support for it ? Dec 22 18:15:33 I doubt it though, the PP UCM was already UCM2 Dec 22 18:16:25 Yeah Dec 22 18:17:05 We'll they've been breaking stuff in a point release for Alsa and some are using 1.2.5, others 1. 2.6 Dec 22 18:17:23 So I'm now just running side by side doing various commands and checks Dec 22 18:17:55 Other difference is that I'm on bleeding edge kernel as well Dec 22 18:18:02 So will narrow it down Dec 22 18:18:22 I don't get any alsa/ucm errors anymore after fixing config Dec 22 18:18:44 amixer and alsamixer seem OK, volume 100% not muted Dec 22 18:19:17 Just no sound output in LuneOS but OK in Mobian via aplay Dec 22 18:19:31 Config looks identical so a bit puzzled Dec 22 18:19:51 I started experimenting with creating an enact theme. Dec 22 18:20:16 I managed to change the bg color already. Dec 22 18:20:16 In general alsa is on a directer level to hardware right? PA is an additional layer right? Dec 22 18:20:57 HerrieTP_: PA is a layer over alsa, correct. Dec 22 18:21:14 PA uses alsa as backend in other words. Dec 22 18:24:59 OK so I should focus on alsa Dec 22 18:26:41 Herrie: if aplay doesn't work, yes indeed. Dec 22 18:31:23 Well it doesn't give any errors, pretends to be palying, but no sound Dec 22 18:38:17 erikinkinenfi[m]: Nice on the Enact! Dec 22 19:18:27 Ooh I got sound Dec 22 19:18:34 Seems I needed a proper reboot after fixing config Dec 22 19:21:23 Herrie: Although it is pretty WIP, I uploaded my theme to: https://github.com/erikinkinen/enact-theme-lune Dec 22 19:22:40 And good that you got sound working on ppp. Now, I have to buy one when explorer edition comes out. :P Dec 22 19:33:11 Still fighting a bit with sensors and didn't touch the phone stack yet (though I get signal bars, so that's a good sign, modem looks good in logs, so don't expect too many issues) Dec 22 20:09:30 OK sensors more or less behave it seems now. ALS works properly by the looks of it. Rotation is 80% there too Dec 22 20:11:13 Herrie: I can test on PP if needed, to look for regressions or so Dec 22 20:11:57 Rotation is 80% there ? it rotates like until 80% ? :p Dec 22 20:24:44 Tofe: Well it seems to work pretty OK, just when rotated 180 degrees it shows the screen normal instead of upside down Dec 22 20:24:52 It rotates in the correct direction Dec 22 20:25:10 Just both clockwise and counterclockwise 180 degrees it shows "normal" instead of upside down Dec 22 20:26:14 This is with -1,0,0,0,-1,0,0,0,1 Dec 22 20:28:12 But audio seems to be working, power button works, other sensors (except for magnetometer it seems) also Dec 22 21:19:58 Tofe: I seem to have issues with the charging status... As you know my understanding of C++ isn't that great, but I think we *MIGHT* need to extend charger.c, specifically: https://github.com/webosose/nyx-modules/blob/master/src/charger/charger.c#L273 Dec 22 21:20:32 Battery status seems decent, however it doesn't give me a charging indicator... Dec 22 21:22:25 Ah nevermind, seems I might be wrong ;) Dec 22 21:22:29 Let me try somethng first Dec 22 23:02:04 Nope still not detecting the charger properly Dec 22 23:03:11 udevadm gives me the following: https://bpa.st/3QOA **** ENDING LOGGING AT Thu Dec 23 02:59:56 2021