Gentoo Archives: gentoo-user

From: Richard Fish <bigfish@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Power butten
Date: Sat, 16 Sep 2006 00:04:35
Message-Id: 7573e9640609151653t28bcebffod6c2039a2f51ab67@mail.gmail.com
In Reply to: Re: [gentoo-user] Power butten by Mick
1 On 9/15/06, Mick <michaelkintzios@×××××.com> wrote:
2 > case "$group" in
3 > button)
4 > case "$action" in
5 > power)
6 > /sbin/init 0
7 > ;;
8
9 You need to add a "sleep" case here to do whatever you want to happen
10 when you press the pwer button...
11
12 > *) log_unhandled $* ;;
13
14 ...or this case is executed. The "log_unhandled" function generates a
15 message in the form of:
16
17 ACPI event unhandled: button/foo
18
19 Sound familiar? ;-)
20
21 So if you want power to shutdown nicely, try adding:
22
23 sleep)
24 /sbin/init 0
25
26 -Richard
27 --
28 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Power butten Mick <michaelkintzios@×××××.com>