ALSA -- problems detecting usb interface (Scarlett 2i4) on KXStudio
Posted: Thu Jun 30, 2016 3:07 am
Not very experienced with linux, so I'm likely to not know some basic stuff. I'm also not sure if troubleshooting discussion is appropriate here or if this is the right section to be placing this topic. If not, I apologize.
Decided to try out KXStudio for music, but I'm having problems getting my usb interface (Focusrite Scarlett 2i4) to work, and I'm kind of stumped here, mostly because I don't really know what I'm doing, so I would really appreciate your help. So far the only thing I've tried (based on the recommendation from user steve on here: http://unix.stackexchange.com/questions ... -soundcard) was replacing "options snd-usb-audio index=-2" with "options snd-usb-audio index=0" in "/etc/modprobe.d/alsa-base.conf" and rebooting. There was a mention there of blacklisting snd-hda-intel, but I'm not sure what that would mean in this context. I'll put up what the file currently looks like at the end of the post.
Before doing that, I think the MIDI ports were being detected and nothing else (they were showing up in Claudia). Now they aren't. Here's a summary of which commands show the usb interface and which don't:
Before editing "alsa-base.conf":
$ dmesg -- Y
$ cat /proc/asound/cards -- Y (after HDA Intel and after loopback)
$ cat /proc/asound/modules -- Y (same thing, shows up as snd_usb_audio)
$ cat /proc/asound/devices -- Y? (there's the entry "[ 2- 0]: raw midi")
$ aplay -l -- Y (card 2, with 1/1 subdevices)
$ lsusb -- Y (shows up as Novation EMS)
$ lspci -v | grep Audio -- N
After editing "alsa-base.conf":
$ dmesg | grep 2i4 -- Y
$ cat /proc/asound/cards -- N
$ cat /proc/asound/modules -- N
$ cat /proc/asound/devices -- N
$ aplay -l -- N
$ lsusb -- Y (shows up as Novation EMS)
$ lspci -v | grep Audio -- N
------------------------------------------------------------------------------------------------------------------------------------------------------
After editing "alsa-base.conf", here's the dmesg output when disconnecting and reconnecting the interface:
Here's what "alsa-base.conf" looks like right now
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
A thing i haven't tried yet is what's on this article here, but the information doesn't seem very up to date since here it says that alsa-driver is an obsolete package.
Decided to try out KXStudio for music, but I'm having problems getting my usb interface (Focusrite Scarlett 2i4) to work, and I'm kind of stumped here, mostly because I don't really know what I'm doing, so I would really appreciate your help. So far the only thing I've tried (based on the recommendation from user steve on here: http://unix.stackexchange.com/questions ... -soundcard) was replacing "options snd-usb-audio index=-2" with "options snd-usb-audio index=0" in "/etc/modprobe.d/alsa-base.conf" and rebooting. There was a mention there of blacklisting snd-hda-intel, but I'm not sure what that would mean in this context. I'll put up what the file currently looks like at the end of the post.
Before doing that, I think the MIDI ports were being detected and nothing else (they were showing up in Claudia). Now they aren't. Here's a summary of which commands show the usb interface and which don't:
Before editing "alsa-base.conf":
$ dmesg -- Y
$ cat /proc/asound/cards -- Y (after HDA Intel and after loopback)
$ cat /proc/asound/modules -- Y (same thing, shows up as snd_usb_audio)
$ cat /proc/asound/devices -- Y? (there's the entry "[ 2- 0]: raw midi")
$ aplay -l -- Y (card 2, with 1/1 subdevices)
$ lsusb -- Y (shows up as Novation EMS)
$ lspci -v | grep Audio -- N
After editing "alsa-base.conf":
$ dmesg | grep 2i4 -- Y
$ cat /proc/asound/cards -- N
$ cat /proc/asound/modules -- N
$ cat /proc/asound/devices -- N
$ aplay -l -- N
$ lsusb -- Y (shows up as Novation EMS)
$ lspci -v | grep Audio -- N
------------------------------------------------------------------------------------------------------------------------------------------------------
After editing "alsa-base.conf", here's the dmesg output when disconnecting and reconnecting the interface:
Code: Select all
[ 1135.958777] usb 1-3: USB disconnect, device number 4
[ 1146.326068] usb 1-3: new high-speed USB device number 9 using ehci-pci
[ 1146.441055] usb 1-3: New USB device found, idVendor=1235, idProduct=800a
[ 1146.441062] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1146.441067] usb 1-3: Product: Scarlett 2i4 USB
[ 1146.441072] usb 1-3: Manufacturer: Focusrite
[ 1146.443740] cannot find the slot for index 0 (range 0-1), error: -16
[ 1146.443746] cannot create card instance 0
[ 1146.443755] snd-usb-audio: probe of 1-3:1.0 failed with error -5
[ 1146.444296] cannot find the slot for index 0 (range 0-1), error: -16
[ 1146.444300] cannot create card instance 0
[ 1146.444308] snd-usb-audio: probe of 1-3:1.3 failed with error -5
[ 1146.444382] cannot find the slot for index 0 (range 0-1), error: -16
[ 1146.444386] cannot create card instance 0
[ 1146.444392] snd-usb-audio: probe of 1-3:1.4 failed with error -5
Code: Select all
# autoloader aliases
install sound-slot-0 /sbin/modprobe snd-card-0
install sound-slot-1 /sbin/modprobe snd-card-1
install sound-slot-2 /sbin/modprobe snd-card-2
install sound-slot-3 /sbin/modprobe snd-card-3
install sound-slot-4 /sbin/modprobe snd-card-4
install sound-slot-5 /sbin/modprobe snd-card-5
install sound-slot-6 /sbin/modprobe snd-card-6
install sound-slot-7 /sbin/modprobe snd-card-7
# Cause optional modules to be loaded above generic modules
install snd /sbin/modprobe --ignore-install snd $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-ioctl32 ; /sbin/modprobe --quiet --use-blacklist snd-seq ; }
#
# Workaround at bug #499695 (reverted in Ubuntu see LP #319505)
install snd-pcm /sbin/modprobe --ignore-install snd-pcm $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-pcm-oss ; : ; }
install snd-mixer /sbin/modprobe --ignore-install snd-mixer $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-mixer-oss ; : ; }
install snd-seq /sbin/modprobe --ignore-install snd-seq $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; /sbin/modprobe --quiet --use-blacklist snd-seq-oss ; : ; }
#
install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; : ; }
# Cause optional modules to be loaded above sound card driver modules
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-emu10k1-synth ; }
install snd-via82xx /sbin/modprobe --ignore-install snd-via82xx $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq ; }
# Load saa7134-alsa instead of saa7134 (which gets dragged in by it anyway)
install saa7134 /sbin/modprobe --ignore-install saa7134 $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist saa7134-alsa ; : ; }
# Prevent abnormal drivers from grabbing index 0
options bt87x index=-2
options cx88_alsa index=-2
options saa7134-alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
options snd-usb-audio index=0
options snd-usb-caiaq index=-2
options snd-usb-ua101 index=-2
options snd-usb-us122l index=-2
options snd-usb-usx2y index=-2
# Ubuntu #62691, enable MPU for snd-cmipci
options snd-cmipci mpu_port=0x330 fm_port=0x388
# Keep snd-pcsp from being loaded as first soundcard
options snd-pcsp index=-2
# Keep snd-usb-audio from being loaded as first soundcard
options snd-usb-audio index=0
# Prevent snd-aloop from being loaded as first soundcard
options snd-aloop index=-2A thing i haven't tried yet is what's on this article here, but the information doesn't seem very up to date since here it says that alsa-driver is an obsolete package.