You are not logged in.

#1 2008-11-12 17:22:06

Shapeshifter
Member
Registered: 2008-03-11
Posts: 230

My handler.sh needs fixing!

Hi,

I'm using acpid to suspend and resume upon lid closing and opening. Below is the relevant part of my /etc/acpi/handler.sh. It works well except the dcop calls for kopete don't get through and I can't figure out why. I also don't know where to look for error output. They work when I switch to a TTY and enter them manually as root.

Any ideas on whatelse to try or where to get some error information on why the dcop calls don't get through?

Thanks!

Qt: 3.3.8b
KDE: 3.5.10 (not using KDE actually)
Kopete: 0.12.7

    button/lid)
        # Create a lock file to determine if suspending or resuming
        if [ -f /tmp/lidswitch.XXXXX ]; then
        sleep 1; rm /tmp/lidswitch.XXXXX
        netcfg-auto-wireless wlan0 &
        dcop --user shapeshifter kopete KopeteIface connectAll
        else
        touch /tmp/lidswitch.XXXXX
        dcop --user shapeshifter kopete KopeteIface disconnectAll
        netcfg -a
        ifconfig wlan0 down
        killall -9 dhcpcd
        export DISPLAY=:0.0; su -c 'closevar=$(cat /tmp/.urxvtBGXID); wmctrl -i -c $closevar' shapeshifter
        s2ram
        fi
        ;;

Last edited by Shapeshifter (2008-11-12 17:22:55)

Offline

Board footer

Powered by FluxBB