From owner-freebsd-questions@FreeBSD.ORG Thu Aug 19 18:52:49 2010 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 3D2791065670 for ; Thu, 19 Aug 2010 18:52:49 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id F1A9E8FC12 for ; Thu, 19 Aug 2010 18:52:48 +0000 (UTC) Received: by gwj23 with SMTP id 23so1045528gwj.13 for ; Thu, 19 Aug 2010 11:52:48 -0700 (PDT) Received: by 10.151.122.3 with SMTP id z3mr470018ybm.267.1282243967723; Thu, 19 Aug 2010 11:52:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.150.135 with HTTP; Thu, 19 Aug 2010 11:52:27 -0700 (PDT) From: Eitan Adler Date: Thu, 19 Aug 2010 14:52:27 -0400 Message-ID: To: Alexandr Matveev Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Mailing List Subject: devd & enabling the "fn-f7" switch monitor functionality 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: Thu, 19 Aug 2010 18:52:49 -0000 Any further input on this issue? On Mon, Aug 16, 2010 at 11:12 AM, Eitan Adler wrote: > # kldstat|grep acpi_ibm > 12 =C2=A0 =C2=A01 0xc121d000 5244 =C2=A0 =C2=A0 acpi_ibm.ko > # tail -6 /etc/devd.conf > notify 0 { > =C2=A0 =C2=A0 =C2=A0match "system" =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"ACP= I"; > =C2=A0 =C2=A0 =C2=A0match "subsystem" =C2=A0 =C2=A0 =C2=A0 "IBM"; > =C2=A0 =C2=A0 =C2=A0match "notify" =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"0x0= 7"; > =C2=A0 =C2=A0 =C2=A0action "/home/eitan/xbin/do-switch-screen.sh"; > }; > > # ls -laod /home/eitan/xbin/do-switch-screen.sh > -rwxr-xr-x =C2=A01 eitan =C2=A0eitan =C2=A0- 88 Aug 16 10:57:05 2010 > /home/eitan/xbin/do-switch-screen.sh* > % dmesg|tail > acpi_ec0: EcRead: failed waiting to get data > ACPI Exception: AE_NO_HARDWARE_RESPONSE, Returned by Handler for > [EmbeddedControl] (20100331/evregion-588) > ACPI Error (psparse-0633): Method parse/execution failed > [\\_SB_.PCI0.LPCB.BAT1._BST] (Node 0xc6ad8d40), > AE_NO_HARDWARE_RESPONSE > acpi_ec0: EcRead: failed waiting to get data > ACPI Exception: AE_NO_HARDWARE_RESPONSE, Returned by Handler for > [EmbeddedControl] (20100331/evregion-588) > ACPI Error (psparse-0633): Method parse/execution failed > [\\_SB_.PCI0.LPCB.BAT1._BST] (Node 0xc6ad8d40), > AE_NO_HARDWARE_RESPONSE > drm0: [ITHREAD] > acpi_ec0: EcRead: failed waiting to get data > ACPI Exception: AE_NO_HARDWARE_RESPONSE, Returned by Handler for > [EmbeddedControl] (20100331/evregion-588) > ACPI Error (psparse-0633): Method parse/execution failed > [\\_SB_.PCI0.LPCB.BAT1._BST] (Node 0xc6ad8d40), > AE_NO_HARDWARE_RESPONSE > > In the script I have "touch $0.ran" but the file does not get created. > > > Is there some program that would allow me to watch ACPI events? Is > there some way I could known that the key is 0x07? > >> =C2=A0Add >> >> =C2=A0notify 0 { >> =C2=A0 =C2=A0 =C2=A0 match "system" =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"A= CPI"; >> =C2=A0 =C2=A0 =C2=A0 match "subsystem" =C2=A0 =C2=A0 =C2=A0 "IBM"; >> =C2=A0 =C2=A0 =C2=A0 match "notify" =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"0= x07"; >> =C2=A0 =C2=A0 =C2=A0 action "/full/path/to/script"; >> }; >> >> =C2=A0to /etc/devd.conf > > > -- > Eitan Adler > --=20 Eitan Adler