**** BEGIN LOGGING AT Sat Apr 07 03:00:00 2018 Apr 07 08:44:28 Hey guys, I contacted forkbomb444, he is a Lineage porter and currently works on mainlining hardware support for the Samsung S3 - I wrote to him asking that UBports is very interested to run on a device which has full linux support without any Android cointainer. Now he questions how libhybris is used. And thats a good question, how Apr 07 08:44:28 actually our high level applications/DE/sensors stuff etc. actually *know* they have to use libhybris calls, etc.? Apr 07 08:44:42 Is there any web resources about this? Apr 07 08:45:18 hybris just shims bionic calls Apr 07 08:45:30 and translates Android's EGL into Wayland EGL Apr 07 08:45:47 IIRC Apr 07 08:45:56 I don't think jolla has any official documentation on libhybris Apr 07 08:46:12 other than the porting guide which doesn't explain anything Apr 07 08:53:04 Hmm but that means we would need a "null" libhybris as a stub to just continue using the root fs as it is Apr 07 08:53:20 Nope Apr 07 08:53:26 Ok enlighten me 😆 Apr 07 08:53:48 @bhushanshah, Am I wrong btw? >~> Apr 07 08:53:48 So essentially.. (talking of Plasma Mobile case) Apr 07 08:54:09 Plasma mobile have let's say kwin as compositor Apr 07 08:54:16 That will have multiple "plugins" Apr 07 08:54:39 E.g drm/mesa and hwcomposer/libhybris Apr 07 08:55:08 So in case of Halium devices we use hwcomposer plugin Apr 07 08:55:26 There would be similar case for mir Apr 07 08:55:52 So essentially what you would need is build a separate rootfs which includes Mir Mesa platform Apr 07 08:55:58 And not libhybris stuff Apr 07 08:56:17 @K31j0, Not really Apr 07 08:56:33 the main problems of Android devices are Apr 07 08:56:43 EOL Kernels, bionic and goddamn blobs Apr 07 08:56:50 and everyone has experienced them so far Apr 07 08:57:03 Well yes...that's what mainlined devices are trying to solve.. Apr 07 08:57:24 @bhushanshah, . Apr 07 08:57:31 See e.g ^^^ Apr 07 08:58:19 But can we even mainline modem? Apr 07 08:58:28 to this day I don't know how it works Apr 07 08:58:37 Yes.. I even have calls working with mainline Apr 07 08:58:41 is it userland blob + kernel driver? Apr 07 08:59:25 The modem firmware is still blob but the userland stuff is completely open Apr 07 09:00:32 So if I want to mainline I just take the stock firmware and implement it into open stuff? Apr 07 09:00:58 @bhushanshah, Which device? Apr 07 09:01:14 @IGNNE, Nexus 5 Apr 07 09:01:23 @K31j0, More or less-ish Apr 07 09:01:39 @K31j0, Which SoC is your device? Apr 07 09:01:46 MSM8974AB Apr 07 09:01:48 The shittiest one Apr 07 09:01:49 >~> Apr 07 09:01:54 Not really Apr 07 09:01:59 That's great device Apr 07 09:02:09 I mean, this is thermally the worst of MSM8974 line Apr 07 09:02:13 At least for terms of mainline Apr 07 09:02:21 It's Xperia Z2 Apr 07 09:02:28 Oh lol Apr 07 09:02:33 Tablet? Apr 07 09:02:39 Nope Apr 07 09:02:39 the Phone Apr 07 09:02:44 that's why I'm concerned about modem Apr 07 09:02:45 lol Apr 07 09:03:13 Chances are that your device is umm already supported quite good... Apr 07 09:03:17 I'd have to reimplement HAL on this EOL kernel to run Nougat anyway so WHY DON'T I PLAY WITH REIMPLEMENTING MOAR STUFF WHEN MAINLINING? :v Apr 07 09:03:26 Ok thanks @bhushanshah I will come back later on this. First I am impressed that this guy uses kernel 4.17 on a device that was delivered with 3.0 lol Apr 07 09:03:51 Because that would open a lot of more things to us, like proper apparmor support, snaps etc lol Apr 07 09:04:05 Hhhey opendata: around? Apr 07 09:04:54 @Flohack I think most of UBPorts software (Mir, pulseaudio, ofono, gststreamer) will happily work without libhybris on normal Linux stack Apr 07 09:05:32 First we have to get Normal linux stack Apr 07 09:05:38 @K31j0, opendata on the IRC/Matrix is working on castor and I believe he have also worked on mainlining sirius. Apr 07 09:05:45 BTW IIRC the best SoCs for mainline are OMAPs Apr 07 09:05:51 but >get OMAP Apr 07 09:05:59 not really, PowerVR Apr 07 09:05:59 Pft.. nope Apr 07 09:06:14 Other than the GPU of course Apr 07 09:06:20 Come to dark side of qcom 😌 Apr 07 09:06:30 but without GPU you can't run Plasma/Ubuntu/Sailfish whatever with reasonable speed Apr 07 09:06:44 yeah, it's dark af, even my flashlight can't shine through it >~> Apr 07 09:06:49 at least we get freedreno Apr 07 09:06:56 PowerVR has nothing but blobs Apr 07 09:07:47 (it has leaked Android code, but it needs to be hugely adapted to work on Linux/mainline and everyone is just afraid to touch it due to licensing issues) Apr 07 09:08:10 Licences Apr 07 09:08:12 gosh I "love" them Apr 07 09:08:20 Without dropping too much details, we are in the loop with the Purism guys, and whatever they develop we will be able to test for sure :) Apr 07 09:08:56 @Flohack that said.. I wouldn't have much hope for exynos SoC in Samsung in terms of GPU too Apr 07 09:09:09 Mali.. cough.. cough Mali.. Apr 07 09:09:17 Do Exynoses get Mali too? Apr 07 09:09:20 Mali has at least sane blobs Apr 07 09:09:33 and open source driver is being developed, I think Apr 07 09:09:34 For mainline though.. nope Apr 07 09:09:34 Yeah sure, it will maybe not end up as a usable device. But its a project to learn how to run without the LXC container maybe. I can feel its time to prepare for this ;) Apr 07 09:09:46 lima is pretty much old hardware only Apr 07 09:09:51 so maybe something like S2/S3 Apr 07 09:10:09 @Flohack, on S3? Apr 07 09:10:44 By the way, what about Cortex-based Snapdragons? Did anyone work on them? Apr 07 09:11:07 I remember before Ubuntu Touch got discontinued, I could download x86 rootfs on tablet, remove Mir android plugin and install MESA one instead, and the graphics worked Apr 07 09:11:16 There was some work on Angler / 810 Apr 07 09:11:42 But it never got far afaik Apr 07 09:12:08 I happen to have MSM8916 (osprey, Motorola Moto G3) and MSM8939 (lux, Motorola Moto X Play) lying around Apr 07 09:12:23 and they have fully working HAL on Nougat Apr 07 09:12:40 because they're newer than my sirius and somebody worked on them apparently >~> Apr 07 09:12:40 Msm8916 is also nice hardware candidate for mainline Apr 07 09:12:59 good that it sits in a device I don't get much use of Apr 07 09:13:46 By the way, this was posted before, are elements correct size here? Asking from curiosity Apr 07 09:13:47 (Photo, 623x1080) https://irc.ubports.com/6o9dwn4a.png Plasma Mobile on ASUS Zenfone 5. Apr 07 09:14:14 No.. scaling is f...ed up Apr 07 09:14:22 good Apr 07 09:14:27 that bar would be like Apr 07 09:14:29 UX: broken Apr 07 09:14:29 xD Apr 07 09:14:33 @bhushanshah did you try running Plasma Desktop shell with hwcomposer? Apr 07 09:15:00 @NotKit, I've did something like that just for experiment earlier Apr 07 09:15:04 I think it misses Wayland scale support, which I had to report as bug, but not sure how Apr 07 09:15:16 bugs.kde.org Apr 07 09:15:48 I still use X11 on my desktop, because I find running wayland on PCs weird Apr 07 09:17:20 Especially if you by chance get to display something on a projector with broken EDID when running laptop Apr 07 09:18:43 @bhushanshah, Any ideas on how to fix it? Apr 07 09:19:15 Fix code in the hwcomposer backend of kwin to support proper scaling Apr 07 09:21:26 @bhushanshah, Eh... I'll try later Apr 07 09:23:01 @K31j0 Apr 07 09:23:16 opendata: Hi Apr 07 09:23:17 Send a downstream dmesg Apr 07 09:23:40 I might be able to send you a working kernel if you have the right panrl Apr 07 09:24:27 Kay, is that LOS 14.1 with broken audio enough? I think that mediaserver embedding cameraserver might play a huge role in breaking that, but I don't think there's any point in attempting to fix that Apr 07 09:24:29 Hey, I'm working on mainlining the z2 tablet and sometimes the z2 Apr 07 09:24:46 You might know me if you follow ROMs for it. Apr 07 09:25:25 I don't know anything about Z2 Tablet, but I've seen you around #lineageos-dev Apr 07 09:25:43 look up kholk on github if you work with sony devices Apr 07 09:25:57 Heh, I mean ROMs for z2 Apr 07 09:26:04 ah Apr 07 09:26:13 he's done some good things for opensourcing xperias Apr 07 09:26:30 kholk isnt who you want for Mainline currently Apr 07 09:26:32 But yeah he has Apr 07 09:26:47 Got win 10 running in z2 tablet Apr 07 09:26:57 Good, I respect that, I haven't followed XDA/roms for Z2 in a long time though Apr 07 09:27:58 If you have the right panel you can have display working Apr 07 09:28:13 In modem is possible with a few patches Apr 07 09:28:20 And* Apr 07 09:29:07 Yay Apr 07 09:30:22 Though you might have to look into backporting android trees to work with 14.1 Apr 07 09:30:29 Currently they are for P Apr 07 09:30:56 And I probably need to toy around with that mediaserver thing Apr 07 09:31:09 it's the only thing that doesn't work on the newest security patches Apr 07 09:32:06 ? Apr 07 09:32:31 Oh... Apr 07 09:32:54 Camera doesn't currently have a driver Apr 07 09:33:03 Neither does audio Apr 07 09:33:20 I don't get audio up on 14.1 Apr 07 09:33:26 (but camera works) Apr 07 09:33:36 K31j0 what trees are you basing off Apr 07 09:33:58 The ones available on LOS github Apr 07 09:34:01 Yeah, mainline is fully open source but less functional Apr 07 09:34:15 @K31j0 why do you need Nougat though? Apr 07 09:34:16 Ah, they are really old Apr 07 09:34:35 @NotKit, Because cm12.1 is broken Apr 07 09:34:40 for your device? Apr 07 09:34:43 and I want to play with Halium Apr 07 09:35:09 On Sailfish sensors and stuff didn't want to work Apr 07 09:35:21 https://github.com/ResurrectionRemix-Devices/android_device_sony_shinano-common/tree/cr-5.1 Apr 07 09:35:31 And if it's libhybris as well, halium probably wouldn't be able to work as well Apr 07 09:35:43 @opendata, is that nougat? Apr 07 09:35:57 https://github.com/ResurrectionRemix-Devices/android_device_sony_msm8974-common/tree/cr-5.1?files=1 Apr 07 09:36:03 Yeah Apr 07 09:36:12 good, I'll try that Apr 07 09:36:19 These are my old RR trees but Los compatible Apr 07 09:36:40 Los trees aheb been unmaintained for a while Apr 07 09:36:46 I can see that :P Apr 07 09:37:55 And https://github.com/ResurrectionRemix-Devices/android_kernel_sony_msm8974/tree/cr-5.1?files=1 Apr 07 09:38:20 oh wow Apr 07 09:38:27 carbon rom is still around? Apr 07 09:38:41 I remember using it on my Xperia Neo V back in the kitkat days xD Apr 07 09:39:10 Yeah, I base RR trees off it Apr 07 09:39:25 Even Oreo carbon is still around Apr 07 09:40:27 is it still as feature-packed as it was? asking from curiosity, I don't actually use Android these days, I suffer from functionality, but with Google wanting us to whitelist our devices to even use GAPPS, you can see why I'm not fond of using that Apr 07 09:42:20 Don't use it Apr 07 09:42:28 @opendata, Ive seen some pictures Apr 07 09:42:38 I think it is pretty feature packed though Apr 07 09:43:41 @IGNNE, Do you happen to have a link? Apr 07 09:43:44 IGNNE of what? Apr 07 09:44:14 Win 10 on Z2 Apr 07 09:44:15 Anyone been around lumias? Apr 07 09:44:18 (Photo, 1280x960) https://irc.ubports.com/nE0U0w15.png Apr 07 09:45:38 https://plus.google.com/+kholk Apr 07 09:45:44 Look at posts Apr 07 09:46:22 Though he got a c&d from qcom though because of how he did uefi Apr 07 09:47:10 c&d? Apr 07 09:47:26 Cease and desist Apr 07 09:48:51 rip Apr 07 09:48:53 @opendata, Can they even do this? Apr 07 09:49:15 Well he said they did, 1 sec Apr 07 09:49:29 I mean I'm pretty sure in European Union at least you can use your products however you can Apr 07 09:49:39 That's why hackintoshes are half-legal Apr 07 09:49:47 Meh, copyright and stufg Apr 07 09:49:57 [Edit] Meh, copyright and stuff Apr 07 09:50:51 * opendata uploaded an image: Screenshot_Hangouts_20180407-105026.png (163KB) Apr 07 09:50:54 Even if he can still use it for non commerical purposes if I'm not mistaken Apr 07 09:50:58 * opendata uploaded an image: Screenshot_Hangouts_20180407-105018.png (172KB) Apr 07 09:52:55 Oh fuck Apr 07 09:52:59 That's why we need open hardware Apr 07 09:53:04 but it's moving in slooowly Apr 07 09:53:09 and slooowly Apr 07 09:54:59 one can send as many c&ds as one wants. If you believe you're right, simply continue and find yourself in court Apr 07 09:55:17 But if you know you fcked up... Apr 07 09:55:40 I think HAL should be GPL Apr 07 09:55:40 or at least MIT Apr 07 09:55:46 because with some blobcences Apr 07 09:56:02 we end up with EOL shit getting delivered at our doorsteps Apr 07 09:57:29 Well iirc it was because he based his flcode of code qcom shared with sony Apr 07 09:57:46 That isnt supposed to be public Apr 07 09:59:15 qcom is kinda shady though Apr 07 09:59:29 there was something like Apr 07 09:59:46 nVidia trying to prove they used their something in adreno Apr 07 10:01:24 opendata, that's why you need to do that kind of shady stuff in Russia Apr 07 10:01:31 as long as you don't plan to go abroad... Apr 07 10:01:43 😂 Apr 07 10:02:25 Heh Apr 07 10:02:58 Nvidia should be suing AMD in that case Apr 07 10:03:06 Adreno is based of r600 Apr 07 10:03:10 and everything Apr 07 10:03:23 that displays anything Apr 07 10:03:26 I don't like them Apr 07 10:03:31 they don't support nouveau Apr 07 10:03:36 and their blob is bullshit Apr 07 10:55:47 @bhushanshah is huawei P8 Lite good device to start proting it ? it has Kirin 620, 2 G of RAM, 16G internal storage, kernel code soure and device tree exists Apr 07 10:56:20 "it" == mainline? or halium? Apr 07 10:57:40 CPU is kirin 620, i want port it to halium Apr 07 10:58:26 Ah Apr 07 10:58:41 I haven't seen any halium port for that device Apr 07 10:58:58 so.... not sure tbh Apr 07 10:59:52 how about mainlining 8x27 (8227/8627)? Is it worth the effort? Apr 07 11:05:55 There's currently no SoC definition available in upstream tree.. so that could be bit more work tbh Apr 07 11:10:03 @Walid, I think someone has been playing with it in Sailfish lands Apr 07 11:11:16 @Mister1Magister actually - https://twitter.com/Mister1Magister/status/968922004610043904 Apr 07 11:40:42 same device that i have ALE-21, thats good Apr 07 12:09:47 It renders UI on surfaceflinger Apr 07 12:10:12 from what he was telling Apr 07 12:19:00 kwin had the code for that that needs to be rebased on latest Apr 07 12:26:18 VeryOriginalUsername it was supported but iirc support was removed because it uses legacy atags Apr 07 12:34:48 my z2's power button is so wrecked Apr 07 12:43:46 @opendata, What was the last version, do you remember maybe? Apr 07 13:03:25 Nope Apr 07 13:03:31 Probably 4.3 time **** ENDING LOGGING AT Sun Apr 08 03:00:02 2018