Tuesday, 2022-12-06

deathmistPSA OnePlus 5/5T owners/interested developers: I've not been working on the port for a long while and I'm looking for new maintainers, if you're interested see https://github.com/sailfishos-oneplus5/important/issues/9 for more details, thanks :)00:42
T42<edp_17> Can I please get help with a problem building droid-hal-version-$DEVICE on OBS?12:58
T42<edp_17> Building droid-hal-version-$DEVICE is going unresolvable because "nothing provides ngfd-plugin-droid-vibrator, nothing provides qt5-feedback-haptics-droid-vibrator".13:05
T42<edp_17> I've checked all I knew about it but don't know what to fix.13:05
T42<elros34> any specific reason why do you use ngfd-plugin-droid-vibrator instead ngfd-plugin-native-vibrator? Anyway "nothing provides *" means OBS can't find these 2 packages so the questions do you have them built?13:18
T42<edp_17> Thanks @elros34. I haven't built them because I remember you told me these are in the jolla  repo.13:56
T42<edp_17> I have to double check that repo in OBS because I've just realized that I might wanted to use an old one.13:56
T42<elros34> yes they are but IIRC they are not on OBS and long waiting feature is ability to use jolla repos on OBS13:58
T42<edp_17> Oh, okay. Thanks, then I'll build them there.13:59
T42<edp_17> If I change Project Config on OBS, what packages I should rebuild? droid-config-$DEVICE?14:38
T42<elros34> droid-hal-version maybe? I guess depends on what you changed14:50
T42<edp_17> I've triggered droid-config and that was sufficient. (It also rebuilt droid-hal-version)15:13
T42<edp_17> However, I had to do it again as forgot to reinstate bluez4. :(15:13
T42<edp_17> It is very annoying to do this if I forgot and update droid-config sub-module. :(15:15
T42<elros34> then do it properly and copy needed bluez4 files to your droid-config15:20
T42<edp_17> I've done that but I still need to reinstate the bluez4 stuff into droid-config.inc15:21
T42<elros34> you should be fine with changes in droid-config-$DEVICE.spec15:24
T42<edp_17> Well, currently the dcd sub-module DON'T have that bluez4 stuff and no *bluez4 package has built.15:25
T42<edp_17> I've changed droid-config.inc and uploaded to github, but in there it is still referring to a version that doesn't have that change.15:26
T42<edp_17> Yeah, OBS is still building droid-confog-$DEVICE-bluez5* package instead of *bluez4*15:27
T42<elros34> yeah that is why I suggest you to copy bluez4 files and needed lines in spec (before it was all removed) to your droid-config (not submodule). I do not remember having any issues with this method15:28
T42<elros34> bluez5 can be build but still you install bluez4 files and do not install droid-config*-bluez515:30
T42<edp_17> What lines? All bleuz4 related stuff from droid-config.inc?15:31
T42<edp_17> I am sorry but don't understand this. If I build bluez5 but not bluez4, how I can install the missing bluez4 package? (re @elros34: bluez5 can be build ...)15:32
T42<edp_17> I still need to build blue4, no?15:32
T42<edp_17> *bluez415:32
T42<elros34> you can but you can also just put everything to your sparse. It was long time ago I did it so I do not remember excatly: https://github.com/elros34/droid-config-moto_msm8960_jbbl/blob/master/rpm/droid-config-moto_msm8960_jbbl.spec#L25-L5015:33
T42<edp_17> Oh, and with having this in my spec I don't need to reinstate/build bluez4 because the packages will be pulled from pre-built packages?15:36
T42<edp_17> I'll try his anyway. Thanks.15:36
T42<edp_17> Do I need the bluez4 stuff in sparse/etc ?15:40
T42<edp_17> It seems yes. I just stashed them :(15:41
T42<edp_17> *ditched15:41
T42<elros34> of course you need bluez4 removed files from submodule in your sparse15:42
T42<edp_17> Thanks.15:51
T42<edp_17> Once droid-config building finished on OBS, should I expect a droid-config-$DEVICE-bluez4*.rpm package in my repo? I still only have droid-config-$DEVICE-bluez5*.rpm in there.15:53
T42<edp_17> Although, this time mic started to create the image!15:54
T42<edp_17> Thanks for your help! It looks like will have an image to try out. 😁15:54
T42<elros34> if you did it lik I did then no, there will be no -bluez4 package15:55
T42<edp_17> Okay, thanks for confirming.15:56
T42<edp_17> Where from is it getting the bluez4 package?15:56
T42<elros34> it's no getting it15:57
T42<elros34> if you did it correctly droid-config just provides all the files and dependencies15:59
T42<edp_17> Oh, okay.15:59
T42<edp_17> I have a new zip to try. (My new PC builds everything quicker the old one. 😁)16:00
T42<elros34> before waiting for installation check *.packages file for bluez16:04
T42<edp_17> There are only 3 packages:16:11
T42<edp_17> kf5bluezqt-bluez4-declarative.armv7hl 5.24.0+git18-1.5.2.jolla16:11
T42<edp_17> kf5bluezqt-bluez4.armv7hl 5.24.0+git18-1.5.2.jolla16:11
T42<edp_17> pulseaudio-modules-bluez4.armv7hl 1.1-1.5.2.jolla16:11
T42<elros34> there should be also bluez itself16:32
T42<edp_17> Okay, I'll check that.18:28
T42<edp_17> The image I built works! (Except bluetooth.) :]19:23
T42<elros34> which repo is that19:35
T42<elros34> I mean droid-config19:35
T42<edp_17> This: https://github.com/edp17/droid-config-hammerhead19:57
T42<edp_17> I probably mixed up something (as usual) :]19:58
T42<elros34> you are missing /etc/bluetooth -> /etc/bluez4/bluetooth symlink, this patch for HFP: https://github.com/elros34/droid-config-moto_msm8960_jbbl/commit/977dc0ca9fc8e03ef4bfa812b5891bf85a93253719:59
T42<elros34> missing /etc/pulse/xpolicy.conf.d/19:59
T42<elros34> missing arm_droid_default.pa like this but with different arguments: https://github.com/elros34/droid-config-moto_msm8960_jbbl/blob/master/sparse/etc/pulse/arm_droid_default.pa#L3820:01
T42<edp_17> Thanks @elros34 . I'll add them and retry.20:06
T42<elros34> you have some custom *.pa in /etc/pulse but they are not used anyway so I guess you have used default one so just us my arm_droid_default.pa but without "quirks=+input_atoi"20:08
T42<edp_17> Thanks. I'll try that.21:15
T42<edp_17> @elros34 : I've compared arm_droid_default.pa what I have in device against your version and I think I have the right version of it. Diff: https://paste.ubuntu.com/p/5Fq94TmBqw/23:04
T42<elros34> but what file do you compare, according to your droid-config you use default which is wrong for you now23:06
T42<edp_17> I've got the /etc/pulse/arm_droid_default.pa file from device.23:08
T42<edp_17> In my repo (droid-config), I don't have this file.23:09
T42<elros34> because it comes from submodule AFTER bluez4 removal23:10
T42<elros34> you need to bring old version23:10
T42<elros34> https://github.com/mer-hybris/droid-hal-configs/commit/29a236db573ef7fe5f935cc31205406e2e129a4123:11
T42<edp_17> Oh, I see. So basically I need to copy/paste content from your file. Except what you mentioned (quirks=+input_atoi). Ok.23:12
T42<edp_17> I think the other problem is that I have the bluez package installed from jolla repo. In my notes I've built it from your repo.23:15
T42<elros34> I do not think so, it contains only one no so much important fix23:16
T42<edp_17> Okay, then I'll reboot and try again. (Have applied both changes on device.)23:18
T42<edp_17> Should I have /etc/bluetooth folder?23:22
T42<elros34> I think you must have23:23
T42<edp_17> Nope. That's why BT doesn't turn on: https://paste.ubuntu.com/p/BFWDYWRS32/23:23
T42<elros34> so create symlink like I said previously23:24
T42<edp_17> That helped. Now the device connects to my BT speaker but audio is not routed there.23:31
T42<edp_17> Journal: https://paste.ubuntu.com/p/pj7RxxFw2M/23:31
T42<elros34> and you added etc/pulse/xpolicy.conf.d/?23:33
T42<edp_17> I have this: https://paste.ubuntu.com/p/544wkhV3fB/23:34
T42<edp_17> I'll copy those three files from your repo23:35
T42<edp_17> https://github.com/elros34/droid-config-moto_msm8960_jbbl/tree/master/sparse/etc/pulse/xpolicy.conf.d23:35
T42<elros34> 2 bluez related only23:36
T42<edp_17> Okay.23:36
T42<edp_17> I remember that I added similar content into somewhere.23:38
T42<edp_17> Many thanks! It works fine now. BT can be turned on/off and paired. Audio is routed accordingly. 😏23:44
T42<elros34> didn't expected it will be that easy:)23:45
T42<edp_17> Cool, I am sure many will be happy as this is a build for the hammerhead and it looks like everything works okay.23:45
T42<edp_17> It was easy because I went back to the original cm-12.1 base. It was almost everything done, just a few minor stuff was missing.23:46
T42<edp_17> Then, when I installed the zip, only bt wasn't working. Even camera works okay. (Although, I haven't tried for video recording yet.)23:46
T42<edp_17> Yeah, video recording doesn't work. (Although, as far as I remember, this is expected as I think something is broken at android side on this base.)23:50
T42<edp_17> There is something else you can help with.23:51
T42<edp_17> I have to unpack the bz2 file amend two files and re-pack it since 4.4.23:52
T42<edp_17> Have to comment out PrivateNetwork in systemd-hostnamed.service. And set PrivateNetwork=false in dsme.service.23:53
T42<edp_17> Is there an easier way to make these change permanent?23:53
T42<elros34> systemctl edit hostnamed.service, make changes and then copy generated files to sparse23:54

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