Date: Thu, 19 Aug 2010 14:52:27 -0400 From: Eitan Adler <lists@eitanadler.com> To: Alexandr Matveev <amatveev@masterhost.ru> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: devd & enabling the "fn-f7" switch monitor functionality Message-ID: <AANLkTikN=7rchgJutSdherSZ=r%2B_PON7Ro-RRkjv-66w@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Any further input on this issue? On Mon, Aug 16, 2010 at 11:12 AM, Eitan Adler <lists@eitanadler.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikN=7rchgJutSdherSZ=r%2B_PON7Ro-RRkjv-66w>