LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   DamnSmallLinux (https://www.linuxquestions.org/questions/damnsmalllinux-42/)
-   -   Disable PC Speaker (https://www.linuxquestions.org/questions/damnsmalllinux-42/disable-pc-speaker-537595/)

iXneonXi 03-14-2007 11:00 PM

Disable PC Speaker
 
How do I stop the beeps?!
I have a Thinkpad 770 running DSL and it beeps all the time!
I can't run it at night or everyone will wake up. It even beeps when shutting down!
Is there a way to stop the beeps? I'm looking for any method except for "disconnect the speaker on the inside."

macemoneta 03-14-2007 11:42 PM

In your /etc/rc.d/rc.local (or the equivalent for your distribution):

/sbin/modprobe -r pcspkr

You can issue that command as root to verify that it works. It will (temporarily) remove the kernel module that drives the PC speaker.

iXneonXi 03-15-2007 06:30 AM

I'm trying to find "/etc/rc.d/rc.local" in DSL.
pcspkr I don't think was listed as a module in the first place, however issuing that did nothing.
The machine still beeps when I choose to shut it down.

blackhole54 03-15-2007 10:31 PM

Quote:

Originally Posted by iXneonXi
I'm trying to find "/etc/rc.d/rc.local" in DSL.

In DSL, the corresponding file is /opt/bootlocal.sh. If you use the filetool to save files across reboots, by default, this is one of the files saved.

Quote:

pcspkr I don't think was listed as a module in the first place, however issuing that did nothing.
The machine still beeps when I choose to shut it down.
I checked in DSL v1.0 and DSL v2.4 and I didn't see a pcspkr listed. But the machine I have 2.4 on can't beep anyway! When I tested with v1.0, (from HD but otherwise operating like a live CD), the only beeps I heard on boot and shutdown were associated with a PCMCIA card. I don't know if this pertains to you or not. The man page for cardmgr (which handles PCMCIA) lists a -q option to surpress beeps. Assuming this would help you, I think this would entail modifying /etc/init.d/knoppix-autoconfig and /etc/init.d/knoppix-halt, but I am not certain.

iXneonXi 03-16-2007 05:58 AM

I will try that and also configure the PC card. I do have one (it is for network, a Xircom). If that is what is causing the beeps, thank you for the info!


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