Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Disabling the system bell
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
lesha
n00b
n00b


Joined: 18 Nov 2002
Posts: 45

PostPosted: Thu Feb 26, 2004 11:38 pm    Post subject: Reply with quote

Edit /etc/inputrc and set:

# do not bell on tab-completion
set bell-style none

That's it (although you need to reload the settings -- either restart your shells, or, by default, Ctrl-X,Ctrl-R will do it)
Back to top
View user's profile Send private message
feffi
Apprentice
Apprentice


Joined: 29 Mar 2003
Posts: 216
Location: Sol->Earth->Germany->Giessen

PostPosted: Thu Feb 26, 2004 11:48 pm    Post subject: bash visual beep Reply with quote

Hi just add the following line to your '/etc/inputrc':
Code:

bash$ vi /etc/inputrc
...
# do not bell on tab-completion
set bell-style visual
...


Also a 'man bash' or the 'Quick Search' function would have done it...
_________________
have fun

feffi

/(bb|[^b]{2})/ that is the Question!

Gentoo-Wiki: Acer Travelmate 803 LCi manual
Back to top
View user's profile Send private message
Lews_Therin
l33t
l33t


Joined: 03 Oct 2003
Posts: 657
Location: Banned

PostPosted: Fri Feb 27, 2004 1:07 am    Post subject: Reply with quote

I've looked at the bash man page, once. The thing's massive, and I didn't even know if tab completion would be in there.

Anyway, thanks for the help. It's much nicer...and quieter...now.
Back to top
View user's profile Send private message
psyqil
Advocate
Advocate


Joined: 26 May 2003
Posts: 2767

PostPosted: Fri Mar 05, 2004 9:51 pm    Post subject: Reply with quote

Compile it as module in your kernel and call it when you need it:
Code:
/sbin/modprobe pcspkr
beep
/sbin/rmmod pcspkr
Enjoy the silence :D
Back to top
View user's profile Send private message
dogshu
Apprentice
Apprentice


Joined: 22 Jun 2003
Posts: 173
Location: New Haven, CT, USA

PostPosted: Sat Mar 06, 2004 12:10 am    Post subject: Reply with quote

If you use X, run this at X startup:

xset b 0 0 0

that will disable the PC speaker entirely.

There is a similar command for "setterm" in console mode.
Back to top
View user's profile Send private message
Revik
n00b
n00b


Joined: 27 Mar 2004
Posts: 31

PostPosted: Wed Apr 14, 2004 4:20 pm    Post subject: Console beep's Reply with quote

How to turn off that's noisy beep's in console?
Back to top
View user's profile Send private message
tihkal
Apprentice
Apprentice


Joined: 28 Feb 2004
Posts: 225

PostPosted: Wed Apr 14, 2004 4:35 pm    Post subject: Reply with quote

Open case.
Find speaker.
Follow wire back to mobo.
Unplug wire.
Close case ;-)
Back to top
View user's profile Send private message
DefconAlpha
Apprentice
Apprentice


Joined: 25 Feb 2003
Posts: 151
Location: Alabama

PostPosted: Wed Apr 14, 2004 4:36 pm    Post subject: Reply with quote

Code:
setterm -blength 0

