For anyone else reading this...I did get suspend to ram working almost 100% with this script (it was a comment on website in my last post, modified for Fedora, no more /proc/acpi/sleep)
/etc/acpi/events/lid.sh:
Code:
STATEFILE=$(echo /proc/acpi/button/lid/*/state | head -1)
[ -f $STATEFILE ] || die "Unable to determine state of lid."
STATE=$(awk '{ print $2 }' < $STATEFILE)
case "$STATE" in
"open")
#wake up
vbetool post
vbetool vbestate restore < /tmp/savedscreen
chvt 7
rm /tmp/savedscreen
;;
"closed")
#put to sleep
chvt 1
vbetool vbestate save > /tmp/savedscreen
sync
echo "mem" > /sys/power/state
;;
esac
/etc/acpi/events/lid.conf:
Code:
event=button[ /]lid
action=/etc/acpi/actions/lid.sh
Thanks to the original author...
I haven't tested any external devices like USB etc, the only rare problem I had is the video corrupting itself after coming back from resume, then having to restart X or sometimes the laptop.