Notebook won't suspend
Hello all...
I'm running a Dell notebook, and if i try to suspend, I get the following: Code:
[root@localhost ~]# /usr/bin/apm -s Thanks! Rob |
Well, if you're using a stock default kernel with your distro, they've probably compiled most of the kernel features as loadable modules. I'd try modprobe acpi or modprobe apm (acpi is apm's more advanced twin, as far as I know, and the two are both probably supported, but can't be enabled simultaneously). You can use rmmod to remove a module from memory if you don't think it's for you.
If loading that module seems to fix your problem, you'll have to check your distribution for instructions on how to make it load by default on bootup. In debian, you add the module name to "/etc/modules". I hope that works for you - good luck! |
Thanks corfe for the reply.
I tried the rmmod to get rid of acpi, and it didn't work. I did however do some additional searching based on what you had posted. Basically I found that acpi is the culprit, and by removing it apm should work. I added 'acpi=off' to my /etc/grub.conf file and rebooted. I could now suspend without problem, however a couple of issues have arrisen from this: 1) my notebook makes an odd sound with the acpi off :scratch:. It's tough to explain, but almost has the sound of an overloaded capacitor for you electronics guys. When I put acpi back on, the sound goes away. (no, this isn't coming from my speakers) 2) when I resume from a suspend, my USB is gone. I'm not sure how to reset it. I found a similar thread at this link, however the explanation given isn't really that clear to a newb like me. Thanks! Rob |
That's really odd. As for #1, if I were you, I'd try searching on google or linuxquestions for your specific model of laptop (in quotes), and linux. Try adding ACPI too. See if anyone else talks about this problem, you might find someone who's already found a solution.
As a general solution, the first thing that comes to mind is make sure you're using the newest kernel you can. I believe ACPI is an area that is pretty heavily worked on right now, so if you're using a relatively old kernel version, that could explain it. Try to get 2.6.x, 2.6.11 is most preferable. As for #2, what they're saying is that we need to tell linux to, when suspending your computer, unload the module for your USB (that will effectively shutdown USB support), and when resuming from suspend, load that module (that will effectively enable USB properly). This is probably an area you should go to your specific distribution for, as I don't know of a standard way to do this. Basically you want to: figure out the module names that covers all your USB support, and figure out how to uninitialize and reinitialize it using rmmod and modprobe. This might be something like : rmmod usbmouse rmmod uhci modprobe uhci modprobe usbmouse Once you have this down, figure out where you can tell Fedora to run a script before suspending, and figure out where to tell Fedora to run a script when resuming from suspend, and put your commands to unload and load the modules in those appropriate scripts. I hope this makes more sense - tell me if that worked, or if it at least makes sense to you! |
which dell laptop do you have? I know mine only supports ACPI.
Try enable ACPI and try this command: "echo -n mem > /sys/power/state" |
Thanks for that csfalcon... the "echo -n mem > /sys/power/state" worked.
I am still having a problem with the USB and now eth0 not coming back up on resume. Seeing as you are running the same core (FC3) on the same(ish) notebook, how have you overcome this? Rob |
I didn't run into any problems with USB or network problems, but here are the steps I took to setup my laptop:
http://www.csfalcon.com/index.jsp?to...end%20to%20RAM |
RESOLVED
Finally have it figured out!
Thanks to all that have helped with this problem. Here is the synopsis of how I resolved this (part this thread, part Google...) Firstly, following csfalcon's instructions from his site I got the suspend working from the function key: Created sleep.conf in /etc/acpi/events/ with the following: Code:
# This is a sleep configuration Code:
#!/bin/sh Code:
chmod +x sleep.sh Code:
/etc/init.d/acpid restart Then to fix the USB mouse problem, I created a bash script that I found here and called it wakeupfix with the following in it: Code:
#!/bin/sh Again... thanks to all that helped. Rob |
All times are GMT -5. The time now is 06:14 PM. |