On Tue, 12 Jun 2007 17:53:25 +0200 Joost Yervante Damad <[EMAIL PROTECTED]> wrote:
> I fear this is an alsa problem indeed. > > Earlier you could reproduce it with "play". Could you try running > that command again and run it under strace? ( strace play some.mp3 ) Yes I can try that, but should mention that I shut my PC down last night, and upon rebooting today 'timidity' started without complaint. After which 'apt-get' was able to install the new 'timidity' package. But it's easy enough to return to the broken state, by uncommenting these lines in '/etc/asound.conf': #pcm.!default { # type pulse #} #ctl.!default { # type pulse #} ...when they're uncommented, (when they're active), and I run: /etc/init.d/alsa reload /etc/init.d/timidity restart I get the same old errors. If I again comment those lines out of '/etc/asound.conf', I get the "new" errors I quoted in my last message. Apparently it takes a full reboot for the error to go away... Regarding 'strace play some.mp3' -- there are two sets of errors, which of the two sets depends on the state of '/etc/asound.conf'. Either error prevents 'timidity' from installing. First the errors when the lines are uncommented: % /etc/init.d/timidity restart Stopping timidity. Starting: timidityALSA lib pcm.c:2105:(snd_pcm_open_conf) Cannot open shared library plugindir/libasound_module_pcm_pulse.so failed! % strace -o /tmp/playerror1.txt play Desktop/sound/James_Bond_cacophony.ogg umovestr: Input/output error 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 Second, the errors when the lines are commented out (no reboot): % /etc/init.d/timidity restart Stopping timidity. Starting: timidityALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave failed! % strace -o /tmp/playerror2.txt play Desktop/sound/James_Bond_cacophony.ogg umovestr: Input/output error ALSA lib pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave play stio: Failed writing default: cannot open audio device Both 'strace' output files are attached. My theory (today) is that since 'timidity' installation requires running '/etc/init.d/timidity restart' -- but that won't run until certain sound servers are stopped, which isn't being done at present, but occurs on a reboot. The second line below may hold a clue: % /etc/init.d/alsa reload /etc/init.d/alsa: Warning: Processes using sound devices: 4530(pulseaudio) 10005(gkrellm). {...etc.} Maybe the 'reload' won't work until those processes are shut down. So far I've been unable to shut down 'pulseaudio' while X is running. Even this fails: % /etc/init.d/pulseaudio force-stop ; echo $? 0 % /etc/init.d/alsa reload /etc/init.d/alsa: Warning: Processes using sound devices: 4530(pulseaudio). {...etc.} But the '0' error code is wrong, as can be seen by the unchanged '4530' process ID. Or maybe that's not the problem here -- still seems buggy tho'. HTH...
playerror1.txt.gz
Description: Binary data
playerror2.txt.gz
Description: Binary data