You are not logged in.
With my current macbook sleep and resume work perfectly out of the box with Arch. However there are somethings that get reset upon resume, such as CPU fan speed minimum. I would like to able to run a script to raise the fan speed upon resume. I have no idea how the hooks for resume work, especially since I didn't install or modify anything to get sleep to work in the first place.
Thanks for the help!
Last edited by dalingrin (2009-05-13 23:00:17)
Offline
here you got a skeleton, place it in /etc/pm/sleep.d and give it +x
name it 01-something since its the last hook you wish to run.. modify the part that says thaw|resume)
#!/bin/bash
case "$1" in
hibernate|suspend)
;;
thaw|resume)
;;
*)
;;
esac
EDIT: this is asuming you are using pm-suspend
EDIT2: some error fixed
Last edited by eldragon (2009-05-13 20:05:14)
Offline
here you got a skeleton, place it in /etc/pm/sleep.d and give it +x
name it 01-something since its the last hook you wish to run.. modify the part that says thaw|resume)
#!/bin/bash case "$1" in hibernate|suspend) ;; thaw|resume) ;; *) ;; esac
EDIT: this is asuming you are using pm-suspend
EDIT2: some error fixed
Perfection. Thanks so much.
I didn't realize I was using pm-suspend.
Offline