Page 1 of 1

pressing power button, no prompt

Posted: 26. Jul 2012, 12:44
by maspai
i have salix mate in acer aspire 522 netbook. i installed catalyst proprietary driver for its ati radeon card, and 3d works great.
my problem is, pressing power button directly starts shutting down my netbook, without any prompted question. i did set preference of power management "when the power button is pressed: ask me".
thanks for help.

Re: pressing power button, no prompt

Posted: 26. Jul 2012, 13:35
by Shador
You probably have acpi handlers setup like so (/etc/acpi/acpi_handler.sh):

Code: Select all

#!/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
You need to comment in that "power button" case the /sbin/init 0 line like this:

Code: Select all

      power) #/sbin/init 0
Then it's most probably going to work as expected, i.e. acpi "power button" events get only handled by xfce as expected.

Re: pressing power button, no prompt

Posted: 27. Jul 2012, 04:00
by maspai
great, shador. thanks, it works.
and it will be perfect if the prompt dialog directly has focus, so i don't have to click on it or press alt+tab :).