You are not logged in.

#1 2014-02-28 10:12:32

forkenbrock
Member
Registered: 2011-12-06
Posts: 43

[Solved] Module not starting on boot.

I'm trying to get a USB audio module to autostart on boot.  Following the Kernel Modules wiki I created the file:

/etc/modules-load.d/snd_usb_hiface.conf

# Load snd_usb_hiface.ko at boot
snd_usb_hiface

However, the module does not load on boot.  The only way I'm able to use it is to go to the directory with the file and run insmod.

cd /home/jaguar/snd-usb-hiface/src/snd-usb-asyncaudio
sudo insmod snd-usb-hiface.ko

Last edited by forkenbrock (2014-03-02 19:30:59)

Offline

#2 2014-02-28 11:00:40

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [Solved] Module not starting on boot.

Try placing the module in /usr/lib/modules/<yourkernel>/extramodules/ and running "depmod -a" afterwards to regenerate the database.

Your home directory will not be checked as a location for custom kernel modules.


Burninate!

Offline

#3 2014-02-28 13:40:52

halimbo
Member
From: Krefeld, Germany
Registered: 2013-10-23
Posts: 74

Re: [Solved] Module not starting on boot.

Or put it to MODULES in /etc/mkinitcpio.conf and compile it into the kernel with

 mkinitcpio -p linux 

Offline

#4 2014-02-28 15:50:21

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Solved] Module not starting on boot.

halimbo, that's incorrect - mkinitcpio manages the initramfs image required at boot time. It does not affect the kernel in any way.

More details in the wiki.

forkenbrock - why is snd-usb-hiface in your home dir anyway? it's provided by the stock Arch kernel.

Last edited by tomk (2014-02-28 15:52:33)

Offline

#5 2014-02-28 19:37:13

halimbo
Member
From: Krefeld, Germany
Registered: 2013-10-23
Posts: 74

Re: [Solved] Module not starting on boot.

Okay sorry, learned something. But this are kernel modules though? Or is that a misconception too?

Offline

#6 2014-02-28 19:42:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Offline

#7 2014-03-01 02:05:05

forkenbrock
Member
Registered: 2011-12-06
Posts: 43

Re: [Solved] Module not starting on boot.

tomk wrote:

forkenbrock - why is snd-usb-hiface in your home dir anyway? it's provided by the stock Arch kernel.

I couldn't tell it's part of the kernel.  There's a separate package for hiface / async on the AUR and it doesn't automatically load with the many other snd kernels, so it appeared to be an add on.

One more question, when I copy the module to the extra folder does it have to be copied again when the kernel updates or does that happen automatically?

Last edited by forkenbrock (2014-03-01 02:13:09)

Offline

#8 2014-03-01 10:08:55

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [Solved] Module not starting on boot.

forkenbrock wrote:

One more question, when I copy the module to the extra folder does it have to be copied again when the kernel updates or does that happen automatically?

You would have to copy it over manually each time, yes.


Burninate!

Offline

Board footer

Powered by FluxBB