[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ALSA, Etch und TP R60



Stefan Bauer schrieb:
* Thomas Günther <thomas.guenther@gmx.de> [19.06.2007 09:08]:
wie bringe ich einem Thinkpad R60 bzw. dem Etch auf jenem Notebook bei,
sich auch nach einem Neustart die Konfiguration zu merken, die
'alsaconf' zusammengestrickt hat?


das macht eigentlich das init-script aus dem alsa-base paket.

Gruß


Also, im /etc/init.d/alsa steht zur Einleitung folgendes:

#!/bin/sh
#
# alsa-base control script
#
### BEGIN INIT INFO
# Provides:           alsa
# Required-Start:    mountall
# Required-Stop:     mountall
# Should-Start:
# Should-Stop:
# Default-Start:     S
# Default-Stop:      0 1 6
# Short-Description: Script to unload and load ALSA modules
# Description: Used to load and unload ALSA modules and
#              restore and store mixer levels. There is no
#              longer any need to run this script on bootup
#              or shutdown. It remains in /etc/init.d/ because
#              certain other other scripts expect to find it.
### END INIT INFO

Wenn ich das richtig deute, braucht man /etc/init.d/alsa eigentlich
nicht mehr.


Folgendes wird nach einem Start des Systems ausgegeben, wenn ich
den mplayer als Nicht-root eine test.mp3 Datei abspielen lassen möchte:


Playing test.mp3.
Audio file file format detected.
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[AO_ALSA] alsa-lib: pcm_direct.c:867:(snd_pcm_direct_initialize_slave) snd_pcm_hw_params_any failed [AO_ALSA] alsa-lib: pcm_dmix.c:876:(snd_pcm_dmix_open) unable to initialize slave
[AO_ALSA] Playback open error: Invalid argument
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video


Dann führe ich ein '/etc/init.d/alsa reload' als root aus. Es werden
alle Soundmodule entfernt, danach lädt werden die gleichen Module
wieder geladen. Evtl. sind die Parameter anders, das kann ich nicht
sehen. Obiger Versuch, die test.mp3 abzuspielen, sieht dann so aus:


Playing test.mp3.
Audio file file format detected.
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:   1.4 (01.4) of 388.0 (06:28.0)  1.0%


Aber es ist nichts zu hören. Erst ein '/etc/init.d/alsa-utils reset'
bringt die Membran zum Schwingen.
Das kann doch nicht die Abfolge sein, wie ich die ALSA-Treiber
initialisiere. Oder doch? Wie bringe ich alsa bei, dass es beim Booten
genau das tut, was ich derzeit händisch auf der Konsole erledige?
Speziell geht es mir darum, dass das 'alsa'-Script kein 'start' oder
'stop' bietet und 'alsa-utils' ein 'reset' benötigt. Klar, ich könnte
'start' und 'stop' zusätzlich einbauen, aber sauber wäre das nicht.



Gruss
Thomas



Reply to: