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

Bug#428353: Acknowledgement (timidity: ALSA lib pcm.c:2105:(snd_pcm_open_conf) Cannot open shared library...)



On Mon, 11 Jun 2007 21:32:28 +0200
Joost Yervante Damad <andete@debian.org> wrote:

> On Monday 11 June 2007 19:08:51 A. Costa wrote:
> > More data...
> >
> > 	% play foo.mp3 ; echo $?
> > 	ALSA lib pcm.c:2105:(snd_pcm_open_conf) Cannot open shared
> > library plugindir/	libasound_module_pcm_pulse.so play stio:
> > Failed writing default: cannot open audio device
> > 	2
> >
> > Maybe it's an 'alsa' thing?  My usual sound output server/plugin
> > is pulseaudio, which still works.
> 
> Can you perhaps show your .asoundrc and timidity configuration ?

I can try...

There is no '.asoundrc':

	% locate asoundrc ; echo $?
	1

But there is an 'asound.conf' in '/etc':

	# handy function to remove comments and blanks from a config file
	nocomment() { grep -v -e '^#.*$\|^[[:space:]]*$' $1 ; }

	% F=/etc/asound.conf
	% ls -l $F	# show the date when last changed
	-rw-r--r-- 1 root root 131 Mar 29 04:09 /etc/asound.conf
	% nocomment $F
	pcm.!default {
	    type pulse
	}
	ctl.!default {
	    type pulse
	}

...that file hasn't changed in the last a few months.

Timidity config files are in two places:

	% T1=/etc/timidity.cfg  	T2=/etc/timidity/timidity.cfg
	% ls -l $T1
	lrwxrwxrwx 1 root root 40 Oct 23  2005 /etc/timidity.cfg -> /usr/share/timidity/patches/timidity.cfg
	% nocomment $T1
	dir /usr/share/timidity/patches/
	source gravis.cfg
	source gsdrums.cfg
	source gssfx.cfg
	source mt-32.cfg
	source proteus2.cfg
	source sndfont.cfg
	source sustain.cfg
	source xgmap2.cfg
	bank 0
	         0 /usr/share/timidity/patches/acpiano.pat
	% ls -l $T2
	-rw-r--r-- 1 root root 1204 Feb  2  2006 /etc/timidity/timidity.cfg
	% nocomment $T2
	source /usr/share/timidity/patches/timidity.cfg

None of those config files have changed recently, therefore something
else had to change, which somehow prevents 'timidity' from installing.

Thinking it might be the '/etc/asound.conf', I commented out everything,
then ran, as root:

	% /etc/init.d/alsa reload
	/etc/init.d/alsa: Warning: Processes using sound devices: 4403(gkrellm) 4458(pulseaudio) 4574(aumix). 
	Unloading ALSA sound driver modules: snd-pcm-oss snd-ens1371 snd-seq-virmidi snd-seq-dummy snd-seq-oss snd-seq-midi snd-rawmidi snd-seq-midi-event snd-seq snd-seq-device snd-intel8x0 snd-ac97-codec snd-mixer-oss snd-pcm snd-timer snd-page-alloc (failed: modules still loaded: snd-intel8x0 snd-ac97-codec snd-mixer-oss snd-pcm snd-timer snd-page-alloc).
	Loading ALSA sound driver modules: snd-pcm-oss snd-ens1371 snd-seq-virmidi snd-seq-dummy snd-seq-oss snd-seq-midi snd-rawmidi snd-seq-midi-event snd-seq snd-seq-device snd-intel8x0 snd-ac97-codec snd-mixer-oss snd-pcm snd-timer snd-page-alloc.

	% /etc/init.d/alsa-utils restart
	Shutting down ALSA...done.
	Setting up ALSA...done.
	% /etc/init.d/pulseaudio restart
	% /etc/init.d/timidity restart
	Stopping timidity.
	Starting: timidityALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
	 failed!

That last error is different, though still ALSA related.

HTH...







Reply to: