Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

System beep on invalid input

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
CJL
Posts: 23
Joined: 2019-03-01 13:34

System beep on invalid input

#1 Post by CJL »

My system is responding to invalid input (ex using Firefox's find function for a string with 0 results) by outputting a system beep/bell, rather than the sound coming from my computer's speakers. I don't know why its doing this, but I would like it to stop, as the sound of this system beep is irritating and there is no volume control for it.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: System beep on invalid input

#2 Post by Head_on_a_Stick »

Code: Select all

# tee /etc/modprobe.d/shutup.conf <<<'blacklist snd-pcsp'
# reboot
deadbang

CJL
Posts: 23
Joined: 2019-03-01 13:34

Re: System beep on invalid input

#3 Post by CJL »

It doesn't seem like shutup.conf did anything. Does it require a specific package to be effective?

cuckooflew
Posts: 677
Joined: 2018-05-10 19:34
Location: Some where out west
Been thanked: 1 time

Re: System beep on invalid input

#4 Post by cuckooflew »

There are many ways to do what you want, Did you even try doing a search ?
If you copy/paste

Code: Select all

remove beep from debian 10 
into your search engine, you shoudl find the answer to this, if you don't , try a different search engine, also, doing a search using the same text that H_O_A_S posted:

Code: Select all

tee /etc/modprobe.d/shutup.conf <<<'blacklist snd-pcsp'
actually gets results giving details on that.
Does it require a specific package to be effective?
No, but that might be another approach, I mean the 'beep' command,is a package. one could remove it all together, maybe you don't want to do that though...
Try doing some searches, this is to easy, but you have not done any searches, and do not use any logic.
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: System beep on invalid input

#5 Post by stevepusser »

CJL wrote:It doesn't seem like shutup.conf did anything. Does it require a specific package to be effective?
Did you reboot, or try unloading the offending module manually first to see if that had any effect?
MX Linux packager and developer

cuckooflew
Posts: 677
Joined: 2018-05-10 19:34
Location: Some where out west
Been thanked: 1 time

Re: System beep on invalid input

#6 Post by cuckooflew »

The command posted by HOAS worked for me, it created the file:

Code: Select all

/etc/modprobe.d/shutup.conf 
and "shutup.conf" has the line:

Code: Select all

blacklist snd-pcsp 
in it.
did you look, to see if the file was created or modified as needed ?
You do need to be root to do this, use 'sudo' or 'su -' .

You can also completely disable 'beep' like this:

Code: Select all

# mv /bin/beep ex-beep
Disclaimer, I know this might affect other programs that use 'beep', and they will no longer be able to.
How ever, it is simple if you want to restore 'beep':

Code: Select all

# mv /bin/ex-beep beep
It is because, on older versions of Debian, the 'beep' command was not included as default, in a base install, and if I wanted 'beep', I had to install it. It is not a "essential" package, 'mv' see 'man mv' , just renames it, and does not uninstall or remove it, so then if you want it back it is easy to restore.
Last edited by cuckooflew on 2020-07-16 18:03, edited 1 time in total.
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: System beep on invalid input

#7 Post by Head_on_a_Stick »

The module name might be wrong (although snd-pcsp also works for me) so perhaps try pcspkr instead.
deadbang

cuckooflew
Posts: 677
Joined: 2018-05-10 19:34
Location: Some where out west
Been thanked: 1 time

Re: System beep on invalid input

#8 Post by cuckooflew »

According to this:https://debian-administration.org/artic ... sole_beeps

Code: Select all

Edit:

"/etc/modprobe.d/blacklist"

and add line:

"blacklist pcspkr"

close editor and reboot

or:

"sudo modprobe -r pcspkr"

and reboot.
 
"pcspkr"
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!

CJL
Posts: 23
Joined: 2019-03-01 13:34

Re: System beep on invalid input

#9 Post by CJL »

Head_on_a_Stick wrote:The module name might be wrong (although snd-pcsp also works for me) so perhaps try pcspkr instead.
I can do that.
CuckooFlew wrote:It is because, on older versions of Debian, the 'beep' command was not included as default, in a base install, and if I wanted 'beep', I had to install it. It is not a "essential" package, 'mv' see 'man mv' , just renames it, and does not uninstall or remove it, so then if you want it back it is easy to restore.
Funny thing is, I checked dpkg and apt. The package 'beep' isn't installed on my system.
And yeah, I ran searches, but not for disabling beep: I thought that it was a bug that 'invalid' inputs were causing beeps, not a feature.
Thanks to both of you for suggesting pcspkr. I'll try it now.

UPDATE: Adding 'blacklist pcspkr' to the shutup.conf file seems to have worked. Thanks!
Last edited by CJL on 2020-07-22 22:01, edited 1 time in total.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: System beep on invalid input

#10 Post by Head_on_a_Stick »

CJL wrote:The package 'beep' isn't installed on my system
That package is for advanced control of the motherboard speaker, the speaker will still work without the beep package:

Code: Select all

printf "\a"
deadbang

Post Reply