-
Junior Member
registered user
Autoinitialization of soundcard
Everytime i want to use my sound card after booting up with a bash script that includes the following:
modprobe sound dmabuf=1
modprobe cs4232 irq=5 io=0x530 dma=1 dma2=0 mpuio=0x330 mpuirq=9
modprobe opl3 io=0x388
The script requires root access. so far my attempts of having it in /etc/init.d with a symlink from /etc/rc5.d (as someone else suggested) didnt work.
Anyone?
-
Senior Member
registered user
Re: Autoinitialization of soundcard

Originally Posted by
Hellmark
Everytime i want to use my sound card after booting up with a bash script that includes the following:
modprobe sound dmabuf=1
modprobe cs4232 irq=5 io=0x530 dma=1 dma2=0 mpuio=0x330 mpuirq=9
modprobe opl3 io=0x388
The script requires root access. so far my attempts of having it in /etc/init.d with a symlink from /etc/rc5.d (as someone else suggested) didnt work.
Anyone?
You may want to try creating a file called say sound in the /etc/modutils/ directory then after have saved the file run update-modules to have the contents entered into the /etc/modules.conf for use on the next boot. Not totally sure if the format you have there will work as is but this is how the options are usually done for modules so it is worth a try.
-
Junior Member
registered user
Nope, tried it and it doesnt work
-
Senior Member
registered user
Try putting the lines near the bottom of the file /etc/init.d/bootmisc.sh I use a similar line to force the loading of my nvidia module for kernel 2.6.
Code:
dmesg -s 65536 > /var/log/dmesg
#
# Remove ".clean" files.
#
rm -f /tmp/.clean /var/run/.clean /var/lock/.clean
## Added by me for nvidia to use the NvAgp and load the module for 2.6 kernel
rmmod agpgart
modprobe -f nvidia
: exit 0
But you may want to also try just passing options to the modules in the file you created:
Code:
option sound dmabuf=1
option cs4232 irq=5 io=0x530 dma=1 dma2=0 mpuio=0x330 mpuirq=9
option opl3 io=0x388
Then put the sound, cs4232 and opl3 in the file /etc/modules on seperate lines and make sure to run the update-modules.
-
Junior Member
registered user
opl3?
Sorry if I am missing something, but I'm a complete Linux newb (been on M$ based systems for the better part of a decade and a half now, and only recently started giving Tux a green light)
-
Senior Member
registered user

Originally Posted by
Hellmark
opl3?
Sorry if I am missing something, but I'm a complete Linux newb (been on M$ based systems for the better part of a decade and a half now, and only recently started giving Tux a green light)
Those are the names of the modules that you are using in the original post that you made. They have to be loaded from somewhere in the system the usual place you put them are on a separate line in the file /etc/modules this way they will get loaded at boot, when these modules have extra parameters that you have to pass to them then you need to put them somewhere where they will also be loaded this is the point of using the separate file and then using update-modules. The other option is using the bootmisc.sh file and entering the lines there to be loaded.
Similar Threads
-
By jjbergdolt in forum Hardware & Booting
Replies: 5
Last Post: 07-01-2005, 09:09 PM
-
By pnti in forum General Support
Replies: 0
Last Post: 08-06-2004, 09:52 PM
-
By tumultuoustranquility in forum Hardware & Booting
Replies: 1
Last Post: 08-01-2004, 03:16 AM
-
By flyboy_aaron in forum Hardware & Booting
Replies: 2
Last Post: 01-25-2004, 02:46 PM
-
By Wil in forum Hardware & Booting
Replies: 0
Last Post: 11-28-2003, 11:07 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

Gigabyte 4U AI Server 10x Nvidia GPU 2x Xeon Gold 6150 36 Core 2.7GHz DDR4 RAM
$1625.00

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD
$275.00

Microsoft Windows Server 2025 Datacenter 64Bit 24 Core 50 cal Freeshipping
$54.99

867959-B21 HPE ProLiant DL360 G10 CTO Server W/ 2x 865414-B21 1x 840140-001
$245.00

Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W
$409.99

Windows Server 2022 | Intel 18-Core Xeon | 32GB ECC DDR4 | 500GB NVMe | 3TB HDD
$795.00

Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p
$499.88

Dell Poweredge R730xd 12LFF 2*2660v4 4*1Gbe h730 2x 750W Server CTO
$308.00

Microsoft Windows Server 2025 Standard 64-bit 16 Core + 50 CALs |
$79.99

Microsoft Windows Server 2025 Standard 64Bit 16 Core-50 CALs DVD With Key Sealed
$41.19