_________________
In the end, the love you get is equal to the love you make
--John Lennon & Paul McCartney (The End - Abbey Road,
Back to top
View user's profile Send private message
tihkal
Apprentice
Apprentice


Joined: 28 Feb 2004
Posts: 225

PostPosted: Wed Apr 14, 2004 4:39 pm    Post subject: Reply with quote

Also for variation.

In /etc/inputrc uncomment #set bell-style none :-)
Back to top
View user's profile Send private message
Apreche
Guru
Guru


Joined: 18 Sep 2003
Posts: 506
Location: Beacon, NY

PostPosted: Tue Jun 08, 2004 3:13 pm    Post subject: system/console beep Reply with quote

Ok, so like most people I find the console beep annoying. I have modified /etc/inputrc to set bell-style none. That helps a little. However, to disable it at all the annoying times I know I must also do xset -b. I don't want to disable it at the kernel level because sometimes you want to make it beep for real. For example when portage makes it beep to get your attention. I don't want it beeping when I hold the down arrow for too long in an nedit window. Where is the best place to put xset -b? Or to say it better, what is the most appropriate or correct place to put xset -b? xinitrc? .bashrc? Also, is there any other console beep removing ways? I always felt that xset is somewhat of a last resort for anything.
Back to top
View user's profile Send private message
lunarg
Guru
Guru


Joined: 07 Jan 2004
Posts: 508
Location: Peer, Belgium

PostPosted: Tue Jun 08, 2004 3:27 pm    Post subject: Reply with quote

I think the PC speaker can be turned off in 2.6.x kernels (thought I saw an option somewhere in gentoo-dev-sources).
_________________
Registered linux user #341804
Visit Black Manticore: http://www.blackmanticore.com/
Back to top
View user's profile Send private message
Apreche
Guru
Guru


Joined: 18 Sep 2003
Posts: 506
Location: Beacon, NY

PostPosted: Tue Jun 08, 2004 6:48 pm    Post subject: Re: system/console beep Reply with quote

Apreche wrote:
...I don't want to disable it at the kernel level...


Not to be mean or insulting or anything. But I take the time to actually read all of what other people write. Please be equally courteous...
Back to top
View user's profile Send private message
lunarg
Guru
Guru


Joined: 07 Jan 2004
Posts: 508
Location: Peer, Belgium

PostPosted: Tue Jun 08, 2004 8:28 pm    Post subject: Reply with quote

You're right.
Sorry. :oops:

(bad case of doing two things at the same time...)

I don't know xset very well, but if it works system wide (i.e. is not reset after each logout), you could set it in /etc/conf.d/local.start, which is started at boot.
If it is reset, it's best to put it in the global bash profile file (if I only knew which one that was on Gentoo :oops:).

EDIT: the content of local.start is executed at boot, while local.stop is executed at shutdown/reboot.
_________________
Registered linux user #341804
Visit Black Manticore: http://www.blackmanticore.com/
Back to top
View user's profile Send private message
twiggy
n00b
n00b


Joined: 25 Nov 2003
Posts: 65
Location: Sweden

PostPosted: Wed Jun 09, 2004 12:06 pm    Post subject: Reply with quote

xset b off - To turn the bell off in X

setterm -blength 0 - To turn it off in the console

:roll:
_________________
Bite my shiny metal ass!


Last edited by twiggy on Wed Jun 09, 2004 6:43 pm; edited 2 times in total
Back to top
View user's profile Send private message
Apreche
Guru
Guru


Joined: 18 Sep 2003
Posts: 506
Location: Beacon, NY

PostPosted: Wed Jun 09, 2004 12:56 pm    Post subject: Reply with quote

ah! thank you! setterm -blength 0 I did not know about.
Back to top
View user's profile Send private message
mike_c
Tux's lil' helper
Tux's lil' helper


Joined: 09 Dec 2003
Posts: 76

PostPosted: Fri Dec 31, 2004 4:10 am    Post subject: turn off system beep Reply with quote

how do i stop the terminal from beeping when i do stuff like backspace, tab complete or halt

its is really annoying, normally id just unhook the system speaker, but this is on my laptop, and the sound runs through the main speakers

thanks

Mike
Back to top
View user's profile Send private message
perral1
n00b
n00b


Joined: 28 Jun 2004
Posts: 40
Location: Plano, Tx

PostPosted: Fri Dec 31, 2004 4:11 am    Post subject: Reply with quote

there is a kernel option (in the 2.6 kernels) for that...I agree, it is VERY annoying.

Not sure of any other way...there probably is one.
Back to top
View user's profile Send private message
shade266
Guru
Guru


Joined: 29 Oct 2003
Posts: 593
Location: Internal

PostPosted: Fri Dec 31, 2004 4:22 am    Post subject: Reply with quote

If you are using the latest dev-sources kernel, you can disable the pc-speaker option located somewhere in the Sound section of menuconfig. IF I recall the option is the last option of the section.
_________________
I've been away for a long time, bear with me.
Back to top
View user's profile Send private message
mike_c
Tux's lil' helper
Tux's lil' helper


Joined: 09 Dec 2003
Posts: 76

PostPosted: Fri Dec 31, 2004 4:24 am    Post subject: Reply with quote

unfortunately im only using 2.4

i might consider (finally) upgrading just for this one feature
Back to top
View user's profile Send private message
perral1
n00b
n00b


Joined: 28 Jun 2004
Posts: 40
Location: Plano, Tx

PostPosted: Fri Dec 31, 2004 4:26 am    Post subject: Reply with quote

I thought it was going to be difficult to upgrade, but it really isn't. The guide was really helpful, although it didn't exist when I upgraded... :lol:
Back to top
View user's profile Send private message
RedDawn
Guru
Guru


Joined: 22 Sep 2003
Posts: 368
Location: Los Angeles, California

PostPosted: Fri Dec 31, 2004 6:09 am    Post subject: Reply with quote

Yeah on most 2.6.X kernels the pc internal speaker is turned off by defeaul unless otherwise activated on the kernel..

Gentoo rules..


not more than *bsd but is okay..
Back to top
View user's profile Send private message
silentbob
Apprentice
Apprentice


Joined: 09 Nov 2003
Posts: 159
Location: UK

PostPosted: Fri Dec 31, 2004 6:34 am    Post subject: Reply with quote

The simplest and most effective method is to open up your PC and disconnect the cable to the internal speaker (or go for the brute-force method and cut the wire)!
_________________
My Gentoo Linux Stuff | Get FireFox
Back to top
View user's profile Send private message
racoontje
Veteran
Veteran


Joined: 19 Jul 2004
Posts: 1290

PostPosted: Fri Dec 31, 2004 8:53 am    Post subject: Reply with quote

In his case, that would disable all sound :roll:
Why haven't you upgraded to 2.6 anyway?
Back to top
View user's profile Send private message
lofiye
n00b
n00b


Joined: 31 Dec 2004
Posts: 1

PostPosted: Fri Dec 31, 2004 1:36 pm    Post subject: Reply with quote

how about a 'setterm -blength 0' ?

Best regards,

Dennis
Back to top
View user's profile Send private message
Mben
Guru
Guru


Joined: 29 Mar 2004
Posts: 465
Location: New York, USA

PostPosted: Fri Dec 31, 2004 1:47 pm    Post subject: Reply with quote

silentbob wrote:
The simplest and most effective method is to open up your PC and disconnect the cable to the internal speaker (or go for the brute-force method and cut the wire)!


asus boards have a speaker soldiered on from the factory :wink:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum