S3 suspend regression in 2.6.16-rc2 and higher
Starting from 2.6.16-rc2 my laptop (Asus V6V, Centrino and Radeon X600 ) freezes on resuming from s3 if an X session was open before suspend. The only way to successfully suspend and resume is to switch to console, suspend, resume, kill any X session and restart X.
Note: i don't use fglrx drivers.
This is the script i use to suspend (if i boot with a pre-2.6.16-rc2 kernel suspend and resuming with this script works regardless of X sessions)
###Start S3 Suspend/Resume Script ###
statedir=/var/lib/vbetool/vbestate
mkdir -p $statedir
hwclock --systohc
hwclock > /root/hw.p
chvt 2
sleep 1
vbetool vbestate save >$statedir/vbe
cat /dev/vcsa >$statedir/vcsa
sync
echo mem >/sys/power/state
sync
vbetool post
vbetool vbestate restore <$statedir/vbe
cat $statedir/vcsa >/dev/vcsa
hwclock --hctosys
hwclock > /root/hw.d
/etc/init.d/console-screen.sh restart
###End###
--
IS
Iacopo Spalletti
PGP key block: http://www.spalletti.it/pgp