LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   modprobe snd_usb_audio not working on startup (https://www.linuxquestions.org/questions/linux-hardware-18/modprobe-snd_usb_audio-not-working-on-startup-4175581030/)

toothsome 05-30-2016 09:42 AM

modprobe snd_usb_audio not working on startup
 
(Debian Jessie)

This is doing my head in - this is my /etc/modules:

Code:

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

snd_aloop
snd_usb_audio

I've tried these in the .service file for the app that needs it:

Code:

ExecStartPre=modprobe snd_usb_audio
Code:

ExecStartPre=bash -c 'modprobe snd_usb_audio'
I've even tried putting it in a separate bash script and calling that from the service script. It refuses to load until I've manually logged on to the box, and typed 'modprobe snd_usb_audio'.

I'm guessing it's not ready to start it when it's trying to, rather than it just ignoring it altogether. Has anyone else seen this? What can I do?

HMW 05-30-2016 10:02 AM

Not that I have a clear solution, but what does
Code:

journalctl | grep snd
say?

Also, could you post your entire .service file?

Best regards,
HMW

toothsome 05-30-2016 12:47 PM

Quote:

Originally Posted by HMW (Post 5553027)
Not that I have a clear solution, but what does
Code:

journalctl | grep snd

Ah, this'll be it then ;)

Code:

Module 'snd_usb_audio' is blacklisted
Why would it be blacklisted - is it because there's a better driver I should be using, say specifically for the hardware (Focusrite 2i2)?

HMW 05-30-2016 12:52 PM

Quote:

Originally Posted by toothsome (Post 5553091)
Ah, this'll be it then ;)

Code:

Module 'snd_usb_audio' is blacklisted

Haha! Yes, that clears at least some of the mystery I would think.

Quote:

Originally Posted by toothsome (Post 5553091)
Why would it be blacklisted - is it because there's a better driver I should be using, say specifically for the hardware (Focusrite 2i2)?

This I cannot answer, but why not check in /etc/modprobe.d/ if there is a blacklist.conf file there or something like snd_usb_audio.conf and "un-blacklist" the module.

Best regards,
HMW

Edit: With "un-blacklist" I mean, either
a) comment out the entry for snd_usb_audio.conf if it is in a blacklist.conf type of file, or
b) rename the file if there is a file such as snd_usb_audio.conf or the like

toothsome 05-30-2016 01:28 PM

So it seems it was something to do with OSS. The blacklist was in the file oss4-base_noALSA.conf

Having a look around one post suggests " I uninstalled oss4-* and deleted /etc/modprobe.d/oss4-*"

So I could try this... I'm not sure how OSS fits into the picture really anyway ;)


All times are GMT -5. The time now is 06:35 PM.