[SOLVED]ALSA lib seq_hw.c:457:(snd_seq_hw_open)

Moderators: odroid, mdrjr

[SOLVED]ALSA lib seq_hw.c:457:(snd_seq_hw_open)

Unread postby alexandros301 » Thu Jul 05, 2018 7:38 pm

I'm trying to connect a MIDI device to an Odroid-XU4 running Ubuntu 16.04.3 LTS but I get this error:
Code: Select all
ALSA lib seq_hw.c:457:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory

I looked around and couldn't find much, neither on this forum or others. Some say about recompiling the kernel with CONFIG_SND_SEQUENCER set, I read about some PR being rejected. Not sure what's going on and how I should go about this.

I'm running Pure Data compiled from source with ALSA as the sound driver and sound wise things work fine, but I can't get the MIDI to work. Any suggestions?
Last edited by alexandros301 on Sat Jul 07, 2018 12:15 am, edited 1 time in total.
alexandros301
 
Posts: 38
Joined: Sun Aug 31, 2014 5:31 pm
languages_spoken: english
ODROIDs: ODROID-U3

Re: ALSA lib seq_hw.c:457:(snd_seq_hw_open)

Unread postby tobetter » Thu Jul 05, 2018 8:33 pm

If your kernel version is v4.14+, you could try to run "modprobe snd_seq" and try again. The driver is compiled as a module and would be loaded by manually, I guess.
User avatar
tobetter
 
Posts: 2557
Joined: Mon Feb 25, 2013 10:55 am
Location: Paju, South Korea
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: ALSA lib seq_hw.c:457:(snd_seq_hw_open)

Unread postby alexandros301 » Fri Jul 06, 2018 12:44 am

tobetter wrote:If your kernel version is v4.14+, you could try to run "modprobe snd_seq" and try again. The driver is compiled as a module and would be loaded by manually, I guess.

This is the output when I try it:
Code: Select all
modprobe: ERROR: ../libkmod/libkmod-module.c:832 kmod_module_insert_module() could not find module by name='snd_seq'
modprobe: ERROR: could not insert 'snd_seq': Unknown symbol in module, or unknown parameter (see dmesg)
modprobe: ERROR: ../libkmod/libkmod-module.c:977 command_do() Error running install command for snd_seq
modprobe: ERROR: could not insert 'snd_seq': Operation not permitted

Doesn't work even with sudo. Kernel is 4.14.5-92.

Though in /etc/modprobe.d/alsa-base.conf, line 17 reads:
Code: Select all
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 ; : ; }

Doesn't this mean that snd-seq should have been installed? Or is this file something I should run manually? ALSA seems to work fine, besides that.
alexandros301
 
Posts: 38
Joined: Sun Aug 31, 2014 5:31 pm
languages_spoken: english
ODROIDs: ODROID-U3

Re: ALSA lib seq_hw.c:457:(snd_seq_hw_open)

Unread postby meveric » Fri Jul 06, 2018 12:53 am

it means the module is called snd-seq not snd_seq
Code: Select all
sudo modprobe snd-seq
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 9436
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go

Re: ALSA lib seq_hw.c:457:(snd_seq_hw_open)

Unread postby alexandros301 » Fri Jul 06, 2018 1:03 am

meveric wrote:it means the module is called snd-seq not snd_seq
Code: Select all
sudo modprobe snd-seq

Unfortunately not. modprobe's manual says that the hyphen is converted to an underscore by modprobe itself, so "snd_seq" and "snd-seq" are essentially the same.
I tried it anyway and I get the same errors.

Since alsa-base.conf is in /etc/modprobe.d/ there must be a way to call it. I'm reading the manual of modprobe.d but can't really understand how. modprobe's manual reads:
Code: Select all
modprobe looks in the module directory /lib/modules/`uname -r` for all the modules and other files, except for the optional configuration files in the /etc/modprobe.d directory (see modprobe.d(5))

