Thursday, 2023-01-26

T42<edp_17> Hi all! A quick question. Is it possible to reboot the device into recovery from Sailfish Os by a .sh script?16:28
T42<edp_17> I've found "/usr/bin/systemctl" has an command "reboot [ARG]". Anyone knows what argumentums can be used here?16:30
T42<edp_17> Okay, I've found that argumentum list.16:31
T42<foxclore> okay so resetting and removing old packages didn't work. So i might just redo the droid section one more time from scratch17:09
T42<elros34> can you show up-to-date droid-hal-device log now?17:10
T42<foxclore> @elros34 yes, here it is:
T42<elros34> so did you checkout droidmedia to 0.20211101.0, make droidmedia and package it?17:14
T42<foxclore> oh make droidmedia in chroot?17:16
T42<elros34> yeah, "Updating and building droidmedia" section17:17
T42<elros34> and show droid-hal-device.log after that17:18
T42<elros34> make sure you have correct version installed in target so: 'sb2 -t $VENDOR-$DEVICE-$PORT_ARCH -m sdk-install -R zypper --plus-repo $ANDROID_ROOT/droid-local-repo/$DEVICE in droidmedia' or something like that. If it fails then you should see some hints from zypper17:21
T42<foxclore> okay so i did that, here is the new log:
T42<foxclore> 17:25
T42<foxclore> also the command in your latest message just fails with "no provider for droidmedia" with no hints (17:25
T42<elros34> maybe wrong path for local repo, check, I do not remember excatly17:26
T42<elros34> is that paste droid-hal-device.log file?17:26
T42<foxclore> no, it's correct17:26
T42<foxclore> oh wait that's localbuild, sorry17:27
T42<foxclore> @elros34 i am so  sorry, here is the droid-hal-dreamlte.log
T42<elros34> can you also show revision with git log from rpm/dhd/ ? Did you build droid-hal after making changes?17:36
T42<foxclore> after checking out correct version of droidmedia i did only "make droidmedia" in habuild and then —gg17:38
T42<foxclore> also how do I show you revision with git log? just git log or something else? sorry not really that familiar with git17:38
T42<elros34> just run 'git log' in rpm/dhd directory17:38
T42<foxclore> @elros34 here it is:
T42<elros34> I am not sure, maybe you have some leftovers in hybris/mw/droidmedia-localbuild, in out/ or somewhere else17:44
T42<elros34> do you have  hybris/mw/droidmedia-localbuild/*/droidmedia-localbuild.spec and is it correct?17:47
T42<elros34> not sure if that is where this psec file should be17:47
T42<elros34> spec*17:47
T42<foxclore> hm, i only have droidmedia-localbuild.spec in rpm/dhd/helpers17:48
T42<foxclore> not sure whether its correct but looks fine to me17:49
T42<elros34> maybe it's clean up after building. Correct = without this change:
T42<foxclore> pulled it, what should i run next? —gg or —droid-hal?17:55
T42<elros34> how? git logs shows your latest commit to "Fix checking kernel version when dtbo.img has been built"17:57
T42<foxclore> well I just did git pull 34ca9714cf3be3884b4874b8e2e8e404d3e90980 (re @elros34: how? git logs shows ...)17:57
T42<elros34> that way you included this commit17:59
T42<elros34> maybe somebody who build recently sfos image can tell what is best droid-hal-device submodule revision18:00
T42<foxclore> oh without18:00
T42<foxclore> okay18:00
T42<foxclore> will try commit before18:00
T42<elros34> as last resort clean /out/target/product/%{device}/system/etc/init/* and then make hybris-hal droidmedia and package18:01
T42<foxclore> well maybe i just might do what you said and redo the whole "packaging droid hal" from scratch?18:02
T42<elros34> no sure what do you mean by that, you already build droid-hal (package) according to your log. Cleaning whole out/ sounds too much18:04
T42<foxclore> I meant the section in hadk pdf, or that is excessive ?18:06
T42<elros34> I see no point, you will endup with same wrong comiit and gain nothing18:07
T42<foxclore> (((18:09
T42<foxclore> okay might try your suggestion then18:09
T42<elros34> ah there is even issue about it:
T42<foxclore> oh okay might try the fix suggested18:14
T42<elros34> yeah the point is you should not be able to apply this fix but anyway. Did you remove droidmedia-localbuild*, everything with droidmedia name and check file.list?18:19
malI know which line is the problem but not sure about a good way to fix it18:21
malI should try to have another look18:21
malbut the older version should have fixed that18:23
*** Daaanct12 is now known as Danct1218:48
T42<edp_17> mal : Good evening! Have you got idea about the audio issue?21:19
malcan you grab a new journal log with the symlink in place, then when you try to play audio get "pactl list" as defaultuser and also get logcat21:22
T42<edp_17> Okay, I reboot and get logs.21:23
T42<edp_17> logcat:
T42<edp_17> journal:
T42<edp_17> pact list:
T42<edp_17> All while playing a music.21:30
T42<edp_17> Sink #0 is suspended and Sink #1 is running.21:44
T42<edp_17> Sink #0 is the primary_output. Shouldn't be Sink #0 running?21:45
mal@edp_17 try editing /etc/pulse/ to this: load-module module-droid-card rate=48000 quirks=+no_hw_volume,-output_deep_buffer21:51
malthen systemctl --user restart pulseaudio21:51
T42<edp_17> Still no sound.21:53
T42<edp_17> Do you need new logs?21:53
malshow "pactl list" now21:53
T42<edp_17> mal : pact list :
T42<edp_17> pact list while playing music:
T42<edp_17> Now Sink #0 is Running.21:56
maltry: oad-module module-droid-card rate=48000 quirks=-output_deep_buffer21:57
malmissing l from the beginning of course21:57
T42<edp_17> No sound. pactl list while playing music:
maltry: load-module module-droid-card rate=48000 quirks=-output_deep_buffer,+set_parameters22:01
maland if that doesn't work then: load-module module-droid-card rate=48000 quirks=+set_parameters22:01
maljust going through various combinations of quirks that could be helpful22:02
T42<edp_17> Okay, no problem. This "load-module module-droid-card rate=48000 quirks=-output_deep_buffer,+set_parameters" didn't work:
T42<edp_17> And the other one didn't work either:
malcan you show output of evdev_trace -i (which is in mce-tools package)22:07
maldid you disable the second ril slots or not?22:09
T42<edp_17> edvev_trace -i :
T42<edp_17> I don't remember that I disabled.22:09
malby removing the wrong configs from /etc/ofono/ (the dual sim things in the subfolders)22:10
T42<edp_17> /etc/ofono/ril_subscription.d/dual-sim.conf DOES exist but /etc/ofono/binder.d/dual-sim.conf DOES NOT22:10
T42<edp_17> I remove the existing one too.22:10
T42<edp_17> After removal of that file, I try the combinations of quirks you gave me.22:12
malfor headset connection detection you might want to add file /etc/ohm/plugins.d/accessories.ini with content: jack-match = msm8953_snd_card-tfa987x Headset Jack22:13
T42<edp_17> Already done that. This is what I have:
T42<edp_17> I've checked and /dev/input/event5 reacted when attached/detached the jack.22:14
malok, and those work?22:15
maldoes audio play through those?22:15
T42<edp_17> Unfortunately, it doesn't. :(22:16
maldoes volume bar change when you try to change volume when playing audio22:17
malwhen you press volume up and down22:18
T42<edp_17> Yes, Volume bar works fine when pressing volume up/down buttons.22:19
T42<edp_17> I've deleted /etc/ofono/ril_subscription.d/dual-sim.conf and re-tried all those four combination in /etc/pulse/ but still no luck.22:20
malsome possibly strange messages in logcat but I need to investigate more22:29
T42<edp_17> Okay, would you like to do it now or at another time?22:30
malit's a bit later already here so maybe not now22:30
T42<edp_17> Okay, thanks for your time so far.22:31
T42<edp_17> Btw, I still have HYBRIS_USE_VENDOR_NAMESPACE=yes in /etc/sysconfig/pulseaudio22:31
malit should not matter because pulseaudio start without issues22:32
T42<edp_17> I see. I'll leave it then. Should I add it into sparse on host?22:33
malno need, you had pulseaudio starting even without it so it should not be needed22:34
T42<edp_17> Okay, thanks.22:34
T42<elros34> I wonder if hidl_compat (workaround  for missing  64 audio lib) from halium could work for you22:38
T42<edp_17> Hi @elros34!22:38
T42<edp_17> I can try.  What's that?22:38
T42<edp_17> Oh, I see :
T42<edp_17> Although, I only have these two libraries in /system/lib64/hw :
T42<elros34> search in vendor too22:46
T42<edp_17> There are a bit more but no hidl thingy :
T42<elros34> that's the one :audio.primary.msm8953.so22:48
T42<elros34> or default22:49
T42<edp_17> Where to should I bind mount it?22:50
T42<elros34> IIRC you need to bind mount hidl_compat to audio.primary.default.so22:51
T42<edp_17> So, I should try:22:52
T42<edp_17> mount -o bind /system/lib64/hw/ /vendor/lib64/hw/audio.primary.default.so22:52
T42<edp_17> or22:52
T42<edp_17> mount -o bind /system/lib64/hw/ /vendor/lib64/hw/audio.primary.msm8953.so22:53
T42<edp_17> Right?22:53
T42<elros34> I think the first one, it's solution for missing lib64 and similar after all22:54
T42<edp_17> Should I  change anything in /etc/pulse/ ?22:54
T42<elros34> I do not remember anything like that22:55
T42<edp_17> Okay. Let me try.22:55
T42<edp_17> Hmm, is that the correct syntax? :
T42<elros34> not really, for sure you do not have hidl_compat in /system because you need to build it22:58
T42<edp_17> I see. Where should I clone this and how can I build?23:00
T42<elros34> clone as always to place which is name suggest vendor/halium/hardware but I think it doesn't matter. Check about module name and build via make23:05
T42<elros34> make sure you use correct branch for your android base23:06
T42<edp_17> My base is los17.1 o I need halium-1023:08
T42<edp_17> Okay, now I have two files with two different sizes.23:18
T42<edp_17> One in out/target/product/ocean/obj/SHARED_LIBRARIES/23:18
T42<edp_17> and another in out/target/product/ocean/obj/SHARED_LIBRARIES/LINKED/23:18
T42<edp_17> Which one should I copy onto device?23:19
T42<elros34> not sure, 'file' them23:20
T42<elros34> or just try23:20
T42<edp_17> 'file' them?23:21
T42<elros34> yeah 'file <path to file>'23:22
T42<elros34> ah  is in itermediate directory so ignore that one23:22
T42<edp_17> Both of them are there.23:24
T42<edp_17> out/target/product/ocean/obj/SHARED_LIBRARIES/audio.hidl_compat.default_intermediates/23:25
T42<edp_17> and23:25
T42<edp_17> out/target/product/ocean/obj/SHARED_LIBRARIES/audio.hidl_compat.default_intermediates/LINKED/23:25
T42<elros34> use that one you got after make finished and you should be good23:30
T42<edp_17> How do you mean "the one after make finished"?23:32
T42<edp_17> I've tried both on device but none of them helped with audio.23:32
T42<edp_17> Okay, I see how you mean.23:35
T42<edp_17> There is one in out/target/product/ocean/system/lib64/hw/23:35
T42<edp_17> Its size as the same as the one in out/target/product/ocean/obj/SHARED_LIBRARIES/audio.hidl_compat.default_intermediates/23:36
T42<elros34> after make finish it should print correct so file. Do not forget to reenable audio service23:37
T42<edp_17> I restarted pulseaudio, isn't that enough?23:38
T42<edp_17> Also, on device where should I copy that ?23:39
T42<edp_17> I've put into /system/lib64/hw then bind mounted to /vendor/lib64/hw/ (and then to /vendor/lib64/hw/
T42<edp_17> I've re-built droid-hal packages and seen that the ( will go into /usr/libexec/droid-hybris/system/lib/hw/23:41
T42<edp_17> So, which location is the correct one?23:42
T42<elros34> it doesn't matter, you are bind mount it after all. For sure putting anything to read only system is not good idea23:43
T42<edp_17> Okay, I've removed it from /system/lib64/hw and copied into /usr/libexec/droid-hybris/system/lib/hw/23:44
T42<edp_17> Now, I reboot and see what happens.23:44
T42<elros34> look ate the PR you linked, just one bind mount to and one audio service started23:44
T42<edp_17> I have found this service : /vendor/etc/init/
T42<edp_17> How can I enable it?23:51
T42<edp_17> After all is it the one I need to enable?23:52
T42<elros34> check whether is running and if not check disabled_services.rc23:54
T42<edp_17> ps ax doesn't show it's running and either I haven't found with systemctl status .23:55
T42<edp_17> Where is that disabled_services.rc ?23:55
T42<elros34> in your sparse23:56
T42<elros34> or in submodule23:56
T42<edp_17> Found that, thanks.23:57

Generated by 2.17.1 by Marius Gedminas - find it at!