From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 67A41E0076F; Tue, 3 Feb 2015 13:30:19 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (jfabernathy[at]outlook.com) * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [65.54.190.152 listed in list.dnswl.org] Received: from BAY004-OMC3S14.hotmail.com (bay004-omc3s14.hotmail.com [65.54.190.152]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id ABFBEE005B4 for ; Tue, 3 Feb 2015 13:30:13 -0800 (PST) Received: from BAY169-W106 ([65.54.190.189]) by BAY004-OMC3S14.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Tue, 3 Feb 2015 13:30:13 -0800 X-TMN: [qVAvNKacC+j0OeX+B8rioGXT/bmoS7l8] X-Originating-Email: [jfabernathy@outlook.com] Message-ID: From: Jim Abernathy To: "yocto@yoctoproject.org" Date: Tue, 3 Feb 2015 16:30:12 -0500 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 03 Feb 2015 21:30:13.0299 (UTC) FILETIME=[98474030:01D03FF8] Subject: ACPI powerbtn X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Feb 2015 21:30:19 -0000 Content-Type: multipart/alternative; boundary="_9509e7a2-6825-4ad9-bb81-cc7104017493_" --_9509e7a2-6825-4ad9-bb81-cc7104017493_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I need to add something that will 'shutdown -h now' when the power button i= s pressed. I would figure that ACPI is already included in the core-image-= base of the NUC bsp. Do I need to include a new file in /etc/acpi/events or do I need to include= some package? Jim A = --_9509e7a2-6825-4ad9-bb81-cc7104017493_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I need to add something that wil= l 'shutdown -h now' when the power button is pressed. =3B I would figur= e that ACPI is already included in the core-image-base of the NUC bsp.
<= br>Do I need to include a new file in /etc/acpi/events or do I need to incl= ude some package?

Jim A

= --_9509e7a2-6825-4ad9-bb81-cc7104017493_-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 05ACAE0076F; Tue, 3 Feb 2015 13:35:16 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.216.44 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message Received: from mail-qa0-f44.google.com (mail-qa0-f44.google.com [209.85.216.44]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 65EB9E005B4 for ; Tue, 3 Feb 2015 13:35:06 -0800 (PST) Received: by mail-qa0-f44.google.com with SMTP id w8so35857068qac.3 for ; Tue, 03 Feb 2015 13:35:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=9Qs5MOEDtLDwEvkHf0Gxm9hvGgu32h02WeZYlAtebBo=; b=FC/zhdSOhZ98iyUGtyRx6lx3uW4vAz9+HzYnXXlzibT3RheyDOHLuXXkPV4MjVwcr0 xeIjuLKHJhh/zYbN1WaK5TtOE7wwpy8knmjlgwvKV3UdPf+6QoRjO0g6vFVdqr0WpaXp r+MRFPzrx3dGxTM+617s2x08E9orBdlYDco1vlVmQdQgp069oO30XiUVZXy/fRD8QO6u TyRy/jXhAouQ1ax1nbsEQwIoD0vkTuHuyIXMGMwSmo9RD8bXO/uFYfIvfSSaYwrrZEQV 4lCtfMy/dDNcwnkoAZEE16y+qcdPquTVR+NdbtkmPyZJSTGc9dIv3LJ1W3bkJ55Vu4De wv9A== X-Gm-Message-State: ALoCoQlCjO5nXNbj8Cpi98Tkcz0lpqxg848CTQAsPUIM5NN3YC6I/GXaX00viSoTCUZvuo3rf3hT X-Received: by 10.224.24.132 with SMTP id v4mr58090677qab.17.1422999306132; Tue, 03 Feb 2015 13:35:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.96.166 with HTTP; Tue, 3 Feb 2015 13:34:45 -0800 (PST) In-Reply-To: References: From: "Burton, Ross" Date: Tue, 3 Feb 2015 21:34:45 +0000 Message-ID: To: Jim Abernathy Cc: "yocto@yoctoproject.org" Subject: Re: ACPI powerbtn X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Feb 2015 21:35:16 -0000 Content-Type: multipart/alternative; boundary=001a11c2b49e287e9d050e35d895 --001a11c2b49e287e9d050e35d895 Content-Type: text/plain; charset=UTF-8 On 3 February 2015 at 21:30, Jim Abernathy wrote: > I need to add something that will 'shutdown -h now' when the power button > is pressed. I would figure that ACPI is already included in the > core-image-base of the NUC bsp. > > Do I need to include a new file in /etc/acpi/events or do I need to > include some package? > I'm literally signing off for the day but for what it's worth core-image-sato does that already on my NUC, so there must be something in that image that makes it work... maybe acpid or acpi-support isn't part of core-image-base? Ross --001a11c2b49e287e9d050e35d895 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
--001a11c2b49e287e9d050e35d895-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id E5D90E00988; Wed, 4 Feb 2015 04:36:34 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (jfabernathy[at]outlook.com) * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [65.55.111.81 listed in list.dnswl.org] Received: from BLU004-OMC2S6.hotmail.com (blu004-omc2s6.hotmail.com [65.55.111.81]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 562F7E0097F for ; Wed, 4 Feb 2015 04:36:28 -0800 (PST) Received: from BLU437-SMTP71 ([65.55.111.72]) by BLU004-OMC2S6.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Wed, 4 Feb 2015 04:36:27 -0800 X-TMN: [MDStZBLkI7CzisreWrx6W0kqgWun5nVe] X-Originating-Email: [jfabernathy@outlook.com] Message-ID: MIME-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) From: James Abernathy In-Reply-To: Date: Wed, 4 Feb 2015 07:36:27 -0500 References: To: "Burton, Ross" X-Mailer: Apple Mail (2.2070.6) X-OriginalArrivalTime: 04 Feb 2015 12:36:26.0048 (UTC) FILETIME=[30F65400:01D04077] Cc: "yocto@yoctoproject.org" Subject: Re: ACPI powerbtn X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2015 12:36:35 -0000 Content-Type: multipart/alternative; boundary="Apple-Mail=_3744533E-0B6E-4D5C-81C3-556E93829EA9" --Apple-Mail=_3744533E-0B6E-4D5C-81C3-556E93829EA9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" > On Feb 3, 2015, at 4:34 PM, Burton, Ross = wrote: >=20 >=20 > On 3 February 2015 at 21:30, Jim Abernathy > wrote: > I need to add something that will 'shutdown -h now' when the power = button is pressed. I would figure that ACPI is already included in the = core-image-base of the NUC bsp. >=20 > Do I need to include a new file in /etc/acpi/events or do I need to = include some package? >=20 > I'm literally signing off for the day but for what it's worth = core-image-sato does that already on my NUC, so there must be something = in that image that makes it work... maybe acpid or acpi-support isn't = part of core-image-base? >=20 > Ross I went back and built core-image-sato and the power button does nothing. = I don=E2=80=99t see anything in the /etc/acpi/events directory. Same = as core-image-base. Jim A --Apple-Mail=_3744533E-0B6E-4D5C-81C3-556E93829EA9 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8"


On 3 February 2015 at 21:30, Jim Abernathy <jfabernathy@outlook.com> = wrote:
I need to add something that will 'shutdown -h now' when the = power button is pressed.  I would figure that ACPI is already = included in the core-image-base of the NUC bsp.

Do I need to include a new file in /etc/acpi/events or do I = need to include some package?

I'm literally signing off for = the day but for what it's worth core-image-sato does that already on my = NUC, so there must be something in that image that makes it work... =  maybe acpid or acpi-support isn't part of = core-image-base?

Ross

I went back and = built core-image-sato and the power button does nothing.  I don=E2=80= =99t see anything in the /etc/acpi/events directory.  Same as = core-image-base.

Jim A

= --Apple-Mail=_3744533E-0B6E-4D5C-81C3-556E93829EA9-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 20328E00948; Wed, 4 Feb 2015 12:17:40 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (jfabernathy[at]outlook.com) * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [65.54.190.81 listed in list.dnswl.org] Received: from BAY004-OMC2S6.hotmail.com (bay004-omc2s6.hotmail.com [65.54.190.81]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id CAC75E00753 for ; Wed, 4 Feb 2015 12:17:34 -0800 (PST) Received: from BAY169-W106 ([65.54.190.124]) by BAY004-OMC2S6.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Wed, 4 Feb 2015 12:17:34 -0800 X-TMN: [KBG0CmpcJIzZynOck5U7k1VoQWJtXAUt] X-Originating-Email: [jfabernathy@outlook.com] Message-ID: From: Jim Abernathy To: "Burton, Ross" Date: Wed, 4 Feb 2015 15:17:34 -0500 Importance: Normal In-Reply-To: References: , , MIME-Version: 1.0 X-OriginalArrivalTime: 04 Feb 2015 20:17:34.0529 (UTC) FILETIME=[9CA97B10:01D040B7] Cc: "yocto@yoctoproject.org" Subject: Re: ACPI powerbtn X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2015 20:17:40 -0000 Content-Type: multipart/alternative; boundary="_93893430-b454-4d22-bc22-3a2c181fea2f_" --_93893430-b454-4d22-bc22-3a2c181fea2f_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Okay=2C I found a solution that works for core-image-base for NUC. 1. create /etc/acpi/events/powerbtn event=3Dbutton[ /]power action=3D/etc/acpi/powerbtn.sh 2. create /etc/acpi/powerbtn.sh #!/bin/sh # /etc/acpi/powerbtn.sh # Initiates a shutdown when the power putton has been # pressed. /sbin/shutdown -h now "Power button pressed" 3. reboot From: jfabernathy@outlook.com Date: Wed=2C 4 Feb 2015 07:36:27 -0500 To: ross.burton@intel.com CC: yocto@yoctoproject.org Subject: Re: [yocto] ACPI powerbtn On Feb 3=2C 2015=2C at 4:34 PM=2C Burton=2C Ross wr= ote: On 3 February 2015 at 21:30=2C Jim Abernathy wrot= e: I need to add something that will 'shutdown -h now' when the power button i= s pressed. I would figure that ACPI is already included in the core-image-= base of the NUC bsp. Do I need to include a new file in /etc/acpi/events or do I need to include= some package? I'm literally signing off for the day but for what it's worth core-image-sa= to does that already on my NUC=2C so there must be something in that image = that makes it work... maybe acpid or acpi-support isn't part of core-image= -base? Ross=0A= I went back and built core-image-sato and the power button does nothing. I= don=92t see anything in the /etc/acpi/events directory. Same as core-imag= e-base. Jim A -- =0A= _______________________________________________=0A= yocto mailing list=0A= yocto@yoctoproject.org=0A= https://lists.yoctoproject.org/listinfo/yocto = --_93893430-b454-4d22-bc22-3a2c181fea2f_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
Okay=2C I found a solution that = works for core-image-base for NUC.

1. create /etc/acpi/events/powerb= tn

event=3Dbutton[ /]power
action=3D/etc/acpi/powerbtn.sh

= 2. create /etc/acpi/powerbtn.sh

#!/bin/sh
# /etc/acpi/powerbtn.sh=
# Initiates a shutdown when the power putton has been
# pressed.
= /sbin/shutdown -h now "Power button pressed"

3. reboot



From: jfabernathy@outlook.com
Date: Wed=2C 4 = Feb 2015 07:36:27 -0500
To: ross.burton@intel.com
CC: yocto@yoctoproj= ect.org
Subject: Re: [yocto] ACPI powerbtn


<= div>On Feb 3=2C 2015=2C at 4:34 PM=2C Burton=2C Ross <=3Bross.burton@intel.com>=3B wrote:


On 3 February 2015 at 21:30= =2C Jim Abernathy <=3Bjfabernathy@outlook.com>=3B wrote:=
I need to add something that will= 'shutdown -h now' when the power button is pressed. =3B I would figure= that ACPI is already included in the core-image-base of the NUC bsp.
Do I need to include a new file in /etc/acpi/events or do I need to inclu= de some package?

=
I'm literally signing off for the day but for what it's worth core-im= age-sato does that already on my NUC=2C so there must be something in that = image that makes it work...  =3Bmaybe acpid or acpi-support isn't part = of core-image-base?

Ross
=0A=

I went back and built core-image-sato and= the power button does nothing.  =3BI don=92t see anything in the /etc/= acpi/events directory.  =3BSame as core-image-base.

Jim A


-- =0A= _______________________________________________=0A= yocto mailing list=0A= yocto@yoctoproject.org=0A= https://lists.yoctoproject.org/listinfo/yocto
= --_93893430-b454-4d22-bc22-3a2c181fea2f_--