You are not logged in.

#1 2010-08-28 10:10:58

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

[Solved] Acpi handler not triggering power button action

I'm editing the acpi handler.sh script to react to my power button, here is a relevant snippet from the code:

#!/bin/sh

set $*
logger "$1 $2"

case "$1" in
    button/power)
        logger "$1 $2"
        case "$2" in
            PWRF)
                logger "$1 $2"
                ;;
            *) 
                logger "ACPI action undefined: $2" 
                ;;
        esac
        ;;
    button/lid)
        [ ... ]

When i then press power, the log shows a single entry:

Aug 28 11:53:35 localhost logger: button/power PWRF

Which is from the first logger action above case "$1".

Does anyone have a clue why the following actions under button/power don't produce any output? The code below button/lid does work properly, so it seems to be just the power button action misbehaving.


ᶘ ᵒᴥᵒᶅ

Offline

#2 2010-08-28 11:47:44

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: [Solved] Acpi handler not triggering power button action

I must've made a typo somewhere because it seems to work now. I'm not really sure where i went wrong though..  hmm


ᶘ ᵒᴥᵒᶅ

Offline

Board footer

Powered by FluxBB