I had the same problem with my toshiba. But I didn't want to go back to virtualbox 4.0. So I created this file as a solution :
Code:
root@tshb:/usr/lib/pm-utils/sleep.d# cat 54virtualhook
#!/bin/sh
# Unload vboxdrv for a bug workaround on suspend on ubuntu 11.04
. "${PM_FUNCTIONS}"
suspend_vb()
{
service vboxdrv stop
}
resume_vb()
{
service vboxdrv start
}
case "$1" in
hibernate|suspend)
suspend_vb
;;
thaw|resume)
resume_vb
;;
*) exit $NA
;;
esac
After a chmod +x on this file, when I suspend from the menu it works.
But ubuntu 11.04 has a weird bug, I just need to move my mouse to prompt the "locked screen" just before it suspends to get the resume right. If I don't move de mouse at suspend, resume is just a black screen.
Bookmarks