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 1GOKDt-0005tK-Q4 for garchives@archives.gentoo.org; Fri, 15 Sep 2006 20:23:42 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k8FKMrGh024989; Fri, 15 Sep 2006 20:22:53 GMT Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k8FKIevS031083 for ; Fri, 15 Sep 2006 20:18:40 GMT Received: by py-out-1112.google.com with SMTP id d42so3296270pyd for ; Fri, 15 Sep 2006 13:18:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=googlemail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sx1crISIqM0IQbP978PaqLdTLcfpaPPAf93ncWQBzfasOePn7hrOZduInZXFtJX+uJQLmfPrd9bcEEWzGMo3fbeGmWMrWDUTDLSmiphSTSebAErBsLS+l75TFQ3hJvywoFnJRxTmhjwEzV5PCT2yy5FlzTMY2ye4i5YPcIW01pQ= Received: by 10.64.204.3 with SMTP id b3mr12349583qbg; Fri, 15 Sep 2006 13:18:39 -0700 (PDT) Received: by 10.64.213.16 with HTTP; Fri, 15 Sep 2006 13:18:39 -0700 (PDT) Message-ID: <1f05046e0609151318he2a5194u6115d0c1f6f271b7@mail.gmail.com> Date: Fri, 15 Sep 2006 22:18:39 +0200 From: "=?UTF-8?Q?Nico_Sch=C3=BCmann?=" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Power butten In-Reply-To: <200609152022.28532.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=UTF-8; format=flowed Content-Disposition: inline References: <200609141817.16902.gentoo@kd4ccd.dynalias.org> <200609151147.38748.michaelkintzios@gmail.com> <200609151258.47032.bo.andresen@zlin.dk> <200609152022.28532.michaelkintzios@gmail.com> X-MIME-Autoconverted: from base64 to 8bit by robin.gentoo.org id k8FKIevS031083 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id k8FKMrGv024989 X-Archives-Salt: 64c0f053-c504-4ade-9500-a2a060d4178b X-Archives-Hash: 5f749f733e68eeb632ac8abea49d6a4f 2006/9/15, Mick : > On Friday 15 September 2006 11:58, Bo =C3=98rsted Andresen wrote: > Thanks! I hadn't spotted this article. I've tried adding the followin= g two > lines in /etc/acpid/event/default but nothing much happened (as per the= log > further down): > > event=3Dbutton[ /]power.* > action=3D/usr/sbin/hibernate-ram Well, my configuration slightly differs from your one. --- /etc/acpid/events/default >event=3D.* >action=3D/etc/acpi/default.sh %e --- /etc/acpid/default.sh >set $* > >group=3D${1/\/*/} >action=3D${1/*\//} > >case "$group" in > button) > case "$action" in > power) echo disk > /sys/power/state > ;; > sleep) echo disk > /sys/power/state > ;; > *) logger "ACPI action $action is not defin= ed" > ;; > esac > ;; > > *) > logger "ACPI group $group / action $action is not define= d" > ;; >esac button/power and button/sleep are _not_ the same and as the log tells us, it's a button/sleep event. If I get this right, in your configuration, only a button/power is handeled. Regards, Nico --=20 gentoo-user@gentoo.org mailing list