XO won`t suspend sometimes

James Cameron quozl at laptop.org
Wed Apr 27 00:40:51 EDT 2011


On XO-1 we did not use pm-utils, but rather direct writing to
/sys/power/state, and I've verified that pm-suspend is unreliable.

I've found the most effective way to run something after resume is to
place it after the write to /sys/power/state ... like so:

#!/bin/sh
echo mem > /sys/power/state
echo "put resume hooks here"

-- 
James Cameron
http://quozl.linux.org.au/



More information about the Devel mailing list