Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Sep 2010 19:04:51 +0800
From:      dave jones <s.dave.jones@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   ACPI questions about press power button
Message-ID:  <AANLkTi=L9qLO%2BqX_ik63Q1mrTEMgzLLRDFKndc%2Bv-u=a@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello,

I'm running FreeBSD 8 on my desktop. I want to write a file or do something
when I or someone presses power button. In devd.conf, I added the
following lines
for testing:

  notify 10 {
            match "system"          "ACPI";
            match "subsystem"      "Button";
            matcho "notify"            "0x00"
            action "echo hello world";
    };

But it doesn't work. Would anyone tell me how to do? Thanks.

Regards,
Dave.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=L9qLO%2BqX_ik63Q1mrTEMgzLLRDFKndc%2Bv-u=a>