T42 | <A_T_R> building hybris-hal fails ,anyone look at this | 02:29 |
---|---|---|
T42 | <A_T_R> rpm/dhd/helpers/build_packages.sh -d | 02:29 |
T42 | <A_T_R> log https://pastebin.ubuntu.com/p/dDFCzcBT4b/ | 02:29 |
T42 | <A_T_R> building hybris-hal fails ,anyone look at this ? | 03:48 |
T42 | <A_T_R> rpm/dhd/helpers/build_packages.sh -d | 03:48 |
T42 | <A_T_R> log https://pastebin.ubuntu.com/p/dDFCzcBT4b/ (edited) | 03:48 |
T42 | <elros34> @A_T_R so you did sdk target upgrade? Remove rpm database and try again: solution is in hadk-hot | 08:01 |
T42 | <adampigg> mal: whats the process for upgrading all targets to a newer release? | 08:21 |
mal | @adampigg I use "sdk-foreach-su -ly ssu re 4.4.0.72", then "sdk-foreach-su -ly zypper ref" and finally "sdk-foreach-su -ly zypper dup" and in case rpm database breaks I run "sdk-foreach-su -ly rpm --rebuilddb" and try the previous command again | 09:17 |
piggz | mal: interesting ... i was looking into me weird audio routing bug for whem im connected via an aux cable to my car ... | 09:51 |
piggz | the initial fix for headphones was https://github.com/sailfish-on-fxtecpro1/droid-config-halium-qx1050/blob/main/sparse/etc/ohm/plugins.d/accessories.ini | 09:51 |
piggz | when testing with evdev_trace, when plugging in headphones i get 3 events, SW_HEADPHONE_INSERT, SW_MICOPHONE_INSERT and SW_JACK_PHYSICAL_INSERT | 09:52 |
piggz | for an aux cable, I only get the last one of those | 09:52 |
piggz | so, seems it not routing based on that physical_insert event properly | 09:52 |
T42 | <elros34> have you tried /sys/class/switch/h2w? | 09:54 |
mal | piggz: https://github.com/sailfishos/ohm-plugins-misc/blob/master/plugins/accessories/wired.c#L379 rtfc :) | 09:59 |
mal | could be some other stuff there also | 09:59 |
mal | piggz: is it supposed to route just playback in that case and not microphone, then it might need some patching to support that, now it only handle when there is SW_MICOPHONE_INSERT and SW_JACK_PHYSICAL_INSERT | 10:06 |
mal | as you can see here https://github.com/sailfishos/ohm-plugins-misc/commit/24d40904ae1552d99de88ccb04c82baa52e076c7 | 10:08 |
piggz | well, in my case, i'd also be connected via BT to a seperate car kit, so id want call audio/mic to be routed there, and regular audio out via the line-out :) | 10:10 |
piggz | if there was no BT connected, im not sure where i would want things routed!! :D | 10:10 |
piggz | @elros34 i dont have /sys/class/switch | 10:12 |
piggz | probably the quirk would be fine .. if someone is using phone just as a media player, theyre not too interested in the microphone | 10:22 |
*** ggabriel is now known as Guest19 | 10:28 | |
*** ggabriel is now known as Guest24 | 11:22 | |
*** ggabriel is now known as Guest25 | 11:28 | |
mal | piggz: test that and see if you need to add a new case where you have this without the microphone part setting DEV_HEADPHONE https://github.com/sailfishos/ohm-plugins-misc/blob/master/plugins/accessories/wired.c#L805 | 11:49 |
piggz | mal: will do ... i wonder if there is a use-case for line-out only audio | 11:55 |
piggz | i hope ths doesnt break my BT setup ... maybe that was only working becuase it wasnt routing as a headset! | 11:55 |
mal | is it really possible to have two routings at the same time, sounds odd | 12:01 |
T42 | <A_T_R> rpm/dhd/helpers/build_packages.sh -g | 12:23 |
T42 | <A_T_R> fails with | 12:23 |
T42 | <A_T_R> ``` | 12:23 |
T42 | <A_T_R> cp: cannot stat 'external/droidmedia/init/*.rc': No such file or directory | 12:23 |
T42 | <A_T_R> error: Bad exit status from /var/tmp/rpm-tmp.B12cAn (%install)``` | 12:23 |
T42 | <A_T_R> | 12:23 |
T42 | <A_T_R> | 12:23 |
T42 | <A_T_R> full log https://pastebin.ubuntu.com/p/T3nZmY8DZZ/ | 12:23 |
T42 | <elros34> any particular reason why do you use 0.20220213.0 instead recommended version or latest? | 12:27 |
T42 | <A_T_R> which one is recommended | 12:29 |
T42 | <elros34> read hadk-faq or 4.4.0 changelog | 12:29 |
mal | 0.20211101.0 | 12:29 |
T42 | <elros34> whether you will choose: latest or recommended then most likely you will need to do additional steps | 12:30 |
T42 | <A_T_R> For 4.4.0.x | 12:31 |
T42 | <A_T_R> - droidmedia: 0.20211101.0 | 12:31 |
T42 | <A_T_R> how to use this version | 12:31 |
mal | go to external/droidmedia folder and use git reset to force the version there | 12:32 |
T42 | <elros34> if you chose this one then most likely you will have to revert latest commit in droid-hal-device submodule | 12:32 |
mal | well the dhd submodule should be fixed to it won't fail like that | 12:33 |
mal | *so | 12:33 |
mal | should be easy to make the command not fail if the file is missing | 12:34 |
T42 | <A_T_R> git reset —hard 0.20211101.0 ? | 12:38 |
piggz | mal: in an ideal world ... if you had lineout routing, and a BT headset connected, media audio would co to line-out, then, when a call is made, headset/mic is routed to BT, then, when call finished, routing returns to line-out | 12:39 |
mal | hmm | 12:40 |
T42 | <A_T_R> still it fails building -g | 12:43 |
T42 | <elros34> did you revert commit I was talking about? | 12:47 |
T42 | <A_T_R> no | 12:49 |
T42 | <A_T_R> git reset —hard to previos commit in dhd? | 12:49 |
T42 | <Spidey24Z> Why dhd not building the correct version of droidmedia ? | 12:49 |
T42 | <A_T_R> which correct version? | 12:49 |
T42 | <A_T_R> ```8ca04be (HEAD -> master, hybris/master) Merge pull request #311 from mer-hybris/jb56158 | 12:51 |
T42 | <A_T_R> 34ca971 droidmedia-localbuild: Package init files | 12:51 |
T42 | <A_T_R> 960d6af Merge pull request #330 from mer-hybris/dtbo_fix ```@elros reset to this ? | 12:51 |
T42 | <A_T_R> @elros34 | 12:51 |
T42 | <Spidey24Z> And isn't the latest version is enough? | 12:51 |
mal | if latest version is used then droidmedia-devel needs to be build also, and then gst-droid | 12:52 |
T42 | <elros34> you can build latest droidmedia if you build also droidmedia-devel and gst-droid against it otherwise expect issues | 12:52 |
T42 | <A_T_R> successfully build -g | 12:54 |
T42 | <Spidey24Z> What about droidmedia local build ? | 12:55 |
T42 | <elros34> what about it? LIke it was said either you use recommended or latest with some additional steps | 12:57 |
T42 | <Spidey24Z> You said that droidmedia, droidmedia-devel and gst-droid should be the same version. The question is should I need droidmedia local build if I build all these packages? | 13:00 |
T42 | <elros34> no, they are not supposed to be in same version | 13:01 |
T42 | <elros34> see 4.4.0.x changelog and compare gst-droid/droidmedia versions | 13:02 |
T42 | <Spidey24Z> I mean latest versions | 13:02 |
mal | https://github.com/mer-hybris/droid-hal-device/pull/331 | 13:04 |
mal | with that old droidmedia should be fine | 13:05 |
T42 | <elros34> @Spidey24Z if you choose to use latest droidmedia then you must rebuild all packages which depends on droidmedia (in reality droidmedia-devel) so you need to build droidmedia-devel and gst-droid. I do not understand what you do you mean by droidmedia local build, it's same thing. you build droidmedia: make droidmedia and package it with build_packages.sh -g (see hadk-hot). If you wnat to build droidmedia-devel then you must choose droidmedia- | 13:05 |
T42 | <elros34> Making sure you use correct revision is important for all packages you build locally but usually it doesn't matter. droidmedia is different because it receives a lot of updates, you build it in habuild and package in sdk and gst-droid which depends on it is no longer built locally | 13:09 |
mal | using the correct droidmedia is much easier to do than updating all of those | 13:11 |
T42 | <Spidey24Z> i get it now | 13:16 |
T42 | <Spidey24Z> i build this version droidmedia-0.20220211.1-1.aarch64.rpm | 13:16 |
T42 | <Spidey24Z> still have the same issue when i press stop recording camera app stop responding and it force close | 13:29 |
mal | does logcat should messages about it waiting for audio policy service | 13:32 |
mal | *show messages | 13:32 |
T42 | <Spidey24Z> lemme see | 13:32 |
T42 | <Spidey24Z> no it dosen't but log spamming with | 13:35 |
T42 | <Spidey24Z> E DroidMediaBufferQueue: Client wasn't able to handle a received frame | 13:35 |
mal | which android base? | 13:35 |
T42 | <Spidey24Z> 17.1 | 13:35 |
T42 | <Spidey24Z> in waydroid video recording works fine | 13:37 |
mal | do you have the latest patches applied to android sources to fix codec stuff | 13:37 |
mal | I merged fixes to hybris-patches 19 days ago | 13:38 |
T42 | <Spidey24Z> yes i applied them (re @SailfishFreenodeIRCBridgeBot: <mal>do you have the...) | 13:38 |
mal | ok | 13:38 |
mal | can you show the whole logcat | 13:38 |
T42 | <Spidey24Z> i'm the first one try them (re @SailfishFreenodeIRCBridgeBot: <mal>I merged fixes ...) | 13:38 |
T42 | <Spidey24Z> okay (re @SailfishFreenodeIRCBridgeBot: <mal>can you show th...) | 13:39 |
T42 | <elros34> did you build android part after applying patch? | 13:39 |
mal | that is a good question | 13:40 |
mal | which means building hybris-hal and droidmedia and then packaging both again | 13:40 |
T42 | <Spidey24Z> of curse i did ! (re @elros34: did you build androi...) | 13:40 |
T42 | <Spidey24Z> yes i build all of them twice even (re @SailfishFreenodeIRCBridgeBot: <mal>which means bui...) | 13:41 |
T42 | <Spidey24Z> mal: whole logcat https://gist.github.com/aymanrgab/766b358469d4e67d7f6275528c8b478e | 13:50 |
T42 | <Spidey24Z> https://github.com/mer-hybris/hybris-patches/blob/hybris-17.1/frameworks/av/0001-hybris-AudioService-is-disabled-in-hybris-adaptation.patch | 14:00 |
T42 | <Spidey24Z> could this be a problem if enabled audioservice ? | 14:00 |
T42 | <Spidey24Z> turns out that it's not all logcat (re @Spidey24Z: mal: whole logcat ht...) | 14:07 |
T42 | <Spidey24Z> this's where the camera starts https://gist.github.com/aymanrgab/bc106c9490ba3ed2377365514e0013c8 | 14:07 |
T42 | <A_T_R> what packages should rebuild after i "hybris-hal" again ?only —droid-hal or something else | 14:14 |
T42 | <elros34> depends on why you rebuild hybris-hal but usually yes droid-hal is enough | 14:17 |
T42 | <A_T_R> i build hybris-hak without "cpio" in ubuntu chroot ,later installed cpio and rebuild hybris-hal | 14:26 |
T42 | <elros34> then yes it's enough | 14:26 |
T42 | <elros34> @Spidey24Z does your logs are more human friendly if you do not add '-b all'? Also this logs are terrible to read so you should at least get rid of audit | 14:27 |
T42 | <A_T_R> video-recording still broken on aarch64 :( | 14:29 |
T42 | <elros34> and you apply patch mentioned previously? | 14:30 |
T42 | <A_T_R> sorry ,which patch | 14:30 |
T42 | <Spidey24Z> okay i'll make it more human readable (re @elros34: @Spidey24Z does your...) | 14:32 |
T42 | <elros34> @A_T_R latest from hybris-patches about 32/64bit compability | 14:35 |
T42 | <elros34> compatibility* | 14:35 |
T42 | <Spidey24Z> @elros34 https://gist.github.com/aymanrgab/ca64523fa3ef0b1c7fc77cbf21bf0721 | 14:39 |
T42 | <Spidey24Z> broken how ? (re @A_T_R: video-recording stil...) | 14:40 |
T42 | <A_T_R> So I have to repo sync and rebuild "hybris hal and droidmedia" in Ubuntu ? | 14:40 |
T42 | <A_T_R> freezing on video record (re @Spidey24Z: broken how ?) | 14:41 |
T42 | <Spidey24Z> when you stop recording ? | 14:42 |
T42 | <A_T_R> on,start recording | 14:42 |
T42 | <elros34> @Spidey24Z you don't have waydroid started at the same time? You have quite a lot: Failed to add media type *InsufficientResources errors | 14:55 |
T42 | <Spidey24Z> i didn't have an issue with waydroid i rebooted and start recording after fresh boot | 15:17 |
T42 | <Spidey24Z> about these errors what's the cause it ? | 15:18 |
piggz | lbt: is obs under strain? my kernel build has been going for nearly 5 hours, usually takes about 2 :) | 15:29 |
T42 | <A_T_R> @elros34 (re @A_T_R: So I have to repo sy...) | 15:43 |
T42 | <elros34> are you sure you don't have this patch already? | 15:44 |
T42 | <A_T_R> yeah | 15:44 |
T42 | <elros34> so download and apply it then build hybris-hal droidmedia and package everything | 15:45 |
T42 | <A_T_R> can I download that patch only instead repo sync ? | 15:49 |
T42 | <elros34> sure why not, it's just a patch, you can even make modification manually :O | 15:52 |
T42 | <A_T_R> download 4 patches and apply in this PATH hadk/hybris-patches ? | 15:53 |
voidanix[m] | Thaodan: do you have a working hybris-recovery.img for bahamut somewhere around? 👀 | 16:09 |
voidanix[m] | cannot get past the sony logo neither on the github's 4.4.0.64, nor my local 4.4.0.58 and 4.4.0.72 after borking droid-hal | 16:09 |
T42 | <Spidey24Z> I guess `repo sync --force-sync` will do the job then apply hybris-patches again (re @A_T_R: download 4 patches a...) | 16:29 |
T42 | <Spidey24Z> Then build hybris-hal & droididmedia | 16:30 |
mal | "repo sync -l" will unpatch the sources | 16:31 |
mal | I mean remove any local commits from the repos | 16:32 |
T42 | <Spidey24Z> Yes he must apply hybris-patches again | 16:32 |
T42 | <A_T_R> by doing this it will compile android-parts ,because it will take 5-6 hours to complete (re @Spidey24Z: Then build hybris-ha...) | 16:32 |
T42 | <Spidey24Z> That's the point (re @A_T_R: by doing this it wil...) | 16:33 |
Thaodan | voidanix[m]: yeah later | 16:48 |
mal | it probably won't rebuild everything though | 16:51 |
T42 | <A_T_R> repo sync -l > will fetch all repos ? | 16:55 |
mal | not, it won't update the repos, just rmeoves any local commits | 16:58 |
T42 | <A_T_R> I am looking downloading the patches and apply without doing ` hybris-patches/apply-patches.sh --mb` | 17:09 |
T42 | <A_T_R> I am looking to downloading the patches and apply without doing ` hybris-patches/apply-patches.sh --mb` (edited) | 17:09 |
piggz | mal: do OBS builds timeout after a while? i had a kernel build going for atleast 5 hours .. now says "scheduled" ! | 17:28 |
mal | yes, I think there is some timeout | 17:29 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!