Date: Mon, 16 Aug 2010 11:12:26 -0400 From: Eitan Adler <lists@eitanadler.com> To: Alexandr Matveev <amatveev@masterhost.ru> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: enabling the "fn-f7" switch monitor functionality Message-ID: <AANLkTin5SOmg6iFF4BUsTL8DsiqowkD7aB%2Byy0ef56rH@mail.gmail.com> In-Reply-To: <4C694C05.5010705@masterhost.ru> References: <AANLkTinDA7x16UTQ2%2BmqO5i-oc8iokO66_9q_i0x%2BFCU@mail.gmail.com> <4C694C05.5010705@masterhost.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
# 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTin5SOmg6iFF4BUsTL8DsiqowkD7aB%2Byy0ef56rH>