T42 | <sicelo> hi | 09:47 |
---|---|---|
T42 | <sicelo> have a quick question - if an SMS is sent while the device (or modem) is offline, does SFOS have a way to ensure that it is received properly when the device goes online? | 09:51 |
T42 | <sicelo> unless the ofono fork queues the sms itself? at least upstream ofono doesn't seem to have a way to do so, hence those smses could be lost if the modem goes online before the sms service (i guess tp-ring?) is up | 09:53 |
Mister_Magister | mal: is there HBM plugin/config for mce? or should I create one? | 20:07 |
Mister_Magister | Also could someone have a look at my PR please? :P | 20:07 |
mal | hbm? | 20:09 |
T42 | <TheVancedGamer> high brightness move | 20:10 |
T42 | <TheVancedGamer> mode* | 20:10 |
mal | Mister_Magister: how does hbm work in your device? | 20:10 |
Mister_Magister | mal: sorry i described it above lemme copy paste | 20:11 |
Mister_Magister | to explain more I discovered something in my old ass phone called HBM (high brightness mode) that makes screen brighter than max brightness if you write 1 to sysfs | 20:11 |
Mister_Magister | android apprently does it automatically when you're outside in direct sun | 20:11 |
Mister_Magister | so i assume you need some brightness threshhold | 20:11 |
mal | to which path do you need to write that? | 20:11 |
Mister_Magister | @TheVancedGamer do you know what are conditions for it to turn on? | 20:11 |
T42 | <TheVancedGamer> direct sunlight | 20:12 |
Mister_Magister | @TheVancedGamer so brightness threshhold? | 20:12 |
T42 | <TheVancedGamer> it also increases contrast on some devices | 20:12 |
T42 | <TheVancedGamer> no, the als sensor is used | 20:12 |
Mister_Magister | mal: /sys/class/graphics/fb0/hbm | 20:12 |
Mister_Magister | als sensor? | 20:12 |
mal | there is hbm stuff in mce at least | 20:12 |
T42 | <TheVancedGamer> auto brightness sensor | 20:13 |
T42 | <TheVancedGamer> it's called als | 20:13 |
Mister_Magister | ahhh | 20:13 |
Mister_Magister | so ye brightness threshold xd | 20:13 |
Mister_Magister | @TheVancedGamer or does it just say "gimme hbm"? | 20:13 |
mal | mdy_high_brightness_mode_supported = | 20:14 |
mal | (g_access(mdy_high_brightness_mode_output.path, W_OK) == 0); | 20:14 |
T42 | <TheVancedGamer> usually in android there's a hash table of lux values and brightness values to write to sysfs node | 20:14 |
T42 | <TheVancedGamer> if lux goes above that table hbm gets enabled | 20:15 |
Mister_Magister | so like i said brightness threshold | 20:15 |
Mister_Magister | mal: idk where you see that lol | 20:16 |
mal | grep mce sources | 20:16 |
mal | in modules/display.c | 20:16 |
Mister_Magister | i'm doing that via github search unless it sucks | 20:16 |
mal | it's crap :) | 20:16 |
Mister_Magister | yeap :) | 20:16 |
Mister_Magister | could it be that its getting wrong path | 20:17 |
T42 | <TheVancedGamer> mfw even gitlab has better search than GitHub now | 20:17 |
mal | but grep is much better anyway | 20:18 |
mal | good thing I have probably most of sailfish sources locally on my laptop | 20:18 |
Mister_Magister | mal: yeah path is wrong | 20:18 |
Mister_Magister | it looks in /sys/class/backlight | 20:18 |
Mister_Magister | which doesn't exist either way xd | 20:18 |
Mister_Magister | oh yeah it doesn't exist so it doesn't go into the if you pasted code from | 20:19 |
Mister_Magister | I think | 20:19 |
Mister_Magister | but the generic doesn't work either :/ | 20:19 |
Mister_Magister | long story short should i add my display case there? | 20:20 |
mal | maybe you need to make that path configurable | 20:20 |
Mister_Magister | yeah | 20:20 |
mal | like many other paths are configurable | 20:20 |
Mister_Magister | the generic path is /sys/class/graphics/fb0/device/panel but that doesn't exist | 20:21 |
Mister_Magister | but /sys/class/graphics/fb0/ does | 20:21 |
mal | should be relatively simple | 20:21 |
Mister_Magister | and /hbm is there | 20:21 |
Mister_Magister | mal: I'll do that if my pr gets merged so that i can get nemo running >:) | 20:21 |
mal | what PR? | 20:21 |
Mister_Magister | ah | 20:21 |
Mister_Magister | timed | 20:22 |
mal | ok | 20:22 |
mal | quite unrelated anyway | 20:22 |
Mister_Magister | xdd | 20:22 |
Mister_Magister | hmm I'm trying to debug ofono-binder-plugin-ext-qti and while i'm getting qti_plugin_init i don't get qti_ext_new_slot and there's no obvious reason as to why | 20:37 |
Mister_Magister | @TheVancedGamer do you maybe have any idea? | 20:37 |
Mister_Magister | doesn't seem to be loading anything from /etc/ofono/binder.d | 20:39 |
mal | which device? | 20:39 |
Mister_Magister | >ofono-binder-plugin is not installed | 20:39 |
Mister_Magister | nobody tell anyone that I have ofono-alien-binder-plugin instead | 20:40 |
Mister_Magister | mal: oneplus 6 | 20:40 |
Mister_Magister | oh wait no it conflicts with ofono-ril-binder-plugin | 20:41 |
mal | ofono-ril-binder-plugin should pretty much never be used | 20:41 |
Mister_Magister | mal: really? | 20:41 |
mal | ofono-binder-plugin replaced it | 20:41 |
Mister_Magister | I wonder why it is used | 20:42 |
Mister_Magister | and why does it work | 20:42 |
Mister_Magister | maybe there's a reason its used | 20:42 |
mal | it does work but misses some things | 20:42 |
Mister_Magister | https://github.com/VerdandiTeam/droid-config-enchilada/blob/hybris-16.0/patterns/patterns-sailfish-device-adaptation-enchilada.inc#L33 | 20:42 |
Mister_Magister | yeah here | 20:42 |
mal | no 5g for example | 20:42 |
Mister_Magister | so I should change that to one without ril? | 20:42 |
mal | if it works then yes | 20:42 |
Mister_Magister | ah here's the catch xd | 20:43 |
Mister_Magister | for now i'll break patterns | 20:43 |
Mister_Magister | oh ofono segfaults now, perfect | 20:43 |
mal | which binder radio service version does that have? | 20:44 |
mal | binder-list should tell | 20:44 |
Mister_Magister | sorry give me a sec i'm having trouble finding binder-list for some reason | 20:46 |
Mister_Magister | binder-utils doesn't have it | 20:47 |
Mister_Magister | libgbinder-tools ah | 20:48 |
Mister_Magister | https://paste.opensuse.org/pastes/25a43d9b9cfb | 20:48 |
Mister_Magister | 1.0/1.1/1.2 it seems | 20:48 |
Mister_Magister | it connects to 1.2 | 20:49 |
Mister_Magister | https://paste.opensuse.org/pastes/4b0a03adea6a have a log too (reverse direction) | 20:51 |
Mister_Magister | oh, without qti plugin it also segfaults | 21:00 |
Mister_Magister | maybe thats the reason it was not used xd | 21:00 |
mal | gdb? | 21:02 |
Mister_Magister | yeah i also thought that | 21:04 |
Mister_Magister | it doesn't segfault without sim so thats something | 21:05 |
Mister_Magister | oh boy | 21:06 |
Mister_Magister | https://paste.opensuse.org/pastes/800db118f516 that doesn't help much tbh xd | 21:06 |
Mister_Magister | ofono-binder-plugin doesn't have -debuginfo package ;-; | 21:08 |
mal | well installing debug symbols would help | 21:08 |
Mister_Magister | mal: if it had them it would help | 21:08 |
mal | really? | 21:08 |
Mister_Magister | it doesn't have -debuginfo package | 21:09 |
mal | then build it | 21:09 |
Mister_Magister | i installed every other -debuginfo | 21:09 |
Mister_Magister | ugh | 21:09 |
Mister_Magister | but that's bothersome xd | 21:09 |
mal | should be quick on obs | 21:09 |
Mister_Magister | yeah yeah i knoooooooow | 21:09 |
Mister_Magister | i'm just complaining cause i'm Polish | 21:09 |
Mister_Magister | https://paste.opensuse.org/pastes/44c68f2f9519 here you go | 21:18 |
Mister_Magister | why would that segfault | 21:19 |
Mister_Magister | that makes 0 sense xd | 21:23 |
Mister_Magister | so it fails to allocate struct BinderDataRequest for god unknown reason | 21:26 |
mal | does binder-list report radio config interface? | 21:26 |
Mister_Magister | i posted binder-list of everything that had radio in its name :P | 21:27 |
Mister_Magister | i have no idea what is a config interface | 21:27 |
Mister_Magister | oh android.hardware.radio.config@1.0::IRadioConfig/default | 21:28 |
mal | I wonder how well 1.0 case has been tested, that means radio config is not used at all in our plugin | 21:30 |
mal | https://github.com/mer-hybris/ofono-binder-plugin/blob/master/src/binder_plugin.c#L1189 | 21:31 |
Mister_Magister | should we force it to use 1.0 interface? | 21:32 |
mal | I wonder if it goes into endless loop, the backtrace is just repeating same things over and over again | 21:32 |
mal | and eventually breaks because of that, just a theory | 21:33 |
Mister_Magister | mal: but it wasn't doing binder_data_set_preferred_data_modem_new in the loop | 21:33 |
Mister_Magister | I can try setting radioInterface = 1.0 | 21:34 |
Mister_Magister | that uhh… that kinda worked | 21:35 |
Mister_Magister | it did not segfault | 21:35 |
Mister_Magister | but i wouldn't say it to be fully functional (the signal is just square icon) | 21:36 |
Mister_Magister | ah its stuck in registering according to settings | 21:36 |
Mister_Magister | oh wait no | 21:38 |
Mister_Magister | mal: removing dual sim config stopped segfault | 21:39 |
Mister_Magister | 1.0/1.1/.1.2 doesn't matter | 21:39 |
Mister_Magister | also the qti plugin talks exclusively to 1.2 | 21:40 |
Mister_Magister | I've restarted the phone and its segfaulting again so that's not it | 21:43 |
Mister_Magister | yeah even on 1.0 its segfaulting | 21:46 |
Mister_Magister | oh i figured out the -d parameter | 21:55 |
Mister_Magister | all the requests seem to be different | 21:56 |
Mister_Magister | ah no they're repating | 21:56 |
Mister_Magister | mal: sounds like this but it also sounds like its not working https://github.com/mer-hybris/ofono-binder-plugin/commit/92f02e78a0038660c47dc7f27e5ad558000a1a91 | 22:10 |
Mister_Magister | wish monich was here | 22:11 |
Mister_Magister | so note for later: make hbm path in ofono configurable and debug ofono-binder-plugin i guess | 22:16 |
mal | do you get that request %p done (or failed) | 22:26 |
mal | in debug log, or submitted %s request | 22:27 |
Mister_Magister | yes | 22:42 |
Mister_Magister | its in the gdb log i sent | 22:42 |
Mister_Magister | oh wait its not | 22:42 |
Mister_Magister | But i do | 22:43 |
Mister_Magister | mal: here you go https://paste.opensuse.org/pastes/7a944cc9d6d5 | 22:43 |
Mister_Magister | i did -d "*/*" xd | 22:43 |
Mister_Magister | and the requests are repeated periodically | 22:44 |
mal | so that DATA_REQUEST_FLAG_SUBMISSION_FAILURE is not set? | 22:51 |
mal | maybe you need to check if that gets done or not, manually in gdb with breakpoints for example | 22:53 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!