devd & enabling the "fn-f7" switch monitor functionality
Eitan Adler
lists at eitanadler.com
Thu Aug 19 18:52:49 UTC 2010
Any further input on this issue?
On Mon, Aug 16, 2010 at 11:12 AM, Eitan Adler <lists at eitanadler.com> wrote:
> # 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?
>
>> Add
>>
>> notify 0 {
>> match "system" "ACPI";
>> match "subsystem" "IBM";
>> match "notify" "0x07";
>> action "/full/path/to/script";
>> };
>>
>> to /etc/devd.conf
>
>
> --
> Eitan Adler
>
--
Eitan Adler
More information about the freebsd-questions
mailing list