From owner-freebsd-questions@FreeBSD.ORG Sat Dec 26 23:07:37 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 08E6110656A8 for ; Sat, 26 Dec 2009 23:07:37 +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 B22BC8FC08 for ; Sat, 26 Dec 2009 23:07:36 +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 nBQN7Ypg008830; Sat, 26 Dec 2009 15:07:34 -0800 (PST) (envelope-from kline@thought.org) Received: by thought.org (nbSMTP-1.00) for uid 1002 kline@thought.org; Sat, 26 Dec 2009 15:07:34 -0800 (PST) Date: Sat, 26 Dec 2009 15:07:34 -0800 From: Gary Kline To: Ian Smith Message-ID: <20091226230734.GD47231@thought.org> References: <20091226120028.0A8FC10657A0@hub.freebsd.org> <20091227001029.N28370@sola.nimnet.asn.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091227001029.N28370@sola.nimnet.asn.au> 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=-3.8 required=3.6 tests=ALL_TRUSTED,BAYES_00, J_CHICKENPOX_54 autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on ethic.thought.org Cc: 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: Sat, 26 Dec 2009 23:07:37 -0000 On Sun, Dec 27, 2009 at 01:19:49AM +1100, Ian Smith wrote: > On Fri, 25 Dec 2009 20:23:22 -0800 Gary Kline wrote: > > On Sat, Dec 26, 2009 at 01:10:45AM +0000, Chris Whitehouse wrote: > > > Gary Kline wrote: > > > >>On Fri, 25 Dec 2009 13:37:13 -0800, Gary Kline wrote: > > > >>> at first I'm lookings for a "cots" (commericial, off-the-shelf) > > > >>> solution. The XO has stereo speakers and so do the notebooks. > > > >>> I am thinking of the 'PC speaker'; something that would sound for > > > >>> around a 25th/second, very low and with at least some loudness > > > >>> control. > > > > > > Hi Gary, > > > > > > someone posted recently about the play-string language for /dev/speaker, > > > see speaker(4). Could you do something with that? > > > > > > btw thanks to whoever posted the play-string code for frere jaques - > > > cracked me up :) > > > > > > Chris > > Yeah :) I play little tunelets on certain battery power events, when > some IP gets blacklisted by some logtailing script, things like that. > > > Wow; the stuff I've never heard about:-) --I just tried spkrtest > > and have no /dev/speaker. > > # kldload speaker Thanks! I just listened to the opening few notes of Star Trek [!] But very faint and I don't know if the dinky BEL is a chip or a real speaker. Anybody know how I can redirect the beep to my speakers? I miss the confirmation that vi/vim puts out. > > device speaker isn't in kernel GENERIC. If it doesn't work immediately, > try adding speaker_load="YES" to /boot/loader.conf .. this assumes that > your box _has_ a working speaker, eg beeps once while booting? Probably help to be a dog! --That reminds me of what my parents generation were saying about mine [with its loud music]. That we'd all be nerve-deaf by age 55.-- Teh computer does beep as an error sound. How adjustable it is other than just beeping, dunno. > > Some laptops use the sound'card' for speaker, and provide a mixer level. Should be a way to send the beep to my desktop speakers, then, right? I've got volume and power, treble/bass. > > > The short answer [Guess] is no, I dont think so. If getting the > > keys to have an auditory feedback with beeps or shorter clicks were > > that easy, it would have been done after 15 years. Even Linux > > lacks this--and I'd bet Minux too. > > > > What I've got to do is pick up where I kwit ten years ago with the > > kernel driver code and drop the the code to make the speaker-audio > > create tiny, brief clicks, preferably low, thunky sounds like ye > > ancient IBM Selectrics. > > You can do quite a lot with various tempos, intervals and frequencies; > see speaker(4) and play around. Making a short click or thunk! should > be easy enough, but spkrtest and echoing playstrings >/dev/speaker are > userland processes; I've no idea how much 'fun' it would be to invoke > /dev/speaker ioctls from the kbd drivers. But if you're really keen: Def !fun, but not rocket science either. I'll poke around at this stuff. > > % find /sys/ -name "speaker*" -o -name "spkr*" I've found spkr.c; still there after all these months, :) thanks again, gary PS: this might be interesting: I just tried to get % xset c 50 and % xset on on my Ubuntu Thinkpad. Zip. At least here I've got the code! > > cheers, Ian -- 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