libera/#maemo-leste/ Saturday, 2024-07-20

Wizzupfreemangordon: I'll see if I can't make headset stuff work in 6.6 then, maybe you could help me just set up the right stuff, it should be relatively simple since we already have the regs for it11:05
Wizzupheadset in calls I mean11:05
perehi.  how is maemo-leste doing these days?  time for me to test it again?11:23
Wizzupwell, depends on your device and needs :)11:55
pereStill got a N900 useful for such testing. :)11:58
perewhat exactly depend on device?11:58
Wizzupgood or bad power management, realistic ram/cpu constraints, if everything for call audio is supported, etc12:00
Wizzupbut generally n900 and droid4/mapphones can work quite well12:08
arno11Wizzup: (for headset) i just realise that ucm is actually wrong on n900 and seems wrong on mapphones too12:55
arno11on n900 it works fine 'by hand', selecting the right mic12:56
arno11in mapphones/n900 ucm, it uses the internal mic by default (for headset)12:57
arno11so i can fix it for n900 but no idea what to do on mapphone ofc13:01
arno11i mean, even if you set up the right stuff on d4, you have to check ucm stuff as well imo13:03
arno11and find the correct mic13:04
Wizzuparno11: on mapphones uvos had not hooked up the headset stuff yet13:25
Wizzupso it very likely is wrong for mapphones, but that is known13:25
arno11ok ;)13:25
Wizzupbut yes, changing the ucm would need to happen too, but kernel side first13:25
arno11sure13:25
sicelolet me check on D4 if there's no /dev/input event for headphone insertion and removal13:43
* sicelo hardly uses earphones13:43
Wizzupsicelo: d4 has notification og plug event13:47
siceloindeed no event. just tested13:47
Wizzupwhat doesn't work is specifically call audio using headset mic and such13:47
Wizzuppa picks up on the event just fine13:47
Wizzupbut it might be udev instead evdev or something13:47
siceloarno11: i think someday it would be good to upstream the N900 (and D4) ucm2 configs14:21
arno11sicelo: ah maybe14:24
arno11i'll fix the headset mic stuff later today btw (n900)14:25
Wizzuparno11: sounds good14:43
uvossicelo: headphone jack reporting via /dev/input is a legacy thing that i think you can enable via kconfig for modern alsa drivers15:14
uvossicelo: d4 reports jack state via alsas event interface15:14
arno11sicelo: Wizzup: ok so headset stuff is fixed localy and it is possible to switch between headset and 'normal' call on the fly during the call16:20
arno11i'll make a PR this evening16:20
siceloyou're doing great work :-)16:20
sicelobtw, do you know if SIP works with telepathy-haze yet, or not?16:21
arno11ty :) sip only works fine with twinkle ATM16:23
arno11bbiab16:23
Wizzupsicelo: sip calls start but the audio fails16:28
Wizzupsicelo: could be turn, or perhaps more like gstreamer16:28
Wizzupit wouldn't be with tp-haze though16:28
Wizzupit'd be with telepathy-rakia which uses sofiasip16:28
arno11yes indeed, at least msgs only work with sofiasip16:45
arno11but not with tls16:48
arno11tls works fine through twinkle btw16:48
arno11for both msgs and calls16:48
arno11but stun and proxy stuff are usually tricky16:49
arno11tls ofc depends of providers16:50
Wizzupchat messages do not work with tls enabled? that would be strange16:51
Wizzuparno11: would love you help in debugging some of the sofiasip stuff next week or the week after16:52
arno11i don't know exactly how it works but it works for sure with tls enabled (in twinkle)16:53
arno11for debugging, no probs16:53
Wizzupyeah the stun and proxy stuff could be a part of why the audio not works, but there might be more I think16:55
arno11probably16:56
arno11Wizzup: btw PA can also cause troubles: sip calls work on n900 because of the custom daemon.conf, otherwise, with default 44.1Khz samplerate it doesn't work iirc17:16
arno11it seems to mix everything to 48Khz17:18
arno11and it records at 16Khz iirc, but maybe i'm wrong. i have to doublecheck17:19
Wizzuparno11: that is true, but then it should work on the vm or droid4 at least17:30
arno11ok but why it should work ? PA is not involved with sip on D417:41
arno11sounds weird to me17:42
arno11(but ok i still have troubles to understand audio stuff on mapphones :P)17:42
sicelofor SIP, the behavior should be the same on all devices. the quirky stuff is the modems17:46
siceloi can't comment on the sample rates though17:46
arno11ok17:47
Wizzuparno11: uh, how is pa not involved?17:50
Wizzuppa is involved for all audio, just on mapphone the specific call audio is not done through pa (but still controlled with pa)17:51
arno11it was just a question17:51
Wizzupsince sip is all userspace PA must be involved17:51
arno11ok so that's fine17:51
arno11i just asked because of all tricky/quirky mapphones audio stuff i'm not aware of17:53
arno11:P17:53
sicelomodem audio is quirky on the droid 4, as well as N900 :-p17:53
siceloand many other phones too17:53
arno11true lol17:53
Wizzupthere isn't too much quircky stuff, just that the audio doesn't need to go through userspace (record / playback)17:53
Wizzupbut yeah17:54
sicelothat's what i mean by quirk ... i.e. it's not straightforward like "regular" audio17:54
Wizzupright17:54
WizzupI have my main sim back in leste now with 6.617:56
Wizzupinternet context somehow doesn't work still, but at least call audio is ok17:56
arno11same for me (main sim + 6.6)17:57
siceloyes also haven't had call audio problems anymore on D4 with fmg's recent work17:57
Wizzupmaybe I'll put my prev droid sim in the n900 here then, with leste17:57
uvosi mean from a software perspective the d4 call audio setup is as simple as it could reaslictly be17:58
Wizzupof couse when I inevitably have to travel to the us for work again I will have to switch it to bionic :D17:58
uvosyou just have to set a couple of registers and the hw dose literally everything else17:58
uvosits just alsa being dificult17:58
arno11alsa is so complicated...17:58
arno11Wizzup: (for internet context) you mean no 3G/hsdpa connection ?18:07
arno11'PA is not involved with sip on D418:14
arno11lol i forgot the '?'18:14
arno11sorry for the misunderstanding18:14
Wizzuparno11: right the context doesn't want to activate18:39
arno11ah ok18:40
arno11maybe roaming is needed ? (it doesn't work on my device without it)18:44
arno11(even with a local operator)18:46
arno11and maybe 'sudo ip route add default dev gprs0' is also needed18:49
Wizzupit is roaming, it's a ofono bug18:54
Wizzupback later, probably tomorrow18:55
Wizzupwill look a fstab for n900 then18:55
Wizzupfor swap18:55
arno11ah yes ok18:55
siceloarno11: sudo ip route add default dev gprs0 ... this should not be needed anymore18:58
sicelohttps://github.com/maemo-leste/libicd-network-ofono/commit/803f91fdd9bd1e68383c93b0f52190ad4e72732f18:59
siceloarno11: roaming while local ... weird. it's an MVNO?18:59
arno11i tried with an MVNO and a 'normal' one, same19:01
arno11ok for ip route, i didn't remember :P19:02
arno11but at least gprs0 works very well (14 or 15 hours with no disconnection on 6.6)19:05
arno11and idle is better with hsdpa (compared to wifi)19:07
arno1152-55mA hsdpa connected vs 65-68mA with wifi19:09
sicelomy operator terminates idle gprs sessions ... so i think in my case it would draw more19:10
arno11ah yes maybe19:13
arno11Wizzup: i made a PR for ucm headset: /leste-config/pull/4819:37

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