LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-17-2002, 01:20 AM   #1
X11
Member
 
Registered: Dec 2001
Location: Brisie, Australia
Distribution: Slackware 8.1
Posts: 324

Rep: Reputation: 30
Question Beep off!


Just a simple question is there any way to switch off the sometimes annoying beep at the bash prompt. eg. when you get to the end of a page or somthing like that.

NOTE: This is not a laptop/notebook so there is no special key to toggle the beeping noise on or off.
 
Old 04-17-2002, 04:14 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
edit /etc/termcap, find the linux onsole definition and remove the bl=^G entry or maybe replace it with bl=\E7\E[?5h\E[?5l\E[?5h\E[?5l\E[?5h\E[?5l\E[?5h\E[?5l\E8: which should make the screen flash instead. alledgely you can also add "set bell-style none" in your .bashrc, but that doesn't do anything for me
 
Old 04-17-2002, 08:54 AM   #3
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
Well you can also turn off your pc speaker (unplug it!) but I don't think you have external speaker on your laptop.
 
Old 04-17-2002, 02:53 PM   #4
jatimon
Member
 
Registered: Apr 2002
Posts: 33

Rep: Reputation: 15
xterm

while editing the termcap is the best way.

you can also hold down ctrl and press the middle mouse button while the pointer is over the xterm (or whatever term) window and choose visual bell.

the termcap is better since it will premanece between sessions
 
Old 04-17-2002, 11:52 PM   #5
X11
Member
 
Registered: Dec 2001
Location: Brisie, Australia
Distribution: Slackware 8.1
Posts: 324

Original Poster
Rep: Reputation: 30
Re: xterm

Quote:
Originally posted by jatimon
while editing the termcap is the best way.

you can also hold down ctrl and press the middle mouse button while the pointer is over the xterm (or whatever term) window and choose visual bell.

the termcap is better since it will premanece between sessions
Thanks, for the tip by this pure console mode, no X (GUI).
 
Old 04-17-2002, 11:56 PM   #6
X11
Member
 
Registered: Dec 2001
Location: Brisie, Australia
Distribution: Slackware 8.1
Posts: 324

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by acid_kewpie
edit /etc/termcap, find the linux console definition and remove the bl=^G entry or maybe replace it with bl=\E7\E[?5h\E[?5l\E[?5h\E[?5l\E[?5h\E[?5l\E[?5h\E[?5l\E8: which should make the screen flash instead. alledgely you can also add "set bell-style none" in your .bashrc, but that doesn't do anything for me
Thanks for that acid_kewpie, I'll try that. I guess the screen flashes are better having the computer beeping at ya.
 
Old 04-18-2002, 11:17 PM   #7
ngomong
Member
 
Registered: Apr 2002
Posts: 54

Rep: Reputation: 15
After editing /etc/termcap, is there a way to have the changes take effect without restarting?
 
Old 11-16-2006, 07:38 AM   #8
sp_juliano
LQ Newbie
 
Registered: Nov 2006
Location: São Paulo, Brazil
Distribution: Slackware, Debian and SUSE
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by X11
Just a simple question is there any way to switch off the sometimes annoying beep at the bash prompt. eg. when you get to the end of a page or somthing like that.

NOTE: This is not a laptop/notebook so there is no special key to toggle the beeping noise on or off.
setterm -blength 0
 
Old 11-16-2006, 08:56 AM   #9
ygloo
Member
 
Registered: Aug 2006
Distribution: slack
Posts: 323

Rep: Reputation: 30
edit /etc/inputrc:

set bell-style none
 
Old 07-17-2008, 11:08 AM   #10
jhingman
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Rep: Reputation: 0
Another simple solution is to blacklist the particular module that makes the system beep. You can either go into the file
/etc/modprobe.d/blacklist
and add the line: "blacklist pcspkr", or if you want to implement it live simply run the commmand "modprobe -r pcspkr" as root, and the beeps will be gone. This also disables beeps across the whole system, regardless of who's logged in, which I like because I login as many different users on my systems for different reasons.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
looking for a beep lungsucker Programming 3 07-11-2005 08:01 AM
system beep nautilus_1987 Slackware 22 11-15-2004 06:24 AM
Beep Beep! Linux~Powered Linux - Hardware 3 05-18-2004 06:28 AM
/dev/beep? alaios Linux - Hardware 2 03-10-2004 06:26 AM
Beep pixelV Slackware 10 01-04-2003 02:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration