Monday, 2022-10-31

T42<A_T_R> building hybris-hal fails ,anyone look at this02:29
T42<A_T_R> rpm/dhd/helpers/build_packages.sh -d02: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 -d03: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-hot08: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 again09:17
piggzmal: interesting ... i was looking into me weird audio routing bug for whem im connected via an aux cable to my car ...09:51
piggzthe initial fix for headphones was https://github.com/sailfish-on-fxtecpro1/droid-config-halium-qx1050/blob/main/sparse/etc/ohm/plugins.d/accessories.ini09:51
piggzwhen testing with evdev_trace, when plugging in headphones i get 3 events, SW_HEADPHONE_INSERT, SW_MICOPHONE_INSERT and SW_JACK_PHYSICAL_INSERT09:52
piggzfor an aux cable, I only get the last one of those09:52
piggzso, seems it not routing based on that physical_insert event properly09:52
T42<elros34> have you tried /sys/class/switch/h2w?09:54
malpiggz: https://github.com/sailfishos/ohm-plugins-misc/blob/master/plugins/accessories/wired.c#L379 rtfc :)09:59
malcould be some other stuff there also09:59
malpiggz: 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_INSERT10:06
malas you can see here https://github.com/sailfishos/ohm-plugins-misc/commit/24d40904ae1552d99de88ccb04c82baa52e076c710:08
piggzwell, 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
piggzif there was no BT connected, im not sure where i would want things routed!! :D10:10
piggz@elros34 i dont have /sys/class/switch10:12
piggzprobably the quirk would be fine .. if someone is using phone just as a media player, theyre not too interested in the microphone10:22
*** ggabriel is now known as Guest1910:28
*** ggabriel is now known as Guest2411:22
*** ggabriel is now known as Guest2511:28
malpiggz: 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#L80511:49
piggzmal: will do ... i wonder if there is a use-case for line-out only audio11:55
piggzi hope ths doesnt break my BT setup ... maybe that was only working becuase it wasnt routing as a headset!11:55
malis it really possible to have two routings at the same time, sounds odd12:01
T42<A_T_R> rpm/dhd/helpers/build_packages.sh -g12:23
T42<A_T_R> fails with12:23
T42<A_T_R> ```12:23
T42<A_T_R> cp: cannot stat 'external/droidmedia/init/*.rc': No such file or directory12: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 recommended12:29
T42<elros34> read hadk-faq or 4.4.0 changelog12:29
mal0.20211101.012:29
T42<elros34> whether you will choose: latest or recommended then most likely you will need to do additional steps12:30
T42<A_T_R> For 4.4.0.x12:31
T42<A_T_R> - droidmedia: 0.20211101.012:31
T42<A_T_R> how to use this version12:31
malgo to external/droidmedia folder and use git reset to force the version there12:32
T42<elros34> if you chose this one then most likely you will have to revert latest commit in droid-hal-device submodule12:32
malwell the dhd submodule should be fixed to it won't fail like that12:33
mal*so12:33
malshould be easy to make the command not fail if the file is missing12:34
T42<A_T_R> git reset —hard 0.20211101.0 ?12:38
piggzmal: 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-out12:39
malhmm12:40
T42<A_T_R> still it fails building -g12:43
T42<elros34> did you revert commit I was talking about?12:47
T42<A_T_R> no12: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/jb5615812:51
T42<A_T_R> 34ca971 droidmedia-localbuild: Package init files12: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> @elros3412:51
T42<Spidey24Z> And isn't the latest version is enough?12:51
malif latest version is used then droidmedia-devel needs to be build also, and then gst-droid12:52
T42<elros34> you can build latest droidmedia if you build also droidmedia-devel and gst-droid against it otherwise expect issues12:52
T42<A_T_R> successfully build -g12: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 steps12: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 version13:01
T42<elros34> see 4.4.0.x changelog and compare gst-droid/droidmedia versions13:02
T42<Spidey24Z> I mean latest versions13:02
malhttps://github.com/mer-hybris/droid-hal-device/pull/33113:04
malwith that old droidmedia should be fine13: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 locally13:09
malusing the correct droidmedia is much easier to do than updating all of those13:11
T42<Spidey24Z> i get it now13:16
T42<Spidey24Z> i build this version droidmedia-0.20220211.1-1.aarch64.rpm13:16
T42<Spidey24Z> still have the same issue when i press stop recording camera app stop responding and it force close13:29
maldoes logcat should messages about it waiting for audio policy service13:32
mal*show messages13:32
T42<Spidey24Z> lemme see13:32
T42<Spidey24Z> no it dosen't but log spamming with13:35
T42<Spidey24Z> E DroidMediaBufferQueue: Client wasn't able to handle a received frame13:35
malwhich android base?13:35
T42<Spidey24Z> 17.113:35
T42<Spidey24Z> in waydroid video recording works fine13:37
maldo you have the latest patches applied to android sources to fix codec stuff13:37
malI merged fixes to hybris-patches 19 days ago13:38
T42<Spidey24Z> yes i applied them (re @SailfishFreenodeIRCBridgeBot: <mal>do you have the...)13:38
malok13:38
malcan you show the whole logcat13: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
malthat is a good question13:40
malwhich means building hybris-hal and droidmedia and then packaging both again13: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/766b358469d4e67d7f6275528c8b478e13:50
T42<Spidey24Z> https://github.com/mer-hybris/hybris-patches/blob/hybris-17.1/frameworks/av/0001-hybris-AudioService-is-disabled-in-hybris-adaptation.patch14: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/bc106c9490ba3ed2377365514e0013c814:07
T42<A_T_R> what packages should rebuild after i "hybris-hal" again ?only —droid-hal or something else14:14
T42<elros34> depends on why you rebuild hybris-hal but usually yes droid-hal is enough14:17
T42<A_T_R> i build hybris-hak without "cpio" in ubuntu chroot ,later installed cpio and rebuild hybris-hal14:26
T42<elros34> then yes it's enough14: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 audit14: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 patch14: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 compability14:35
T42<elros34> compatibility*14:35
T42<Spidey24Z> @elros34 https://gist.github.com/aymanrgab/ca64523fa3ef0b1c7fc77cbf21bf072114: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 recording14: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 errors14:55
T42<Spidey24Z> i didn't have an issue with waydroid i rebooted and start recording after fresh boot15:17
T42<Spidey24Z> about these errors what's the cause it ?15:18
piggzlbt: 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> yeah15:44
T42<elros34> so download and apply it then build hybris-hal droidmedia and package everything15: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 :O15: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-hal16: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 & droididmedia16:30
mal"repo sync -l" will unpatch the sources16:31
malI mean remove any local commits from the repos16:32
T42<Spidey24Z> Yes he must apply hybris-patches again16: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
Thaodanvoidanix[m]: yeah later16:48
malit probably won't rebuild everything though16:51
T42<A_T_R> repo sync -l > will fetch all repos ?16:55
malnot, it won't update the repos, just rmeoves any local commits16: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
piggzmal: do OBS builds timeout after a while? i had a kernel build going for atleast 5 hours .. now says "scheduled" !17:28
malyes, I think there is some timeout17:29

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