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

-- 
garbled or no video output after resume from suspend (Inspiron 4150)
https://launchpad.net/bugs/31425

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to