UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Greetings.
Firstly, let me say how good it is to finally find a distro that works right first time. Xubuntu runs sweetly on my old AMD K6-2 400 box with 128Mb of RAM. Good work.
I've tried several distros. Trust me. I've lost count the number of times I've formatted hard drives to ext2. Xubuntu is far and away the most non-technical friendly OS. Good work.
However, there is just one little shortcoming. My sound chip wasn't recognized. It's a Yamaha OPL3SA2. By searching this site, I found a command line that works perfectly. (Thanks to whoever posted it.) It goes like this;
/sbin/modprobe snd-opl3sa2 index=0 id=CARD_0 port=0x370 sb_port=0x220 wss_port=0x530 midi_port=-1 fm_port=-1 irq=5 dma1=0 dma2=1 isapnp=0
I don't want, of course, to run this every session.
How do I load this module during boot?
Which file should I modify to do the job?
Greetings.
Firstly, let me say how good it is to finally find a distro that works right first time. Xubuntu runs sweetly on my old AMD K6-2 400 box with 128Mb of RAM. Good work.
I've tried several distros. Trust me. I've lost count the number of times I've formatted hard drives to ext2. Xubuntu is far and away the most non-technical friendly OS. Good work.
However, there is just one little shortcoming. My sound chip wasn't recognized. It's a Yamaha OPL3SA2. By searching this site, I found a command line that works perfectly. (Thanks to whoever posted it.) It goes like this;
/sbin/modprobe snd-opl3sa2 index=0 id=CARD_0 port=0x370 sb_port=0x220 wss_port=0x530 midi_port=-1 fm_port=-1 irq=5 dma1=0 dma2=1 isapnp=0
I don't want, of course, to run this every session.
How do I load this module during boot?
Which file should I modify to do the job?
Many thanks
You need to modify one file and create a new one. First put in the /etc/modules on a line by itself the snd-opl3sa2 to have the module loaded on boot. Then create the file /etc/modprobe.d/sound_card with this for the contents.
Code:
## Added by me for sound card detection
options snd-opl3sa2 index=0 id=CARD_0 port=0x370 sb_port=0x220 wss_port=0x530 midi_port=-1 fm_port=-1 irq=5 dma1=0 dma2=1 isapnp=0
may be a dumb, but there is a start up file that runs at stat up, i'm not sure whether it is /etc/rc.d or /etc/rc.local . edit one of these files with your
/sbin/modprobe snd-opl3sa2 index=0 id=CARD_0 port=0x370 sb_port=0x220 wss_port=0x530 midi_port=-1 fm_port=-1 irq=5 dma1=0 dma2=1 isapnp=0
As already noted, rc.d file does not exist in Ubuntu.
Your suggestions will work, if only I could edit the files.
When attempting to modify /etc/modules, I don't have permission, even using sudo. I've tried chmod without success, to allow write permission.
I've just upgraded the box to 256Mb and AMD K6-III 450 CPU. Xubuntu performs even faster. Not bad for $30. Who needs dual core? (Maybe one day.)
As already noted, rc.d file does not exist in Ubuntu.
Your suggestions will work, if only I could edit the files.
When attempting to modify /etc/modules, I don't have permission, even using sudo. I've tried chmod without success, to allow write permission.
I've just upgraded the box to 256Mb and AMD K6-III 450 CPU. Xubuntu performs even faster. Not bad for $30. Who needs dual core? (Maybe one day.)
Help with modifying /etc/modules now needed.
Thanks again.
I'm not too familiar with the Xubuntu does it install like a regular distro? One thing you can always try is boot with something like a Knoppix live CD then mount your / partition and edit it from there.
I'd like to know what is the best, or most commonly accepted standard way of doing this. There are two or three methods desribed above, /etc/modules, then /etc/rc.d/rc.modules and then there is always /etc/rc.d/rc.local at least in slackware.
I don't think rc.local is the best, but probably the easiest. rc.modules appears on my system to be a link to rc.modules-kernelversion, which must be so when booting different kernel versions, appropriate modules can be loaded.
Looking into the the script /etc/rc.modules, /etc/modules.conf appears in the script, so I'm guessing the script loads modules listed in modules.conf. I would assume then, that at least in this case, /etc/modules.conf is the proper way to add modules for insertion at boot time?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.