From owner-freebsd-current@FreeBSD.ORG Tue Aug 5 10:17:20 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE21137B401 for ; Tue, 5 Aug 2003 10:17:20 -0700 (PDT) Received: from hak.cnd.mcgill.ca (hak.cnd.mcgill.ca [132.216.11.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id CEC3843FAF for ; Tue, 5 Aug 2003 10:17:17 -0700 (PDT) (envelope-from mat@hak.cnd.mcgill.ca) Received: from hak.cnd.mcgill.ca (localhost [127.0.0.1]) by hak.cnd.mcgill.ca (8.12.8p1/8.12.8) with ESMTP id h75HH60a037980; Tue, 5 Aug 2003 13:17:06 -0400 (EDT) (envelope-from mat@hak.cnd.mcgill.ca) Received: (from mat@localhost) by hak.cnd.mcgill.ca (8.12.8p1/8.12.8/Submit) id h75HH6BC037979; Tue, 5 Aug 2003 13:17:06 -0400 (EDT) Date: Tue, 5 Aug 2003 13:17:06 -0400 From: Mathew Kanner To: Adam Message-ID: <20030805171706.GC34329@cnd.mcgill.ca> References: <1060103212.565.11.camel@jake> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1060103212.565.11.camel@jake> User-Agent: Mutt/1.4.1i Organization: I speak for myself, operating in Montreal, CANADA X-Spam-Status: No, hits=-32.5 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.50 X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) cc: freebsd-current@freebsd.org Subject: Re: Specifying default alternate sound device? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Aug 2003 17:17:21 -0000 On Aug 05, Adam wrote: > Is there any easy way to specify a default alternate sound device (eg, > /dev/dsp1). I have both onboard sound (/dev/dsp) and a SB Live card > (/dev/dsp1), but I don't use the onboard sound. It's really frustrating > to try to configure every single application (that uses sound) to use > /dev/dsp1 instead. > > Is there some safe/easy trick to set a general rule that all/most apps > will follow, so that they use /dev/dsp1 instead? With devfs, the default sound unit is tunable by a sysctl. tube# sysctl hw.snd.unit=0 ; ls -l dsp dsp0.0 dsp1.0 ; sysctl hw.snd.unit=1 ; ls -l dsp dsp0.0 dsp1.0 hw.snd.unit: 1 -> 0 crw-rw-rw- 1 root wheel 30, 3 Aug 5 11:24 dsp crw-rw-rw- 1 root wheel 30, 3 Aug 5 11:24 dsp0.0 crw-rw-rw- 1 root wheel 30, 19 Aug 5 11:24 dsp1.0 hw.snd.unit: 0 -> 1 crw-rw-rw- 1 root wheel 30, 19 Aug 5 11:24 dsp crw-rw-rw- 1 root wheel 30, 3 Aug 5 11:24 dsp0.0 crw-rw-rw- 1 root wheel 30, 19 Aug 5 11:24 dsp1.0 --Mat -- sig machine broken.