Results 1 to 7 of 7

Thread: Laptop will not suspend. VirtualBox issue?

  1. #1
    Join Date
    May 2008
    Location
    Canada
    Beans
    163
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Unhappy Laptop will not suspend. VirtualBox issue?

    Hi Guys,

    I upgraded my Thinkpad T400 from 10.10 to 11.04. Everything worked flawlessly including suspend (I think, I usually opt for shutting down instead of suspend). Anyway I tried to suspend the machine the other day (just closed the lid) and the suspend indicator light (quarter-moon-shape-icon) on my laptop just kept flashing. When I opened the laptop to inspect the problem the screen was black (but not off) and my only option to get things going again was to remove the battery (holding power button was not invoking a cold shutdown). I figured it was a kernal issue so I rebooted into the 2.6.38-8-generic-pae kernal instead of the 2.6.38-10-generic and suspend worked again. Then, today, it wouldn't suspend; same behavior as before. I ran uname -r to make sure I was in the old kernal [38-8]. I was.

    I though about what could be causing the issue and I think it might be VirtualBox. The problem started after I upgraded to VirtualBox 4.1.0 (I wanted the 'clone' feature). Of course, VBox said I had to run this command '/etc/init.d/vboxdrv setup' (thank the maker for bash_history) before I could boot up my VMs. Oddly enough, I had to run that same command again after switching to the old kernal which is when the suspend issue started again.

    Clearly, running '/etc/init.d/vboxdrv setup' edits the kernal (or kernal modules or something) allowing VBox to run VMs; but could it also be screwing up suspend support? Or am I way off base? Has anyone else had a similar problem? How can I fix it?

  2. #2
    Join Date
    May 2008
    Location
    Canada
    Beans
    163
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Laptop will not suspend. VirtualBox issue?

    Okay, kinda answered my own question. If I run this command

    Code:
    sudo /etc/init.d/vboxdrv stop
    then suspend the machine all is well b(^_^)d

    So why is the vboxdrv inhibiting laptop suspension? How can I fix it? Disabling the vboxdrv service is a workaround at best.

  3. #3
    Join Date
    Apr 2006
    Beans
    42
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Laptop will not suspend. VirtualBox issue?

    I was having the same problem. Thank you posting how to stop the service. That solution works for me.

    For the record, I have just installed Ubuntu 11.4 on an HP Compaq 8510w laptop. I installed VirtualBox 4.1 with extension pack that I downloaded from virtualbox.org (not from Ubuntu repositories).

    There is a defect ticket opened on this at VirtualBox (#9260): http://www.virtualbox.org/ticket/9260

  4. #4
    Join Date
    Sep 2010
    Beans
    898

    Re: Laptop will not suspend. VirtualBox issue?


  5. #5
    Join Date
    May 2008
    Location
    Canada
    Beans
    163
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Laptop will not suspend. VirtualBox issue?

    Thanks Dave_L

    As you suggested in the other thread; I reverted back to VirtualBox 4.0. Hopefully the guys over at Virtual box fix this bug. I really want the cloning feature. I'll install VBox 4.1 on y desktop though. It's acting as a server so I never suspend it.

  6. #6
    Join Date
    Jan 2009
    Location
    Way out there
    Beans
    32
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Laptop will not suspend. VirtualBox issue?

    I had the same problem, and can confirm that uninstalling VirtualBox 4.1 immediately restored suspend/hibernate functionality. While investigating this problem, I also ran into the following two links, both of which look very promising

    This one is a VirtualBox problem ticket discussion, in which some enterprising soul offers the following workaround:
    "Adding the following line in /etc/pm/config.d/unload_modules fixes the problem for me:
    Code:
    SUSPEND_MODULES="$SUSPEND_MODULES vboxdrv vboxnetflt vboxnetadp vboxpci
    "
    I haven't tried the fix yet, but it looks right on-target.

    And these folks just released a patch for this very problem. I haven't tried it yet either, but when/if I do I'll report back.

    Hope something in all that proves helpful!

  7. #7
    Join Date
    Oct 2006
    Location
    Georgetown, KY, U.S.
    Beans
    81
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Laptop will not suspend. VirtualBox issue?

    Just chiming in to say the workaround posted by TechBeastie worked right away (i.e., no reboot necessary) for me. Although, the line is missing a quote; it should read:
    Code:
    SUSPEND_MODULES="$SUSPEND_MODULES vboxdrv vboxnetflt vboxnetadp vboxpci"
    Thanks for finding this fix for us, TechBeastie.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •