From owner-freebsd-questions@FreeBSD.ORG Sun Dec 27 08:03:49 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F849106566B for ; Sun, 27 Dec 2009 08:03:49 +0000 (UTC) (envelope-from kline@thought.org) Received: from ethic.thought.org (plato.thought.org [209.180.213.209]) by mx1.freebsd.org (Postfix) with ESMTP id 376B18FC08 for ; Sun, 27 Dec 2009 08:03:49 +0000 (UTC) Received: from thought.org (tao.thought.org [10.47.0.250]) (authenticated bits=0) by ethic.thought.org (8.14.3/8.14.3) with ESMTP id nBR83jl2022500; Sun, 27 Dec 2009 00:03:45 -0800 (PST) (envelope-from kline@thought.org) Received: by thought.org (nbSMTP-1.00) for uid 1002 kline@thought.org; Sun, 27 Dec 2009 00:03:45 -0800 (PST) Date: Sun, 27 Dec 2009 00:03:45 -0800 From: Gary Kline To: "b. f." Message-ID: <20091227080345.GA30917@thought.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 23 years of service to the Unix community. X-Spam-Status: No, score=-4.4 required=3.6 tests=ALL_TRUSTED,BAYES_00 autolearn=failed version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on ethic.thought.org Cc: ed@freebsd.org, freebsd-questions@freebsd.org Subject: Re: clicky driver X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Dec 2009 08:03:49 -0000 On Sun, Dec 27, 2009 at 02:11:55AM -0500, b. f. wrote: > > Anybody know how I can redirect the beep to my speakers? I miss > > the confirmation that vi/vim puts out. > > Outside of X, our kbdcontrol(1) offers pitch and duration (but not > volume) control for the console bell via the -b flag. The volume is > often dependent upon the hardware and/or the bios, and in some cases > cannot be easily changed. > So, yet another man page; thanks for the datapoint. > Unfortunately, our keyboard-handling code does not seem to allow the > remapping of individual keys to strings -- I think that can be done in > Linux -- so we can't add a bel to every keypress by defining an > alternative keymap via kbdcontrol, without hacking the code (but since > ed@ is working on a new console driver, this might be a good time to > request features...). A BEL-per-key drove me beyond the limits back in '99; that isn't the answer, but to key a truncated bell, a click, at something well below middle-C: yes, this kind of thing is what I'm thinking of. What is ed's full email ed[at] where.org, please. If he'll give me the clues, I'll share in the hacking. It is time to get this feature builtin to the kernel. Off by default, and on at some user-tuneable values. If only 1 peraon in 10K uses it, that's fine. For me, it makes typing do-able. > However, at a slightly higher level, many > shells and editors will allow you to rebind keys. And some will allow > you to redefine the action taken when the bell is sounded: for > instance, out csh(1) has the nifty "beepcmd". You could customize > this to play a sound file of your own choice through your sound card, > where you presumably have more control over the sound, and then try to > use bindkey to issue bels with keypresses. Of course, this will only > take effect while you're in that shell or editor, but > you could use the idea to hack the syscons(4) driver to redefine > sc_bell() if a certain sysctl is set... > Well, as a last-resort kind of solution. I think it's time to get at this by hacking the driver. But since it has been so long since my last go, some/any help would be much appreciated. gary > > b. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 7.79a release of Jottings: http://jottings.thought.org/index.php