Wednesday, 2020-08-05

T42<edp_17> Interesting, my S2 was able to successfully pair with my android tablet. Hm. this didn't work with the bt speaker.00:01
r0kk3rzdifferent profiles00:03
T42<edp_17> Oh, Hi r0kk3rz!00:04
r0kk3rzmorning00:04
T42<edp_17> It says in the log when I try to connect to the speeker: "Unable to accept HFP connection since the telephony subsystem isn't initialized"00:04
T42<elros34> @edp_17 BTW current hdmi code should work on on nexus 4 (this was initial device on which code was tested), so maybe also 500:04
r0kk3rzthat sounds fairly straight forward00:05
r0kk3rzhfp, hands free profile00:05
r0kk3rzmake sure ofono has loaded the right plugin00:06
T42<edp_17> @elros34 , Well, on the Nexus 5 there is a slim port and I don't have cable for it. I am thinking about to attempt to utilize that somehow on the treltexx as that has a hdmi (mhl) output.00:06
r0kk3rzhfp sounds a bit weird for a speaker though00:07
T42<edp_17> r0kk3rz: What the right plugin should be? I have a lot in the /var/lib/environment/ofono/noplugin.conf00:08
r0kk3rzso heres the thing00:09
r0kk3rznoplugin.conf tells ofono what not to load00:09
r0kk3rzso if theres things in there that say bluez500:09
r0kk3rzit wont load them00:09
r0kk3rzor bluez, depending on which you use00:10
T42<edp_17> I see, then it doesn't have any plugin.00:10
T42<edp_17> The ofono.service starts with -n --nobacktrace. Plus the --noplugin which list comes from that file.00:11
T42<edp_17> I have this in the log (it is not huge a few lines only): https://paste.ubuntu.com/p/fQjgz5ZmXM/00:13
T42<edp_17> How can I call the ofono with the hfp plugin?00:18
T42<edp_17> According to the pulseaudio doc, it looks like that the hfp requires bluez5. In this device I use bluez4. Probably that's why I cannot pair. During the day I'll try with another bt device that can be paired with even a HTC Hero. If it works, then this is not an issue but a limitation of the device's bt. I think00:23
r0kk3rzbluez4 should be able to do hfp fine00:29
r0kk3rzotherwise devices like the jolla phone wouldnt work anymore00:29
T42<edp_17> I just have tried to send a picture from the paired android device to the S2, and that failed. So that connection doesn't really work either.00:31
T42<edp_17> Now I re-paired with the android tablet and it says: "input-headset driver probe failed for device 8D:18:D9:xx:xx:xx" It is a tablet, not an input-headset.00:35
T42<edp_17> When I send the file from android to S2, it says: "GalaxyS2 lipstick[2450]: [W] unknown:0 - PendingCall Error: "Connect Failed""00:36
r0kk3rzwhat sort of bluetooth does it have?00:36
T42<edp_17> How can I set the plugins for ofono? And which plugins do I need?00:36
T42<edp_17> Which one? The S2 or the tablet?00:37
r0kk3rzthe s200:37
r0kk3rzobviously00:37
T42<elros34> just an idea: do you have correct type (phone/headphones/...) set for paired device?00:38
T42<edp_17> S2: Bluetooth: Core ver 2.1600:38
T42<edp_17> NET: Registered protocol family 3100:38
r0kk3rzthats not what i meant00:38
r0kk3rzis it a broadcomm chip?00:38
T42<edp_17> Yes, it is.00:39
r0kk3rzmost of those have required a bit of kernel patching to get working fully00:39
T42<edp_17> @elros34 : it says "Type Tablet"00:39
T42<edp_17> And the supported profiles: OPP, A2DP, AVRCP, HSP, PAN, PBAP, MAP, DID, GAP, GATT00:40
T42<edp_17> HFP is not there.00:41
T42<edp_17> Well, I have paired with the BT headset. It says: Type Headset and the profiles: A2DP, AVRCP, HFP00:43
T42<edp_17> So HFP is there. But there is no sound routed to the bt headset. (It doesn't even connect properly, just it looks like connected.)00:43
r0kk3rzthat looks like a list of what the headset supports00:46
T42<edp_17> Yeah.00:47
r0kk3rzbut generally unless you're using it in a phone call, you'd use a2dp00:47
T42<edp_17> Thanks. Which one is for the file transfer?00:48
r0kk3rzobex i think00:50
r0kk3rzyou can google things like this00:50
T42<edp_17> I will. I thought I would see that profile listed. However, it doesn't matter as doesn't work.00:51
r0kk3rzbluetooth connects to a lot of things00:52
T42<edp_17> Yeah, I will try to find out what is missing from the kernel (if there is any). Thanks. Now I need some sleep. Good night/morning/day.00:55
T42Aubrey %lastname% was added by: Aubrey %lastname%01:52
T42<kabouik> Do we have libsqlite3-dev named under a different package name? I didn't find it in Jolla repos, and there is an old libsqlite3 package on Openrepos but the only comment says installing it broke the OS. :<08:00
T42<kabouik> It's a dependency for a mail client I would like to package08:00
r0kk3rzsqlite-devel is what you want08:02
r0kk3rzhttps://git.sailfishos.org/mer-core/sqlite/blob/master/rpm/sqlite.spec08:03
T42<kabouik> Awesome, so it's already in Jolla repos, perfect.08:03
T42<kabouik> I even had it installed, damn. I was restricting my searches to "sqlite3"08:05
T42<kabouik> I'll need that too: https://packages.debian.org/unstable/markdown, but couldn't find a spec file for it yet, my searches are cluttered with unrelated markdown matches :<08:12
T42<kabouik> I might build it on device using just the source08:13
Mister_Magistermonich: i think we should just wait for mal to add full support for 1.2 rild :D08:15
Mister_Magistermal: are you handling getDataRegistrationStateResponse_1_2?08:16
Mister_Magistermal: shouldn't there be also https://github.com/mer-hybris/libgbinder-radio/blob/jb50597/src/radio_util.c#L116 RADIO_CALL_1_2?08:34
Mister_Magisteror here actually https://github.com/mer-hybris/libgbinder-radio/blob/jb50597/src/radio_util.c#L7508:35
T42<neochapay> lbt https://build.merproject.org/package/show/home:neochapay:hw:native/cameralib plz fix obs09:23
DylanVanAsschelbt: ping ^^09:26
piggzmal: any idea what obs is doing there? ^^09:34
T42<neochapay> slegdes ping to ^_^09:41
mal@neochapay maybe try using https url for submodule?10:24
malinstead of that git:// url10:25
T42<neochapay> mal https://linuxtv.org/libcamera.git - 40410:57
T42<neochapay> change to gihub mirror but https://build.merproject.org/package/show/home:neochapay:hw:native/cameralib no....10:58
T42<neochapay> mal: ^10:58
T42<adampigg> @neochapay https://git.linuxtv.org/libcamera.git10:59
T42<neochapay> @adampigg [@neochapay https://git.linuxtv.org/libcamera.g …], not changed11:00
malah, the issue is something else, not the repo itself11:24
maltrigger the build and try to follow the build log at the same time, I remember there were issues with checking build logs after build was done11:25
T42<adampigg> mal: it fails immediately so i dont think its a normal build failure12:05
T42骆哲涯 %lastname% was added by: 骆哲涯 %lastname%12:14
Mister_Magistermonich: i ran VtsHalRadioV1_2TargetTest and it also doesn't respond :D12:16
mal@neochapay the code doesn't even build locally12:29
mal@neochapay that lib needs some patching to get working in our system, we have too old gnutls12:34
T42<neochapay> It's not problem... problem with obs12:39
T42<neochapay> And i have it not only in this project12:39
malwell you should first get the package to build locally then try to figure out OBS12:45
* Mister_Magister testing if package compiles on obs instead of locally12:46
T42<adampigg> mal: @neochapay the build failure is becuase the project name "cameralib" doesnt match the spec name "libcamera" i think13:28
T42<adampigg> s/project/package13:28
mal@adampigg not the problem https://build.sailfishos.org/package/show/home:mal:mainline/libcamera13:37
mal@adampigg spec name doesn't need to match, it can be anything, unless there are several spec files in which case it has to match one of those13:38
T42<adampigg> mal: @neochapay local build atleast start here ok, just fails with the gnutls issues13:48
T42<adampigg> but that must be seperate to the obs error13:48
malyes13:57
mal@adampigg I have been trying to fix the gnutls issue, fixed the API issue but now I get a linking issue13:57
mal@adampigg I got it to build now, without the qt code15:44
T42<adampigg> mal: on obs?15:45
T42<adampigg> @neochapay do you have a full local build?15:45
malno, locally15:45
T42<neochapay> @adampigg [@neochapay do you have a full local build?], Not yeat15:45
malI have now almost done local build, still fixing packaging issues15:52
malthe qt code needs also support for qt 5.615:52
T42<adampigg> mal: what qt version does it support ?15:53
T42<adampigg> how much ifdeffing required?15:53
malneeds at least 5.7, not sure if even newer15:53
malfirst error was about 5.715:54
malso the gnutls issue is fixed in my local build15:57
T42<adampigg> mal: challenge : obs build!16:00
malnow also qcam is fixed16:02
malit was just one line that was using too new API16:02
mal@adampigg obs build seemed to start now16:13
mal@adampigg @neochapay https://build.sailfishos.org/package/show/home:mal:mainline/libcamera16:17
T42<neochapay> @mal [@adampigg @neochapay https://build.sailfishos. …], Oh yes16:17
T42<adampigg> mal; you did his job for him!16:17
malI was bored16:18
malalso I had been thingking of building that myself earlier16:18
T42<adampigg> mal: wanna make call mic work for me on volla?16:18
T42<adampigg> :D16:18
malI do wonder why that build didn't create any *.so.* files16:19
malonly .so files16:19
T42<neochapay> ```[root@PinePhone nemo]# rpm -Uhv libcamera-0.0.0+master.20200805160840.fec5428-1.6.1.jolla.armv7hl.rpm16:20
T42<neochapay> error: Failed dependencies:16:20
T42<neochapay>         libatomic.so.1 is needed by libcamera-0.0.0+master.20200805160840.fec5428-1.6.1.jolla.armv7hl16:20
T42<neochapay>         libatomic.so.1(LIBATOMIC_1.0) is needed by libcamera-0.0.0+master.20200805160840.fec5428-1.6.1.jolla.armv7hl16:20
T42<neochapay>         libcamera.so is needed by libcamera-0.0.0+master.20200805160840.fec5428-1.6.1.jolla.armv7hl16:20
T42<neochapay> ``` meh....16:20
T42<neochapay> libcamera need libcamera hehehe16:20
malso it really uses .so as the main lib16:21
maland not as the devel lib16:21
T42<neochapay> need to fix rpm16:21
T42<neochapay> AND OBS!!!!16:21
T42<adampigg> mal: so what fixed the obs build?16:22
malit just worked after fixing the build16:23
malwondering what provides libatomic.so.q16:24
mal*.116:24
T42<neochapay> ```[nemo@PinePhone ~]$ qcam16:25
T42<neochapay> Segmentation fault16:25
T42<neochapay> ``` Nice16:25
T42<neochapay> mal on obs i can't build16:26
malno idea why it worked for me16:27
malmy version seems to work fine on your OBS project also16:28
T42<neochapay> I can build from you repo but not my....16:29
T42<neochapay> maybe some people in jolla bann me ^_^16:29
malor your version was just so broken16:29
malbecause your version failed on my project also16:29
T42<adampigg> mals version builds for me https://build.sailfishos.org/package/show/home:piggz/libcamera16:31
T42<neochapay> https://build.merproject.org/package/show/home:neochapay:hw:native/cameralib and for me too16:33
T42<neochapay> But not my version16:33
T42<neochapay> hehehe16:33
malso probably your version was just very broken16:34
T42<adampigg> @neochapay just fork mals version and move on with life ;)16:37
T42<adampigg> or, if it really bugs you, add it as a remote and git diff ;)16:38
malneed to figure out that dependency issue16:42
mal@neochapay I think rpm doesn't handle dependencies very well, I fixed the libcamera.so issue now16:48
malI mean the command rpm16:48
malit doesn't install missing dependencies, try using zypper16:49
malthe new version is now building on my OBS16:49
T42<neochapay> ```[root@PinePhone nemo]# qcam16:57
T42<neochapay> Segmentation fault```16:57
malthe fix for qt is just a guess based on some forums16:57
malgdb?16:57
T42<adampigg> beat me to it :D16:57
T42<neochapay> ```Program received signal SIGSEGV, Segmentation fault.16:57
T42<neochapay> 0xf7977d86 in asn1_delete_structure2 () from /usr/lib/libtasn1.so.616:57
T42<neochapay> (gdb) bt16:57
T42<neochapay> #0  0xf7977d86 in asn1_delete_structure2 () from /usr/lib/libtasn1.so.616:57
T42<neochapay> #1  0xf7c422a8 in gnutls_pubkey_import () from /usr/lib/libgnutls.so.2616:57
T42<neochapay> #2  0x00000000 in ?? ()16:57
T42<neochapay> Backtrace stopped: previous frame identical to this frame (corrupt stack?)16:57
T42<neochapay> (gdb)```16:57
malso gnutls issue16:58
malmaybe the patch I made is not good16:58
malthere was some issue with c vs c++ linking16:58
T42<neochapay> ```#0  asn1_delete_structure2 (structure=0xfffef86c, flags=0) at structure.c:31717:01
T42<neochapay> #1  0xf7c422a8 in gnutls_pubkey_import () from /usr/lib/libgnutls.so.2617:01
T42<neochapay> #2  0xf7f73918 in libcamera::PubKey::PubKey (this=0xf7fc2e94 <libcamera::IPAManager::pubKey_>, key=...) at ../src/libcamera/pub_key.cpp:5217:01
T42<neochapay> #3  0xf7f48a90 in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at ../include/libcamera/span.h:29417:01
T42<neochapay> #4  _GLOBAL__sub_I_ipa_pub_key.cpp(void) () at src/libcamera/ipa_pub_key.cpp:5817:01
T42<neochapay> #5  0xf7fd06a4 in ?? () from /lib/ld-linux-armhf.so.317:01
T42<neochapay> #6  0xf7fd0756 in ?? () from /lib/ld-linux-armhf.so.317:01
T42<neochapay> #7  0xf7fc4a84 in ?? () from /lib/ld-linux-armhf.so.317:01
T42<neochapay> Backtrace stopped: previous frame identical to this frame (corrupt stack?)17:01
T42<neochapay> ``` this be better17:01
malno idea how to fix that17:04
T42<adampigg> i guess updating gnutls is out of the question?17:08
malnew version is gpl317:08
T42<adampigg> ok for ports ;)17:08
malalso such a simple thing should work with old one17:08
malmaybe gnutls debuginfo package would help17:09
mal@adampigg hmm, could be a bug in libtasn1, there seems to be a possibly related fix in upstream18:01
T42<adampigg> @neochapay ^^18:10
malI'm trying to update that18:35
T42<adampigg> mal: hows theupdate going20:26
mal@adampigg well it built but I haven't tested yet because of some other strange issue not related to that20:41
mal@adampigg no difference it seems20:50
T42<adampigg> shame20:51
T42<adampigg> im trying a 5.8 kernel20:52
mal@adampigg the backtrace is quite odd, the code has while (p) { if (p->down) and it crashes at that if21:17
T42<adampigg> printf debugging ftw ;)21:19
T42<Jessica %lastname%> https://t.me/joinchat/AAAAAEWCjGEF23xgK64ceA21:57
T42<kabouik> Not directly a port question, but worth a try: any idea how to fix this? https://p.teknik.io/Simple/KeOIZ22:06
T42<kabouik> `sqlite-devel` and `sqlite` from Jolla repo are installed22:06
T42<kabouik> I can't find those files mentioned in the error22:06
mal@kabouik cmake in sfos is not new enough to have that FindSQLite3.cmake which was introduced in 3.14.0. sfos has 3.11.422:46
malfor reference https://git.sailfishos.org/mirror/cmake/commits/master/Modules/FindSQLite3.cmake22:46
T42<kabouik> That's what I was afraid, I'm currently trying to build 3.1422:46
malwhat are you trying to build?22:48
malI mean which package needs that cmake file22:48
T42<kabouik> I'm trying to build nmail client, which indeed increased the cmake requirement from 3.1 to 3.14 when the sqlite3-dev dependency was added22:49
malmaybe there is some way to make it find otherwise22:51
T42<kabouik> The commit you linked is from 2018, so isn't the module included now?22:52
malthat was the commit which was added in 3.14.022:57
T42<kabouik> Oh, so it's not in SFOS yet22:58
malnope22:58
T42<kabouik> I'm 2% through the make process of Cmake 3.18 (the bootstrap took about an hour)22:58
T42<kabouik> Building on device22:59
malyou can see in the commit history that there was an attempt to update cmake almost a year ago but it had to be reverted due to certain problems22:59
T42<kabouik> I missed it, sorry22:59
malhttps://git.sailfishos.org/mer-core/cmake/22:59
T42<kabouik> I hope that the compilation of cmake 3.18 will work well; if it does, I should be able to to find `sqlite3` files and compile `nmail` with it.23:01
T42<kabouik> Else, the error I had with 3.11.4 offered some workarounds, but I didn't know where to look for these `sqlite*.cmake` files. If I could use that instead, it would be much easier for future `nmail `updates23:02
malyeah, I would try those workarounds, those would be easier23:02
T42<kabouik> Definitely, and they would be compatible with OBS (although I don't have a `nmail.spec` file yet, it's always a big struggle for me to understand how to write those)23:03
T42<kabouik> Do you have any idea where those sqlite3 files would be on the device?23:04
malmaybe /usr/share/cmake/Modules23:43

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