Tuesday, 2021-06-08

UmeaboyIf anyone is awake I seem to have trouble getting a certain .rc from the mounted system/vendor directory. The file is in the wrong place.00:40
T42<CSmartly> please do VPN android apps like one for ProtonVPN work on latest SailfishOS?00:42
UmeaboyCSmartly: Do you have Android support enabled?00:52
UmeaboyAndroid support as standard in Sailfish OS is NOT free just so you know. You have to purchase a license to enable that possibility.00:53
T42<CSmartly> @Umeaboy [CSmartly: Do you have Android support enabled?], I have00:54
UmeaboyWell, then I guess you should find the app in any store then.00:55
T42<CSmartly> yes app is there, but I am asking whether it works, many apps historicly didnt work and among them were VPNs, so I had to set up with files directly in system of SailfishOS00:56
UmeaboyTry and see. :)00:56
UmeaboyThen you'll know.00:56
UmeaboyF-droid have it. :)00:56
T42<CSmartly> no, its not for me F-droid has what, working free VPN?00:57
UmeaboyThe app ProtonVPN that you asked for.00:57
T42<CSmartly> I have it installed yes, not sure if it work as other didnt I tried in the past. Didnt want to spend time making account etc if its still not working00:58
T42<CSmartly> I will leave it for the person who gets the phone to figure it out00:58
UmeaboyI don't have Android app support as I don't need it so I just checked in my LOS 18.0 phone if F-droid had it.01:00
T42<CSmartly> yes but rememeber if it is in the store doenst mean it works on Sailsfis01:00
T42<CSmartly> some apps dont work, because it is not native Sailfish app android app doesnt get same access etc01:01
UmeaboyFair enough.01:03
UmeaboyWhat the heck...... I can't have extract-files.sh find init.rilmptcp.rc in the right place no matter how I change proprietary-files.txt01:04
UmeaboyI have tried everything.01:04
Umeaboymake hybris-hal fails to find that .rc file.01:04
T42<birdzhang> @pketo [birdzhang[m]: is it 64bit port], yep01:09
UmeaboyHi birdzhang! :)01:11
UmeaboyHow are you?01:11
UmeaboySorry. Forgot the @ :)01:11
UmeaboyIt's late here.01:11
T42<birdzhang> Hi01:11
UmeaboyI was wondering if you can help me get this line correct..... init.rilmptcp.rc:system/etc/init/init.rilmptcp.rc01:12
UmeaboyIt's not there.01:12
UmeaboyIt's in the main dir instead.01:12
UmeaboyI tried lots of changes, but I still can't find it.01:12
T42<birdzhang> can you show your device tree github link?01:15
Umeaboy@birdzhang: https://github.com/whatawurst/android_device_samsung_beyond2lte01:17
Umeaboysystem/etc/init/init.rilmptcp.rc: file not found in source because that file is in the system partition when you open it.01:21
UmeaboyI mounted the system.img to system/ and the vendor.img to /system/vendor/ just like the extract proprietary blobs page for Lineage suggests so I don't think I made a boo boo.01:23
UmeaboyI am double checking and writing every step down for remembering if and when I start over.01:23
T42<birdzhang> sorry, i'm not good at this😅01:24
UmeaboyNo problem.01:26
T42Brent %lastname% was added by: Brent %lastname%04:55
pketo@birdzhang added05:00
T42<birdzhang> Thank you05:39
T42supirlelik96 was added by: supirlelik9609:03
T42<birdzhang> @adampigg How do you fixed audio on the volla 64 port? I have no audio on ginkgo(Redmi Note8) aarch64 too13:01
T42<adampigg> I was missing a symlink to libandroidicu.so (64bit)13:03
T42<Verevka86> @birdzhang [@adampigg How do you fixed audio on the volla …], https://github.com/SailfishOS-sagit/droid-config-sagit/commit/5a277fff3b79b9ce6970f51050328c86c12bfe6a13:04
T42<Verevka86> Check this13:04
T42<birdzhang> I'm on hybris-16.0, thank you all, let me try13:04
T42<supirlelik96> https://github.com/mer-hybris/hadk-faq#android-base-specific-fixes17:45
T42<supirlelik96> I need to run Android base specific fixes for hybris17. 1 los1717:45
T42<supirlelik96> What to do if there are no Android base specific fixes for hybris 17.1?17:45
malhttps://github.com/mer-hybris/hadk-faq/pull/8/files17:52
T42<supirlelik96> @mal [https://github.com/mer-hybris/hadk-faq/pull/8/ …], Thank you18:11
T42<supirlelik96> @mal [https://github.com/mer-hybris/hadk-faq/pull/8/ …], Вот18:13
piggzmal: https://source.android.com/devices/sensors/sensors-hal218:51
piggzis there any implementatino of this interface for sfos?18:51
malpiggz: not yet, not sure how we should handle the event fmq18:52
piggzmal: volla implements that, not 1.018:53
malpiggz: yeah, I think there might have been some other device also18:53
piggzmal: wondering how the 10 ii doesnt use that??18:54
malgood question18:54
piggzill put sensors to the back of the queue then for now :D18:56
malwell I was the one who did the binder backend to sensorfw so maybe I should have some idea but need to see when I have enough time to think18:57
piggzsure, i also need your  help with sailjail ;)18:58
malwhy do I have to solve everything :)18:59
piggzcos u know everything19:00
piggzyour fault being the sailor that interacts the most here :D19:00
T42Ajdj %lastname% was added by: Ajdj %lastname%19:01
piggzby all means, fire me some tips for debugging .. i tried strace already19:01
piggzactually, strace fails becuase sailjail is suid19:13
piggzand that cant be fixed https://superuser.com/questions/247888/strange-strace-and-setuid-behaviour-permission-denied-under-strace-but-not-run19:14
malhmm19:16
piggzso, im willing to debug, just unsure how ;)19:21
T42<elros34> add -vv to sailjail :P19:21
piggzwell, it tells me there is an issue witha  qopengl context that doesnt happen outside of sailjail ...  https://paste.mozilla.org/c6roGCyq19:28
malpiggz: wondering if there is some device node it can't access or something19:31
piggzmal: logcat for with/without sailjail shows identical output19:35
malhmm19:35
piggzmal: something extra in dmesg when it fails though....19:37
piggzworking:19:38
piggz[83025.428744]  (5)[1664:jolla-calculato][ION]ion_handle_get_by_id_nolock: can't get handle by id:019:38
piggz[83025.428787]  (5)[1664:jolla-calculato][ION]ion_ioctl:ION_IOC_FREE handle is error19:38
piggznot working:19:38
piggz[82980.921640]  (6)[1316:jolla-calculato][ION]ion_handle_get_by_id_nolock: can't get handle by id:019:38
piggz[82980.921802]  (6)[1316:jolla-calculato][ION]ion_ioctl:ION_IOC_FREE handle is error19:38
piggz[82980.982400]  (4)[1459:QSGRenderThread]dump_emit: __kernel_write fail: -3219:38
piggz[82980.996613]  (5)[1316:jolla-calculato][ION]ion_client_destroy:hdl=00000000f8e1b928,buf=00000000bb609417,ref=2,kmp=0,clnt=1316,dbg=gralloc19:38
piggz[82980.996670]  (5)[1316:jolla-calculato][ION]ion_client_destroy:hdl=000000008937c2da,buf=000000003040c9dc,ref=2,kmp=0,clnt=1316,dbg=gralloc19:38
piggz[82980.996689]  (5)[1316:jolla-calculato][ION]ion_client_destroy:hdl=00000000e7a29a93,buf=00000000f68ccade,ref=2,kmp=0,clnt=1316,dbg=gralloc19:38
malhmm, -32 seems EPIPE19:40
T42<NotKit> is there a way to test you can access /dev/mali*, /dev/ion, /dev/pmsg inside firejail?20:43
T42<NotKit> that should be enough for GPU driver20:43
T42<NotKit> maybe also /dev/mtk_disp_mgr20:43
malyeah, maybe changing the sailjail permissions manually could help figuring out why it fails20:48
T42<NotKit> btw, regarding sensors hal 2 and fmq, I experimented with old Marius linux-hidl project to compile Android HIDL-related C++ parts natively20:49
T42<NotKit> but it seems overkill to use it just for that20:50
malyeah, need to check a bit how the queue stuff is implemented to see if we can easily make a linux version of it20:51
malpiggz: can you grab a strace of a working app run so maybe we can see if something in there matches the rules20:52
piggzsure...20:52
T42<NotKit> https://github.com/ubports/sensorfw/commit/1f5afd4eceaef26fd0a930df7d6e8661f4d25d2d - from HAL interaction point it's something like that20:52
piggzmal: https://paste.opensuse.org/6101928520:54
mal@NotKit at least that gives some idea what might be needed but still I would go with more native approach20:55
piggzit access pmsg020:55
piggzand /dev/ion20:56
T42<NotKit> and /dev/mali020:56
malI don't see anything about those in the rules20:57
piggzmal: is that something i need to add somewhere?21:06
malnot sure yet21:06
T42<b100dian> I'm trying to enable double tap to wake and found a lengthy printf that enables that in android22:44
T42<b100dian> basically to reach this point https://github.com/b100dian/Xiaomi_Kernel_OpenSource/blob/tucana-hybris-17.1/drivers/input/touchscreen/fts_521/fts.c#L670522:44
T42<b100dian> I need to actually send an input_event struct like `printf "%b" '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x04\x00\x00\x00' > /dev/input/event4`22:45
T42<b100dian> the problem is - enabling this seems to not be enough in sailfish + mce22:45
T42<b100dian> I've run `mcetool --set-doubletap-wakeup=always` and `mcetool --set-low-power-mode=enabled` and even stopped mce and run it with verbose and stderr22:47
T42<b100dian> (of course that one thing that doesn't work is setting those \x'22:55
T42<b100dian> 00 values in the ini file..22:55
T42<elros34> have you checked whether you have any input event on double tap?22:58
T42<b100dian> ok, I did see a dmesg from fts kernel, but how do I do that, just cat the event device?22:59
T42<b100dian> yup22:59
T42<elros34> evdev_trace  to see which device is that then eved_trace -t <input device number>23:00
T42<b100dian> Yes, here's both ways https://pastebin.ubuntu.com/p/rnrB497HYJ/23:01
T42<b100dian> (now I know key_wakeup was on this channel, grepping)23:01
T42<elros34> maybe this is enough: https://github.com/mer-hybris/droid-config-f5121/commit/424ba6ee4d2b8700dd65abf944a249162aab9fbd23:05
T42<b100dian> Yup, it works like this, thanks!23:08
T42<b100dian> Are there any perils for this alias that you know?23:08
T42<elros34> no idea but this f5121 is official device so..23:10
T42<b100dian> Ok:) One of the previous discussions was piggz pointing out that 'you dont want to map KEY_WAKEUP to KEY_POWER, as every time there is a ring indication, the screen will invert', but I'm not sure what this means23:11
T42<elros34> wasn't that for modem triggering tat event on pine* device?23:11
T42<elros34> I am only wondering whether there is better way to enable double tap like sysfs interface:/sys/class/input/event5/device/wakeup_gesture23:12
T42<b100dian> I started with that.. I don't have that sysfs file. I have a bunch of others, you can configure gestures in shapes of letters to wake up or smth23:13
T42<b100dian> but this is the only way I could trigger by reading driver sources..23:14
T42<b100dian> well, actually it is simpler - that can be done only once at boot time if I understand correctly.23:14
T42<b100dian> of course, I need to test battery first - or fix the proximity sensor and make mce read binary strings from ini files - but hopefully it's a hardware thing that doesn't consume much..23:17
T42<elros34> You could write few lines of code in kernel driver and add sysfs interface similar to mentioned wakeup_gesture. For your other gestures I remember such a app which allows you to trigger actions based on gesture  https://github.com/kimmoli/gesture-daemon23:18
T42<elros34> or maybe even this one:https://github.com/sailfishos-oneplus5/onyx-gesture-settings-plugin23:21
T42<b100dian> Thats actually a great idea, thanks!23:22
T42<b100dian> Ni, i dont need the other gestures, just things ive read in there23:22
T42<b100dian> The touchscreen can send letters or something:)23:22

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