You are not logged in.

#1 2012-03-15 13:43:06

Jankosevic
Member
Registered: 2008-07-06
Posts: 82

pm-utils does not read new hook

Hello,

I created a new hook based on this guide: https://wiki.archlinux.org/index.php/Pm … _own_hooks

#!/bin/sh
case $1 in
    hibernate|suspend)
        rc.d stop optimus
        ;;
    resume|thaw)
        rc.d start optimus
        ;;
esac

I placed it in /etc/pm/sleep.d and made it executable.

However, after using pm-suspend it does not run my script. /var/log/pm-suspend.log does not list up my new hook either.

What am I missing? Thx!

Last edited by Jankosevic (2012-03-15 13:43:46)

Offline

Board footer

Powered by FluxBB