LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Making modprobe pcspkr stick with modprobe.preload? (https://www.linuxquestions.org/questions/fedora-35/making-modprobe-pcspkr-stick-with-modprobe-preload-193738/)

gm4jjj 06-15-2004 08:41 AM

Making modprobe pcspkr stick with modprobe.preload?
 
I recently installed Fedora Core 2 and to get system beeps to work I have to use

modprobe pcspkr

I read that to make this module automatically load when the system is booted I should add pcspkr to the /etc/modprobe.preload file.

I created the file but the module does not appear to load at startup, if I do lsmod then pcspkr is not listed.

What trick am I missing?

Many thanks

gm4jjj 06-16-2004 02:43 AM

Hmm, am I the only one?

jrittvo 06-16-2004 02:51 AM

David,

Until someone gives you a better answer, you can add a line to this file:

/etc/rc.d/rc.local

I guess you'd add: /sbin/modprobe pcspkr

The rc.local file is for commands that get run after all the commands, etc. are done for whatever runlevel you are booting into. This is where I add modprobe items. It works. I was hoping someone else would answer you with maybe a better suggestion.

gm4jjj 06-16-2004 03:27 AM

Quote:

Originally posted by jrittvo
David,

Until someone gives you a better answer, you can add a line to this file:

/etc/rc.d/rc.local

I guess you'd add: /sbin/modprobe pcspkr

The rc.local file is for commands that get run after all the commands, etc. are done for whatever runlevel you are booting into. This is where I add modprobe items. It works. I was hoping someone else would answer you with maybe a better suggestion.

jrittvo - many thanks for that, I'll give it a try now.

I very much appreciate you taking the time to answer my question:)


All times are GMT -5. The time now is 08:49 PM.