View Full Version : Suspend on Fedora Core 2
davidkaye
23rd May 2004, 11:58 PM
I have an HP ZD7000 laptop (specifically a ZD7058CL) running Fedora Core 2. When I double-ckick on the battery on my taskbar to suspend it, I get the message "The Suspend command '/usr/bin/apm -s' was unsuccessful." Does anyone know how to get it to suspend properly?
Here is a link to the specks of my computer:
http://h10025.www1.hp.com/ewfrf/wc/genericDocument?lc=en&cc=us&docname=c00042933
Thanks,
David
postlogic
25th May 2004, 11:53 AM
I'm having problems getting APM working correctly, too. I know of a couple of others with the same problems. APM simply won't run.
ZeroVerteX
25th May 2004, 03:04 PM
Having similar APM problems. When I run "apm --suspend" it says "No APM support in kernel". When I go to the kernel config it says APM is installed. My "Fn + Suspend" Key on my Dell Inspiron 4100 doesn't work either, but I guess that is to be expected. Please help!
cgriffin
25th May 2004, 07:24 PM
Zero:
APM works great on my Latitude c810. Do you have the suspend partition on your hard drive?
cgriffin
25th May 2004, 07:37 PM
David: there are 2 types of power management: apm and acpi. APM is older, acpi is newer. I'll bet your laptop is acpi only and that battery applet is trying to run apm.
I would try to find out what type of power management your laptop supports and if it is acpi (which is still not 100% supported in Linux) then you'll want to do some searching on this forum and elsewhere for help with acpi (which I know nothing about since my older dell works with apm).
Good luck.
shtik
25th May 2004, 09:21 PM
if you want to use apm instead of acpi (i think you cannot use both) try editing your /boot/grub/grub.conf file and add apm=on acpi=off in the line that declares the kernel location, on my system it would look like this:
kernel /boot/vmlinuz-2.6.5-1.358 ro root=LABEL=/ apm=on acpi=off quiet
maybe it's worth a try ...
ZeroVerteX
26th May 2004, 05:17 PM
I just posted this in other threads but I thought it might be helpful here. Also, I do not have a suspend partition, but I wan't aware that one was needed when I installed, so oops, oh well.
Here's what I had to do to get my suspend key working on my Dell Inspiron 4100. First, I want to say that ACPI sucks right now. I'm sure it will get better but right now APM is the way to go. The process I had to go through requires recompiling the 2.6 kernel in FC2. This is not a hard process. It does require patience.
The first thing I did was in the menu do "System Setting" -> "Server Settings" -> "Services". It should prompt for root password. The Service Configuration windows should come up. You should be running and editing Runlevel 5. If you are using a different Runlevel, click Edit Runlevel to switch. Uncheck acpid and check apmd. Click on acpid and click "Stop". Close the Service Configuration Windows.
Next step: The kernel! Don't run away screaming! It's not hard and I'm detailing all my steps. Open a terminal. Change to root (do "su -" at the command line). Change directory to /usr/src/linux-2.6.5-1.358/ (do "cd /usr/src/linux-2.6.5-1.358/"). Okay, next do "make menuconfig". This command will take us into a text-based menu configuration utility for the kernel. Alternatively, you can do "make xconfig" for a GUI config utility, but for this will stick to the text-based one. I have found out that you can't have ACPI and APM running at the same time. It just doesn't work. Don't know why, and I'm not a programmer, I'm a user, I just want my stuff to work! Use the arrow keys to navigate the menus. Arrow down to "Power Management Options (ACPI, APM) --->" and hit Enter. I have "Power management" selected and "Software Suspend" marked. If you don't have these marked, arrow down to them and hit Space Bar or "Y". I don't know why I didn't need "Suspend-to-disk support" but I do not have it selected. Arrow down to "ACPI Support". In this menu, if you have "ACPI Support" selected, hit Space Bar or "N" to unselect it. Hit "Esc" to go back to the previous menu. Arrow down to "APM BIOS Support" and hit Enter. Of couse, I have the top listing,"APM BIOS Support" selected allong with <*> APM (Advanced Power Management) BIOS support "Enable PM at boot time","Make CPU Idle calls when idle", "Enable console blanking using APM","RTC stores time in GMT","Allow interrupts during APM BIOS calls", and "Use real mode APM BIOS call to power off". The only one I DON'T have selected is "Ignore USER SUSPEND". The help on this option sugests that unless you have a NEC Versa M series notebooks, you shouldn't use it. Hit "Esc" to go back to the previous menu. Under "CPU Frequency Scaling", I didn't change anything, I think I would probably be best that you do the same. Hit "Esc" "Esc" and you will be asked if you want to save your kernel configuration, which you do so hit Enter on Yes. This will take you back out to a command prompt where you should do "make all modules_install install". It will take SEVERAL minutes, depening on the speed of your computer, of course. After it is done, "reboot". If you are running GRUB, when the Boot loader screen comes up, you will have to select the Custom kernel, you'll see. That's how I got my suspend hot key working on my Dell Inspiron 4100. You can try it if you like. Let me know if it works! Oh, and visit my website, http://www.zerovertex.com. Later! Good Luck!
cgriffin
26th May 2004, 06:06 PM
Zero,
It's easy to add the Dell suspend partition if you want to. It may require you to reinstall FC2, but if that's not a problem, then it's not hard to do. That's what I did with my Dell. I wiped everything off, created the suspend partition, and then installed XP and FC2.
Check out the Dell laptops group at yahoo.
http://groups.yahoo.com/group/linux-dell-laptops/
They have a link to a FAQ that you should read. You can download the suspend utility from the Dell website. Put it on a dos bootable floppy and reboot. Go into fdisk and wipe everything, then run the suspend utility. It will create the parition. Then reboot and reinstall FC2. APM will then work out of the box for you.
HTH.
sunnyds
4th August 2004, 12:32 AM
Hi,
This is my first post; I have a Dell i600m and I'm not sure which power management it supports. I tried Zero's way, but I encounter problem after I tried to boot the custom kernel. The system hung when it tried to detect new hardware. The top right circle animation continues to move, but it won't progress furthur.
sehh
8th August 2004, 07:09 AM
Personaly, i'd suggest everyone to move away from APM and use ACPI if their laptop supports it.
With ACPI you can just suspend the laptop with the following command:
echo 3 >/proc/acpi/sleep
can can also see what other sleep modes your laptop+kerenl support by:
cat /proc/acpi/sleep
you can also use ACPI to grab events, like closing the lid or removing power
and run scripts to change specifi settings. for example if the power is removed
then make the harddrive spin down more frequently.
you can also use cpuspeed to set the minimum cpu frequency that your
cpu supports (if it supports frequency scaling).
kevo295
8th August 2004, 11:12 AM
Personaly, i'd suggest everyone to move away from APM and use ACPI if their laptop supports it.
With ACPI you can just suspend the laptop with the following command:
echo 3 >/proc/acpi/sleep
can can also see what other sleep modes your laptop+kerenl support by:
cat /proc/acpi/sleep
you can also use ACPI to grab events, like closing the lid or removing power
and run scripts to change specifi settings. for example if the power is removed
then make the harddrive spin down more frequently.
you can also use cpuspeed to set the minimum cpu frequency that your
cpu supports (if it supports frequency scaling).
I know the Latitude C810 supports ACPI, xp even installs acpi instead of APM on this machine. My questions on a related note are:
A) Exactly how do you recompile the kernel (2.7.6.xxx) in FC2. I've figured out which options I want to turn on and off except with APM and ACPI. But, behing an uber newbie, I need id-10-t proof directions on actually making the kernel.
B) How do you setup acpid to grab events? I seem to remember when I tried FC1 or one of the Red Hat distro's quite a while back, the suspend et al worked quite well...but now that I'm seriously MOVING to FC from XP, my power managment isn't here..... :(
If there's an idiots guide to making a kernel for FC2 on the net, a link would be greatly appreciated!
sunnyds
11th August 2004, 08:52 AM
Personaly, i'd suggest everyone to move away from APM and use ACPI if their laptop supports it.
With ACPI you can just suspend the laptop with the following command:
echo 3 >/proc/acpi/sleep
can can also see what other sleep modes your laptop+kerenl support by:
cat /proc/acpi/sleep
you can also use ACPI to grab events, like closing the lid or removing power
and run scripts to change specifi settings. for example if the power is removed
then make the harddrive spin down more frequently.
you can also use cpuspeed to set the minimum cpu frequency that your
cpu supports (if it supports frequency scaling).
Is there a detail website which provides howto to what you mentioned?
ex.) spin down hard drive, turn off LCD when lid is closed, etc,
spak
14th August 2004, 06:33 PM
Whenever I try to get my dell inspiron 510M into suspend or standby by using the power control menu on the taskbar, the machine goes back into normal mode after just a couple of seconds again. Anyone have a similar problem?
Here is relevant info from dmesg:
PM: Preparing system for suspend
Stopping tasks: ================================================== =================|
PCI: Setting latency timer of device 0000:00:1d.7 to 64
Could not suspend device 0000:00:1d.7: error -5
PCI: Setting latency timer of device 0000:00:1f.5 to 64
e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
Restarting tasks... done
sunnyds
17th August 2004, 11:46 PM
I have the same problem with 2.6.6 kernel, I'm using Dell 600m laptop.
protre92
18th August 2004, 04:47 PM
I have a problem with echo 3 >/proc/acpi/sleep
Every time I use this command my system goes right to sleep. When it resumes it's perfect, no glitches.. My only problem is ...... my laptop display turns white, I'm assuming it's just the backlight but it does not turn off. So the system is powered off, but the display is still on killing my batteries. Does anyone had any suggestions?
Thanks,
Trev
jayjay
30th August 2004, 09:20 AM
Whenever I try to get my dell inspiron 510M into suspend or standby by using the power control menu on the taskbar, the machine goes back into normal mode after just a couple of seconds again. Anyone have a similar problem?
Here is relevant info from dmesg:
PM: Preparing system for suspend
Stopping tasks: ================================================== =================|
PCI: Setting latency timer of device 0000:00:1d.7 to 64
Could not suspend device 0000:00:1d.7: error -5
PCI: Setting latency timer of device 0000:00:1f.5 to 64
e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
Restarting tasks... done
hi
This is the exact reply I get om compaq nx9010 when I try echo mem > /sys/power/state. This command used to work on Mandrake 10. Who can help?
SDNick484
9th September 2004, 07:15 PM
Is CPU Scaling set through acpi? I recompiled my kernel (2.6.8) yesterday with acpi and cpu frequency scaling but I can't seem to set the frequency. Is there a command that I can pass to acpi? I use echo 3 >/proc/acpi/sleep without any problems (this is on an IBM T21 laptop).
omid455
20th April 2005, 11:19 AM
I had the same problem even with Fedora core 3. Re-compile your kernel with all the acpi and power management options enabled also with cpu frequency scaling. the standby will work ok and also suspend to disk will work but I can not get it back to work it is saving everything to disk and hibernates ok but I can not boot up and go back to where I was.
Hadi
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.