Sorry, maybe I don't describe the question clearly.
My power button and others such as halt shudown commands are work correctly. But finally, it shows "Power down", but not power off. I mean the screen is still on, the cpu fan is still noise, the usb devices are still powered on, it seems only the cdrom is powered off, I can't open it. I must press the power button for several seconds to power off completely.
So the problem is not about the acpi event-handler mapping. I use archlinux, and have something like this in /etc/acpi/handler.sh:
case "$1" in
button/power)
#echo "PowerButton pressed!">/dev/tty5
case "$2" in
PWRF) pm-hibernate ;;
*) logger "ACPI action undefined: $2" ;;
esac
...
and it works fine, except one thing, of course, don't power off.
Sorry, maybe I don't
Sorry, maybe I don't describe the question clearly.
My power button and others such as halt shudown commands are work correctly. But finally, it shows "Power down", but not power off. I mean the screen is still on, the cpu fan is still noise, the usb devices are still powered on, it seems only the cdrom is powered off, I can't open it. I must press the power button for several seconds to power off completely.
So the problem is not about the acpi event-handler mapping. I use archlinux, and have something like this in /etc/acpi/handler.sh:
case "$1" in
button/power)
#echo "PowerButton pressed!">/dev/tty5
case "$2" in
PWRF) pm-hibernate ;;
*) logger "ACPI action undefined: $2" ;;
esac
...
and it works fine, except one thing, of course, don't power off.
Regards