Manually running the following two scripts results in successful suspend/resume, but I don't know how to integrate the commands into Ubuntu so I may run it with GUI controls. The scripts use vbetool commands. Any help will be greatly appreciated:
saveVideoState.sh #!/bin/bash statedir=/root/s3/state mkdir -p $statedir chvt 2 sleep 1 vbetool vbestate save >$statedir/vbe
suspendToRam.sh #!/bin/bash statedir=/root/s3/state curcons=`fgconsole` fuser /dev/tty$curcons 2>/dev/null|xargs ps -o comm= -p|grep -q X && chvt 2 sync echo platform > /sys/power/disk; echo mem > /sys/power/state sync vbetool post vbetool vbestate restore <$statedir/vbe chvt $[curcons%6+1] chvt $curcons
Manually running the following two scripts results in successful suspend/resume, but I don't know how to integrate the commands into Ubuntu so I may run it with GUI controls. The scripts use vbetool commands. Any help will be greatly appreciated:
saveVideoState.sh /root/s3/ state
#!/bin/bash
statedir=
mkdir -p $statedir
chvt 2
sleep 1
vbetool vbestate save >$statedir/vbe
suspendToRam.sh /root/s3/ state
#!/bin/bash
statedir=
curcons=`fgconsole`
fuser /dev/tty$curcons 2>/dev/null|xargs ps -o comm= -p|grep -q X && chvt 2
sync
echo platform > /sys/power/disk; echo mem > /sys/power/state
sync
vbetool post
vbetool vbestate restore <$statedir/vbe
chvt $[curcons%6+1]
chvt $curcons