From owner-freebsd-questions@FreeBSD.ORG Tue Sep 15 10:40:14 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 5E82F1065696 for ; Tue, 15 Sep 2009 10:40:14 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 277FF8FC0C for ; Tue, 15 Sep 2009 10:40:14 +0000 (UTC) Received: from smoochies.rachie.is-a-geek.net (mailhub.lan.rachie.is-a-geek.net [192.168.2.11]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id 5A7467E821; Tue, 15 Sep 2009 02:40:26 -0800 (AKDT) From: Mel Flynn To: freebsd-questions@freebsd.org Date: Tue, 15 Sep 2009 12:40:10 +0200 User-Agent: KMail/1.12.1 (FreeBSD/8.0-BETA4; KDE/4.3.1; i386; ; ) References: <200909150138.18798.mel.flynn+fbsd.questions@mailing.thruhere.net> <20090915070100.GA91800@slackbox.xs4all.nl> In-Reply-To: <20090915070100.GA91800@slackbox.xs4all.nl> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200909151240.10909.mel.flynn+fbsd.questions@mailing.thruhere.net> Cc: Roland Smith , Eitan Adler , Robert Huff , Polytropon Subject: Re: rebinding keys to functions 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: Tue, 15 Sep 2009 10:40:14 -0000 On Tuesday 15 September 2009 09:01:00 Roland Smith wrote: > On Tue, Sep 15, 2009 at 01:38:18AM +0200, Mel Flynn wrote: > > > Not all of them. My laptop is based on a quite modern cantiga (aka > > > centrino2) PM45 chipset (from 2008, according to Wikipedia). The > > > function keys for changing the creen brightness and sound volume work > > > OK with FreeBSD, even though xev doesn't see them. So that signal seems > > > to go directly to the hardware. > > > > Most likely not entirely. Having acpidump(8)ed a few laptops, I have seen > > references to multimedia keys in there. However I know not nearly enough > > about ACPI to know if the OS can intercept/reroute the bindings. A gamble > > I would take is to let FreeBSD post itself as a windows variant to acpi, > > by setting hw.acpi.osname="Windows 2001" in /boot/loader.conf. Then > > recheck xev. > > What would you see in the acpidump that indicates those keys? Example, HPDV9000: If (LEqual (Local1, 0x07)) { Store ("Fn+F7 Pressed", Debug) If (LEqual (OSYS, 0x07D6)) { If (IGDS) { Notify (\_SB.PCI0.GFX0.DD04, 0x87) } Else { Notify (\_SB.PCI0.PEGP.VGA.LCD, 0x87) } } Else { Store (0x15, SMIF) Store (0x00, TRP0) } Fn+F7 = screen darker. See the ref to OSYS. Also: Method (_Q16, 0, NotSerialized) { Store ("!!! DVD/Music Button pressed !!!", Debug) If (LEqual (OSYS, 0x07D6)) { And: If (\_OSI ("Windows 2006")) { Store (0x07D6, OSYS) } -- Mel