Wednesday, 2019-09-11

T42Diego Lopes %lastname% was added by: Diego Lopes %lastname%01:05
*** phdeswer_ is now known as phdeswer06:34
Mister_Magistercan i instead of whole gui run just single app?08:06
T42<DylanVanAssche> I have a working back camera on `/dev/video1` which can be controlled through `/dev/media1`. It works in `gstreamer` already (taking a picture) with `v4l2src`. However, I don't how to proceed further from here.08:19
T42<DylanVanAssche> The Camera app displays the wrong input (`/dev/video0`). I checked some ports with the `jolla-hw-camera-configuration.txt` but nothing is available there to configure this.08:19
T42<jgibbon> @DylanVanAssche is it possible to swap video0 and video1 with custom udev rules? I know, possibly the worst idea, I'll shut up now. ;)09:29
T42<DylanVanAssche> hmmmm maybe, that's worst case :D09:31
mal@DylanVanAssche what is video0 on device?09:32
T42<DylanVanAssche> Cederus thing of the A6409:32
T42<DylanVanAssche> mal: Credus: https://linux-sunxi.org/Cedrus *09:36
T42<DylanVanAssche> *Cedrus , difficult name :D09:36
mal@DylanVanAssche so the codec device?09:41
T42<DylanVanAssche> mal: Yes09:42
saidinesh5Mister_Magister: sure. i think you have to disable systemd unit for lipstick10:03
saidinesh5and then set the environment variables that lipstick uses.. (the one for  selecting the QPA plugins and the correct input device)10:04
saidinesh5hi krnlyng. how goes it10:07
Mister_Magistersaidinesh5: hmm like setup wizardo?10:15
saidinesh5not sure what that is..10:16
saidinesh5i mean EGL_PLATFORM=hwcomposer10:17
saidinesh5QT_QPA_PLATFORM=hwcomposer10:17
saidinesh5# Determine which node is your touchscreen by checking /dev/input/event*10:17
saidinesh5LIPSTICK_OPTIONS=-plugin evdevtouch:/dev/input/event3 -plugin evdevkeyboard:keymap=/usr/share/qt5/keymaps/droid.qmap10:17
saidinesh5those will tell qt to load the appropriate platform plugin10:17
saidinesh5the lipstick_options - you gotta pass them as command line arguments to your app10:18
Mister_Magistersaidinesh5: just like startup wizard10:18
saidinesh5i think10:18
Mister_Magistersetup wizard*10:18
saidinesh5not sure about lipstick_options actually10:18
Mister_Magistersaidinesh5: when you boot sfos phone after install firt shows up setup wizard10:19
Mister_Magisterit's before lipstick10:19
saidinesh5I see.. i thought that is part of lipstick.. interesting10:19
saidinesh5that is part of lipstick10:20
saidinesh5$ pwd10:21
saidinesh5/usr/share/lipstick-jolla-home-qt5/compositor10:21
saidinesh5$ ls10:21
saidinesh5ApplicationCloseGestureHint.qml  ApplicationWallpaper.qml  BlurredBackground.qml  BlurSource.qml  DebugButton.qml  DebugWindow.qml  GlassBackground.qml  HardwareKeyHandler.qml  HomeWallpaper.qml  RotatingItem.qml  Sailfish3WelcomeScreenLoader.qml  Sailfish3WelcomeScreen.qml  UnresponsiveApplicationDialog.qml  WallpaperDimmer.qml  Wallpaper.qml10:21
Mister_Magistersaidinesh5: you are psting too much ;-;10:21
Mister_Magistersaidinesh5: it's not10:22
Mister_Magister /usr/bin/jolla-startupwizard-pre-user-session and /usr/bin/jolla-startupwizard10:22
Mister_Magisterweldome screen is when lipstick is started10:23
Mister_Magisterthat's after wizards10:23
saidinesh5I see10:23
Mister_Magisterhmm lemme try stopping gui10:23
krnlyngsaidinesh5, everything alright, how about you?10:24
saidinesh5oh not much.. back to porting world.. so thought to say hi!10:25
krnlyngvery cool :)10:25
krnlyngwhat are you porting?10:25
saidinesh5Oh just a top secret device :P10:26
Mister_Magistersaidinesh5: you see it can't be done QPA-HWC: There can only be one window, someone tried to create more. in createNativeWindow10:29
Mister_Magisterbut lipstick is fine10:30
saidinesh5interesting. on raspberry pi/other devices i used to use QT_QPA_PLATFORM=eglfs and run a single app on full screen10:31
saidinesh5iirc i remember running a single app even on my cancro port while porting10:31
Mister_Magistersaidinesh5: that ain't installed10:33
saidinesh5eglfs? sure not.10:34
Mister_Magisterhwc won't work ;-;10:34
saidinesh5systemctl disable lipstick (or the whole user part)10:36
T42<DylanVanAssche> mal: I created a simple QML app that shows the camera input. I get the same thing as with the Jolla Camera app.10:36
T42<DylanVanAssche> Using `GST_DEBUG=3`, I found this: https://bin.disroot.org/?ea75fa290ecf4123#7EADMePWozLN11BU1KLC2EkcrWH0MsYadWt7eX84vDg=10:36
T42<DylanVanAssche> So it's trying to use v4l2 but with the wrong device. Applying this env var doesn't help either: `export QT_GSTREAMER_CAMERABIN_VIDEOSRC_DEVICE="/dev/video1"` to force Gstreamer into using the right device10:36
saidinesh5and then reboot and start?10:36
Mister_Magistersaidinesh5: i don't have gui running i'm not idiot10:37
saidinesh5no i mean if gui tried to start before there maybe some "unfree'd" resources10:37
saidinesh5messing things up10:37
Mister_Magisteri'm not idiot.10:37
T42<elros34> You can't use ApplicationWindow {} without compositor. Install "simplecompositor" or use application which have Item/ Rectangle {} as root element.10:42
saidinesh5Ah interesting..10:45
Mister_Magister@elros34 whoa awesome thanks10:49
ghosalmartinmal: if test_hwc2 works, i guess most things should click into place?10:50
Mister_Magisteri thought i can make shimple jukebox from random device lying around10:50
Mister_Magisterghosalmartin: yes10:50
Mister_Magisterbut actually no10:50
ghosalmartinits odd, I have to run the android services first even though there running10:50
ghosalmartinthey seem to silently die10:50
ghosalmartinthese are also my mountup points10:51
ghosalmartinhttps://github.com/ghosalmartin/hybris-boot/blob/master/fixup-mountpoints#L1910:51
ghosalmartinbut /dev seems to be omitted when generated10:52
ghosalmartini had to hardcode it in the init-script10:52
Mister_Magister@elros34 and how do you use that simplecompositor?10:52
T42<elros34> install lipstick-qt5-simplecompositor, go to /usr/share/*simplecompositor and then start it same way like lipstick: so EGL_PLATFORM and plugins, then export correct WAYLAND_DISPLAY and start for example csd --platfrom wayland10:54
malghosalmartin: well those are just wrong10:54
ghosalmartinmal: fantastic :P10:54
malghosalmartin: if you check the other entries those do not have dev/10:55
ghosalmartinah I don't need the intial dev/10:55
ghosalmartinyeahh10:55
ghosalmartinI did those like a year ago :P10:55
malghosalmartin: usually a good idea to check the existing ones first :)10:55
ghosalmartinmal: also this commit i made10:55
ghosalmartinhttps://github.com/ghosalmartin/droid-config-marlin/commit/816e407fc267d21a17eb98df792574cadcf7db3c10:55
Mister_Magister@elros34 thanks10:55
ghosalmartinany idea why disabled_services.rc doens't make it to device10:55
malghosalmartin: it should, are you sure it installs correct version of the rpms, and that you rebuilt it correctly10:57
malcheck also the contect of the rpms10:57
ghosalmartinmal: ill force a rebuild since it seems like the libexec folder isn't there10:57
Mister_Magister@elros34 damn it's working11:03
Mister_Magistervolumecontrol is not working but i gues it's up to app to handle it11:05
ghosalmartinmal: did you ever find a fix for this http://www.merproject.org/logs/%23sailfishos-porters/%23sailfishos-porters.2019-04-30.log.html#t2019-04-30T21:30:4911:11
malghosalmartin: not yet11:16
malghosalmartin: I have device(s) which I can use to test that, I just need to find time11:16
ghosalmartinmal: is the issue that its not copying to the folder by default? why does it have to be vendor folder? why doesn't it just copy to normal root?11:17
malghosalmartin: for some reason certain files are not copied anymore if those would end up to vendor or system/vendor11:17
ghosalmartinmal: okays ill take a look11:18
malsome issue in the build minimizing11:18
ghosalmartinahhh okays11:18
malghosalmartin: are you using 15.1?11:22
ghosalmartinmal: yep11:23
malghosalmartin: so probably a combination of https://github.com/mer-hybris/android_build/commits/hybris-15.1 and things below this https://github.com/mer-hybris/hybris-boot/blob/master/Android.mk#L27011:24
ghosalmartinmal: could indeed11:25
ghosalmartinmal: $(filter ueventd%, $(product_MODULES)does that include or exclude11:28
malghosalmartin: fstab is also often a problem, one issue is that sometimes those are not a separate target but instead just copy file thing in device repo11:29
ghosalmartinmal: ive just replicated what I could from the device.mk11:34
spiiroinreview/testing appreciated: https://git.merproject.org/mer-core/mce/merge_requests/12711:37
spiiroin^ compositor/brightness tweaking mostly relevant for devices using kms/drm instead of fbdev11:37
ghosalmartinthis seems like an issue12:33
ghosalmartin Adreno-GSL: <ioctl_kgsl_driver_entry:767>: open(/dev/kgsl-3d0) failed: errno 2. No such file or directory12:33
ghosalmartinbut the file is there so?12:33
malghosalmartin: pretty sure your don't have proper ueventd*.rc files in out12:34
ghosalmartingod damn it12:34
ghosalmartincause I didn't rename it12:35
ghosalmartinfml12:35
ghosalmartingotta do the whole rebuild process again haha12:35
maloops12:35
ghosalmartinah wells i can regenerate while i manually copy and paste the sucker12:40
ghosalmartinmal: still same issue, its weird since the file exists12:54
ghosalmartinand the permissions are correct12:54
malghosalmartin: how did you manually copy things?12:59
ghosalmartinmal: transfered via filezilla13:00
ghosalmartinam going through what you said to osum4est and i maybe missing the qualcomm flag13:00
ghosalmartinhas anyone fixed up the faq?13:01
ghosalmartinthis sucker actually still occurs13:06
ghosalmartinkgsl kgsl-3d0: |_load_firmware| request_firmware(a530_pm4.fw) failed: -213:06
ghosalmartineven though ive mounted vendor/firmware at lib/firwamre13:07
malghosalmartin: I mean which files did you copy to device?13:15
malghosalmartin: faq went away, unfortunately there were no recent backups13:15
malsome backups from months ago probably exist13:15
malghosalmartin: oh, you are missing firmware13:16
malghosalmartin: where is that a530_pm4.fw ?13:16
malghosalmartin: did you change default mounting of firmware stuff?13:17
ghosalmartinmal: i think i have a recent backup13:18
ghosalmartinmal: 999-android-system.rules13:19
ghosalmartinmal: its in /lib/firmware/a530_pm4.fw13:19
ghosalmartinwhich is really /vendor/firmware13:19
ghosalmartinno i didnt change the default mounting, should i?13:20
malghosalmartin: https://github.com/mer-hybris/droid-hal-configs/blob/master/sparse/usr/bin/droid/droid-load-firmware.sh#L313:23
malghosalmartin: do you see anything from that loader in logs?13:23
malghosalmartin: do you have the fw loader thingy enabled in kernel config?13:23
ghosalmartinmal: nahh13:24
ghosalmartinmal: dont know13:24
malghosalmartin: https://github.com/mer-hybris/mer-kernel-check/blob/master/mer_verify_kernel_config#L18813:24
ghosalmartinhttps://github.com/ghosalmartin/android_kernel_google_marlin/blob/hybris-15.1/arch/arm64/configs/lineageos_marlin_defconfig#L106813:25
malenable that13:25
ghosalmartinokays13:26
ghosalmartinkgsl: _read_fw2_block_header: GPMU unknown header ID 613:32
ghosalmartinmal: well test_hwc2 now works13:33
ghosalmartinthe appropriate android services are staying alive as well13:38
ghosalmartinhttps://pastebin.com/DkB3MHBd13:48
ghosalmartinthats were things are going wrong now13:48
ghosalmartinUnknown hwcomposer API: 0x3/0x2000001/0x200000113:50
ghosalmartinmal: also this is the version of the faq i had13:56
ghosalmartinhttps://pastebin.com/Yjuwvc0S13:56
malghosalmartin: are you sure it builds hwc2 ? https://github.com/mer-hybris/qt5-qpa-hwcomposer-plugin/blob/025bd87abde8ba67ffafa0c704cdaa4ca9fcad19/hwcomposer/hwcomposer.pro#L5214:11
malghosalmartin: verify you have suitable libhybris version in either hybris/mw/libhybris or external/libhybris14:12
ghosalmartinmal: yes because test_hwc2 works fine18:29
malthen why does it fail to find correct version18:31
malghosalmartin: are you sure you have rebuilt qt5-qpa-hwcomposer-plugin properly?18:31
T42<PacoLanciano> hi, i builded up sailfish 3.1.0.12 for my device, but it's stuck on bootloader... led blinks white and dmesg says this https://pastebin.com/8AuxS74r18:33
malcan you telnet in ("telnet 192.168.2.15 23" or 2323)? which android base and device?18:37
T42<PacoLanciano> oh, yes 232318:38
T42<PacoLanciano> i have to look at init.log?18:38
malif 2323 works then dmesg and possibly journalctl18:40
maland depending on whether booting has gone far enough also output of /usr/libexec/droid-hybris/system/bin/logcat18:43
T42<PacoLanciano> dmesg: https://pastebin.com/z3BeKicQ18:44
T42<PacoLanciano> journalctl: https://pastebin.com/rjH3cBxe18:49
T42<PacoLanciano> logcat https://pastebin.com/9Wvtr5Wb18:52
malwhich android base?19:03
mallogcat is a command not a log file19:03
malbut based on dmesg logcat won't work19:03
malyou probably are missing *_context files from straggler files define in droid-hal spec19:04
T42<PacoLanciano> @mal [which android base?], cm14.119:05
T42<PacoLanciano> @mal [but based on dmesg logcat won't work], yes it gives me read failure19:06
malso find folder root in $ANDROID_ROOT/out/ and check all files named *_context*19:13
maldo you find any?19:13
T42<PacoLanciano> should there be a root directory in hadk/out?19:30
malnot directly under it but somewhere under some subfolder19:31
mal"find out/ -name root"19:32
Mister_Magisterjusa: about easier fix. When loudspeaker mic is redirected to earspeaker mode caller says i'm quiet. Can i increase mic volume in that mode somehow?19:33
Mister_Magisterthat would be another ugly hack but at lest something19:33
T42<PacoLanciano> i have file_contexts.bin19:37
T42<PacoLanciano> property_contexts19:37
T42<PacoLanciano> seapp_contexts19:37
T42<PacoLanciano> service_contexts19:37
maladd those to straggler files define to your droid-hal-$DEVICE.spec which is in ANDROID_ROOT/rpm/ like this https://github.com/mer-hybris/droid-hal-sony-ganges-pie/blob/master/rpm/droid-hal-common.inc#L1720:00
maljust replace the files with correct ones20:00
Mister_Magistermal: lol i updated dcd submodule and phone still boots xd20:01
Mister_Magisterdroid-hal-init service is seriously broken20:03
Mister_Magisterit doesn't do mount --bnid20:03
Mister_Magisterhmm maybe because of ProtectSystem=full?20:04
Mister_Magisteryeah one of the modes break it20:07
T42<PacoLanciano> ok seapp_contexts is missing in .spec file i added it20:07
Mister_Magistermal: https://github.com/mer-hybris/droid-hal-configs/blob/379b517b5bf14c1d2fa46289900ae5a32d5dcb75/sparse/lib/systemd/system/droid-hal-init.service#L17 this is breaking mount --bind20:08
Mister_Magisterin droid-hal-early-startup.sh20:08
ghosalmartinmal: lemme check in obs, that seemed to fail to rebuild my conf as well20:12
ghosalmartinmal: yep thats the problem, ill rebuild it tomorrow but it seems obs isn't rebuilding everything as it claims20:12
ghosalmartinhttps://build.merproject.org/package/show/home:mgrover:devel:hw:google:marlin/qt5-qpa-hwcomposer-plugin20:12
malghosalmartin: isn't that also very old repo20:14
ghosalmartinmal: it is, but when I update droid-hal it tells me everything is rebuilding, so I assume it would also reclone20:15
malghosalmartin: that version didn't yet have hwc220:15
malghosalmartin: it doesn't fetch sources again, just rebuilds20:15
ghosalmartinwell that explains a lot, anyway I can trigger a refetch20:15
malghosalmartin: so better edit each _service file so it fetches new versions20:16
ghosalmartinyah am doing that now20:16
ghosalmartinactually...20:16
ghosalmartinthat could explain my bullhead problems as well...20:16
malghosalmartin: probably does20:16
malghosalmartin: a good reminder to check my fp2 project if in doubt which versions to use :D20:17
Mister_Magistermal: actually no20:17
Mister_Magisterall 3 options need to be removed20:17
Mister_Magisterto get it working20:17
ghosalmartinmal: i think if I remove the meta from obs, and put it back, it refetches everything20:17
malghosalmartin: I think editing _service is needed20:18
malghosalmartin: btw, you can removed the vibrator middleware from that project, ngfd and qtfeedback20:18
mal*remove20:18
malghosalmartin: native vibrator packages are available in jolla repos20:19
malMister_Magister: hmm, strange20:20
Mister_Magistermal: not strange. pretty normal20:20
Mister_Magisterdroid-hal-early-startup is currently not working on any phone20:20
malMister_Magister: how does it work for others20:21
Mister_Magisterhow does it not work?20:21
malI mean it was added and it did work20:21
Mister_Magisternot working on pro1, 5z, x2 and i can put it on any of my ports and it will not work20:21
Mister_Magisterit was never working20:21
malhttps://github.com/mer-hybris/droid-config-sony-ganges-pie/blob/master/sparse/usr/bin/droid/droid-hal-early-init.sh20:23
Mister_Magistermal: that source is broken i said it's not working20:23
malhow do you explain that it worked on x1020:24
Mister_Magisterhow do you explain that it doesn't work on 5 phones20:24
Mister_Magisterwell 320:25
malwhat error do you see in logs?20:25
Mister_Magisterthere is no error20:25
malvery strange because it did work20:26
Mister_Magisternot strage it never worked20:26
malthis is going no where so I'll go away20:27
malyou really think x10 would have had non-working thing20:28
Mister_Magisterno20:28
Mister_Magisteri think that it's working only for x1020:28
malhow would it only work for one device20:28
Mister_Magisterdon't ask me, ask your company20:29
ghosalmartinill deal with it tomorrow, spent the day trying and failing to fix a dishwasher, mal: thanks for the help20:29
malghosalmartin: you missed couple of package updates, sensorfw at least maybe20:36
Mister_Magistermal: try it on your fp2 binding any file to system20:37
piggz_mal: thoughts? https://github.com/mer-hybris/bluebinder/pull/721:27

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!