-
Loading correct sound drivers at startup
I am running a Knoppix hdd install on an IBM 390z laptop. Sound can be configured correctly by executing the following commands:
modprobe sound
modprobe ad1848
modprobe uart401
insmod cs4232 io=0x530 irq=5 dma=1 dma2=0 mpuio=0x330 mpuirq=9
My question is, how can these lines or similar be inserted into a startup script, or otherwise executed on system startup so that sound is always configured correctly and i don't have to do it manually every time?
-
Senior Member
registered user
Re: Loading correct sound drivers at startup

Originally Posted by
eracerbit
I am running a Knoppix hdd install on an IBM 390z laptop. Sound can be configured correctly by executing the following commands:
modprobe sound
modprobe ad1848
modprobe uart401
insmod cs4232 io=0x530 irq=5 dma=1 dma2=0 mpuio=0x330 mpuirq=9
My question is, how can these lines or similar be inserted into a startup script, or otherwise executed on system startup so that sound is always configured correctly and i don't have to do it manually every time?
Create a file as root in the /etc/modutils directory called sound in it have the contents:
Code:
## Added by me for sound card
modprobe sound
modprobe ad1848
modprobe uart401
insmod cs4232 io=0x530 irq=5 dma=1 dma2=0 mpuio=0x330 mpuirq=9
Then update-modules and check in /etc/modules.conf and you should see your newly created file's contents in the modules.conf and it will now be loaded at boot.
-
Thanks Stephen, but it doesn't work.
I get an "invalid line in modules.conf" error at startup and when executing modprobe from a shell.
I also tried sbin/modprobe and sbin/insmod. Also grepping the etc/modutils for "insmod" did not return anything except comments. Is there another startup script where i could use modprobe and insmod?
-
Senior Member
registered user

Originally Posted by
eracerbit
Thanks Stephen, but it doesn't work.
I get an "invalid line in modules.conf" error at startup and when executing modprobe from a shell.
I also tried sbin/modprobe and sbin/insmod. Also grepping the etc/modutils for "insmod" did not return anything except comments. Is there another startup script where i could use modprobe and insmod?
You could always put the lines in /etc/init.d/bootmisc.sh at the bottom of the file. It seems strange though that should be the correct way to do it which module is it failing on when you modprobe? Are you sure you are not making a typo because if it worked as in your first post it should still work. And now that I'm thinking about it in the first post did you have it working with those comands?
-
You could always put the lines in /etc/init.d/bootmisc.sh at the bottom of the file.
same errors.
which module is it failing on when you modprobe?
modprobe soundcore. i know it should already be loaded but it shouldn't throw an error anyway (it wasn't when i tried loading it twice before)
Are you sure you are not making a typo because if it worked as in your first post it should still work.
pretty sure. does this file have different syntax than just executing commands from a shell? is it possible that these commands are not in the 'path' or the linux equiv. of path?
And now that I'm thinking about it in the first post did you have it working with those comands?
yah it worked when i entered it like that in a shell, before i added those lines to that script. now modprobe just gives invalid line errors on those line numbers...
-
Senior Member
registered user
what happens if you just do this:
modprobe cs4232 io=0x530 irq=5 dma=1 dma2=0 mpuio=0x330 mpuirq=9
does your sound work? I would think that it would. If it does then...
I think your /etc/modutils/sound file should be:
## Added by me for sound card
alias sound-0 cs4232 io=0x530 irq=5 dma=1 dma2=0 mpuio=0x330 mpuirq=9
(this should be all on one line)
then try this:
update-modules-modutils
now see if when you reboot your sound works.
HTH
~rock
Similar Threads
-
By sopinon in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 01-13-2005, 12:06 AM
-
By nlight40 in forum MS Windows & New to Linux
Replies: 1
Last Post: 12-20-2004, 06:33 PM
-
Replies: 2
Last Post: 12-27-2003, 12:07 AM
-
By cmo131 in forum General Support
Replies: 2
Last Post: 11-05-2003, 06:03 AM
-
By XDToolMan in forum Hardware & Booting
Replies: 3
Last Post: 10-13-2003, 01:29 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

HP ProLiant MicroServer Gen8 G1610T @2.3 GHz, 16GB, 712317-001 NO HDD/OS
$199.00

Nasuni NF-50 Supermicro Server, Atom CPU C2558, @ 2.40GHz, 8GB RAM-No HDD/OS/AC
$250.00

Supermicro CSE-937 3U Storage Chassis No CPU No HDD No Ram Tested & Reset
$129.99

Supermicro 1U Network Server Appliance 16GB RAM 800GB SSD 6 LAN Ports Powers On
$450.00

Supermicro 2U X10DRU-i 2x E5-2680 v3 2.5ghz 32gb Ram 240gb SSD 2x GPU *READ*
$369.99

New Barebones Supermicro 5019D Server, 4C/8T Xeon D-2123T, 1U Rackmountable, 10G
$449.99

Supermicro 5019D-4C-FN8TP Xeon D-2123IT (4C/8T) 64GB DDR4 10GbE 480GB 1U Server
$689.00

1U Edge Firewall Server X11SCW-F Xeon E-2174G 0 RAM M.2 NVME 3x PCI-e 2x PSU X
$175.00

Supermicro 505-2 Server
$280.00

Supermicro CSE-937 3U Storage Chassis No CPU No HDD No Ram Tested & Reset
$129.99