LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-09-2009, 07:09 AM   #1
pkacker
LQ Newbie
 
Registered: Jun 2009
Location: Genova, Italy
Posts: 13

Rep: Reputation: Disabled
Linux command mode beeps on action


I am using Linux version 2.6.27.23-0.1-default (suse) and trying to switch myself on Linux command mode. For this I pressed ctrl+alt+fn1. It was working fine. when I tried to use common commands like cd dirname then every time it produces beep sounds on hitting return key. It is irritating..Is there any way I can mute this.

Thanks
 
Old 07-09-2009, 07:22 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
That's really weird. I don't know what causes this behaviour, but as a workaround you can do:
Code:
setterm -blength 0
this reduces to 0 the length of the beep sound.
 
Old 07-09-2009, 07:26 AM   #3
pkacker
LQ Newbie
 
Registered: Jun 2009
Location: Genova, Italy
Posts: 13

Original Poster
Rep: Reputation: Disabled
Still beeping..!!
 
Old 07-09-2009, 07:33 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
What is the value of the PS1 variable?
 
Old 07-09-2009, 07:43 AM   #5
pkacker
LQ Newbie
 
Registered: Jun 2009
Location: Genova, Italy
Posts: 13

Original Poster
Rep: Reputation: Disabled
Sorry, I dont know how to check this value.. However I tried these

echo $PS1
PS1: Undefined variable.

PS1='$'
PS1=$: Command not found.

and I am using csh shell
 
Old 07-09-2009, 07:57 AM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by pkacker View Post
and I am using csh shell
This is a valuable piece of information! The PS1 variable is the prompt configuration in sh/bash (FYI if you put the escape \a in PS1, it will beep at every prompt display).

I guess, since you're running on suse, you have /bin/tcsh and not the original C-shell /bin/csh. In that case you can try
Code:
set nobeep
 
Old 07-09-2009, 08:06 AM   #7
pkacker
LQ Newbie
 
Registered: Jun 2009
Location: Genova, Italy
Posts: 13

Original Poster
Rep: Reputation: Disabled
If I used:

echo $SHELL
/bin/csh

I dont know much but as per command output, I think I am using csh shell.
and I tried set nobeep also..again it is not working.
 
Old 07-09-2009, 08:18 AM   #8
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
In my Opensuse box:
Code:
$ ls -l /bin/csh
lrwxrwxrwx 1 root root 4 2008-12-22 17:08 /bin/csh -> tcsh
Anyway, I wonder where the beeps come from? Do you hear them even in a terminal from the X windows system?
 
Old 07-09-2009, 08:22 AM   #9
pkacker
LQ Newbie
 
Registered: Jun 2009
Location: Genova, Italy
Posts: 13

Original Poster
Rep: Reputation: Disabled
You are absolutely correct, its is tcsh only.

And it is not producing any beep while using X windows system.
 
Old 07-09-2009, 08:27 AM   #10
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Ok. My last clue is to try the special alias beepcmd, that sets a command to run when the shell wants to ring the terminal bell. Try
Code:
alias beepcmd ':'
Also which is the value of the prompt variable (the equivalent of PS1 above)?
Code:
echo $prompt
 
Old 07-09-2009, 08:39 AM   #11
pkacker
LQ Newbie
 
Registered: Jun 2009
Location: Genova, Italy
Posts: 13

Original Poster
Rep: Reputation: Disabled
Here is the value

>echo $tcsh
6.15.00


and alias beepcmd ':' didn't work.

By the way..Thanks a lot for your support.
 
Old 07-09-2009, 08:45 AM   #12
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
As a very last resource you can try
Code:
set visiblebell
according to the tcsh man page it use a screen flash rather than the audible bell. Otherwise, see in the BIOS if you have a setting related to system beep (or bell) and disable it.
 
Old 07-09-2009, 09:04 AM   #13
pkacker
LQ Newbie
 
Registered: Jun 2009
Location: Genova, Italy
Posts: 13

Original Poster
Rep: Reputation: Disabled
neither it is giving error not solving problem..I will try for the BIOS setting.
 
Old 07-10-2009, 12:03 AM   #14
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by pkacker View Post
I am using Linux version 2.6.27.23-0.1-default (suse) and trying to switch myself on Linux command mode. For this I pressed ctrl+alt+fn1. It was working fine. when I tried to use common commands like cd dirname then every time it produces beep sounds on hitting return key. It is irritating..Is there any way I can mute this.

Thanks
There is a module called something like pcspkr. Try to unload it.
 
Old 07-10-2009, 01:44 AM   #15
pkacker
LQ Newbie
 
Registered: Jun 2009
Location: Genova, Italy
Posts: 13

Original Poster
Rep: Reputation: Disabled
Thank You very Much Valery..It is working.
For unloading the pcspkr, I used the following.

http://thedaneshproject.com/posts/ho...beep-in-linux/
 
  


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
which command is resposible for logoff action though desktop? redhotiron Linux - Desktop 2 07-22-2007 09:12 AM
command to download the files in command mode. bruse Solaris / OpenSolaris 3 01-12-2006 08:10 AM
redhat 9.0 how to use the command 'find' with the action -exec arvin_shu Linux - Newbie 3 11-30-2005 07:09 AM
How to perform an action (a command) on multiple files with the FOR loop? chun-mee Programming 4 08-23-2005 03:11 AM

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

All times are GMT -5. The time now is 08:34 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