From owner-freebsd-questions@FreeBSD.ORG Mon Nov 20 16:13:55 2006 Return-Path: <owner-freebsd-questions@FreeBSD.ORG> X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5569B16A47B for <questions@freebsd.org>; Mon, 20 Nov 2006 16:13:55 +0000 (UTC) (envelope-from nvidican@wmptl.com) Received: from wmptl.net (mail.wmptl.com [216.8.159.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id E921E43DAB for <questions@freebsd.org>; Mon, 20 Nov 2006 16:12:30 +0000 (GMT) (envelope-from nvidican@wmptl.com) Received: from [10.0.0.104] (r3140ca.wmptl.net [10.0.0.104]) by wmptl.net (8.13.4/8.13.4) with ESMTP id kAKGCgLs006627; Mon, 20 Nov 2006 11:12:43 -0500 (EST) (envelope-from nvidican@wmptl.com) Message-ID: <4561D3F9.5080908@wmptl.com> Date: Mon, 20 Nov 2006 11:12:41 -0500 From: Nathan Vidican <nvidican@wmptl.com> User-Agent: Thunderbird 1.5.0.7 (X11/20061027) MIME-Version: 1.0 To: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> References: <455E1159.9000605@wmptl.com> <444psut9k4.fsf@be-well.ilk.org> In-Reply-To: <444psut9k4.fsf@be-well.ilk.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.54 on 10.0.0.80 Cc: questions@freebsd.org Subject: Re: HP pavillion dv8000 hotkey mappings X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions <freebsd-questions.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions> List-Post: <mailto:freebsd-questions@freebsd.org> List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=subscribe> X-List-Received-Date: Mon, 20 Nov 2006 16:13:55 -0000 Lowell Gilbert wrote: > Nathan Vidican <nvidican@wmptl.com> writes: > > >> Does anyone know how to make use of the hotkeys for multimedia >> functions? (ie: play/pause, stop, prev, next, vol-up, vol-down, mute, >> etc) ... Have found several articles on these machines, but most >> pertaining to the way one particular linux distro vs another makes use >> of these keys. >> >> Most specifically, I'd like to get them to work from within kde, mixer >> function more than anything (need quick mute/vol-up/down - could live >> without the rest). I'm just not sure where/how to map the keys using >> freebsd/xorg? >> >> Hoping it'll be something simple, but what? - or is this something >> more complex regarding acpi ? >> >> Any ideas, suggestions, comments, or redirects greatly appreciated. >> > > If they produce x events (check with xev), then they can be mapped > like any other event. I recently had such a keyboard, however, and > those keys didn't produce any events. I didn't have a chance to play > with it much, though; I had to get rid of it for unrelated reasons. > > > running xev, reports keypress events when the buttons are pressed (also when the buttons are pressed using the wireless media remote), ie (the following is output on the console when pressing the 'Volume Up' button on the actual laptop: KeyPress event, serial 31, synthetic NO, window 0x2600001, root 0x44, subw 0x2600002, time 5348585, (46,24), root:(1056,685), state 0x0, keycode 176 (keysym 0x0, NoSymbol), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False and again, when using the wireless IR remote, I get: KeyRelease event, serial 31, synthetic NO, window 0x2600001, root 0x44, subw 0x2600002, time 5346693, (46,24), root:(1056,685), state 0x0, keycode 176 (keysym 0x0, NoSymbol), same_screen YES, XLookupString gives 0 bytes: So, now the question turns to how do I map these keys to functions like the mixer? Specifically, how to do so within KDE ? - kmix, (kde's interface to mixer), has the option to set global hotkeys, but only accepts known keyboard presses into a text box. Posing the question of questions; is it that I need to find out how to map unknown keys within a program, or that I need to figure out how to map unknown keys into known keys? Is it possible to define these keys, when the laptop was original (booting Windows XP home), I was able to find the keypress events using WinAMP's global hotkey config (similar to kde's kmix's dialog) with keynames like 'VolUP','NextTrack', etc). I am assuming this was a function of the keyboard driver or some other mapping created by HP when they installed windows - the key now then, is how do I accomplish the same under xorg/kde ? -- Nathan Vidican nvidican@wmptl.com