From owner-freebsd-questions@FreeBSD.ORG Mon Aug 16 15:12:47 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 B3A961065693 for ; Mon, 16 Aug 2010 15:12:47 +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 79F5B8FC13 for ; Mon, 16 Aug 2010 15:12:47 +0000 (UTC) Received: by gwj23 with SMTP id 23so2406452gwj.13 for ; Mon, 16 Aug 2010 08:12:46 -0700 (PDT) Received: by 10.150.7.14 with SMTP id 14mr5401413ybg.215.1281971566558; Mon, 16 Aug 2010 08:12:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.148.9 with HTTP; Mon, 16 Aug 2010 08:12:26 -0700 (PDT) In-Reply-To: <4C694C05.5010705@masterhost.ru> References: <4C694C05.5010705@masterhost.ru> From: Eitan Adler Date: Mon, 16 Aug 2010 11:12:26 -0400 Message-ID: To: Alexandr Matveev Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Mailing List Subject: Re: 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: Mon, 16 Aug 2010 15:12:47 -0000 # kldstat|grep acpi_ibm 12 1 0xc121d000 5244 acpi_ibm.ko # tail -6 /etc/devd.conf notify 0 { match "system" "ACPI"; match "subsystem" "IBM"; match "notify" "0x07"; action "/home/eitan/xbin/do-switch-screen.sh"; }; # ls -laod /home/eitan/xbin/do-switch-screen.sh -rwxr-xr-x 1 eitan eitan - 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"AC= PI"; > =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"0x= 07"; > =C2=A0 =C2=A0 =C2=A0 action "/full/path/to/script"; > }; > > =C2=A0to /etc/devd.conf --=20 Eitan Adler