APM: Change Power Button (etc) function?
Is there a way I can change APM's default action executed when the power button is pressed? On my computer it puts it in standby, but I would rather that it shut down instead.
I know ACPI can do this, but the computer concerned is old and APM works more reliably on it. Thank you in advance for any help. |
Hi,
BTW, usually, if it (power sw) set (in bios) to "standby" then, if you were to hold the button depressed for longer than four seconds this is what turns it off. If you want it off via your power switch, have you tried holding it depressed for, say, 6 or more seconds? (such behavior usually can be changed in the bios ie "not to standby but [another setting choice] quickly to off" so that it does not have to be held in for longer than 4 seconds to turn the box off). How the power button behaves is in the bios. Or, usually, there are settings/behavior changes for the power button in the bios. Must be an ATX (soft power off capability) motherboard. (Not the old old [circa near 1996] AT which had mechanical switch on/off). -- Alan. |
Quote:
Any other ideas? I figure APM can't do what I am looking for without hacking the source code, but maybe it can. Are there any other tools/ways to accomplish what I am looking for (a soft shutdown activated by the power button)? |
Unaware of any other to do what you want.
Quote:
Also unaware that O.S. feature could get control over power button behavior. Likely then has similarity to irq assignments whereby "if not plug and play O.S." (irq's are assigned by bios -- but "if yes, it is a plug and play O.S." (irq's are assigned by the O.S.) BTW you hadn't specified whether or not as to nice shutdown. I did not used to know the distinction between why one quick punch of power button would (not nicely) turn off some computers while on others it would put them into standby whereby the "standby equipped" boxes required a 4 plus seconds depress to (not nicely) turn off (quick/immediate off the moment the button is depressed versus 4 plus seconds depressed so as to achieve off). But those boxes were circa 1999 (Intel BX chipset motherboards) (APM) and they also (I later discovered) did have the power button behavior optiions in the bios. And the settings did work because I changed a couple so that I could standby them via the power button then wake them later on. |
Quote:
I do not remember what I allowed in bios but don't think I did anything special. I did compile newer kernel and am using acpi. Have not tried anything with apm. |
Quote:
@acummings, you made a good suggestion about Plug n play. I had recently turned it off to make my Nvidia driver work properly with APM. I'll play around with it. As a side note, I have Windows XP installed on this machine as well and it uses ACPI. When I press the power button in XP is shuts down cleanly. |
All times are GMT -5. The time now is 07:24 AM. |