I am running Mandrake LE2005 on HP pavilion dv1040US ( centrino, intel
i855GM).

I was having issues with resume causing poweroff and fixed it as per a post
somewhere here so that works now.

My sleep.sh script does the following-

vbetool vbestate save > /tmp/vbestate
/bin/sync
# Step 2: send sleep command via ACPI
touch /tmp/acpi_sleep
echo mem > /sys/power/state

# Step 3: wake-up and reload
vbetool vbestate restore < /tmp/vbestate
vbetool post
vbetool dpms on
xinit /bin/false -- :1
# initialise X
/usr/bin/chvt 7

This brings X back but the widgets do not act normally. I can click on
buttons and all that but a) widgets aren't drawn properly ( some appear in
reverse video, as it were) and b) when I try to resize them, they start
shrinking and disappeaaring.

The best I can do is reboot !

How do I get back the video properly ?

Thanks.