From owner-freebsd-bugs Wed Aug 21 2:20:15 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ABCBE37B400 for ; Wed, 21 Aug 2002 02:20:07 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4BB1C43E3B for ; Wed, 21 Aug 2002 02:20:07 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7L9K3JU057116 for ; Wed, 21 Aug 2002 02:20:03 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7L9K3he057114; Wed, 21 Aug 2002 02:20:03 -0700 (PDT) Date: Wed, 21 Aug 2002 02:20:03 -0700 (PDT) Message-Id: <200208210920.g7L9K3he057114@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Jens Schweikhardt Subject: Re: misc/41772: can't disable keybell Reply-To: Jens Schweikhardt Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR misc/41772; it has been noted by GNATS. From: Jens Schweikhardt To: soralx@cydem.zp.ua Cc: GNATS Bug Followup Subject: Re: misc/41772: can't disable keybell Date: Wed, 21 Aug 2002 11:03:57 +0200 [Please Cc: answers to bug-followup@freebsd.org with the subject intact] On Tue, Aug 20, 2002 at 11:24:05PM -0600, soralx@cydem.zp.ua wrote: # > Synopsis: can't disable keybell # # > The proper way to turn off the bell is keybell=off in rc.conf. # that's right, I tried this first # in '/etc/defaults/rc.conf' it's 'keybell=NO' Just to make my statement clear: keybell=NO means "Do not run any kbdcontrol -b command at boot time" it does NOT mean to turn it off. keybell=off means "Run kbdcontrol -b off" at boot time. # Well, that doesn't really matter - it's all the same and is not # working properly for me 8) # # > If you do this on the command line, you need to redirect the tty, # > kbdcontrol -b off < /dev/tty # does the same thing, as supposed to # # > does the trick for me on 4-STABLE. # as I remember, in RELEASE-2.2.7 it worked fine (or it just was # because of a different machine), and as I moved to FreeBSD-4.?.?, # it never works for me # # > Please confirm if it works for you as well. # not as I expect it to work So you have keybell=off in /etc/rc.conf and it does the following: # I expect the beeper to be absolutely quiet, but it just sets the # frequency low (about 30Hz) Hmm. I've got seven disks and a bunch of fans in my case, so I'll never hear anything that low and short. # As I understand it: when the 'keybell=off' is used, and terminal # recieves 07h, the kernel shouldn't touch the timer and send anything # to port 61h, but it [sets the timer(I can hear some # sounds) and OUTs to the port?] # # I'll check '/usr/src/sys/isa/syscons_isa.c' (right?) for how it actually works # [and will learn some more C :)] Try to understand what kbdcontrol does. It writes an escape sequence to the stderr stream which you can capture with (bourne shell, not csh) $ kbdcontrol -b off 2>esc $ od -bc esc 0000000 033 133 075 060 073 060 102 033 [ = 0 ; 0 B 0000007 Investigate how the syscons driver interprets this escape sequence and you should be on the right track. Good luck! # > PS: This is more appropriately asked on questions@ mailing # > list than in a PR. # well, I thought I tested it enough to report a PR Well, if you had given all that extra information about using keybell=off and 30Hz stuff... better give too much details that too little. We can always ignore what is not relevant, but if something relevant is missing like in your case, we are guided in the wrong direction. Regards, Jens -- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message