Re: [lfs-support] handle power button in LFS

2012-05-18 Thread xinglp
2012/5/18 Bruce Dubbs : > Andrew Benton wrote: >> On Fri, 18 May 2012 14:44:00 +0100 >> xinglp wrote: >> >>> In order to use "power button" to shutdown or suspend my lfs. >>> I enabled the depreciate  /proc/acpi/event in kernel, >>> and install acpid to handle the button event. >>> It works well.

Re: [lfs-support] handle power button in LFS

2012-05-18 Thread Fernando de Oliveira
On 18-05-2012 12:18, Bruce Dubbs wrote: > Andrew Benton wrote: >> On Fri, 18 May 2012 14:44:00 +0100 xinglp >> wrote: >> >>> In order to use "power button" to shutdown or suspend my lfs. I >>> enabled the depreciate /proc/acpi/event in kernel, and install >>> acpid to handle the button event.

Re: [lfs-support] handle power button in LFS

2012-05-18 Thread Bruce Dubbs
Andrew Benton wrote: > On Fri, 18 May 2012 14:44:00 +0100 > xinglp wrote: > >> In order to use "power button" to shutdown or suspend my lfs. >> I enabled the depreciate /proc/acpi/event in kernel, >> and install acpid to handle the button event. >> It works well. >> >> But is there any clear way

Re: [lfs-support] handle power button in LFS

2012-05-18 Thread Andrew Benton
On Fri, 18 May 2012 14:44:00 +0100 xinglp wrote: > In order to use "power button" to shutdown or suspend my lfs. > I enabled the depreciate /proc/acpi/event in kernel, > and install acpid to handle the button event. > It works well. > > But is there any clear way to do that, such as by inittab

[lfs-support] handle power button in LFS

2012-05-18 Thread xinglp
In order to use "power button" to shutdown or suspend my lfs. I enabled the depreciate /proc/acpi/event in kernel, and install acpid to handle the button event. It works well. But is there any clear way to do that, such as by inittab or udev or kernel callout userspace script ( /proc/sys/kernel/p