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 scratch | 17:09 |
T42 | <elros34> can you show up-to-date droid-hal-device log now? | 17:10 |
T42 | <foxclore> @elros34 yes, here it is:https://pastebin.com/5C4TtVpn | 17:12 |
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" section | 17:17 |
T42 | <elros34> and show droid-hal-device.log after that | 17: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 zypper | 17:21 |
T42 | <foxclore> okay so i did that, here is the new log: https://pastebin.com/yvEBDNWL | 17:25 |
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 excatly | 17:26 |
T42 | <elros34> is that paste droid-hal-device.log file? | 17:26 |
T42 | <foxclore> no, it's correct | 17:26 |
T42 | <foxclore> oh wait that's localbuild, sorry | 17:27 |
T42 | <foxclore> @elros34 i am so sorry, here is the droid-hal-dreamlte.log https://pastebin.com/ZmSHUQkc | 17:29 |
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 build_packages.sh —gg | 17: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 git | 17:38 |
T42 | <elros34> just run 'git log' in rpm/dhd directory | 17:38 |
T42 | <foxclore> @elros34 here it is: https://pastebin.com/1eRVpbpD | 17:41 |
T42 | <elros34> I am not sure, maybe you have some leftovers in hybris/mw/droidmedia-localbuild, in out/ or somewhere else | 17: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 be | 17:47 |
T42 | <elros34> spec* | 17:47 |
T42 | <foxclore> hm, i only have droidmedia-localbuild.spec in rpm/dhd/helpers | 17:48 |
T42 | <foxclore> not sure whether its correct but looks fine to me | 17:49 |
T42 | <elros34> maybe it's clean up after building. Correct = without this change: https://github.com/mer-hybris/droid-hal-device/commit/34ca9714cf3be3884b4874b8e2e8e404d3e90980 | 17:50 |
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> https://irc.thaodan.de/.imgstore/0d75e686/file_4448.jpg | 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 commit | 17:59 |
T42 | <elros34> maybe somebody who build recently sfos image can tell what is best droid-hal-device submodule revision | 18:00 |
T42 | <foxclore> oh without | 18:00 |
T42 | <foxclore> okay | 18:00 |
T42 | <foxclore> will try commit before | 18:00 |
T42 | <elros34> as last resort clean /out/target/product/%{device}/system/etc/init/* and then make hybris-hal droidmedia and package | 18: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 much | 18: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 nothing | 18:07 |
T42 | <foxclore> ((( | 18:09 |
T42 | <foxclore> okay might try your suggestion then | 18:09 |
T42 | <elros34> ah there is even issue about it: https://github.com/mer-hybris/droid-hal-device/issues/332 | 18:12 |
T42 | <foxclore> oh okay might try the fix suggested | 18: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 |
mal | I know which line is the problem but not sure about a good way to fix it | 18:21 |
mal | I should try to have another look | 18:21 |
mal | but the older version should have fixed that | 18:23 |
*** Daaanct12 is now known as Danct12 | 18:48 | |
T42 | <edp_17> mal : Good evening! Have you got idea about the audio issue? | 21:19 |
mal | can 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 logcat | 21:22 |
T42 | <edp_17> Okay, I reboot and get logs. | 21:23 |
T42 | <edp_17> logcat: https://paste.ubuntu.com/p/nBbPT8ssVv/ | 21:28 |
T42 | <edp_17> journal: https://paste.ubuntu.com/p/tbtTyvRnWh/ | 21:29 |
T42 | <edp_17> pact list: https://paste.ubuntu.com/p/gcp7VTxB7P/ | 21:30 |
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/arm_droid_card_custom.pa to this: load-module module-droid-card rate=48000 quirks=+no_hw_volume,-output_deep_buffer | 21:51 |
mal | then systemctl --user restart pulseaudio | 21:51 |
T42 | <edp_17> Still no sound. | 21:53 |
T42 | <edp_17> Do you need new logs? | 21:53 |
mal | show "pactl list" now | 21:53 |
T42 | <edp_17> mal : pact list : https://paste.ubuntu.com/p/m4MRfP23BH/ | 21:55 |
T42 | <edp_17> pact list while playing music: https://paste.ubuntu.com/p/FpkBNzCzbk/ | 21:56 |
T42 | <edp_17> Now Sink #0 is Running. | 21:56 |
mal | try: oad-module module-droid-card rate=48000 quirks=-output_deep_buffer | 21:57 |
mal | missing l from the beginning of course | 21:57 |
T42 | <edp_17> No sound. pactl list while playing music: https://paste.ubuntu.com/p/8ttSR8Vg6v/ | 21:59 |
mal | try: load-module module-droid-card rate=48000 quirks=-output_deep_buffer,+set_parameters | 22:01 |
mal | and if that doesn't work then: load-module module-droid-card rate=48000 quirks=+set_parameters | 22:01 |
mal | just going through various combinations of quirks that could be helpful | 22:02 |
T42 | <edp_17> Okay, no problem. This "load-module module-droid-card rate=48000 quirks=-output_deep_buffer,+set_parameters" didn't work: https://paste.ubuntu.com/p/Gdq8mJKKWJ/ | 22:03 |
T42 | <edp_17> And the other one didn't work either: https://paste.ubuntu.com/p/Fgn9S2X5Fg/ | 22:05 |
mal | can you show output of evdev_trace -i (which is in mce-tools package) | 22:07 |
mal | did you disable the second ril slots or not? | 22:09 |
T42 | <edp_17> edvev_trace -i : https://paste.ubuntu.com/p/qZtM8Wj6ch/ | 22:09 |
T42 | <edp_17> I don't remember that I disabled. | 22:09 |
mal | by 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 NOT | 22: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 |
mal | for headset connection detection you might want to add file /etc/ohm/plugins.d/accessories.ini with content: jack-match = msm8953_snd_card-tfa987x Headset Jack | 22:13 |
T42 | <edp_17> Already done that. This is what I have: https://paste.ubuntu.com/p/6jQFcJkZh7/ | 22:14 |
T42 | <edp_17> I've checked and /dev/input/event5 reacted when attached/detached the jack. | 22:14 |
mal | ok, and those work? | 22:15 |
mal | does audio play through those? | 22:15 |
T42 | <edp_17> Unfortunately, it doesn't. :( | 22:16 |
mal | ok | 22:17 |
mal | does volume bar change when you try to change volume when playing audio | 22:17 |
mal | when you press volume up and down | 22: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/arm_droid_card_custom.pa but still no luck. | 22:20 |
mal | some possibly strange messages in logcat but I need to investigate more | 22:29 |
T42 | <edp_17> Okay, would you like to do it now or at another time? | 22:30 |
mal | it's a bit later already here so maybe not now | 22:30 |
mal | *late | 22:31 |
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/pulseaudio | 22:31 |
mal | it should not matter because pulseaudio start without issues | 22:32 |
T42 | <edp_17> I see. I'll leave it then. Should I add it into sparse on host? | 22:33 |
mal | no need, you had pulseaudio starting even without it so it should not be needed | 22: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 you | 22: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 : https://gitlab.com/ubports/porting/community-ports/android10/samsung-galaxy-s10/samsung-exynos9820/-/commit/862515b70696e5d25c5ab1a6a51f84c491f77eca | 22:40 |
T42 | <edp_17> Although, I only have these two libraries in /system/lib64/hw : https://paste.ubuntu.com/p/B8RDTp2F34/ | 22:45 |
T42 | <elros34> search in vendor too | 22:46 |
T42 | <edp_17> There are a bit more but no hidl thingy : https://paste.ubuntu.com/p/xqvg9rVZ82/ | 22:47 |
T42 | <elros34> that's the one :audio.primary.msm8953.so | 22:48 |
T42 | <elros34> or default | 22: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.so | 22:51 |
T42 | <edp_17> So, I should try: | 22:52 |
T42 | <edp_17> mount -o bind /system/lib64/hw/audio.hidl_compat.default.so /vendor/lib64/hw/audio.primary.default.so | 22:52 |
T42 | <edp_17> or | 22:52 |
T42 | <edp_17> mount -o bind /system/lib64/hw/audio.hidl_compat.default.so /vendor/lib64/hw/audio.primary.msm8953.so | 22:53 |
T42 | <edp_17> Right? | 22:53 |
T42 | <elros34> I think the first one, it's solution for missing lib64 msm8953.so and similar after all | 22:54 |
T42 | <edp_17> Should I change anything in /etc/pulse/arm_droid_card_custom.pa ? | 22:54 |
T42 | <elros34> I do not remember anything like that | 22:55 |
T42 | <edp_17> Okay. Let me try. | 22:55 |
T42 | <edp_17> Hmm, is that the correct syntax? : https://paste.ubuntu.com/p/TQTKK526df/ | 22:56 |
T42 | <elros34> not really, for sure you do not have hidl_compat in /system because you need to build it | 22:58 |
T42 | <elros34> https://github.com/Halium/android_vendor_halium_hardware | 22:59 |
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 Android.mk about module name and build via make | 23:05 |
T42 | <elros34> make sure you use correct branch for your android base | 23:06 |
T42 | <edp_17> My base is los17.1 o I need halium-10 | 23:08 |
T42 | <edp_17> Okay, now I have two audio.hidl_compat.default.so files with two different sizes. | 23:18 |
T42 | <edp_17> https://paste.ubuntu.com/p/npvdnbxqMR/ | 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' them | 23:20 |
T42 | <elros34> or just try | 23: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 one | 23: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> and | 23: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 good | 23: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 service | 23:37 |
T42 | <edp_17> I restarted pulseaudio, isn't that enough? | 23:38 |
T42 | <edp_17> Also, on device where should I copy that audio.hidl_compat.default.so ? | 23:39 |
T42 | <edp_17> I've put into /system/lib64/hw then bind mounted to /vendor/lib64/hw/audio.primary.default.so (and then to /vendor/lib64/hw/audio.primary.msm8953.so) | 23:40 |
T42 | <edp_17> I've re-built droid-hal packages and seen that the audio.hidl_compat.default.so (http://audio.hidl_compat.default.so/) 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 idea | 23: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 audio.primary.default.so and one audio service started | 23:44 |
T42 | <edp_17> I have found this service : /vendor/etc/init/android.hardware.audio@2.0-service.rc | 23:51 |
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.rc | 23: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 sparse | 23:56 |
T42 | <elros34> or in submodule | 23:56 |
T42 | <edp_17> Found that, thanks. | 23:57 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!