Re: Incessant beeping on startup (102 Views)
Reply
Occasional Contributor
Brian Sisk
Posts: 8
Registered: ‎11-17-2002
Message 1 of 5 (102 Views)
Accepted Solution

Incessant beeping on startup

[ Edited ]

I have a rackmount 6700 workstation that I am using as an xterm server. When it is booted without a local terminal, it beeps constantly. Is there a way to turn that off?

 

 

P.S. this thread has been moved from Archived Desktops and Workstations Boards > general to Workstations - Itanium-Based, hp9000, Visualize - HP Forums Moderator

Esteemed Contributor
Rick Beldin
Posts: 283
Registered: ‎07-31-2000
Message 2 of 5 (102 Views)

Re: Incessant beeping on startup

There isn't a 'supported' way of doing this via kernel parameter or otherwise, but you might want to try this program that I wrote.

It uses an ioctl() to turn off the internal audio. This won't mute any beeps that occur at boot time but you might be able to put it in a startup script that turn off the noisy bell once the kernel is booted and system is somewhat functional.

#include
#include
#include
#include

main(argc, argv)
int argc;
char *argv[];
{
char *outdev, device_file[256];
int filedes,i;
int temp = 0;
int audio_on = AUDIO_BEEP_OFF;

if ( argc == 2 )
audio_on = AUDIO_BEEP_ON;
else
audio_on = AUDIO_BEEP_OFF;

outdev = "/dev/audioCtl";

strcpy(device_file, outdev);

if ((filedes = open(device_file, O_RDWR, 0)) == -1)
{
perror("open");
exit(-1);
}

if (ioctl(filedes, AUDIO_SET_BEEP_OUTPUT, &audio_on) == -1)
{
perror("AUDIO_SET_BEEP_OUTPUT");
exit(-1);
}
}


To compile:

cc -o mute mute.c
Necessary questions: Why? What? How? When?
Esteemed Contributor
Rick Beldin
Posts: 283
Registered: ‎07-31-2000
Message 3 of 5 (102 Views)

Re: Incessant beeping on startup

There isn't a 'supported' way of doing this via kernel parameter or otherwise, but you might want to try this program that I wrote.

It uses an ioctl() to turn off the internal audio. This won't mute any beeps that occur at boot time but you might be able to put it in a startup script that turn off the noisy bell once the kernel is booted and system is somewhat functional.

#include
#include
#include
#include

main(argc, argv)
int argc;
char *argv[];
{
char *outdev, device_file[256];
int filedes,i;
int temp = 0;
int audio_on = AUDIO_BEEP_OFF;

if ( argc == 2 )
audio_on = AUDIO_BEEP_ON;
else
audio_on = AUDIO_BEEP_OFF;

outdev = "/dev/audioCtl";

strcpy(device_file, outdev);

if ((filedes = open(device_file, O_RDWR, 0)) == -1)
{
perror("open");
exit(-1);
}

if (ioctl(filedes, AUDIO_SET_BEEP_OUTPUT, &audio_on) == -1)
{
perror("AUDIO_SET_BEEP_OUTPUT");
exit(-1);
}
}


To compile:

cc -o mute mute.c


To use:

mute - silences the bell

mute anything - turns the bell back on
Necessary questions: Why? What? How? When?
Honored Contributor
Bill McNAMARA_1
Posts: 3,866
Registered: ‎11-14-2000
Message 4 of 5 (102 Views)

Re: Incessant beeping on startup

hey Rick,
This is the greatest..
I can plug in all my speakers again!!
Later,
Bill
It works for me (tm)
Occasional Contributor
Brian Sisk
Posts: 8
Registered: ‎11-17-2002
Message 5 of 5 (102 Views)

Re: Incessant beeping on startup

Rick,

Perfect!

Thanks!
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.