wunderwungiel | Is there some command like startxfce4 but starting Hildon on Leste through command line? | 15:23 |
---|---|---|
Wizzup | I would look at what diejuse did | 15:45 |
wunderwungiel | Yeah I'm analyzing it right now | 15:53 |
wunderwungiel | I want to run Leste on Android without root, through proot on Termux, just like the distros from Andronix apps and similar | 15:54 |
wunderwungiel | For now I can access Leste's raspi2 image command line | 15:54 |
wunderwungiel | I 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 :D | 15:54 |
Wizzup | so the geneic image I gave you didn't work? | 15:56 |
wunderwungiel | AlienDalvik on F(x)tec is arm32 | 15:57 |
wunderwungiel | I will try yours image on S5e which is arm64 soon | 15:57 |
Wizzup | ah | 16:02 |
sicelo | Wizzup: https://lore.kernel.org/all/20230821152623.196541-1-sean@mess.org/ | 18:58 |
sicelo | :-) | 18:58 |
Wizzup | great | 18:59 |
bencoh | neat | 18:59 |
sicelo | i 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 |
sicelo | bencoh: know a thing or two about alsa/asoc/dapm? | 19:00 |
* sicelo is angry at N900's audio codec :p | 19:01 | |
bencoh | ehh ... I've read code and fiddled a bit, but not that much ... I'd be glad to help if I can :) | 19:02 |
sicelo | i'm trying to get the earpiece working, so with arno's great work, we can have 'normal' calls | 19:03 |
sicelo | i can see how this whole thing fits together, by looking at the schematics, and the driver | 19:03 |
sicelo | but so far i've not had success getting sound out of it | 19:04 |
bencoh | on n900 the earpiece is connected to cpu / audio codec, right? or is the audio from the modem routed to earpiece? | 19:06 |
sicelo | i 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 codec | 19:06 |
bencoh | uhh | 19:08 |
bencoh | that's funky, but ... so be it | 19:08 |
sicelo | so 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 |
bencoh | so basically you should be able to just play audio from linux to that specific codec output to test it? | 19:09 |
sicelo | yes, that's what i've been doing | 19:09 |
sicelo | except, clearly i'm getting it wrong somewhere, since aplay hangs (which is normal if you've got the routing wrong) | 19:09 |
bencoh | possibly meaning that something should be enabled/powered first | 19:10 |
sicelo | i *think* both codecs are correctly powered | 19:10 |
bencoh | did you try dumping amixer output on fremantle and compare it to what you get? | 19:10 |
bencoh | also you can use /sys/kernel/debug/asoc | 19:10 |
sicelo | at least /sys/kernel/debug/asoc/ 'sees' both of them and can show the endpoint configurations | 19:10 |
bencoh | and /sys/kernel/debug/tracing/events/asoc | 19:11 |
sicelo | maybe the kernel i was testing with doesn't have correct stuff for tracing. last time tried, nothing showed up | 19:12 |
bencoh | you 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_pipe | 19:12 |
sicelo | i'll check the config | 19:12 |
bencoh | I'd suggest enabling it if it's disabled, it can be very useful for that kind of stuff | 19:13 |
sicelo | thanks. i'll have a go at it again. | 19:19 |
sicelo | i can see jack insertion events | 19:20 |
sicelo | bencoh: the next question is probably: how to interpret the trace? :p | 19:35 |
sicelo | for example, https://paste.debian.net/1289596/ | 19:36 |
sicelo | this one was not specific to earpiece ... just testing how the thing works | 19:37 |
sicelo | previously i had looked at /sys/kernel/debug/tracing/trace , so i guess that's why i never saw anything useful | 19:47 |
sicelo | arno11: so it looks like we have no alternative - BT really *must* work before the fm receiver works | 19:49 |
sicelo | while 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 :p | 19:51 |
arno11 | ok | 19:59 |
arno11 | btw 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 quickly | 20:07 |
sicelo | https://github.com/maemo-leste-extras ... add it here :-) | 20:08 |
arno11 | giving higher cpu priority could maybe solve the issue (?) | 20:08 |
arno11 | yes (for maemo-leste-extras) | 20:09 |
arno11 | Anyway i learned so many things about maemo qt4->qt5 port :) probably useful to share on TMO | 20:13 |
sicelo | or wiki | 20:14 |
arno11 | oh yes | 20:14 |
arno11 | sicelo:(about FM/Bluetooth) <to turn on the i2c access, you need to send it a > | 20:30 |
arno11 | is it an AT command ? | 20:30 |
sicelo | no, this is it: 0x08, 0x15, 0xFC, 0x03, 0x29, 0x00, 0xa2 | 20:32 |
sicelo | disabling is the same, just 0x7F at the end | 20:32 |
arno11 | argh ok | 20:36 |
sicelo | Fun | 20:37 |
arno11 | yes | 20:37 |
arno11 | sicelo: (for earpiece stuff) did you have a look at alsa/pulse config ? | 21:00 |
arno11 | i just remember seeing specific alsa module earphone parameters in default.pa in Fremantle iirc | 21:01 |
arno11 | got 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:0 | 21:07 |
arno11 | sounds weird. i think even if we activate earphone we will have troubles to set up the volume | 21:10 |
arno11 | or maybe earphone is already working but with volume at 0 | 21:11 |
arno11 | another question: why alsamixer/amixer shows earphone ON/OFF but not the Volume like in Fremantle ? | 21:12 |
sicelo | That enables the function | 21:15 |
arno11 | this module seems specific to volume. | 21:23 |
sicelo | btw 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=1 | 23:14 |
arno11 | !?! wtf, really cool | 23:23 |
arno11 | it means we can probably plug something like a cd player with a specific adaptor (rca to jack) | 23:33 |
arno11 | i think i have one, i'll try :D | 23:34 |
sicelo | just make sure you lower the volume first | 23:37 |
sicelo | and of course, you won't get stereo | 23:37 |
arno11 | not sure for stereo, i mean using a double rca red-white / jack stereo | 23:46 |
arno11 | or maybe the original n900 cable works in the 2 ways lol | 23:48 |
sicelo | you can't get stereo audio, simply because this trick basically connects input audio as if it was headphone mic | 23:49 |
sicelo | that's why the thread says to not push the connector fully in | 23:50 |
arno11 | ok makes sense | 23:50 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!