Monday, 2025-06-02

T42<TheVancedGamer> mal: would it make sense to add a delay in gbinder while getting binder service? android waits 5 seconds if it doesn't initially find a service and that's usually enough for the service to start up07:44
T42<TheVancedGamer> however we've noticed on UT that systemd services start too early and they can't get binder service07:44
T42<Cvb> How to perform a factory reset of sfos on c208:23
mal@Cvb it's also possible to reflash the device yourself with fastboot at least in linux or windows10:21
mal@Cvb you could also try if for some reason the update went wrong to manually try to update all packages, first check what release version "ssu re" gives, if it's latest sailfish release i.e. 5.0.0.67 then just run either "version --dup"10:24
T42<abranson> muhammad: that sounds like something too high level for gbinder? In sfos if a service isn't found then the client will go into a sleep loop and retry until it appears, and also drop into that when it disappears. but the behaviour can differ in each case.10:25
T42<TheVancedGamer> hmm10:26
T42<TheVancedGamer> it depends I guess10:26
T42<CrossRehk> #notes10:26
T42<TheVancedGamer> IBinder's getService() on android will wait for 5 seconds10:26
malwhich service is the problem?10:29
T42<TheVancedGamer> vibrator hal, Bluetooth hal and biometrics hall10:29
T42<TheVancedGamer> biometrics hal is especially troubling because its startup class is moved to late_start10:30
malwhich middleware is using the vibrator hal?10:30
T42<TheVancedGamer> hfd-service in our case10:30
malcan you point me to the source?10:31
T42<TheVancedGamer> https://gitlab.com/ubports/development/core/hfd-service10:31
malok, seems that is using sync api not async api of getting binder service10:32
T42<TheVancedGamer> yeah, probably should try async10:32
malfor bluetooth do you use bluebinder?10:33
T42<TheVancedGamer> yes10:33
T42<TheVancedGamer> it's very racy though10:33
T42<TheVancedGamer> sometimes bluebinder starts too early and we have no BT10:34
Mister_Magistermal: quick question, I want to listen to rotation from c++ side, do you know perhaps which sfos software would give me that info?17:22
maljust c++ or Qt?17:22
Mister_Magisterc++ with qt but no qml17:23
malQSensors?17:24
Mister_Magisteroh thanks17:24
Mister_MagisterI wrote tiny software that listens to pulseaudio when it changes sink to active and sets the rotation control via alsa17:24
Mister_Magisternow I just need actual rotation value and voila17:24
Mister_Magistermal: it does provide device orientation but i was thinking more screen rotation17:30
Mister_Magisterthat would be more lipstick17:30
Mister_Magisteror Page.orientation17:31
Mister_Magisterbut no qml :P17:31
rinigusI have a problem with enrolling fingerprint on nagara port (LOS21 based) using community FPD. while gatekeeper fills up curPwdHandle blob in response to its enrollment, verify quietly fails.17:38
rinigusduring verify step, c++ lambda is called with rsp.code=-1 and auth_token is not filled. in logs, I have (E KeymasterUtils: rsp_header->status: -30) which is probably KM_ERROR_VERIFICATION_FAILED17:38
rinigushttps://github.com/sailfishos-open/sailfish-fpd-community/blob/master/android/hybris/biometry_fp_hidl_for_hybris.cpp#L30917:38
rinigustips?17:39
riniguslooks like keystore2 is not initialized in nagara properly. as vold is disabled, nothing calls earlyBootEnded() and I get later error with status #LOCKED . something that's absent in LOS19:08
rinigusdo we have any replacement for vold? something that would call earlyBootEnded?19:09
rinigusor am I wondering in wrong direction?19:10
malwhat does earlyBootEnded do?19:15
Mister_Magistermal: any idea for the screen rotation perhaps? for now I used QOrientationSensor but if the device is just laying flat its not helping much. But if not, i'll just stick to it19:19
rinigusmal: not sure. its defined in system/security/keystore2/src/maintenance.rs and looks to be setting up database. let me paste the logs19:20
rinigusmal: https://paste.opensuse.org/pastes/ede1878a20ec19:22
rinigusits logcat grepped for keystore. avc errors can be ignored - its in permissive19:23
rinigusso, looks like difference starts from earlyBootEnded - something that is triggered by vold19:24
nephrosMister_Magister: does usr/include/lipstick-qt5/lipstickcompositor.h from lipstick-qt5-devel help?19:36
nephrosQ_PROPERTY(Qt::ScreenOrientation topmostWindowOrientation19:37
Mister_Magisternephros: perhaps19:37
Mister_Magisterthanks19:37
Mister_Magisternephros: hmmm but like… how do I talk to it19:39
Mister_Magisterdo I make my own instance of compositor? that doesn't sound right19:40
Mister_MagisterLipstickCompositor::instance() is null19:55
nephrosnot sure i just saw it and thought it looked useful.20:00
Mister_Magisterwell thanks anyway20:01
Mister_Magisternephros: turns out if you just have QGuiApplication and get screen from it, it has orientation lol20:23
Mister_Magisterhmm but its not sending changed signal20:32
Mister_Magisteroh wait you gotta tell it you want updates20:36
Mister_Magisterkinda hacky workaround but now i have working audio orientation!20:39
Mister_Magisterspeaking of which i wonder how that works on stereo devices20:39
Mister_Magisterif landscape inverted is taken into consideration20:39
Mister_MagisterGUESS WHAT20:54
Mister_MagisterITS NOT20:54
Mister_MagisterXD20:54

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