Skip to contentSkip to conversation

How to Power off with ACPI/APM?

DISCUSSION Michael D. Crawford 4 participants 6 messages Jan 4, 2001 – Jan 5, 2001

lore
Share & tools
lore
#0 lore raw
Quoted 2 lines · I said:

Looking back in the ACPI kernel config help, it says you can use ACPI if you also have APM enabled, which I didn't do at first.

[email protected] (Daniel) replied:

Quoted 1 line

That's wrong then, you can't use ACPI and APM at the same time.

I think the documentation in the kernel config help is unclear. The way it's phrased seems to imply that you want to use them together. Thinking about it, I believe what is really meant is that if ACPI and APM are both enabled, ACPI will take precedence - but that is not what happens.

APM gives its message first in the boot process, then later ACPI does. But
ACPI says something like "APM already present, exiting", so the doc is wrong both ways you read it, or else ACPI doesn't succeed in the intended behavior to override APM.

in linux/Documentation/Configure.help, the following text appears in ACPI's entry:

If both ACPI and Advanced Power Management (APM) support are configured, ACPI is used.

Perhaps better wording would be (um, perhaps someone could show this clueless old Mac programmer how to use diff to make a patch?):

If both ACPI and Advanced Power Management (APM) support are configured, ACPI takes precedence and APM is not used.

but that's not what actually happens, in practice APM gets used.

Anyway, I turned off ACPI in my config and rebuilt my kernel, and I still can't power off.

Just to make sure, I tried to force the power off with this:

sync
sync
sync
halt -f -p

I got the message "Power Down" but my system stayed on and I was still in my shell.

I verfied that apmd got started at boot time and that the file /proc/apm exists and has some stuff in it:

1.14 1.2 0x03 0x01 0xff 0x80 -1% -1 ?

I'm using the binary of halt that came with Slackware 7.1. Do I need to update any of my executable programs to work with the new kernel? The only thing I've done is installed the latest modutils. I did download the latest util-linux from kernel.org but this didn't appear to have the same program Slackware uses - there's a shutdown program, but on slackware I think shutdown is a script and there's a halt binary with reboot symlinked to it.

Mike

Signature · 10 lines
Michael D. Crawford
GoingWare Inc. - Expert Software Development and Consulting
http://www.goingware.com/
[email protected]

   Tilting at Windmills for a Better Tomorrow.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#1 lore raw

Michael> APM gives its message first in the boot process, then later Michael> ACPI does. But ACPI says something like "APM already Michael> present, exiting", so the doc is wrong both ways you read it, Michael> or else ACPI doesn't succeed in the intended behavior to Michael> override APM.

I get th eopposite behavior. If both are compiled in only ACPI works. (Only tested w/ 2.4.0-test kernels, though.)

Either way you need the userspace daemon running to actually do anything. Even my notebook's key for toggling full-screen vs un-expanded display on the lcd does nothing unless apmd or acpid as applicable are running....

-JimC

Signature · 7 lines
James H. Cloos, Jr.  <http://jhcloos.com/public_key>     1024D/ED7DAEA6 
<[email protected]>  E9E9 F828 61A4 6EA9 0F2B  63E7 997A 9F17 ED7D AEA6

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#2 lore raw
In reply to Michael D. Crawford
Quoted 6 lines · On 2001.01.05 James H. Cloos Jr. wrote:

Michael> APM gives its message first in the boot process, then later Michael> ACPI does. But ACPI says something like "APM already Michael> present, exiting", so the doc is wrong both ways you read it, Michael> or else ACPI doesn't succeed in the intended behavior to Michael> override APM.

Quoted 8 lines

I get th eopposite behavior. If both are compiled in only ACPI works. (Only tested w/ 2.4.0-test kernels, though.)

Either way you need the userspace daemon running to actually do anything. Even my notebook's key for toggling full-screen vs un-expanded display on the lcd does nothing unless apmd or acpid as applicable are running....

How is each of your setups, ie, what is compiled in kernel and what is a module ? My guess is:
- ACPI+APM in kernel: ACPI wins
- APM in kernel, ACPI module; APM starts, blocks ACPI
- and so on....

Signature · 9 lines
J.A. Magallon                                         $> cd pub
mailto:[email protected]                             $> more beer

Linux werewolf 2.2.19-pre6 #1 SMP Wed Jan 3 21:28:10 CET 2001 i686

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#3 lore raw
In reply to Michael D. Crawford
Quoted 10 lines · Michael D. Crawford

I got the message "Power Down" but my system stayed on and I was still in my shell.

I'm using the binary of halt that came with Slackware 7.1. Do I need to update any of my executable programs to work with the new kernel? The only thing I've done is installed the latest modutils. I did download the latest util-linux from kernel.org but this didn't appear to have the same program Slackware uses - there's a shutdown program, but on slackware I think shutdown is a script and there's a halt binary with reboot symlinked to it.

Try the different APM options in the kernel. One will for sure work with your system.

Signature · 7 lines
Servus,
       Daniel

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#4 lore raw
In reply to Michael D. Crawford
Quoted 7 lines · On 2001.01.05 J . A . Magallon wrote:
Quoted 7 lines

Either way you need the userspace daemon running to actually do anything. Even my notebook's key for toggling full-screen vs un-expanded display on the lcd does nothing unless apmd or acpid as applicable are running....

I forgot it. If you just want to power-off:
- activate APM in the BIOS
- activate APM in kernel

I have an SMP box, so APM does not work fully, but just power-off works. So if for any reason you box says is not capable of doing APM, add this to lilo.conf:
append="apm=power-off"
so at least this will work.

Signature · 9 lines
J.A. Magallon                                         $> cd pub
mailto:[email protected]                             $> more beer

Linux werewolf 2.2.19-pre6 #1 SMP Wed Jan 3 21:28:10 CET 2001 i686

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#5 lore raw
In reply to Michael D. Crawford
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"JA" == J A Magallon <[email protected]> writes:

JA> How is each of your setups, ie, what is compiled in kernel and JA> what is a module ?

Good point. I never tried w/ APM in kernel and ACPI as module. Just both in and ACPI in / APM module. (And that last was only due to operator error when configing the kernel.)

Kernel version may also be a factor when both are in.

-JimC

Signature · 7 lines
James H. Cloos, Jr.  <http://jhcloos.com/public_key>     1024D/ED7DAEA6 
<[email protected]>  E9E9 F828 61A4 6EA9 0F2B  63E7 997A 9F17 ED7D AEA6

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/