Also tried this, but I get the same error messages:
Code: Select all
sudo modprobe -C /etc/modprobe.d/alsa-base.conf snd-seq
alexandros301
 
Posts: 38
Joined: Sun Aug 31, 2014 5:31 pm
languages_spoken: english
ODROIDs: ODROID-U3

Re: ALSA lib seq_hw.c:457:(snd_seq_hw_open)

Unread postby meveric » Fri Jul 06, 2018 2:21 am

Debian Stretch with my Kernel 4.14:
Code: Select all
root@debian-stretch:~# modprobe snd-seq
root@debian-stretch:~# ll /dev/snd/seq
crw-rw----+ 1 root audio 116, 1 Jun 26 06:34 /dev/snd/seq


Debian Jessie with Kernel 3.10:
Code: Select all
root@debian-stretch:~# modprobe snd-seq
root@gamestation-turbo:~# ll /dev/snd/seq
crw-rw----+ 1 root audio 116, 1 Jun 18 21:43 /dev/snd/seq


So seems to be an issue with Ubuntu and HardKernel's Kernel.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 9436
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go

Re: ALSA lib seq_hw.c:457:(snd_seq_hw_open)

Unread postby moon.linux » Fri Jul 06, 2018 3:09 am

I install following packages and reboot
Code: Select all
sudo apt-get install alsa-base alsa-utils

Code: Select all
sudo modprobe -C /etc/modprobe.d/alsa-base.conf snd-seq

And their I see
Code: Select all
root@odroid:~#  ls -la /dev/snd/seq
crw-rw---- 1 root audio 116, 1 Jul  5 18:02 /dev/snd/seq
root@odroid:~#
 
moon.linux
 
Posts: 1161
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: ALSA lib seq_hw.c:457:(snd_seq_hw_open)

Unread postby odroid » Fri Jul 06, 2018 7:04 am

alexandros301 wrote:Doesn't work even with sudo. Kernel is 4.14.5-92.


You are having a very outdated kernel.
Update it first.
https://wiki.odroid.com/odroid-xu4/os_i ... st-upgrade
User avatar
odroid
Site Admin
 
Posts: 29085
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: ALSA lib seq_hw.c:457:(snd_seq_hw_open)

Unread postby alexandros301 » Fri Jul 06, 2018 6:15 pm

odroid wrote:
alexandros301 wrote:Doesn't work even with sudo. Kernel is 4.14.5-92.


You are having a very outdated kernel.
Update it first.
https://wiki.odroid.com/odroid-xu4/os_i ... st-upgrade

In the instructions in the wiki I read this:
Code: Select all
sudo apt install linux-image-xu3

Should I change this to linux-image-xu4 instead?
alexandros301
 
Posts: 38
Joined: Sun Aug 31, 2014 5:31 pm
languages_spoken: english
ODROIDs: ODROID-U3

Re: ALSA lib seq_hw.c:457:(snd_seq_hw_open)

Unread postby moon.linux » Fri Jul 06, 2018 7:05 pm

No the install/upgrade package for kernel is linux-image-xu3
For full upgrade of packages and kernel
Code: Select all
sudo apt-get update --fix-missing && sudo apt-get upgrade && sudo apt-get dist-upgrade
moon.linux
 
Posts: 1161
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english

Re: [SOLVED]ALSA lib seq_hw.c:457:(snd_seq_hw_open)

Unread postby alexandros301 » Sat Jul 07, 2018 12:18 am

Updating the kernel did the trick, thanks! I was confronted with a "scary" message that I'm about to delete the kernel files after
Code: Select all
sudo apt dist-upgrade

and initially I answered "Yes" to abortion of the process, but then I executed
Code: Select all
sudo apt install linux-image-xu3

was asked again, didn't abort it, and everything went well. Now aconnect works fine!
alexandros301
 
Posts: 38
Joined: Sun Aug 31, 2014 5:31 pm
languages_spoken: english
ODROIDs: ODROID-U3


Return to Ubuntu

Who is online

Users browsing this forum: No registered users and 1 guest