<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=JamMule</id>
	<title>ThinkWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=JamMule"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/JamMule"/>
	<updated>2026-05-10T06:33:49Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=How_to_disable_the_pc_speaker_(beep!)&amp;diff=38763</id>
		<title>How to disable the pc speaker (beep!)</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=How_to_disable_the_pc_speaker_(beep!)&amp;diff=38763"/>
		<updated>2008-09-04T13:14:47Z</updated>

		<summary type="html">&lt;p&gt;JamMule: There are now two kernel modules, which allow the computer to shatter your eardrums.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Get rid of the annoying beeps in Linux&lt;br /&gt;
&lt;br /&gt;
== Remove the pc speaker modules &amp;quot;pcspkr&amp;quot; and &amp;quot;snd_pcsp&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
You might have only one of these modules in use, but they both enable beeps.&lt;br /&gt;
&lt;br /&gt;
Open a terminal and issue this command as root:&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|modprobe -r pcspkr snd_pcsp}}&lt;br /&gt;
&lt;br /&gt;
To prevent the &amp;quot;pcspkr&amp;quot; and &amp;quot;snd_pcsp&amp;quot; modules from loading again at startup add them to modprobe's blacklist in {{path|/etc/modprobe.d/blacklist}}.  You can do this with the following command:&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|cat &amp;lt;&amp;lt;END &amp;gt;&amp;gt;/etc/modprobe.d/blacklist&amp;lt;br /&amp;gt;&lt;br /&gt;
blacklist pcspkr&amp;lt;br /&amp;gt;&lt;br /&gt;
blacklist snd_pcsp&amp;lt;br /&amp;gt;&lt;br /&gt;
END}}&lt;br /&gt;
&lt;br /&gt;
If this does not feel comfortable, you can also edit the aforementioned file with your favorite text editor and add the blacklist lines yourself.&lt;br /&gt;
&lt;br /&gt;
=== Re-enabling the pc speaker ===&lt;br /&gt;
The speaker can be temporarily activated by loading either of the modules:&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|modprobe pcspkr}}&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|modprobe snd_pcsp}}&lt;br /&gt;
&lt;br /&gt;
If you do not want to prevent the modules from loading during startup, delete the two blacklist lines mentioned in the previous section from {{path|/etc/modprobe.d/blacklist}}.&lt;br /&gt;
&lt;br /&gt;
== Disable console beeps in /etc/inputrc ==&lt;br /&gt;
&lt;br /&gt;
Another solution is to disable console beeps in /etc/inputrc (change with your favourite editor, should work on all distributions)&lt;br /&gt;
 # do not bell on tab-completion&lt;br /&gt;
 set bell-style none&lt;br /&gt;
&lt;br /&gt;
== Disable the system beep in Gnome ==&lt;br /&gt;
&lt;br /&gt;
In Ubuntu 7.10 and later, uncheck:&lt;br /&gt;
: System &amp;gt; Preferences &amp;gt; Sound &amp;gt; System Beep &amp;gt; Enable System Beep&lt;br /&gt;
&lt;br /&gt;
Or if it's just the terminal tab auto-completion that's bothering you, uncheck:&lt;br /&gt;
: Terminal &amp;gt; Edit &amp;gt; Current Profile &amp;gt; Terminal bell&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Learning to love the beeps ==&lt;br /&gt;
&lt;br /&gt;
Actually, these beeps are quite useful sometimes (especially with shell-scripts that want to get your attention with echo -e &amp;quot;\a&amp;quot; ). &lt;br /&gt;
The reason people tend to hate them are because they get overused.&lt;br /&gt;
&lt;br /&gt;
1. Make bash tab-completion less beepy, by editing ''/etc/inputrc'' (or ''~/.inputrc''). Add:&lt;br /&gt;
&lt;br /&gt;
 # Show all if ambigious.&lt;br /&gt;
 set show-all-if-ambiguous on&lt;br /&gt;
&lt;br /&gt;
This makes tab-completion more useful, as well as less irritating: we now only get a beep on a true error (no possible completions); if multiple options are possible, all are printed, and it doesn't beep.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Make the beep quieter, shorter, and a nicer pitch. I tend to set 440 Hz, 50ms. Configure with kcontrol (in KDE), or just use xset in your startup files: &lt;br /&gt;
 xset b 50 440 50&lt;/div&gt;</summary>
		<author><name>JamMule</name></author>
		
	</entry>
</feed>