From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Mohamed K. Ahmed" Newsgroups: gmane.os.tru64.managers Subject: Summary: AS2100 system bell Date: Wed, 23 Oct 2002 14:36:09 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <535d4b38.4b38535d@vsc.teksystems.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035398060 20648 80.91.224.249 (23 Oct 2002 18:34:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:34:20 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 184QKZ-0005L5-00 for ; Wed, 23 Oct 2002 20:34:12 +0200 Original-Received: (qmail 5785 invoked by uid 5); 23 Oct 2002 18:35:01 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 5776 invoked by uid 49493); 23 Oct 2002 18:35:01 -0000 Original-Received: from mkahmed@vsc.teksystems.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.51. spamassassin: 2.50-cvs. Clear:SA:0(-3.3/5.0):. Processed in 0.987869 secs); 23 Oct 2002 18:35:01 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 23 Oct 2002 18:35:00 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H4G000JD6AAJL@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 23 Oct 2002 14:35:00 -0400 (EDT) Original-Received: from mail.vsc.teksystems.com (mail.vsc.teksystems.com [63.73.230.193]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H4G000K369YKZ@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 23 Oct 2002 14:34:47 -0400 (EDT) Original-Received: from vsc.teksystems.com ([127.0.0.1]) by mail.vsc.teksystems.com (Netscape Messaging Server 4.1) with ESMTP id H4G6C900.N37 for ; Wed, 23 Oct 2002 14:36:09 -0400 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Netscape Webmail Content-language: en Content-Disposition: inline X-Accept-Language: en Xref: main.gmane.org gmane.os.tru64.managers:2179 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2179 Many many thanks to Dr. Tom Blinn.... My question was: > Hi all, > > I just came in the morning and found out that out test box AS2100 > running UNIX V5.1 (updated from 4.0G 2 weeks ago) has its system bell > on continously. > I tried to find if there is any hang processes or hang keyboard > buttons, but failed to find any. > > Did anyone saw something like this before? > > MKMA ________________ I quote the response from Dr. Blinn below "The system bell is controlled by software, at least in theory. The code that really controls it is low level stuff inside the kernel. Other than using an application to send "bell" characters to an app that controls the keyboard/mouse/screen/"bell", which MIGHT make it reset, you might have to power cycle to clear it, because it might be stuck in the hardware. Most of the PCI based systems (like your AS2100) use a "PC style" chip set that has the interfaces for the keyboard, the mouse, the first two serial lines, a driver for the "bell" (which is usually just a small loudspeaker mounted in the cabinet), and a number of other primitive functions. Collectively, this stuff is referred to by many people as the "junk I/O". The "bell" is primitive, it can be turned on and off and not much more. The routine to ring the "bell" is associated with the keyboard (since in the older Digital designed LK200 series keyboards, the bell was actually a part of the keyboard, so all the software assume that the way you ring the bell is through a keyboard service routine); that code just calls a low-level routine called "ring_bell" passing it the pitch and duration requested. The code is pretty basic, it just queues up the bell ringing requests, and if this request is the one at the head of the list, it pokes the registers in the chip and sets a timer for turning the bell off at the end of the time for which it is supposed to be rung. Two things could go wrong; one is that a kernel bug might lose the "turn the bell off" timer interrupt, but this is VERY unlikely. The other would be that a request might come in to ring the bell forever, but in fact, the bell ringing code won't start a duration over one second. So the most likely problem is stuck hardware. If the hardware works OK but the "pc_bell_off" call got lost somehow, then a reboot will clear the situation. As far as I know, there is no other way to really reset the hardware. Determining what caused the problem is really difficult in a running system, and difficult even in a panic-d system (looking at a crash dump), because the hardware in question is so primitive that it has no status registers or other ways to query its state, and the software really works in almost every case (I can't recall ever seeing the bell get stuck when it wasn't a hardware fault, and it almost never happens in any case). Thanks a lot MKMA