LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-30-2016, 09:42 AM   #1
toothsome
LQ Newbie
 
Registered: Mar 2010
Posts: 10

Rep: Reputation: 0
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?
 
Old 05-30-2016, 10:02 AM   #2
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Red Hat, CentOS
Posts: 773
Blog Entries: 3

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
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
 
Old 05-30-2016, 12:47 PM   #3
toothsome
LQ Newbie
 
Registered: Mar 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by HMW View Post
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)?
 
Old 05-30-2016, 12:52 PM   #4
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Red Hat, CentOS
Posts: 773
Blog Entries: 3

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Quote:
Originally Posted by toothsome View Post
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 View Post
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

Last edited by HMW; 05-30-2016 at 12:56 PM.
 
Old 05-30-2016, 01:28 PM   #5
toothsome
LQ Newbie
 
Registered: Mar 2010
Posts: 10

Original Poster
Rep: Reputation: 0
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
C-Media USB Audio Adapter and snd_usb_audio module qlands Slackware 1 04-20-2011 08:45 PM
how to modprobe ndiswrapper on startup Duster SUSE / openSUSE 3 10-14-2006 12:20 AM
modprobe on startup paull2k1 Mandriva 3 06-27-2005 02:27 PM
modprobe on startup? class_struggle Linux - Newbie 2 08-31-2004 02:47 PM
modprobe error on startup(9.2) krome Mandriva 1 04-28-2004 04:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration