LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-18-2007, 12:48 AM   #1
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
Question system bell won't shut up


hi all,

i have a bit of an annoying problem. I can't seem to shut the system bell up on my inspiron8500. i have modified /etc/inputrc to read:

set bell-style none

but it seems to have no affect. I double checked my ~ directory and I don't have another .inputrc there, so there is nothing overriding it. AFAIK this is the only place to set this in slackware?

anyone know what else I should check?

I have also tried setting it to 'visible' but it still just beeps. its getting very annoying now so thought I should address it.

thanks!
 
Old 06-18-2007, 01:42 AM   #2
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
Are you sure you've got the line right in /etc/inputrc? No spelling mistakes or spacing errors? Is there a space at the beginning of the line?
 
Old 06-18-2007, 02:24 AM   #3
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
Two ideas:

1) Check to make sure you don't have a #

2) Depending on your kernel configuration, you may just want to blacklist the PC speaker module.

Either way, this will show you how to do it.
 
Old 06-18-2007, 03:00 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by bioe007
hi all,

i have a bit of an annoying problem. I can't seem to shut the system bell up on my inspiron8500. i have modified /etc/inputrc to read:

set bell-style

but it seems to have no affect. I double checked my ~ directory and I don't have another .inputrc there, so there is nothing overriding it. AFAIK this is the only place to set this in slackware?

anyone know what else I should check?

I have also tried setting it to 'visible' but it still just beeps. its getting very annoying now so thought I should address it.

thanks!
You're not really saying where and when this happens,
what environment it happens in....

It will work in bash in the console, and it will work
in bash in an xterm ... but it's tied to readline, so
if you invoke bash with -noediting, or have a +o emacs
or +o vi somewhere in ~/.bashrc or ~/.bash_profile you
may be using the bell after all ... that's all just
theory - I never had the issue, but that's my understanding
of the bash & readline integration.



Cheers,
Tink
 
Old 06-18-2007, 03:03 AM   #5
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
The pcspkr module is already in the modprobe.d/blacklist. You have to edit rc.modules.
 
Old 06-18-2007, 05:57 AM   #6
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
and /etc/modprobe.d/isapnp
 
Old 06-18-2007, 08:40 AM   #7
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Quote:
Originally Posted by bioe007
hi all,

i have a bit of an annoying problem. I can't seem to shut the system bell up on my inspiron8500. i have modified /etc/inputrc to read:

set bell-style none

but it seems to have no affect. I double checked my ~ directory and I don't have another .inputrc there, so there is nothing overriding it. AFAIK this is the only place to set this in slackware?

anyone know what else I should check?

I have also tried setting it to 'visible' but it still just beeps. its getting very annoying now so thought I should address it.

thanks!
If this happens inside your X windows environment, open a terminal and type

xset -b

if that fixes it, then add that line to your .xinitrc and you'll be golden.
 
Old 06-18-2007, 11:24 PM   #8
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Original Poster
Rep: Reputation: 30
many thanks to all the replies.

Quote:
Originally Posted by simcox1
Are you sure you've got the line right in /etc/inputrc?
I'm never sure, so here is the first few lines of my inputrc:
Code:
# /etc/inputrc
# This file configures keyboard input for programs using readline.
# See "man 3 readline" for more examples.

# Configure the system bell.  Options are none, visible, and audible.
set bell-style visible
Quote:
Originally Posted by shilo
1) Check to make sure you don't have a #
I'm not sure what you mean by a '#'? Do you mean the bell will always be on as root?

Quote:
Originally Posted by shilo
2) Depending on your kernel configuration, you may just want to blacklist the PC speaker module.
I'll have to double check my .config, but:

modprobe -l | grep pcspkr

returns nothing. but also:

cat /etc/modprobe.d/blacklist | grep pcspkr

also returned nothing, so I added 'blacklist pcspkr' for s&g's anyway

Quote:
Originally Posted by Tinkster
You're not really saying where and when this happens,
what environment it happens in....
sorry, I mostly notice it at the console (not in X, xfce-terminal)

at any rate, I think this may be the problem?

Code:
$ cat /usr/src/linux/.config | grep PCSPKR
CONFIG_INPUT_PCSPKR=y
I'll change this and see.. But if anyone knows this is not the problem then could let me know so I'm not chasing my tail...

Quote:
Originally Posted by Tinkster
It will work in bash in the console, and it will work in bash in an xterm ... but it's tied to readline, so
if you invoke bash with -noediting, or have a +o emacs or +o vi somewhere in ~/.bashrc or ~/.bash_profile you
may be using the bell after all ...
just I'll look through my .bash_profile for the emacs stuff
 
Old 06-19-2007, 12:50 AM   #9
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Original Poster
Rep: Reputation: 30
Talking Solved

Well, thanks for the many helpful replies. Each provided something that I didn't know before.

It seems the problem was the PCSPKR=y from my .config (an option I no doubt selected early in my 'learning how to compile a kernel' days which has been carried on with the .config)

My new trouble is that the /etc/modprobe.d/blacklist file seems to be relevant only for hotplug?

Quote:
Originally Posted by /blacklist
#
# Listing a module here prevents the hotplug scripts from loading it.
# Usually that'd be so that some other driver will bind it instead,
# no matter which driver happens to get probed first. Sometimes user
# mode tools can also control driver binding.
adding it there didn't seem to help (I have 2.6 +x udev, -x hotplug)

so I just added this line to rc.local:
Code:
echo "Removing pcspkr module: rmmod -f pcspkr"
/sbin/rmmod -f pcspkr
which I kind of like anyway because its easy to track what I've got going on.

anyone see a problem with using that to rid me of the 'bell'?
 
Old 06-19-2007, 03:27 AM   #10
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
If it's being loaded as a module by /etc/rc.d/rc.modules, you could just comment that line out. Or do rmmod as you have done.
 
Old 06-19-2007, 10:00 AM   #11
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Original Poster
Rep: Reputation: 30
i don't actually use rc.modules, because I choose kernel module autoloading.

I'm not sure how to block these modules other than with rmmod, so as long as it works and doesn't violate any 'rules' i'll just leave it like that.

many thanks to all who've contributed.
 
Old 06-19-2007, 11:29 AM   #12
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I hate the 'pcspkr' module ... I typically don't compile it at all, not as module or built-in ... I mean, who wants annoying beeps coming from they computer every time there is some small error.
 
Old 06-20-2007, 05:17 PM   #13
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Original Poster
Rep: Reputation: 30
is it good for anything else? if not then I'll follow suit.
 
Old 06-20-2007, 05:23 PM   #14
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
Quote:
Originally Posted by bioe007
is it good for anything else? if not then I'll follow suit.
i think a few games were made, where voice output was implemented with a pc speaker...
 
Old 06-20-2007, 06:09 PM   #15
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by erklaerbaer
i think a few games were made, where voice output was implemented with a pc speaker...
when were those made ? in ancient times, when people didn't have speakers ?

I also think some modems use it ... for your personal pleasure ... modem ring tones are such beautiful music ...

Last edited by H_TeXMeX_H; 06-20-2007 at 06:10 PM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
System Bell / PC Speaker mattydee Slackware 5 11-16-2007 08:51 PM
route system bell (system beep) through ALSA... mr.v. Linux - Software 1 07-03-2006 07:26 AM
What happened to my system bell? stardotstar Linux - Hardware 2 04-11-2006 08:31 PM
Mepis - system bell satinet MEPIS 2 03-09-2006 04:23 AM
System bell but no sound __spc__ Linux - Hardware 2 03-02-2006 12:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:43 PM.

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