Reply
Thread Tools
Posts: 18 | Thanked: 38 times | Joined on Jan 2012
#21
Originally Posted by joerg_rw View Post
When your config has a non-existing ALSA audio card, then quite probably PA will quit and get respawned by dsme until dsme thinks it's enough and reboots system.
This is not the case (at least for me).
1. I tried to use pactl which configures pulseaudio dynamically (no config files are changed).
2. Adding nonexistent ALSA device doesn't crash pulseaudio.

1. pactl load-module module-alsa-sink-old sink_name=sink.hw2 device=hw:1 rate=48000 fragment_size=1920 fragments=4 alt_fragment_size=960 alt_fragments=2
2. pactl move-sink-input 2 7 (2 is nokia-music, 7 is newly registered sink)
3. playing music using maemo media player - nothing happens
no sound and it doesn't advance
4. pactl move-sink-input 2 2 (returned to normal setting) -
playback works
 

The Following 3 Users Say Thank You to kirillkk For This Useful Post:
Posts: 1,428 | Thanked: 1,548 times | Joined on Feb 2011
#22
For volume keys to work you can try using term-app-launcher as htop does.
 

The Following 4 Users Say Thank You to szopin For This Useful Post:
fpp's Avatar
Posts: 2,853 | Thanked: 954 times | Joined on Nov 2005
#23
Originally Posted by joerg_rw View Post
AIUI there's a PA /gstreamer plugin that does the mp3 decoding in DSP for mafw. madiaplayer just delegates the whole mp3 file to mafw to play it.
I dunno if this special plugin directly routes to DA-converter aka soundcard, or this is done the standard way of gstreamer plugin chains where this DSP plugin would stream the plain PCM (aka "wav") audio data to next plugin. IF the latter, then you of course could change the properties of (or the whole) sink plugin.
Man, this whole sound system mess under Maemo looks more hopelessly tangled than a rat's nest ! :-)

Without someone who understands how the puzzle fits together we could be poking around for years and never know why it just keeps rebooting...

Maybe those posts from "Sulu" and "leetnoob" Estel remembers seeing in the Easy Debian threads might yield useful clues... if they can be found again :-)
__________________
maemo blog
 
fpp's Avatar
Posts: 2,853 | Thanked: 954 times | Joined on Nov 2005
#24
Originally Posted by sulu View Post
Yes, they do.
Thanks :-)

Are you "the" sulu Estel mentioned earlier, who got PA working in Easy Debian ? Do you have any ideas about this PA/USB issue ?...
__________________
maemo blog
 
fpp's Avatar
Posts: 2,853 | Thanked: 954 times | Joined on Nov 2005
#25
Originally Posted by szopin View Post
For volume keys to work you can try using term-app-launcher as htop does.
Aha, didn't know about this one, thanks for the tip !
__________________
maemo blog
 
Posts: 2,758 | Thanked: 10,843 times | Joined on Mar 2010 @ Sofia,Bulgaria
#26
Guys, why is it so hard some of you who had a device reboot while playing with pulseaudio to either :

A. post /dev/mtd2 if the crash is in the kernel.

or

B. Install syslogd and sp-rich-core and post /var/log/syslog and coredump

 

The Following 3 Users Say Thank You to freemangordon For This Useful Post:
fpp's Avatar
Posts: 2,853 | Thanked: 954 times | Joined on Nov 2005
#27
Originally Posted by kirillkk View Post
Yes, the normal way to handle HW keys in MOC would be to modify xterm. Terminal apps rely on terminal to deliver keypresses.
Hi kirillkk, welcome back ! :-)

I was waiting for your return to post some feedback on my installation of your MOC port, by your instructions in the USB Host topic :

I don't remember which libraries are needed. I found the following debs in apt archives, they are probably needed by moc plugins.
libsamplerate0_0.1.3-1maemo0_armel.deb
libvorbis0a_1.2.3.tk1_armel.deb
libvorbisenc2_1.2.3.tk1_armel.deb
libvorbisfile3_1.2.3.tk1_armel.deb
libogg0_1%3a1.1.3-2.tk2_armel.deb
libresample1_0.1.3-5_armel.deb
libid3tag0_0.15.1b-10maemo1_armel.deb
libmad0_0.15.1b-2.1maemo1_armel.deb
libflac8_1.2.1-1.1maemo3_armel.deb

Installation script follows:
-------------------
tar xzf moc.tar.gz
cd moc
mkdir -p /usr/local/lib/moc/decoder_plugins
mv *.so /usr/local/lib/moc/decoder_plugins
mv mocp /usr/local/bin
ln -s /usr/local/bin/mocp /usr/bin/mocp
mkdir /home/user/.moc
mv config n900_keymap /home/user/.moc
cd ..
rmdir moc
I'm guessing you were quoting from memory -- that's all right, I never take notes either :-)

Here are the differences I've seen on my system :

1) after installing the files as above, the first few tries at starting MOC failed with messages about not finding this or that library.
I had to apt-get install libsamplerate0, libncursesw5 and libflac8 just to get it going.

2) even then, before MOC starts up it complains:
Can't load plugin libmp3_decoder: file not found
Can't load plugin libspeex_decoder: file not found
Can't load plugin libvorbis_decoder: file not found
I suppose it wouldn't even play mp3 files in this state, but I only tried with FLAC :-)

3) the Enter key still doesn't work in MOC. I just edited n900_keymap and used DELETE :-)

4) One thing that puzzled me a lot at first was MOC refusing to start with this message:
FATAL_ERROR: The terminal is too small after resizing
I had to unzoom xterm to get it running again :-)

Any idea what is needed to get plugin libmp3_decoder working ?
__________________
maemo blog
 

The Following User Says Thank You to fpp For This Useful Post:
Estel's Avatar
Posts: 4,911 | Thanked: 8,165 times | Joined on Mar 2011
#28
fpp - yes, he is the same sulu.

Anyone who got USB card recognized by N900 as sound device - could You do as freemangordon suggested? It seems very reasonable, and is going to instantly point us (well, with help of more knowledgeable ones) to reboot reason.

Again, would do it myself, yet I don't own such card (planning to own one in future).

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 
fpp's Avatar
Posts: 2,853 | Thanked: 954 times | Joined on Nov 2005
#29
Well, I'm willing to try it out course :-)

Only I'd need to be told exactly what set of config files and commands will lead to the crash, as I don't think we've seen that yet. Kirllkk's pactl example at the top of this page doesn't play sound, but it's not what caused his previous crashes...
__________________
maemo blog
 
Posts: 18 | Thanked: 38 times | Joined on Jan 2012
#30
Originally Posted by freemangordon View Post
Guys, why is it so hard some of you who had a device reboot while playing with pulseaudio to either :

A. post /dev/mtd2 if the crash is in the kernel.
It's empty (no oopses logged).
 

The Following User Says Thank You to kirillkk For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 21:23.