T42 | <ankaos> https://paste.ubuntu.com/p/NHcjMKdTNv/ journalctl output | 03:23 |
---|---|---|
rinigus | mal: I (mostly) fixed the compass on xperia tama - just have to use magnetometer+accelerometer directly. | 07:03 |
rinigus | those sensors are working correctly, as checked against https://www.ngdc.noaa.gov/geomag/calculators/magcalc.shtml & 1 g | 07:03 |
rinigus | TYPE_ORIENTATION sensor in android is deprecated now, and device orientation should be computed as in https://developer.android.com/guide/topics/sensors/sensors_position#sensors-pos-orient | 07:03 |
rinigus | that's why my device doesn't even have orientation sensor. | 07:04 |
rinigus | mag+acc approach seems to be used in sensorfwd as well, but looks like something is messed up in https://git.sailfishos.org/mer-core/sensorfw/blob/master/chains/compasschain/compassfilter.cpp#L59 and sony tama interaction | 07:04 |
rinigus | when I use compass that has mag+acc calculations implemented https://github.com/janbar/harbour-compass, compass works as it should | 07:04 |
rinigus | note that giro is disabled there and enabling it makes it work relatively badly, hence janbar disabled it | 07:04 |
rinigus | mag+acc approach implementation has been submitted to qt, but hasn't gone through https://codereview.qt-project.org/c/qt/qtsensors/+/92017 | 07:04 |
rinigus | while we are still on qtsensors 5.2, probably it can be added to https://git.sailfishos.org/mer-core/qtsensors/tree/master/qtsensors/src/plugins/sensors/generic | 07:04 |
rinigus | and use generic instead of sensorfwd compass | 07:04 |
rinigus | mal: ^ | 07:05 |
birdzhang | lbt: please patternise nemo:testing:hw:xiaomi:davinci, my obs name is birdzhang too | 08:15 |
T42 | <edp_17> lbt: please create an OBS account for me, user: edp17, email: edp17@pm.me, thanks! | 08:17 |
mal | rinigus: any idea which device had issues with gyro? | 08:19 |
rinigus | mal: no, I don't know. but when I enabled it on tama, it was also not as good as it was without. | 08:20 |
lbt | edp_17: done.. welcome aboard | 08:20 |
rinigus | but I must say that I have not checked it too much with gyro... | 08:20 |
mal | rinigus: what does gyro list on that device in messwerk? | 08:20 |
mal | rinigus: at least on x10 (doesn't even have gyro) but messwerk still shows some constant wrong value for gyro, not sure if app issue or what | 08:21 |
lbt | birdzhang: done | 08:21 |
birdzhang | lbt: thank you | 08:21 |
rinigus | mal: mal: it shows it and when I move phone around the graphs change | 08:22 |
rinigus | on no movement, it stands mostly on zero, but with small offset. | 08:22 |
rinigus | maybe offset is killing it a bit... | 08:23 |
rinigus | mal: note that in https://github.com/qt/qtsensors/blob/dev/src/plugins/sensors/android/androidcompass.cpp there is no gyro either | 08:23 |
T42 | <edp_17> lbt: Thank you!!!!!! | 08:24 |
birdzhang | lbt: i can't see davinci at https://build.merproject.org/project/show/nemo:testing:hw:xiaomi:davinci | 08:25 |
lbt | ah - you need to talk to mal to get it set up - but once it is it will have patterns | 08:27 |
birdzhang | mal: please create nemo:testing:hw:xiaomi:davinci | 08:29 |
rinigus | mal: I'll try again with gyro | 08:31 |
mal | rinigus: so tama has gyro? | 08:38 |
mal | birdzhang: added devel and testing projects for davinci | 08:42 |
birdzhang | mal: thank you very much | 08:42 |
rinigus | mal: yes, tama has gyro. ok, gyro is not an issue, it was just using very aggressive filtering making response time slow. by setting coefficient to 0.5 all works nicely with gyro | 08:49 |
rinigus | mal: coefficient at https://github.com/janbar/harbour-compass/blob/master/src/genericcompass.h#L54 | 08:49 |
rinigus | mal: so, it looks to me that we just need to pick the generic compass code and add it to https://git.sailfishos.org/mer-core/qtsensors/tree/master/qtsensors/src/plugins/sensors/generic | 08:51 |
rinigus | I can test it tonight, should be easy | 08:51 |
T42 | <elros34> @ankaos your system partition is unusual. It's cm14 but you have system as root at least according to fstab. Show: ls -al /system/ /system/bin /system/etc/init /system_root/ /system_root/system | 10:01 |
mal | rinigus: I will test that on x10 at some point to see how it works there | 10:15 |
T42 | <edp_17> deathmist: I have swapped the device and vendor stuff in all three spec file and rebuilt a new image. Now the su s says: Device model: Galaxy Note 4 (treltexx / treltexx) | 10:22 |
T42 | <edp_17> And I do see all apps in the Jolla store. 😄 Thanks! | 10:23 |
T42 | <elros34> I bet it was because you logged in again :) | 10:23 |
T42 | <edp_17> Maybe, true I didn't try to log out then back in again. :) | 10:24 |
T42 | <edp_17> How can I make the wifi password permanent? The device always forgets it after a reboot. (On the hammerhead and S2 it helped when I put the wifi into a module and loaded up when the device started. On this device this didn't solve the issue.) | 10:25 |
T42 | <elros34> it's probably because your MAC keeps changing | 10:26 |
mal | rinigus: is that compass app available somewhere? | 10:27 |
T42 | <edp_17> @elros34 : and how can I avoid that? Is it something kernel related? (I am wondering why I didn't have this issue on the other devices.) | 10:29 |
T42 | <elros34> is wlan really | 10:30 |
T42 | <elros34> built as module now? | 10:30 |
T42 | <edp_17> Yes. | 10:30 |
T42 | <elros34> so lsmod shows it and you don't modprobe it somewhere in /etc/mod* | 10:31 |
T42 | <edp_17> I am not sure anymore as the lsmod gives me: ibkmod: kmod_module_new_from_loaded: could not open /proc/modules: No such file or directory | 10:31 |
T42 | <edp_17> I have /etc/modprobe.d/dhd.conf | 10:32 |
T42 | <elros34> so it's not, always check output .config if you change kernel | 10:32 |
T42 | <elros34> you have disable config_modules | 10:33 |
T42 | <elros34> disabled* | 10:33 |
T42 | <edp_17> I did change the kernel to put this into module. Hmm. | 10:35 |
T42 | <edp_17> I just pushed into github: https://github.com/edp17/android_kernel_samsung_exynos5433/commit/1cc59ba161c6b48bdfdaae54d1c4332473356d36 | 10:35 |
T42 | <edp_17> Yeah, that's true I forgot to set the CONFIG_MODULES :( | 10:38 |
rinigus | mal: I don't think that app is available anywhere (I opened an issue regarding it). so, you have to build it | 10:44 |
mal | rinigus: the compass was a bit wonky on x10 with that app, but at least better than nothing | 10:47 |
rinigus | mal: its not perfect, but question is whether it shows correct-alike directions? in tama, I had west and east swapped when using default sfos compass arangement. north could have been anything as well... | 10:49 |
rinigus | with this approach, I am at least hitting something alike. | 10:49 |
rinigus | ... as it is expected to be | 10:49 |
mal | rinigus: I will test a bit more later but it did give ok-ish direction for north | 11:03 |
mal | rinigus: have you checked that the sensorfw data is not swapped is some way, meaning the rotation matrises are correct | 11:04 |
rinigus | mal: cannot tell internally. but when I swapped accelometer z with -1 matrix, compass started to work. that was at expense of making csd rather unhappy | 11:11 |
rinigus | with the latest approach, I can use correct accelometer settings, mag data is correct (sign wise and seems to be expected values) as well, as reported by messwerk | 11:12 |
mal | birdzhang: btw, you don't need to build native vibrator packages in adaptation project, those are available in jolla repos | 12:24 |
T42 | <birdzhang> mal: i will delete it | 12:32 |
T42 | <ankaos> @elros34 [@ankaos your system partition is unusual. It's …], sh-3.2# ls -al /system/ /system/bin /system/etc/init /system_root/ /system_root/system | 12:35 |
T42 | <ankaos> ls: /system/bin: No such file or directory | 12:35 |
T42 | <ankaos> ls: /system/etc/init: No such file or directory | 12:35 |
T42 | <ankaos> ls: /system_root/system: No such file or directory | 12:35 |
T42 | <ankaos> /system/: | 12:35 |
T42 | <ankaos> total 12 | 12:35 |
T42 | <ankaos> drwxr-xr-x 3 root root 4096 Mar 26 1970 . | 12:35 |
T42 | <ankaos> drwxr-xr-x 30 root root 4096 Apr 21 21:19 .. | 12:35 |
T42 | <ankaos> drwxrwx--- 2 root root 4096 Mar 26 1970 lost+found | 12:35 |
T42 | <ankaos> /system_root/: | 12:35 |
T42 | <ankaos> total 12 | 12:35 |
T42 | <ankaos> drwxr-xr-x 3 root root 4096 Mar 26 1970 . | 12:35 |
T42 | <ankaos> drwxr-xr-x 30 root root 4096 Apr 21 21:19 .. | 12:35 |
T42 | <ankaos> drwxrwx--- 2 root root 4096 Mar 26 1970 lost+found | 12:35 |
T42 | <birdzhang> use pastebin please | 12:35 |
T42 | <elros34> your system is empty, did you forget to flash cm14 before flashing sailfish? | 12:37 |
T42 | <edp_17> Interesting. If I add the CONFIG_MODULES=y into defconfig, the make hybris-hal fails: https://paste.ubuntu.com/p/CH39wSSDB9/ | 12:46 |
T42 | <edp_17> Without, it compiles. | 12:46 |
r0kk3rz | that happens sometimes | 12:47 |
T42 | <edp_17> Thanks. :) And it that happens what can I do? | 13:29 |
T42 | <edp_17> Or is there any other way to force the device to remember the Wifi MAC address? | 13:31 |
T42 | <elros34> when you enabled modules probably few other config changed to =m. Set them back to builtin or at least these which cause issues (lcd, netfilter_ | 13:34 |
T42 | <elros34> I suggest you to regenerate your defconfig (copy over .config to defconfig) so you will see what changed | 13:35 |
T42 | <edp_17> Good idea! I wanted to ask how can I compare what's changed in .config over the defconfig, but this answers that. 👍 | 13:36 |
rinigus | mal: just checked with the proper compass - tama direction is rather close to what the real one shows. | 15:39 |
mal | rinigus: I will test that also later | 15:56 |
T42 | Amber %lastname% was added by: Amber %lastname% | 19:23 |
T42 | <ankaos> sh-3.2# ls system/system/bin/ in sh and other depencies | 19:33 |
T42 | <ankaos> LIPSTICK_OPTIONS=-plugin evdevtouch:/dev/input/event1 -plugin evdevkeyboard:keymap=/usr/share/qt5/keymaps/droid.qmap evdev0 or evdev1 | 19:38 |
mal | remove the :/dev/input/event1 completely, it should autodetect the device | 20:12 |
T42 | <ankaos> Are there any examples? | 20:13 |
mal | what? I just said what to remove | 20:17 |
mal | remove the part :/dev/input/event1 but leave everything else in that line | 20:17 |
rinigus | mal: made changes in qtsensors https://git.sailfishos.org/rinigus/qtsensors/tree/generic_compass | 20:43 |
rinigus | compiled at https://build.merproject.org/package/show/home:rinigus:sandbox/qtsensors | 20:44 |
rinigus | looks to be working nicely | 20:44 |
mal | rinigus: did you just add QCompass=generic.compass to config? | 21:12 |
mal | rinigus: I can't seem to get that working | 21:55 |
mal | maybe it doesn't like if the device doesn't have a gyroscope sensor | 21:56 |
T42 | <ankaos> https://paste.ubuntu.com/p/c8hzhRDb8h/ where is the problem? | 22:40 |
T42 | <elros34> did you flash cm? Show what you have in /system and /system_root now | 22:57 |
T42 | <ankaos> https://paste.ubuntu.com/p/38z7Ny9Jjw/ /system and /system_root | 23:03 |
T42 | <elros34> use more that command I gave you earlier or just search yourself why droid-hal-init can't find anything: droid-hal-init: cannot find '/system/bin/sh' (No such file or directory) | 23:06 |
T42 | <elros34> that ls is form /system? Show what you have in /lib/systemd/system/system*.mount | 23:07 |
T42 | <ankaos> system.mount enabled | 23:09 |
T42 | <elros34> cat it | 23:09 |
T42 | <ankaos> sh-3.2# ls system/system/bin/ | grep sh say me sh | 23:11 |
T42 | <elros34> yeah that is why you should check content of system*.mount | 23:12 |
T42 | <ankaos> https://paste.ubuntu.com/p/JTXYZVGWDQ/ | 23:13 |
T42 | <ankaos> cat /lib/systemd/system/system*.mount | 23:14 |
T42 | <elros34> looks like entry in ./out/target/product/tissot/root/init.target.rc mess up your system.mount | 23:17 |
T42 | <elros34> try to put this in system.mount: https://pastebin.com/eLmsp8Ux | 23:18 |
T42 | <ankaos> @elros34 [try to put this in system.mount: https://paste …], dont open pastebin 😢 | 23:19 |
T42 | <elros34> https://paste.ubuntu.com/p/d6qnwdMX29/ | 23:21 |
T42 | <ankaos> thanks | 23:21 |
T42 | <elros34> I forgot of [Unit] in first line | 23:22 |
T42 | <ankaos> then I will fix it manually. | 23:22 |
T42 | <ankaos> @elros34 [I forgot of [Unit] in first line], https://paste.ubuntu.com/p/FP7f4V2HYg/ | 23:23 |
T42 | Tedarek was added by: Tedarek | 23:26 |
T42 | <Tedarek> hi everyone. i just had one question. does sailfish X for Xperia X work on every X subdevices? like the xz premium? | 23:27 |
T42 | <ankaos> @elros34 [I forgot of [Unit] in first line], I could not. | 23:29 |
T42 | <ankaos> I can't figure out where to fix. | 23:35 |
T42 | <elros34> what do you mean? in /lib/systemd/system/system.mount on your device, then reboot | 23:36 |
T42 | <ankaos> https://paste.ubuntu.com/p/JTXYZVGWDQ/ ı dont edit | 23:37 |
T42 | <ankaos> https://paste.ubuntu.com/p/d6qnwdMX29/ ı dont use | 23:37 |
T42 | <ankaos> @elros34 [what do you mean? in /lib/systemd/system/syste …], hoowwwwww | 23:48 |
T42 | <ankaos> I don't understand what you're saying. | 23:49 |
T42 | <ankaos> system.mount enabled | 23:52 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!