libera/#maemo-leste/ Tuesday, 2021-08-17

Wizzupok00:08
Wizzupuvos: did you also build it?00:09
Wizzup(for -devel)00:09
uvosno00:09
uvosWizzup: do you know anything about gstreamer?00:10
Wizzupnot much, what is your question00:10
uvoshttps://github.com/maemo-leste/sphone/blob/3f284e992792ab52fd2f04628c64f150ace9b9a7/src/utils.c#L54800:11
uvosthat function is all gst code in sphone00:11
uvosit dosent work utils_gst_play is retuned NULL00:11
uvosno idea why00:11
Wizzupcould it be that playbin2 does not exist?00:12
uvosno idea00:13
uvosi dont know where these "factorys" come from00:13
Wizzupmaybe try just playbin?00:14
Wizzupalso you can try gst-launch-1.000:14
Wizzupi.e. gst-launch-1.0 playbin2 play uri=<your uri>00:14
Wizzupif that fails, you probably should use something else (or install plugins)00:15
uvos"playbin" works00:15
uvosit rings :)00:15
Wizzup:)00:15
Wizzupmaybe we can ship a default ringtone for now00:15
Wizzup(with sphone)00:15
uvossphone has one00:15
uvosi like it00:15
Wizzupok00:15
Wizzupit wasn't set when I checked settings00:15
uvos(its a old school bell telephone)00:16
Wizzupso wasn't sure where to look00:16
uvosi haven checked if its installed00:16
uvosand jeah it should be set by default00:16
uvoshttps://github.com/maemo-leste/sphone/tree/master/samples/ringtones00:16
Wizzupcool00:17
WizzupI need to get some sleep, I'll test it again tomorrow :)00:17
uvoswe probubly want to have sphone get the ringtone from the profile00:17
uvosand thus from profilex in settings00:17
uvosbut gconf depedancies....00:18
Wizzupyes00:18
Wizzupwhat's wrong with gconf dependencies?00:18
uvosi dont like creating them00:18
uvos(since i then have to port it later)00:18
Wizzupwe have about 100+ probably ahead of us to port eventually :)00:18
Wizzupone more won't be that bad00:18
Wizzupand yes, using the profile one would be nice also reading if it needs to vibrate or not)00:18
uvosit dosent have to read that at all or?00:19
Wizzuphm?00:19
uvosjust disable the vibration via mce in settings00:19
uvosif you dont want it00:19
Wizzupiirc the vibration checkbox in profiles is not for display vibration00:19
Wizzupit's not if the phone should vibrate on calls/texts00:19
Wizzups/not/for/00:19
uvosoh i was confusing the light and vibration00:20
uvosmce has checkboxes for the light00:20
uvosnot the vib.00:20
Wizzupgoing to get some sleep, if it's not too much work, maybe you can build a new version in jenkins? :D00:20
* Wizzup zzz00:20
Wizzupotherwise I'l compile tomorrow00:20
uvosgood night ttyl00:21
tmlinduvos: so you can add more notifications in ofono to ciev_notify if some are missing, you can see the packets in dmesg if you modprobe n_gsm debug=0xff06:58
Wizzupmorn09:38
tmlindhi09:44
* Wizzup going to build the new sphone and test09:45
Wizzupuvos: hm, the phone didn't unlock for me10:09
Wizzupuvos: so I don't see a ring tone packaged10:10
WizzupI see one in the git repo, but it's not in the debian package10:11
Wizzupuvos: what is supposed to happen with tklock when mce is in call mode?12:20
Wizzupuvos: also I think mce-dev might contain some of the defines you have here https://github.com/maemo-leste/sphone/commit/3f284e992792ab52fd2f04628c64f150ace9b9a7#diff-3e04e056edbdc0f772b0ffd1c93cef1187209f37276d40d2a281d9b989398a73R3412:21
Wizzupsee include/mce/dbus-names.h:#define MCE_REQUEST_IF        "com.nokia.mce.request"12:21
Wizzupthere is also mode-names.h12:21
uvosWizzup: it should unlock see https://github.com/IMbackK/mce/blob/bfa3eb10efac30a10eb7d5efa3954497844c010a/src/modules/lock-tklock.c#L1414 and https://github.com/IMbackK/mce/blob/bfa3eb10efac30a10eb7d5efa3954497844c010a/src/modules/lock-tklock.c#L207612:26
uvosbut tklock is a royal mess12:26
uvosi mean grep for call_state in it :P12:26
uvosi still need to strip all of that out of it (really there should be something that manages the beavior during calls in once place instead of bits being all over the place)12:27
uvosi know about mce-dev infact i copyed the defines out of there12:28
Wizzupwhy not include the header?12:28
Wizzupwrt call state handling, I could look at my ida db for you12:29
Wizzupor share it12:29
uvoslook for what?12:29
uvosi dont like these fake depedancies (ie the resulting sphone binary dosent depend on mce at all you just need it to build it) rn i also build it on arch for testing and the lack of special deps is nice12:29
uvosi really want it to work like mce post cmake12:29
uvos(ie it uses the header if its there but uses dbus names from its own repo if not)12:29
WizzupI mean defines in headers are normal I think?12:29
Wizzupthat seems odd to me, to duplicate it12:30
Wizzupit could just be hidden behind some --enable-mce thing12:30
Wizzupwrt 'look for what?': how nokia handles this in their phone ap12:30
Wizzupphone app12:30
uvoshow nokia handles it in the phone app is not the issue12:30
WizzupI am going out to get some lunch12:30
uvosthe stuff is implmented in mce12:30
Wizzupok then, I think there might be other things we don't know about12:31
uvosits just spagetti code12:31
WizzupI'll look later12:31
uvossure12:31
uvos" could just be hidden behind some --enable-mce thing" but then the binary is different for no reason12:31
uvosfrom my perspective: i have devices that run leste12:31
uvosand devices that run just debian12:31
uvosi want sphone to work on both so the build system needs to be able to cope with no leste stuff installed12:32
uvos(altho in this case i do use mce on both)12:32
uvosunsuprizingly i like how the mce build system works12:33
uvosie the stuff here12:33
uvoshttps://github.com/IMbackK/mce/blob/bfa3eb10efac30a10eb7d5efa3954497844c010a/CMakeLists.txt#L6212:33
uvosand here etc https://github.com/IMbackK/mce/blob/bfa3eb10efac30a10eb7d5efa3954497844c010a/src/modules/CMakeLists.txt#L2312:33
lelIMbackK opened a pull request: https://github.com/maemo-leste/leste-config/pull/24 (raise in call volume)13:09
sicelommm, i'm 100% sure i was getting gprs data in wwan3 instead13:32
Wizzupcould be, I can't test atm13:33
Wizzuppretty sure the problems occur before the interface part really13:33
siceloand icd was working before. well enough too :)13:34
Wizzupsicelo: yes this has always been iffy, it's not a recent thing13:35
Wizzupuvos: any tips on the audio config?15:12
WizzupI won't get to trying ohm stuff for the d4 for a few more days at least I imagine15:13
Wizzupbesides setting the 'make a phone call' mode in PA15:26
uvosnot sure what you are expecting15:37
uvos'make a phone call' mode in PA sets up everything exactly correctly15:37
uvoskernel bug aside15:38
Wizzupok15:43
WizzupI did that but for the last 2 calls didn't get any audio really15:43
Wizzupbut it worked yesterday :)15:43
uvosyou have to use the internal speaker15:44
uvosnothing else works15:44
Wizzupok15:44
uvosand the bahvior with that is a bit buggy15:44
Wizzupso I set that in pavucontrol output devices?15:44
uvosbut thats the kernel15:44
uvosyes15:44
uvosthe kernel acctually disables all outputs in voice mode15:44
uvosbut due to what i suspect is a silicon bug in cpcap the ext speaker pga activates even when its register is set to disable15:45
uvosthere are 2 revisions of cpcap (not sure if d4 can have both) it might be that one behave differently if your device dosent work the same way15:46
Wizzupwell, it worked yesterday :)15:46
* sicelo also had successful calls a number of times before17:09
uvossure it works fine18:27
uvosif you use the speaker PGA18:27
inkyfolks, i tried several times18:47
inkyif i dd maemo, it works on pinephone18:48
inkyif i resize the partition with gparted18:48
inkyit doesnt18:48
inkyso i took a working sdcacd out, increase the space, and then it doesnt boot on pinephone.18:48
Wizzuphow did you increase the space?18:49
Wizzupyou can resize live on the fly, from maemo18:49
buZziirc there's even a script in /etc to resize the partition to full size18:50
buZzat least that works on droid4, dont have a pinephone yet18:50
inkyoh. didn't know that.18:50
Wizzupyes18:50
inkylet me try18:50
Wizzup/etc/expandcard.sh18:50
inkygreat18:50
uvosWizzup: so  did you try if recieving a call in sphone unlocks tklock?18:56
Wizzupuvos: it does not18:56
uvosdid you load the modul?18:56
uvoscallstate18:56
uvosits not loaded by default18:56
Wizzupprobably not19:01
Wizzupwill do19:01
Wizzupshall we load it by default?19:03
uvossure19:03
uvosi just removed all the modules we dont currently use while in the process of porting some interfaces19:04
uvoscallstate is the last one i never reloaded19:04
uvosso yeah we should load it by default again19:04
Wizzupdoes it matter when I load it?19:05
uvosshould not19:05
uvosbut i put it right after alarm19:05
uvosfor referance19:05
Wizzupok19:12
Wizzupuvos: yes it unlocks but doesn't bring sphone to the foreground19:13
uvoshm ok19:13
uvosthat would be hildons job19:13
WizzupI can check again in a just a bit19:13
uvosi gues its a race atm19:13
uvosbecause sphone will kick mce and then start19:14
uvosand if the sphone window spans before tklock unlocks it wont be on top19:14
Wizzupit can wait for the mode change maybe, assuming mce reports that19:14
Wizzupor tklock19:14
uvosand systemui is sloooooooooooow19:14
uvosso sphone allways wins i would gues19:14
Wizzuplet's make it now a race then ;)19:15
Wizzups/now/not/19:15
uvosright19:15
uvosyeah mce sends a status changed notification19:15
uvosnot sure if thas emmited before or after tklock finishes19:15
uvosmight be before19:15
Wizzupcould be worth checking19:15
freemangordonuvos: hmm, how do you know systemui is slow? maybe there is a bug, any hint how to test that 'slowness'?19:25
uvostklock takes a long time to spawn relatively19:26
uvosand the mce-systemui dbus interface is slow19:26
uvosi profiled mce once because the long time it takes for the device to wake up annoyed me19:27
uvosit spends most of its time waiting on systemui19:27
uvosthis is also why lock-generic is hugely faster than lock-tklock19:27
freemangordonhmm, maybe because tklock takes time to wake-up19:27
freemangordonI need to profile that19:27
freemangordon*have to19:27
freemangordonwill do it some day19:28
freemangordonI don;t remember if there wasn't some timer function involved in unlocking19:28
freemangordonuvos: will ping you for hints on profiling when it comes to it19:29
uvosfeal free19:29
freemangordonalso, keep in mind that tklock is not spawned, it is a module loaded by systemui19:29
uvosyeah i know19:29
uvos i mean spwan the window19:30
freemangordonmhm19:30
freemangordonI wonder what could potentially make it show slowly19:30
freemangordonbut anyway, will be on it someday19:30
uvoscould be the series of dbus round trips19:31
uvosbut just guesing19:31
freemangordoncould be19:31
freemangordonmaybe we shall renice dbus19:31
freemangordonttyl19:31

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