libera/#maemo-leste/ Monday, 2023-08-21

wunderwungielIs there some command like startxfce4 but starting Hildon on Leste through command line?15:23
WizzupI would look at what diejuse did15:45
wunderwungielYeah I'm analyzing it right now15:53
wunderwungielI want to run Leste on Android without root, through proot on Termux, just like the distros from Andronix apps and similar15:54
wunderwungielFor now I can access Leste's raspi2 image command line15:54
wunderwungielI once accessed the Hildon, but without any backgrouds, and colors. But I was able to launch apps. Now I don't remember what I exactly did and I can't repeat it :D15:54
Wizzupso the geneic image I gave you didn't work?15:56
wunderwungielAlienDalvik on F(x)tec is arm3215:57
wunderwungielI will try yours image on S5e which is arm64 soon15:57
Wizzupah16:02
siceloWizzup: https://lore.kernel.org/all/20230821152623.196541-1-sean@mess.org/18:58
sicelo:-)18:58
Wizzupgreat18:59
bencohneat18:59
siceloi decided to just email him and explain my findings, because i could see he was still active (in fact is the maintainer of the IR framework anyway) ... he offered to resubmit the patch.18:59
sicelobencoh: know a thing or two about alsa/asoc/dapm?19:00
* sicelo is angry at N900's audio codec :p19:01
bencohehh ... I've read code and fiddled a bit, but not that much ... I'd be glad to help if I can :)19:02
siceloi'm trying to get the earpiece working, so with arno's great work, we can have 'normal' calls19:03
siceloi can see how this whole thing fits together, by looking at the schematics, and the driver19:03
sicelobut so far i've not had success getting sound out of it19:04
bencohon n900 the earpiece is connected to cpu / audio codec, right? or is the audio from the modem routed to earpiece?19:06
siceloi can summarize it as follows: the earpiece is connected to an output of the 2nd codec (well, 2nd stage of the one codec). the input of this codec is hardwired to a mono output of the first codec19:06
bencohuhh19:08
bencohthat's funky, but ... so be it19:08
siceloso in connection with modem audio, it will be cpu -> codec A -> DAC(A) -> mono out -> line2r (codec B) -> ... -> Left High Power Output (codec B)19:08
bencohso basically you should be able to just play audio from linux to that specific codec output to test it?19:09
siceloyes, that's what i've been doing19:09
siceloexcept, clearly i'm getting it wrong somewhere, since aplay hangs (which is normal if you've got the routing wrong)19:09
bencohpossibly meaning that something should be enabled/powered first19:10
siceloi *think* both codecs are correctly powered19:10
bencohdid you try dumping amixer output on fremantle and compare it to what you get?19:10
bencohalso you can use /sys/kernel/debug/asoc19:10
siceloat least /sys/kernel/debug/asoc/ 'sees' both of them and can show the endpoint configurations19:10
bencohand /sys/kernel/debug/tracing/events/asoc19:11
sicelomaybe the kernel i was testing with doesn't have correct stuff for tracing. last time tried, nothing showed up19:12
bencohyou can enable it (/sys/kernel/debug/tracing/events/asoc/enable), then enable /sys/kernel/debug/tracing/tracing_on, and tail /sys/kernel/debug/tracing/trace_pipe19:12
siceloi'll check the config19:12
bencohI'd suggest enabling it if it's disabled, it can be very useful for that kind of stuff19:13
sicelothanks. i'll have a go at it again.19:19
siceloi can see jack insertion events19:20
sicelobencoh: the next question is probably: how to interpret the trace? :p19:35
sicelofor example, https://paste.debian.net/1289596/19:36
sicelothis one was not specific to earpiece  ... just testing how the thing works19:37
sicelopreviously i had looked at /sys/kernel/debug/tracing/trace , so i guess that's why i never saw anything useful19:47
siceloarno11: so it looks like we have no alternative - BT really *must* work before the fm receiver works19:49
sicelowhile it has i2c access, by default it's ... dead. i2cdetect won't find it. to turn on the i2c access, you need to send it a specific bluetooth command :p19:51
arno11ok19:59
arno11btw i successfully ported Pierogi ! the app works fine (like Fremantle but a bit slower), able to send pulses (visible with a phone camera) but pulses seems a bit too slow to be recognized well (that's a well known issue with pwm-ir-tx...). I got better results with LIRC/irsend because it's easy to repeat pulses quickly20:07
sicelohttps://github.com/maemo-leste-extras  ... add it here :-)20:08
arno11giving higher cpu priority could maybe solve the issue (?)20:08
arno11yes (for maemo-leste-extras)20:09
arno11Anyway i learned so many things about maemo qt4->qt5 port :) probably useful to share on TMO20:13
siceloor wiki20:14
arno11oh yes20:14
arno11sicelo:(about FM/Bluetooth) <to turn on the i2c access, you need to send it a  >20:30
arno11is it an AT command ?20:30
sicelono, this is it: 0x08, 0x15, 0xFC, 0x03, 0x29, 0x00, 0xa220:32
sicelodisabling is the same, just 0x7F at the end20:32
arno11argh ok20:36
siceloFun20:37
arno11yes20:37
arno11sicelo: (for earpiece stuff) did you have a look at alsa/pulse config ?21:00
arno11i just remember seeing specific alsa module earphone parameters in default.pa in Fremantle iirc21:01
arno11got it. /etc/pulse/default.pa : load-module-alsa-sink-volume sink_name=sink.hw0 mixer_load=HP_DAC,Headphone,Earphone mixer=HP_DAC device=hw:021:07
arno11sounds weird. i think even if we activate earphone we will have troubles to set up the volume21:10
arno11or maybe earphone is already working but with volume at 021:11
arno11another question: why alsamixer/amixer shows earphone ON/OFF but not the Volume like in Fremantle ?21:12
siceloThat enables the function21:15
arno11this module seems specific to volume.21:23
sicelobtw arno11 , here's a fun thing that can be done with n900 and its sound card, https://talk.maemo.org/showpost.php?p=1062144&postcount=123:14
arno11!?! wtf, really cool23:23
arno11it means we can probably plug something like a cd player with a specific adaptor (rca to jack)23:33
arno11i think i have one, i'll try :D23:34
sicelojust make sure you lower the volume first23:37
siceloand of course, you won't get stereo23:37
arno11not sure for stereo, i mean using a double rca red-white / jack stereo23:46
arno11or maybe the original n900 cable works in the 2 ways lol23:48
siceloyou can't get stereo audio, simply because this trick basically connects input audio as if it was headphone mic23:49
sicelothat's why the thread says to not push the connector fully in23:50
arno11ok makes sense23:50

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