open /dev/snd/seq failed
I just compiled alsa-lib, alsa-tools and alsa-utils 1.0.11
on a new Debian Etch amd64 installation and keep getting the following error message from apps that try to connect to the sequencer:
ALSA lib seq_hw.c:457:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
can't open sequencer
This is with Debian 2.6.15-1 kernel and with kernel.org 2.6.16.20 (compiled using Debian .config but with CONFIG_PREEMPT=y).
Contents of /dev/snd:
controlC0 controlC1 controlC2 midiC0D0 midiC1D0 midiC2D0 pcmC0D0c pcmC0D0p pcmC1D0c pcmC1D0p pcmC2D0c pcmC2D0p timer
lsmod:
snd_ice1712 67360 0 snd_ice17xx_ak4xxx 6720 1 snd_ice1712 snd_ak4xxx_adda 9216 2 snd_ice1712,snd_ice17xx_ak4xxx snd_cs8427 12672 1 snd_ice1712 snd_ac97_codec 103868 1 snd_ice1712 snd_pcm 96008 2 snd_ice1712,snd_ac97_codec snd_timer 27336 1 snd_pcm snd_page_alloc 13904 1 snd_pcm snd_ac97_bus 4928 1 snd_ac97_codec snd_i2c 8192 2 snd_ice1712,snd_cs8427 snd_mpu401_uart 10432 1 snd_ice1712 snd_rawmidi 29664 1 snd_mpu401_uart snd_seq_device 11792 1 snd_rawmidi joydev 13120 0 evdev 13952 0 shpchp 47008 0 snd 62304 10 snd_ice1712,snd_ak4xxx_adda,snd_cs8427,snd_ac97_codec,snd_pcm,snd_timer,snd_i2c,snd_mpu401_uart,snd_rawmidi,snd_seq_device
There are three ice1712 cards (Delta 1010s) installed. The kernel config contains the following:
# Linux kernel version: 2.6.15-1-amd64-k8-smp
...CONFIG_SND=mCONFIG_SND_AC97_CODEC=mCONFIG_SND_AC97_BUS=mCONFIG_SND_TIMER=mCONFIG_SND_PCM=mCONFIG_SND_HWDEP=mCONFIG_SND_RAWMIDI=mCONFIG_SND_SEQUENCER=mCONFIG_SND_SEQ_DUMMY=mCONFIG_SND_OSSEMUL=yCONFIG_SND_MIXER_OSS=mCONFIG_SND_PCM_OSS=mCONFIG_SND_SEQUENCER_OSS=yCONFIG_SND_RTCTIMER=mCONFIG_SND_SEQ_RTCTIMER_DEFAULT=y
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not setCONFIG_SND_GENERIC_DRIVER=y
#
# Generic devices
#CONFIG_SND_MPU401_UART=mCONFIG_SND_OPL3_LIB=mCONFIG_SND_VX_LIB=mCONFIG_SND_DUMMY=mCONFIG_SND_VIRMIDI=mCONFIG_SND_MTPAV=mCONFIG_SND_SERIAL_U16550=mCONFIG_SND_MPU401=m
...
Everything (jackd, Ardour) works fine except the sequencer. Although this is AMD64 SMP the RTCs sync properly (two single core Opterons, not dual core). Any ideas?
John
Quoted 1 line · John Rigg
Although this is AMD64 SMP the RTCs sync properly
Sorry, typo. The TSCs sync properly.
John
Quoted 9 lines · John Rigg
snd_ice1712 67360 0 snd_ice17xx_ak4xxx 6720 1 snd_ice1712 snd_ak4xxx_adda 9216 2 snd_ice1712,snd_ice17xx_ak4xxx snd_cs8427 12672 1 snd_ice1712 snd_ac97_codec 103868 1 snd_ice1712 snd_pcm 96008 2 snd_ice1712,snd_ac97_codec snd_timer 27336 1 snd_pcm snd_page_alloc 13904 1 snd_pcm snd_ac97_bus 4928 1 snd_ac97_codec
Quoted 8 lines
snd_i2c 8192 2 snd_ice1712,snd_cs8427 snd_mpu401_uart 10432 1 snd_ice1712 snd_rawmidi 29664 1 snd_mpu401_uart snd_seq_device 11792 1 snd_rawmidi joydev 13120 0 evdev 13952 0 shpchp 47008 0 snd 62304 10 snd_ice1712,snd_ak4xxx_adda,snd_cs8427,snd_ac97_codec,snd_pcm,snd_timer,snd_i2c,snd_mpu401_uart,snd_rawmidi,snd_seq_device
Of course it won't work, snd-seq-midi is not loaded.
Lee
Quoted 1 line · Lee Revell
Of course it won't work, snd-seq-midi is not loaded.
Thanks. Stupidity caused by lack of sleep.
John
Quoted 4 lines · John Rigg
Quoted 1 line · Lee Revell
Of course it won't work, snd-seq-midi is not loaded.
Thanks. Stupidity caused by lack of sleep.
I can't see why udev does not load this module on demand when the sequencer is first used.
Lee
Quoted 2 lines · Lee Revell
I can't see why udev does not load this module on demand when the sequencer is first used.
Debian testing and unstable kernels are now using initramfs instead of initrd. According to initramfs docs there are possible issues with hotplug. I fixed the problem temporarily by adding snd_seq_midi to /etc/modules, but I'll try changing back to initrd.
John
Quoted 8 lines · John Rigg
Quoted 2 lines · Lee Revell
I can't see why udev does not load this module on demand when the sequencer is first used.
Debian testing and unstable kernels are now using initramfs instead of initrd. According to initramfs docs there are possible issues with hotplug. I fixed the problem temporarily by adding
snd_seq_midito/etc/modules, but I'll try changing back to initrd.
What do initramfs and initrd have to do with it? I do not use either one, and snd-seq-midi does not autoload for me.
Lee
Quoted 11 lines · Lee Revell
Quoted 8 lines · John Rigg
Quoted 2 lines · Lee Revell
I can't see why udev does not load this module on demand when the sequencer is first used.
Debian testing and unstable kernels are now using initramfs instead of initrd. According to initramfs docs there are possible issues with hotplug. I fixed the problem temporarily by adding
snd_seq_midito/etc/modules, but I'll try changing back to initrd.What do initramfs and initrd have to do with it?
Nothing, apparently. Just tried plain initrd and it's the same.
John
At Sun, 11 Jun 2006 15:51:01 -0400,
Quoted 9 lines · Lee Revell
Quoted 4 lines · John Rigg
Quoted 1 line · Lee Revell
Of course it won't work, snd-seq-midi is not loaded.
Thanks. Stupidity caused by lack of sleep.
I can't see why udev does not load this module on demand when the sequencer is first used.
It's a chicken-and-egg problem. Since the device files doesn't exist, it can't be triggered.
Takashi
Quoted 8 lines · Lee Revell
Quoted 4 lines · John Rigg
Quoted 1 line · Lee Revell
Of course it won't work, snd-seq-midi is not loaded.
Thanks. Stupidity caused by lack of sleep.
I can't see why udev does not load this module on demand when the sequencer is first used.
I don't think this can be done in this way you mention, because udev actually creates the device nodes.
But of course a missing sequencer module has bothered me too.
One possibility would be to add some modprobe configuration to load snd-seq-midi when your MIDI device driver gets loaded. E.g. If you want to load snd-seq-midi automatically with loading of snd-foo, add this to some file in /etc/modprobe.d/:
install snd-foo /sbin/modprobe --ignore-install snd-foo && \
{ /sbin/modprobe\ --quiet snd-seq-midi ; }
If snd-foo gets loaded, it also loads snd-seq-midi. But somehow I don't like this solution.
Another solution could trigger the loading of snd-seq-midi by udev at Midi device detection time -- the time /dev/snd/midiC* get created, we could start a script, which loads snd-seq-midi. The udev rule could be something like:
KERNEL=="midiC*", RUN+="/path/to/alsa-seq-load"
Matthias