On Friday 15 September 2006 11:58, Bo Ørsted Andresen wrote:

> Perhaps [1] will give you a clue. Otherwise feel free to ask again.
>
> [1]
> http://gentoo-wiki.com/HOWTO_Shutdown_headless_server_when_power-button_pre
>ssed

Thanks!  I hadn't spotted this article.  I've tried adding the following two 
lines in /etc/acpid/event/default but nothing much happened (as per the log 
further down):

event=button[ /]power.*
action=/usr/sbin/hibernate-ram

This is the log:
========================================
==> /var/log/acpid <==
[Fri Sep 15 19:59:26 2006] received event "button/sleep C1A3 00000080 
00000006"
[Fri Sep 15 19:59:26 2006] executing action "/etc/acpi/default.sh button/sleep 
C1A3 00000080 00000006"
[Fri Sep 15 19:59:26 2006] BEGIN HANDLER MESSAGES
[Fri Sep 15 19:59:26 2006] END HANDLER MESSAGES
[Fri Sep 15 19:59:26 2006] action exited with status 0
[Fri Sep 15 19:59:26 2006] completed event "button/sleep C1A3 00000080 
00000006"

==> /var/log/messages <==
Sep 15 19:59:26 lappy logger: ACPI event unhandled: button/sleep C1A3 00000080 
00000006
Sep 15 19:59:26 lappy logger: ACPI event unhandled: button/sleep C1A3 00000080 
00000006
========================================

It's as if the two lines I've added were ignored.

This is what dmesg shows about C1A3:
========================================
# dmesg | grep -i C1A3
ACPI: Sleep Button (CM) [C1A3]
C052 C17E C185 C0A4 C0AA C19F C1A0 C1A3 C1A4
========================================

What now?
-- 
Regards,
Mick

Attachment: pgpePFOKZf28v.pgp
Description: PGP signature

Reply via email to