From owner-freebsd-mobile@FreeBSD.ORG Thu Mar 17 16:38:37 2005 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4C89916A4CE; Thu, 17 Mar 2005 16:38:37 +0000 (GMT) Received: from postal2.es.net (postal2.es.net [198.128.3.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B08643D4C; Thu, 17 Mar 2005 16:38:37 +0000 (GMT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal2.es.net (Postal Node 2) with ESMTP (SSL) id IBA74465; Thu, 17 Mar 2005 08:38:36 -0800 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id B29545D08; Thu, 17 Mar 2005 08:38:35 -0800 (PST) To: "Michael L. Hostbaek" In-reply-to: Your message of "Thu, 17 Mar 2005 16:08:09 +0100." <20050317150809.GC46793@mich2.itxmarket.com> Date: Thu, 17 Mar 2005 08:38:35 -0800 From: "Kevin Oberman" Message-Id: <20050317163835.B29545D08@ptavv.es.net> cc: Thiemo Nordenholz cc: freebsd-mobile@FreeBSD.org Subject: Re: Function keys X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2005 16:38:37 -0000 > Date: Thu, 17 Mar 2005 16:08:09 +0100 > From: "Michael L. Hostbaek" > Sender: owner-freebsd-mobile@freebsd.org > > Thiemo Nordenholz (list+ie7qf001jl79sii4) writes: > > > > I would then look into the audio configuration... E.g. "does mixer(8) work?" > > Then, I would have a look into what hotkeys does to adjust the volume -- > > after all, it seems to do something which just doesn't work - but the > > triggering of actions through the special keys has succeeded. > > Actually I realized that hotkeys(1) was adjusting the volume through > SOUND_MIXER_WRITE_VOLUME - and my soundcard only responds through pcm(4) > (for god knows what reason) - so I simply changed all instances of > SOUND_MIXER_READ_VOLUME and SOUND_MIXER_WRITE_VOLUME to > SOUND_MIXER_READ_PCM and SOUND_MIXER_WRITE_PCM in the hotkeys.c > > It works now ! It may work well enough for you, but it may only partially work and you may lack volume control for some sources because pcm is and input level and the volume controls should really control the output level. Take a look at the mixer(8) channels available and see if you have an "ogain" mixer. If so, this is Output Gain and does exactly what Volume does on other hardware. It is a master output level and control volume over all. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634