pressing power button, no prompt

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
maspai
Posts: 62
Joined: 4. Jul 2012, 11:13
Location: Indonesia
Contact:

pressing power button, no prompt

Post 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.
sorry for my noob-ness guys, i'm new in linux and salix.
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: pressing power button, no prompt

Post 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.
Image
User avatar
maspai
Posts: 62
Joined: 4. Jul 2012, 11:13
Location: Indonesia
Contact:

Re: pressing power button, no prompt

Post 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 :).
sorry for my noob-ness guys, i'm new in linux and salix.
Post Reply