Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm currently using Ubuntu 11.10 on my laptop. At first the Wifi didn't work so I ran

rfkill unblock wifi
rfkill unblock all
modprobe -r acer_wmi

Now the Wifi works, however when I try to Suspend/Hibernate the computer. It gets stuck.
What should I do?

Update
Whenever I try to run pm-hibernate, the computer goes into hibernation for a split second and comes back.

share|improve this question
    
The Suspend works in fedora 15, maybe this is because it uses systemd instead of upstart? –  user33082 Nov 9 '11 at 19:47

1 Answer 1

Edit: Just noticed that the acer_wmi module doesn't really have much to do with your suspend problem - more than it's blocking suspend. If you find the module responsible for blocking suspend, just switch out its name with acer_wmi in the following suggestions, but without finding the responsible module, my suggestions probably aren't going to help you too much.


The traditional way of troubleshooting suspend where there's a known driver issue is to force the unloading of that module before suspend. You'd do that by running

sudoedit /etc/default/acpi-support

And looking for the MODULES="" line and changing it to (in your case):

MODULES="acer_wmi"

But reading the comments at the top of /etc/default/acpi-support, I'm not sure that's still going to work. Give it a go.

If it doesn't, you might find a short script like this fixes things:

#!/bin/sh

rmmod acer_wmi
pm-hibernate
modprobe acer_wmi

That will need to be run as root, so whereever you save it, you'll want to run it like: sudo bash ~/my-suspend-script.

I feel like there should be a good way to hack this into the /etc/pm/sleep.d/ system but I don't know enough about it to say conclusively. Perhaps something like this:

#! /bin/sh

case $1 in
     suspend|suspend_hybrid|hibernate)
        rmmod acer_wmi
        ;;
     resume|thaw)
        modprobe acer_wmi
        ;;
esac

That would be cleanest in terms of integration if editing acpi-support doesn't work.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.