From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GONfe-0005vT-KE for garchives@archives.gentoo.org; Sat, 16 Sep 2006 00:04:35 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k8G03Ns5011673; Sat, 16 Sep 2006 00:03:23 GMT Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.234]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k8FNrANn004710 for ; Fri, 15 Sep 2006 23:53:10 GMT Received: by wx-out-0506.google.com with SMTP id r21so3804824wxc for ; Fri, 15 Sep 2006 16:53:09 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=i2eH2BPT/ttYAdtNplLDFoiee1zozk8xOu1Yq1RiZJ+B32ERa9UzQvXpLh2xYk0+3qfmBAEkK1foiuwlurVMMWuEOvcWmSkgMUTXsooaNQUKgY/BxtbFITPFjEVC3NC81BvGN17y+xC0OhrccG+gQcf1jk+iDIKNakfbu9oMXfk= Received: by 10.70.65.5 with SMTP id n5mr13861482wxa; Fri, 15 Sep 2006 16:53:09 -0700 (PDT) Received: by 10.70.110.1 with HTTP; Fri, 15 Sep 2006 16:53:09 -0700 (PDT) Message-ID: <7573e9640609151653t28bcebffod6c2039a2f51ab67@mail.gmail.com> Date: Fri, 15 Sep 2006 16:53:09 -0700 From: "Richard Fish" Sender: richard.j.fish@gmail.com To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Power butten In-Reply-To: <200609152336.11822.michaelkintzios@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200609141817.16902.gentoo@kd4ccd.dynalias.org> <200609152022.28532.michaelkintzios@gmail.com> <1f05046e0609151318he2a5194u6115d0c1f6f271b7@mail.gmail.com> <200609152336.11822.michaelkintzios@gmail.com> X-Google-Sender-Auth: 4bf908c7d06461af X-Archives-Salt: a24a4a6c-48e9-4941-bed6-83fa5387cbd7 X-Archives-Hash: 39ba1a401bfce72ab1ff02186037ea1e On 9/15/06, Mick wrote: > case "$group" in > button) > case "$action" in > power) > /sbin/init 0 > ;; You need to add a "sleep" case here to do whatever you want to happen when you press the pwer button... > *) log_unhandled $* ;; ...or this case is executed. The "log_unhandled" function generates a message in the form of: ACPI event unhandled: button/foo Sound familiar? ;-) So if you want power to shutdown nicely, try adding: sleep) /sbin/init 0 -Richard -- gentoo-user@gentoo.org mailing list