libera/#maemo-leste/ Tuesday, 2022-09-27

buZz^_^00:24
Wizzupuvos__: I guess lel died again01:07
Wizzupsigh01:07
freemangordonuvos__:07:29
freemangordonexport  OFONO_AT_DEBUG=107:29
freemangordonexport OFONO_QMI_DEBUG=107:29
freemangordonand pass -d to ofonod07:29
freemangordonvia /etc/default/ofono, for example07:30
freemangordonI am adding those env vars to the init script usualluy07:30
freemangordonuvos__: mce on fremantle also does not control kbd brightness besides on/off, goingt o check what android does07:57
freemangordonyeah, android keeps it on 25508:03
freemangordonso, I think we shall put some defaults, like, unless on sunlight, keep it on. maybe start from 128 for complete darkness and switch to 255 for anything between 50 and 250(made up values). maybe calculate based on als readings, dunno08:07
freemangordonpower savings are not really something we shall consider (on n900 led current is 5 mA per led, IIUC)08:09
uvos__i think thats way to bright08:45
uvos__i changed android to reduce the brighness there too08:45
freemangordonuvos__: the point is that defaults should allow everybody to use their devices. being too bright might be inconvenient, but does not stop you from using the device. being too dim stops you.08:48
freemangordonas I said, a RL example - my device seems to be used a lot, so kbd buttons got glossy because of the usage08:48
freemangordonon indirect light they are unreadable08:49
freemangordonwithout bright backloght that is08:49
freemangordon*backlight08:49
uvos__fine08:49
uvos__its not worth arguing about08:49
uvos__change mce.ini to whatever you like in the repo08:49
uvos__and ill change it back locally08:50
freemangordonI will do some measurements/tests and will do a PR08:50
freemangordonuvos__: what about if I add one more slider in display cpl applet for kbd brightness?08:55
freemangordonso noone to be forced to edit ini files to chagne the broghtness?08:55
uvos__sure08:58
uvos__but the problem is that the tables themselves need to be in mce.ini08:58
freemangordonok, will do08:58
uvos__becasue they are a device dependant thing08:59
uvos__so maybe add low med high profiles08:59
freemangordonyes, I'll control a multiplier08:59
uvos__that the user can coose from08:59
uvos__or so08:59
freemangordonfrom .5 to 1.008:59
freemangordonso if initial (for darkness) is 160 and you select the lowest setting, you'll get your 8009:00
freemangordonthe same for 255, it will become 127/809:00
freemangordon5 steps09:00
uvos__ok09:00
uvos__watch out for the 1 bit brightness tho09:02
uvos__that cant become 009:02
freemangordonyou mean touch buttons?09:03
uvos__yeah09:03
freemangordonwhy it can't?09:03
uvos__setting the multiplier to 0.5 would make those allays be off09:03
uvos__becasue 1*0.5 = 0.5 floored is 009:03
freemangordonI am not going to recalculate09:03
freemangordonor rather - if kbd is not zero, then ts is 109:04
freemangordonor will not touch at all09:04
uvos__i dont follow09:04
freemangordonts buttons brightness can be 0 or 109:05
uvos__yes09:05
uvos__and seting the multiplier to 0,9 should not make it 0 all the time09:05
uvos__thats all09:05
uvos__how you do that i dont care09:05
freemangordonif keyboard brightness is zero, then ts brightness must be 109:05
freemangordonotherwise it is 009:06
freemangordonso we tie kbd with ts09:06
uvos__f keyboard brightness is zero, then ts brightness must be 1 ??09:06
freemangordonunless I am missing some usecase where ts shall be one but kbd 009:06
uvos__well slider closed09:06
freemangordonoh, sorry:09:06
freemangordonif keyboard brightness is zero, then ts brightness must be 009:06
freemangordonyeah, I'll consider slider09:07
freemangordonI think it is already considered09:07
uvos__the problem is sutch logic is hard to do consistantly09:07
uvos__because button backlight can have any nummber of lights configured09:07
uvos__and other devices also have on lights etc09:07
freemangordonhmm, right09:08
freemangordonok, I'll keep the tables and will just apply multiplier09:08
freemangordonto the kbd backlight09:08
freemangordonok?09:08
uvos__sure09:08
freemangordonok09:08
uvos__also yes slider is ofc considerd09:11
uvos__see mce.ini.d/70-droid.ini09:11
uvos__for what button-backlght can consider09:11
freemangordonmhm09:12
uvos__btw the is keyboard proparty is only used to implment the legacy dbus interfce09:13
uvos__that allows mce clients to query mce if the button backlight is lit09:13
freemangordonok09:13
uvos__in freemantle there is only one, when i redid this to be configurabel and support multiple lights i had to assign some light to check09:14
uvos__try and not use this for anything else09:14
freemangordonI will only apply multiplier to kbd backlight values09:14
freemangordonunless I see anything else that needs to be changed, but for now I don;t09:15
freemangordonuvos__: how to convert in_illuminance_input to mlux? multiply by 2000?09:25
uvos__in_illuminance_input schal be mlux according to kernel documentation09:27
uvos__however09:27
uvos__it isent on any device we use :(09:27
freemangordongreat :(09:28
uvos__so there is a proparty in the device depedant mce.ini file that tells us a conversion factor09:28
uvos__that i mesured for all the devices we have09:28
freemangordonah, thanks09:28
freemangordonand what is in_illuminance_scale?09:28
uvos__right so scale*intput should be mlux i think09:29
uvos__maybe read kernel documentation again09:29
freemangordonok09:29
uvos__but iio-sensor-proxy uses scale for us09:29
uvos__look at iio-als.c09:29
freemangordonok09:29
freemangordonhave to run now, will do later09:30
freemangordonbbl09:30
rafael2kwebrtc in chromium works, with jitsi... it takes some time to enter the room, but at least for voice - it work!09:41
rafael2k: )09:41
Guest224rafael2k: PP keyboard question at forum: https://talk.maemo.org/showthread.php?p=1574650#post157465009:57
rafael2kGuest224: no idea09:59
rafael2kMy pinephone keyboard broke long time ago. I bought a bt keyboard.09:59
Guest224how it broke?10:00
rafael2kstopped working, do not know what exactly10:01
Guest224hmm..what happens if pp keyboard battery goes total empty, can it start charge?10:02
rafael2kMine worked, until I let the battery go totally empty10:08
rafael2kthen it never turned on again10:08
rafael2kthen I bought a bluetooth keyboard :P10:09
Guest224I have foldable bt keyboard, but I like PP Keyboard, because its also handy cover for PP and always with it.10:10
Guest224and I have dip switched off wifi and that switch bt also off :)10:11
rafael2kindeed, the PP keyboard is nice... but I got a bit pissed with it tbh... 50 USD in the trash bin10:12
rafael2kUse a USB kbd10:12
rafael2k:P10:12
rafael2kIt does work10:13
Guest224actually I have USB keyboard but without PP keyboard it is hard to get PP to good angle :)10:14
Guest224does /images-devel/pinephone/20220925/ image has hildon-connectivity-mobile included? Stable didn't.10:29
Guest224should devel-image have it in?11:02
Wizzupno11:02
Guest224ok..so still need another connection than 3G to get net?11:03
WizzupGuest224: yes11:10
Guest224so iwhere I should download hildon-connectivity-mobile and put it to SD-card, before I put it to phone?11:13
Wizzupoof, and usbnet doesn't work for you?11:27
Wizzupthat package is just a meta package, it will pull in many other packages11:27
Guest224oof?11:28
Wizzupwe'll get it in the images eventually11:31
Guest224I think so that it is so important thing that it should be in image, I think another new testers too.11:37
Wizzupsure, but there are hard crashes in the settings internet dialog with the packages installed11:37
Wizzupso those and some other things need to be fixed first11:37
Guest224ok...I understand.11:37
rafael2klatest pic with libcamera: https://www.abradig.org.br/maemo-crazyness/test5.jpg11:50
rafael2kthings start to get brighter11:50
rafael2k: )11:50
rafael2kbut qcam still has issues, but using command line cam app it works!11:51
Wizzupnice!11:51
rafael2khad a call with 2 libcamera devs now11:51
Wizzuplet me know which one you'd like me to use in the maemo update11:51
Wizzupand what other stuff to write there11:51
rafael2kwe are slowly advancing11:51
rafael2kyou choose11:51
rafael2k: )11:52
freemangordonWizzup: I was thinking to re-implement nokia modem dbus interfaces in cellulard11:52
freemangordonthat way we'll revert all the ofono changes in settings11:52
freemangordonwhat do you think?11:52
Guest224refael2k: that picture has actually very good dynamic range!11:53
Wizzupfreemangordon: I mean, it'd not ideal to have a interface nobody else uses, and it might not work for multiple modem/sim11:54
Wizzupbut I don't like how I had to fit libgofono in connui-cellular11:54
freemangordonoh, I will implement it in a way to support multiple modems11:54
freemangordonand sims11:54
Wizzupbut maybe that's just because of libgofono and not because of ofono/dbus11:54
freemangordonthat's not an issue11:54
WizzupI'd rather re-use ofono interface11:54
freemangordonwe have issue there with blocking11:55
freemangordonas ofono iface is async11:55
Wizzupyes11:55
Wizzupbut it would also block on blocking nokia iface, no?11:55
freemangordonalso, I think you're missing the point11:55
freemangordonlemme show you something11:55
freemangordonthis https://github.com/maemo-leste/connui-cellular/blob/master/lib/context.c#L5911:56
freemangordonwill end up in cellulard where it will be translated to ofofno11:56
freemangordon*ofono11:56
freemangordoneverything else uses stuff like connui_cell_sim_status_register()11:57
freemangordonso it does not care how it works11:57
freemangordonwe agreed that modem control will be in cellulard, so I think it makes sense cellulard to provide the information on the current status11:58
freemangordonas it anyway registers11:58
freemangordonwe may extend or rename nokia dbus interfaces ofc11:59
WizzupI understand, but why would we want to reimplement the interface just for this lib11:59
Wizzupthat's what I meant mostly11:59
Wizzupis there a benefit outside of this one package?11:59
freemangordonthis lib is used all over the place11:59
freemangordoneverybody uses it - pin query, cpl applet, etc11:59
Wizzupsure, but are you saying there is no way to make the lib work with another (ofono) iface?11:59
WizzupI know, I did most of the buggy ofono porting :)11:59
freemangordonsure it can, but I think it will be way harder11:59
freemangordonalso, you know that libgofono is asyn c12:00
Wizzupso cellulard's job would be to block on the dbus call and return when it's ready where it will wait for ofono?12:00
freemangordonexactly12:00
Wizzupyes, but we don't have to use libgofon12:00
freemangordonbut, cellulard will wait for ofono12:00
Wizzupwe could just issue async call and block on the reply12:00
Wizzupwith normal ofono dbus12:01
Wizzupblock -waiting- for the reply12:01
freemangordonbut wahy, given that we already do lots of stuff in cellulard?12:01
freemangordon*why12:01
Wizzupto me it just seems a bit awkward to support an old iface nothing else will use, we won't share with others, to get connui-cellular to work sensibly12:01
WizzupI mean we do own all the code, we can even rewrite the usage of the lib if we really want to12:02
Wizzupnot saying we should, but just saying that -maybe- there's paths that don't require this custom iface12:02
WizzupI don't have a particularly strong opinion either way12:02
freemangordonI think this lib is not the only user of those interfaces12:02
Wizzupbut you might find you have to implement a lot of the ofono iface12:02
Wizzupwell, we haven't found many others, and if we did, we planned to port them to ofono12:02
freemangordonyes, but that way we tie to ofono12:03
Wizzupinstead of tieing to some nih? :D12:03
freemangordonand if we decide to move to mm, then we'll have to rewrite them all12:03
freemangordonmo, MM12:03
freemangordon*no12:03
freemangordonif we stay with nokia interfaces we'll have to rewrite only cellulard12:04
Wizzupwhat about icd2?12:04
freemangordonwhat about it?12:04
Wizzupfor MM12:04
freemangordonit will have libicd-mm12:04
freemangordonjust another plugin12:04
Wizzupok, fine, I guess it makes some sense since some UI parts depend on it12:04
Wizzupit just seems like potentially a lot of work12:04
Wizzupi.e. you have to expose a lot of the ofono interface12:05
Wizzupwhich feels redundant12:05
freemangordonno, why expose ofono? you meant expose nokia interfaces?12:05
WizzupI mean you have to port over most of the ofono interface12:05
Wizzuplike will you port com.nokia.csd.Call ?12:06
Wizzupand com.nokia.phone.SSC ?12:06
freemangordonyes12:06
Wizzupcom.nokia.phone.SIM12:06
freemangordonyes12:06
Wizzupand they're also underdocumented, whereas ofono is12:06
Wizzupalso wrt introspection12:06
freemangordonhmm...12:06
Wizzupso then we have multiple interfaces to calls?12:06
WizzupI mean again, it's doable12:06
Wizzupit just means a big shift imho12:06
freemangordonoh. ok :)12:06
Wizzupit won't be an easy task to expose an iface the size of ofono12:07
Wizzupand we were very actively avoiding for a long time12:07
Wizzupat least I was12:07
freemangordonbut still, if I am to do the settings thingie, to me it seems I will have to start from scratch12:07
freemangordonok, agree12:07
WizzupI think a lot of the research I did on what parts to map to what is sorted already12:07
freemangordonsure12:08
Wizzupbut yes the slinging around of data is a problem12:08
Wizzupbut I spend more time understanding the lib and figuring out what ifaces to implement where12:08
freemangordonbut you leave lots of fixmes and todos so I think it will be faster if I just start from scratch lookiong at your code for reference12:08
Wizzupone of the main problems for me was libgofono and how it works, and how it relied on the glib main loop to return at some point, which can muck with the flow of other programs12:08
Wizzupsure, if you plan to not go the cellulard way12:08
freemangordonyes, that's what I will have to avoid12:09
freemangordonso, you say it is better to not use libgofono and call dbus directly?12:10
WizzupI think it will give more flexibility12:12
freemangordonok12:12
Wizzupeven though it's probably not fun to write12:12
freemangordonwell, I have no issues with dbus12:12
WizzupI'd like to leave it to you to decide if you want to go the cellulard route or this route12:12
freemangordonI think I already agreed to not go cellulard route12:12
Wizzupthe current state wiht libgofono does work for status, home, cpa and pin12:13
Wizzupbut the cpa has issues still12:13
Wizzupok12:13
Wizzupwhen I wrote it there were also a lot more ofono issues, that I might have tried to work around12:13
Wizzupbut I agree libgofono probably is not the way here12:13
freemangordonmhm12:13
freemangordonwe need blocking calls12:14
freemangordonat least initially12:14
freemangordonwe may reconsider at some point12:14
Wizzupright12:16
freemangordonthough, I will check again if we can use libgofono now I have way better understanding of ofono etc12:17
Wizzupok12:17
rafael2kGuest224: and that was a quick-and-dirty conversion from YUYV422 to jpeg... could be better!12:24
rafael2kWizzup: when you have a couple of minutes, could you please take a look in the ringtones package?12:24
uvos__i tried to use libofono for sphone12:26
rafael2kmaemo-ringtones-mr0 has /usr/share/sounds/NokiaTune.aac but not /usr/share/sounds/Nokia_tune.aac, as expected12:27
uvos__it was more trouble than it was worth and very limiting12:27
uvos__vs just using the dbus interface by hand12:27
uvos__the dbus interface is pretty good imo12:27
rafael2kafaics, libgofono has no USSD too12:27
rafael2klemme know if anyone can take a look in the ringtone package, otherwise I could just edit the package by hand... as I did before (and not it is broken again)12:29
rafael2kMaemo is with broken ringtone for now12:29
siceloguess you just need to make appropriate adjustment in rules file and make an MR12:38
rafael2kdo you know where is the source of this package?12:45
Wizzupthere is no source we just import it as is from nokia12:57
Wizzupthat way we also don't have the tunes on our gh12:57
rafael2kok, so I dunno what to do, but something is wrong12:58
rafael2ksphone looks for /usr/share/sounds/Nokia_tune.aac12:59
rafael2kbut the package has  /usr/share/sounds/NokiaTune.aac12:59
rafael2kI can explode the package and change the path, no problem, but lets decide how to fix...13:00
rafael2kwho is right?13:00
Wizzupsphone is probably wrong13:02
Wizzupbut I can't look deep atm, sry13:03
WizzupI have to meet someone13:03
Wizzupeither that or the thing that selects ringtones13:06
rafael2kso13:07
rafael2knothing to do with sphone13:07
rafael2k /etc/profiled/99.custom.ini and /etc/profiled/90.nokia.ini have confliting information13:07
Wizzupnot sure,bbl13:07
Wizzupah13:08
rafael2kthis package ringtones added this /etc/profiled/99.custom.ini13:08
rafael2kwhich does not follow the /etc/profiled/90.nokia.ini conventions13:08
rafael2kmy ringtone package did not had this .ini, and followed the already in place convention13:09
rafael2kyou know better about Maemo intrinsics... please advice13:10
rafael2kor profile-data or maemo-ringtones-mr0 needs to be fixed13:11
rafael2kIMHO, this 99.custom.ini should be removed, as it points to files that it not even carry (in the package), as im.alert.tone                = /usr/share/sounds/chat-msg_in_bg.wav13:13
rafael2kand profile-data have the paths fixed to match the paths in maemo-ringtones-mr013:14
rafael2kor just concentrate the fixes in maemo-ringtones-mr013:14
rafael2kthe /etc/ringtones does not seem right too13:15
rafael2k(in maemo-ringtones-mr0)13:15
rafael2kunless you could copy all the correct files from a N900, which would be cool indeed, and we could make a proper package13:17
rafael2k: )13:17
rafael2kcp /usr/share/sounds and /home/user/MyDocs/.sounds/Ringtones13:17
rafael2kI can do the package13:17
freemangordonWizzup: we do not want to support simlock, right?16:23
uvos__as in phone dosent work without sim?16:35
uvos__(unlocked)16:36
freemangordonno, as this phone is locked to a provider and cannot work with other SIM cards16:45
freemangordonI don't see ofono supporting that anyways16:46
norayrrafael2k, i know the issue with your pp kbd18:50
uvoswhat is there even to support?18:51
uvosthe modem will just refuse to use the sim18:51
buZzfreemangordon: i think thats usually locked in the baseband? so ofono shouldnt even need support18:52
buZz^ indeed18:52
Wizzuptmlind: uvos: freemangordon: seen this one before? https://dpaste.com/96DA6NX7W.txt20:04
WizzupI think it happened when the d4 was plugged into usb/charging20:05
Wizzupbtw: telepathy-gabble doesn't realise when other clients (of the same account) send a message from your account20:07
Wizzupat least it's not a conversations bug20:08
Wizzuphere's the oops above rehosted, in case it expires https://wizzup.org/oops.txt20:08
buZzsomeone gifted me another OMAP device btw :P the 'Archos 35 Home Connect'20:53
buZzOMAP363020:54
buZzlol wtf https://www.amazon.co.uk/Archos-Home-Connect-Internet-Radio/dp/B005H0M4DY20:55
dreamerbuZz: ah, that's kind of in between the various Pandora processors?21:02
buZzi dont know? i think i had a 3630 in my collection already somewhere21:03
norayrbuzz, omg very cute23:06
buZzthe experience is very droid4-y , in that its very hard to charge from zero ;)23:07
buZzi ended up just swapping battery with a precharged external 1865023:07
norayrWizzup, yes my droid4 behaves weird and not responsive when on charge.23:07
norayrbuzz, heh.23:08

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