Results 1 to 6 of 6

Thread: Loading correct sound drivers at startup

  1. #1
    Junior Member
    Join Date
    Oct 2003
    Posts
    4

    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?

  2. #2
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479

    Re: Loading correct sound drivers at startup

    Quote 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.

  3. #3
    Junior Member
    Join Date
    Oct 2003
    Posts
    4
    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?

  4. #4
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479
    Quote 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?

  5. #5
    Junior Member
    Join Date
    Oct 2003
    Posts
    4
    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...

  6. #6
    Senior Member registered user
    Join Date
    Jan 2003
    Location
    Podunk, Idaho, USA
    Posts
    470
    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

  1. How do I prevent, loading hisax ISDN drivers (Knoppix 3.7)?
    By sopinon in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 01-13-2005, 12:06 AM
  2. How to disable X from loading? (for installing drivers)
    By nlight40 in forum MS Windows & New to Linux
    Replies: 1
    Last Post: 12-20-2004, 06:33 PM
  3. That geeky startup sound...?
    By Ander in forum Ideas
    Replies: 2
    Last Post: 12-27-2003, 12:07 AM
  4. startup sound and no pic
    By cmo131 in forum General Support
    Replies: 2
    Last Post: 11-05-2003, 06:03 AM
  5. ?Loading Nvidia Drivers in a HDinstall
    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
  •  


OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN picture

OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN

$145.00



OPNsense Firewall 8-Core Atom C3758 4GB DDR4 RAM 64GB SSD 8x 1Gbe QAT AES-NI VPN picture

OPNsense Firewall 8-Core Atom C3758 4GB DDR4 RAM 64GB SSD 8x 1Gbe QAT AES-NI VPN

$95.00



OPNsense Firewall 16-Core Atom C3958 16GB DDR4 RAM 64GB SSD 8x 1Gbe QAT AES-NI picture

OPNsense Firewall 16-Core Atom C3958 16GB DDR4 RAM 64GB SSD 8x 1Gbe QAT AES-NI

$195.00



SonicWall TZ280 Firewall 03-SSC-6933 Advanced Edition 3YR NEW SEALED picture

SonicWall TZ280 Firewall 03-SSC-6933 Advanced Edition 3YR NEW SEALED

$999.99



PfSense/OPNsense 14x1Gb, 8-Core, 8GB RAM, 80GB SSD, AES-NI, QAT (Lanner FW-7573) picture

PfSense/OPNsense 14x1Gb, 8-Core, 8GB RAM, 80GB SSD, AES-NI, QAT (Lanner FW-7573)

$149.00



Cisco NCS-57C3-MOD-SYS NCS 57C3 Base Chassis Grade A - Dual 1600w Powers picture

Cisco NCS-57C3-MOD-SYS NCS 57C3 Base Chassis Grade A - Dual 1600w Powers

$13000.00



Fortinet FortiGate 60F FG-60F UTM UTP License Until 2027 Network Security FW VPN picture

Fortinet FortiGate 60F FG-60F UTM UTP License Until 2027 Network Security FW VPN

$219.99



OPNsense pfSense 16-Core Atom C3958 16GB ECC RAM 512GB SSD 8-Port QAT AES-NI VPN picture

OPNsense pfSense 16-Core Atom C3958 16GB ECC RAM 512GB SSD 8-Port QAT AES-NI VPN

$258.00



Zero Trace Pen: All-in-one Tor Network Anonymous Drive + Cryptocurrency Wallet picture

Zero Trace Pen: All-in-one Tor Network Anonymous Drive + Cryptocurrency Wallet

$147.00



Check Point 1590 Firewall & w builtin WiFI and builtin LTE sim slot picture

Check Point 1590 Firewall & w builtin WiFI and builtin LTE sim slot

$95.99