13 Apr 2014

Power Button Ignores KDE’s Setting And Shutdowns (Slackware)

If your energy saving’s power button action setting for “When power button is pressed” in AC Power and Battery Power is being ignored, you can comment two lines in /etc/acpi/acpi_handler.sh to fix this issue:

Comment:

#      power) /sbin/init 0
#         ;;

Commented out /etc/acpi/acpi_handler.sh:

#!/bin/sh
# Default acpi script that takes an entry for all actions

IFS=${IFS}/
set $@

case "$1" in
  button)
    case "$2" in
#      power) /sbin/init 0
#         ;;
      *) logger "ACPI action $2 is not defined"
         ;;
    esac
    ;;
  *)
    logger "ACPI group $1 / action $2 is not defined"
    ;;
esac

No reboot necessary, it should be fixed instantly.