[ltp] x31 and suspend to ram
Richard Neill
linux-thinkpad@linux-thinkpad.org
Mon, 31 Oct 2005 11:39:39 +0000
Michael Kamper wrote:
> Hi!
>
> I'm looking for people who made suspend to ram work on their x31.
> Actually it works for me too, but very often my system won't wake up at
> all or will crash after resuming.
Dear Michael,
have you tried stopping the X-server before you suspend? Try this script:
#!/bin/bash
echo "About to suspend"
chvt 1
sync
kill -STOP `pidof X`
apm -s #This is the normal suspend to RAM.
#Time passes...
#Now, we have woken up.
kill -CONT `pidof X`
sync
chvt 7 #This line is often redundant.
#You may need to re-load sound here.
Let me know if it helps,
Richard