Friday, 2020-10-02

T42SherLock_99 was added by: SherLock_9907:54
T42<SherLock_99> Is there any port for Asus zenfone max pro m1 (xootd)?07:54
T42<edp_17> @adampigg: I am trying to make the camera working on the Pine64. The command: media-ctl --set-v4l2 '"ov5640 2-003c":0[fmt:UYVY8_2X8/1280x720]' gives me: 'Unable to setup formats: Invalid argument (22)'09:22
T42<adampigg> @edp_17 [@adampigg: I am trying to make the camera work …], yup, same here!09:32
T42<adampigg> best to ask in pine64dev maybe09:33
T42<adampigg> or @neochapay is good with these things09:33
T42<edp_17> Okay, thanks.09:33
mal@adampigg you encryption issues, check that CONFIG_CRYPTO_GF128MUL and CONFIG_CRYPTO_XTS are enabled09:34
T42<adampigg> mal:i think i checked those already.....09:34
T42<edp_17> As the mozilla servers for AGPS doesn't work anymore, could somebody advise how I can make the GPS working again on my port?09:36
T42<adampigg> CONFIG_CRYPTO_XTS=y09:37
T42<adampigg> CONFIG_CRYPTO_GF128MUL=y09:37
T42<adampigg> yup, got both thoseon device09:37
mal@edp_17 gps should work as usual, just a bit slowed if no suitable servers are defined in the gps.conf10:46
T42<edp_17> mal: Thanks. This explains why the GPS test in csd fails on one port and succeed on another. Could you let me know what to define in gps.conf to accelerate this?10:47
malthe servers only have effect if mobile data is enabled11:03
malusually gps.conf has some XTRA servers defined11:04
maland other things11:04
maland SUPL_HOST and SUPL_PORT, the last ones are the important ones afaik11:06
malthose can be overriden in separate config file11:07
T42<edp_17> In csd I get 'GPS unavailable' even if I turn the GPS on and set the 'High-accuracy positioning'. Can that gps.conf help with this? If not, how can I solve it?11:10
mal@edp_17 that doesn't sound normal, are you sure the device has correct hw_settings.ini11:13
T42<edp_17> How do you mean correct hw-settings.ini? There is a line 'GPS=1' What else is necessary?11:35
malthat should be enough, is the toggle working in top menu? does for example gpsinfo app work11:36
T42<edp_17> The toggle in top menu works (in Settings too), the gpsinfo app starts and I can Deactivate and Activate the gps but doesn't show any values in Latitude and Longitude.11:42
T42<edp_17> Satelites in use 0/011:42
malit might take some time to see anything11:47
malalso check journal log for geoclue11:47
malwhat device is that?11:47
mal@edp_17 anything in logs?12:41
T42<edp_17> mal: I've left the gpsinfo on since I reported (over an hour ago) and nothing has changed on it.12:49
T42<edp_17> This is a Galaxy Note 4 (treltexx)12:49
malwhich android base?12:49
T42<edp_17> The 'journaltcl —no-tail | grep geoclue' doesn't show anything.12:50
T42<edp_17> CM14.1 base.12:50
T42<edp_17> What else log should I get?12:50
T42<edp_17> Oh, and  it might be important, that on a previous build the GPS was working.12:51
maldo you have the geoclue hybris plugin installed?12:51
T42<edp_17> I have installed: geoclue, geoclue-provider-hybris-hal, geoclue-provider-mlsdb, geoclue-provider-mlsdb-agreements and qt5-plugin-position-geoclue12:54
malso you nothing about geoclue when you start gspinfo?12:57
mal*gpsinfo12:57
malsee in logs I mean12:57
T42<edp_17> mal: I was wrong. There is something in the log (I needed to add the -f switch). Here it is: https://paste.ubuntu.com/p/dzrmqv6KNj/13:02
mal@edp_17 geoclue-hybris[29854]: [W] unknown:0 - While updating the updateInterval, failed to set position mode, error -113:04
malanything in logcat?13:04
malif that error happens when starting gps it will not work13:05
T42<edp_17> logcat: https://paste.ubuntu.com/p/XYnxTxZhx5/13:06
T42<edp_17> "Can't open named pipe /data/system/gps/.gps.interface.pipe.to_jni for write, errno = 13 (Permission denied)"13:07
T42<edp_17> Scroll to the bottom, as the device wasn't restarted recently.13:09
malso something is wrong in android side13:10
malwhich sfos version is that13:11
T42<edp_17> 3.3.0.1613:11
T42<edp_17> If I change something in the kernel and I done a 'make hybris-hal', should I rebuild the packages with 'rpm/dhd/helpers/build_packages.sh --droid-hal'?13:18
malyes13:18
T42<edp_17> Thanks.13:19
T42<edp_17> I'll try to rebuild that. (I am not sure that I done that when last time I changed the kernel.) Will come back to report whether that solved the issue.13:21
piggzspiiroin: lo .... on the volla phone ... when I plug in USB, it says "USB COnnected..." and prompts for mode, as expected13:55
piggzwhen unplug, it says "Charging"13:55
piggzwhich, is not expected :D13:55
piggzi currently have:13:55
piggz[nemo@VollaPhone ~]$ cat /etc/mce/99-battery.ini13:55
piggz[BatteryUDevDeviceBlacklist]13:56
piggzcw-bat=true13:56
piggzfor other odditites13:56
T42<edp_17> mal: After I built droid-hal-xxx and installed all packages on the device, the gps still doesn't work: https://paste.ubuntu.com/p/Vc8YWv6Yxs/13:58
T42Gustxl was added by: Gustxl13:58
T42<edp_17> Can I use the current libhybris from github for building 3.3.0.16? When try to build packages I get: https://paste.ubuntu.com/p/8zF9gvsFMz/14:28
T42<edp_17> But this worked before 3.4 came out.14:29
T42<elros34> 'git stash' in libhybris dir and then it should pull latest14:30
T42<edp_17> Thanks!14:30
T42<edp_17> It is building libhybris now. 👍14:35
T42<edp_17> Is it possible to build 3.4?14:35
T42<elros34> sure, I use it since 2 days14:36
T42<edp_17> On 3.3.0.16 I had problem with camera (it shows back screen). Is it solved in 3.4?14:36
T42<elros34> Never had such an issue. Maybe you forget to update droidmedia/gst-droid14:37
T42<edp_17> Yeah, might be. 😊14:39
T42<edp_17> I guess for 3.4, I need to upgrade toolings, target and rebuild everything aka follow the hadk (just like when doing a new port).14:39
T42<elros34> Not sure whether new target/tooling is needed but I always upgrade it and also all mw/14:41
T42<edp_17> Okay, thanks. 👍14:42
T42<elros34> about gps, you can try 'usermod -aG  system nemo' and then reboot14:43
T42<edp_17> I did this but the same error: "While updating the updateInterval, failed to set position mode, error -1"14:50
T42<elros34> I was wondering whether lack o system group cause:  /data/system/gps/.gps.interface.pipe.to_jni for write, errno = 13 (Permission denied) but looks like it's something else14:52
T42<edp_17> Yeah, that error is gone, but GPS doesn't work. I don't remember that I changed anything related, or perhaps I did just wasn't aware that it was related.14:54
T42<elros34> so gpsd still crash now?14:55
T42<edp_17> Yes: https://paste.ubuntu.com/p/rsVfSkNjK5/14:57
T42<edp_17> In my notes I've seen that the GPS stopped working ring after I built an image with the new SDK. (If this helps.)14:57
T42<elros34> if you still have old Jolla-$RELEASE-$DEVICE-armv7hl.packages you could compare your current geoclue-providers-hybris version with the one which worked for you before. There were some minor changes in that pkg15:13
T42<edp_17> Yes, I still have that but I have no idea which build was the one it worked. 😜 I'll try to install some images to see which one works.15:16
T42<elros34> ah then it will be faster to build and install different geoclue-providers-hybris versions15:21
T42<W %lastname%> ynm15:45
T42<edp_17> @elros34 : Okay. And how can I build different geoclue-providers-hybris versions?15:57
T42<elros34> go to hybris/mw/geoclue-providers-hybris, check which version you have, git pull if it's very old then git checkout "tag or commit"  and regular build_packages.sh -D -o -b hybris/mw/geoclue-providers-hybris -s rpm/geoclue-providers-hybris.spec16:01
T42<edp_17> Thanks! I'll do that and report.16:05
T42<edp_17> @elros34 : I have checked the version of hybris/mw/geoclue-providers-hybris on my pc. The last commit (c9996f0b96718c7f1f30405de9c2e52ec9efeaac) is as the same as on github in master branch. I have built the .rpm and installed on the device. It is the same, GPS do not work.21:08
T42<elros34> @edp_17 I would try something from beginning of 2020 like: 714ae6fcd0f55f0448ce84601f5e5599119b5ff9 but I don't whether it really have impact of gpsd. At least it crash when "Service Hybris Provider" starts.21:41
T42<edp_17> I try that commit. Thanks.21:41
T42<edp_17> @elros34: Unfortunately that version didn't work either. Still 'droid-hal-init: Service 'gpsd' (pid 4826) exited with status 1' in the log. I've tried another commit (69d72d2c094d4619b3b52a1346e22aec7ea5abf7) with the same result.22:05
T42<edp_17> And I tried this commit too (7f200a04ccd849ca969cc559e4a23b2a199c01e6)22:15
T42<elros34> ok, so probably issue is somewhere else. geoclue has some logging enabled by env variable: if you want to try: QT_LOGGING_RULES="geoclue.provider.hybris.debug=true" /usr/libexec/geoclue-hybris but it doesn't print a lot of information so I don't know how to debug it further22:16
T42<edp_17> Thanks. First with wifi on, mobile data off, I got an 'Abort', then: https://paste.ubuntu.com/p/ZFk2dcxkVM/22:24
T42<elros34> @edp_17 does gpsd crash just when you start geoclue-hybris or after you start gpsinfo?22:36
T42<edp_17> It is only crashing when I start 'gpsinfo' or 'QT_LOGGING_RULES="geoclue.provider.hybris.debug=true" /usr/libexec/geoclue-hybris'.22:44
T42<edp_17> When I toggle the Location on/off, gpsd doesn't crash.22:44
T42<edp_17> Oh, and it is also crashing when I start GPS test in csd.22:45
T42<elros34> any gps app also starts /usr/libexec/geoclue-hybris22:45
T42<edp_17> Oh, I see.22:46
T42<elros34> probably there will be nothing useful but find pid of gpsd: 'pgrep -af gpsd' then strace -f -p 'pid of gpsd'. Then start geoclue-hybris and check where it crash22:48
T42<edp_17> Thanks. The log is here: https://paste.ubuntu.com/p/jv2JB82f26/22:51
T42<edp_17> I have compared the /etc/gps.conf on this and my other devices. They are different. Does it matter?22:58
T42<elros34> I guess they can be different between devices. In your logs you still have permission issue:/data/system/gps/.gps.interface.pipe.to_jni", O_WRONLY|O_LARGEFILE) = -1 EACCES (Permission denied). Check that permissions in that directory and 'groups nemo'23:07
T42<elros34> you might try to also delete that .gps.interface.pipe.to_jni23:18
T42<edp_17> Yeah, I have checked and it is: prw-rw----    1 root     nemo23:18
T42<edp_17> Delete?23:18
T42<elros34> yes (make a copy if you worry) I think it gpsd will recreate it23:19
T42<edp_17> I have deleted and when started gpsinfo it's been re-created.23:21
T42<edp_17> And the permission of the file is: prw-rw----    1 root     nemo23:23
T42<elros34> how about you chmod a+rw it :) Did it still complain about permission when gpsd start without that file in place?23:26
T42<edp_17> When I deleted the file and started the gpsinfo, it was still complaining about the permission. When I did a chmod a+rw on it: https://paste.ubuntu.com/p/qcCrb5XprR/23:30
T42<edp_17> And now the permission is again: prw-rw-rw-    1 root     nemo23:31
T42<edp_17> It was 'prw-rw-rw-    1 root     nemo' when I did a chmod a+rw on it.23:32
T42<edp_17> 'openat(AT_FDCWD, "/data/data/com.broadcom.test.yellowbird", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)'23:33
T42<edp_17> and there are a few (Broken pipe) messages too.23:34
T42<elros34> that file doesn;t looks important. What about 'groups nemo'? I suggest you to: make sure gpsd is stopped and not restarting then remove whole directory and reboot23:35
T42<elros34> ah I just realize that you start geoclue as root, do it as nemo23:38
T42<edp_17> How do you mean start geoclue as nemo? I start the strace as root but start the app gpsinfo as nemo.23:43
T42<elros34> according to: https://paste.ubuntu.com/p/ZFk2dcxkVM/ you started it as root23:45
T42<edp_17> Oh, when I debugged it. Yes, I did. I re-try as nemo.23:45
T42<edp_17> Here it is: https://paste.ubuntu.com/p/xbmH9TKFp6/23:49
T42<elros34> second log looks good23:51
T42<edp_17> Yeah, but gpsinfo still doesn't find any satelite.23:51
T42<elros34> if gpsd doesnt crash now you should have gps icon in homescreen. Put it close to window and wait few minute23:52
T42<elros34> s23:52
T42<edp_17> Yes, the location icon is flashing at the top. I'll wait a few mins.23:54
T42<edp_17> In the meantime. How good are you in emulating mouse events in kernel drivers? 😊23:55
T42<elros34> ? never done something like that. Why do you want to do this?23:56
T42<edp_17> In this device there is a stylus called S-Pen.23:57
T42<edp_17> The driver is in https://github.com/edp17/android_kernel_samsung_exynos5433/blob/cm-14.1-treltexx/drivers/input/wacom/wacom_i2c.c23:57
T42<edp_17> It is listening on /dev/input/event3 and the evdev trace and dmesg give me some details when I take the pen out from its house and put it back and put close to the screen and when I touch the screen.23:59

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