From owner-freebsd-questions@FreeBSD.ORG Sun Sep 5 11:30:50 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 4E33B10656C6 for ; Sun, 5 Sep 2010 11:30:50 +0000 (UTC) (envelope-from s.dave.jones@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 051C58FC18 for ; Sun, 5 Sep 2010 11:30:49 +0000 (UTC) Received: by vws7 with SMTP id 7so2911428vws.13 for ; Sun, 05 Sep 2010 04:30:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=BS+X+ZIK+RuTYZD72ID7pdGYlm1oirhWzh0mQL8CQuM=; b=NC4/m/znSUkNaoGfrdEk6AgJ3/Mo8V3FOo3GkNmojEuW0HCgA7oaL9I9iEHovUqUgA aOBa+mXNAdsL9VLoWnI2aD63JMoC4qoB0zWdV9+txfNpNjNsz5xx6shUe4PEXDgCX/D0 V5fsfFuP+3GqFD0wV79CCnyDOlV7yPNLSaO8U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=QuuKnYhiC38Gn2RnLAZ8Mr6eyt4xfjBQZvHoQZ5WMFsaLlyXx3+9vXMu5s96JMIB5B 0EAdHRqNBGmiBN5h1Jw0awkncZxsEuh/+6oXbJ647f2n0MnkMoTxIDNSFRHRVhm5yP81 LHOX7v0d9RZ5IpK454i7vnh2rL9cGh84ZYrNo= MIME-Version: 1.0 Received: by 10.220.169.14 with SMTP id w14mr775041vcy.17.1283684691219; Sun, 05 Sep 2010 04:04:51 -0700 (PDT) Received: by 10.220.79.69 with HTTP; Sun, 5 Sep 2010 04:04:51 -0700 (PDT) Date: Sun, 5 Sep 2010 19:04:51 +0800 Message-ID: From: dave jones To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: ACPI questions about press power button 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: Sun, 05 Sep 2010 11:30:50 -0000 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.