LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Linux command mode beeps on action (https://www.linuxquestions.org/questions/linux-general-1/linux-command-mode-beeps-on-action-738873/)

pkacker 07-09-2009 07:09 AM

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

colucix 07-09-2009 07:22 AM

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.

pkacker 07-09-2009 07:26 AM

Still beeping..!!

colucix 07-09-2009 07:33 AM

What is the value of the PS1 variable?

pkacker 07-09-2009 07:43 AM

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

colucix 07-09-2009 07:57 AM

Quote:

Originally Posted by pkacker (Post 3602135)
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

pkacker 07-09-2009 08:06 AM

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.

colucix 07-09-2009 08:18 AM

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?

pkacker 07-09-2009 08:22 AM

You are absolutely correct, its is tcsh only.

And it is not producing any beep while using X windows system.

colucix 07-09-2009 08:27 AM

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

pkacker 07-09-2009 08:39 AM

Here is the value

>echo $tcsh
6.15.00


and alias beepcmd ':' didn't work.

By the way..Thanks a lot for your support.

colucix 07-09-2009 08:45 AM

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.

pkacker 07-09-2009 09:04 AM

neither it is giving error not solving problem..I will try for the BIOS setting.

Valery Reznic 07-10-2009 12:03 AM

Quote:

Originally Posted by pkacker (Post 3602102)
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.

pkacker 07-10-2009 01:44 AM

Thank You very Much Valery..It is working.
For unloading the pcspkr, I used the following.

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


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