2003-01-02 12:45:27

by Marc Giger

[permalink] [raw]
Subject: Power off a SMP Box

Hi All,

I know this question was already asked 1000 times.

My "problem" is that my Dual-Box won't power off itself after a shutdown.

I tried with

apm=smp-power-off //no effect
apm=power-off //this one oopses on boot

I google'd around many hours with no solution.

Has someone a hint for me?

The Box is a Asus P3C-D with two PIII @ 933 Mhz

Thank you

Marc


2003-01-02 14:55:39

by Stephen Rothwell

[permalink] [raw]
Subject: Re: Power off a SMP Box

On Thu, 2 Jan 2003 13:53:50 +0100 Marc Giger <[email protected]> wrote:
>
> My "problem" is that my Dual-Box won't power off itself after a shutdown.

Has it ever? What kernel version are you trying this on?

> I tried with
>
> apm=smp-power-off //no effect
> apm=power-off //this one oopses on boot

This second should work on any kernel since early 2000.

However, there are many SMP machines that cannot be powered off
using APM. APM is not defined for SMP machines, and the result
you got is why APM is not enabled easily on SMP boxes.

> Has someone a hint for me?

You could try ACPI in (very) recent kernels.

--
Cheers,
Stephen Rothwell [email protected]
http://www.canb.auug.org.au/~sfr/

2003-01-02 15:13:21

by jurriaan

[permalink] [raw]
Subject: Re: Power off a SMP Box

From: Marc Giger <[email protected]>
Date: Thu, Jan 02, 2003 at 01:53:50PM +0100
> Hi All,
>
> I know this question was already asked 1000 times.
>
> My "problem" is that my Dual-Box won't power off itself after a shutdown.
>
> I tried with
>
> apm=smp-power-off //no effect
> apm=power-off //this one oopses on boot
>
> I google'd around many hours with no solution.
>
> Has someone a hint for me?
>
Both my Abit VP6 and now a MSI Pro266TD Master work with:

kernel /boot/vmlinuz-2553matrox root=/dev/hda7 video=matrox:vesa:0x11E,fv:80,sgram hdc=scsi apm=smp apm=power-off

HTH,
Jurriaan
--
An ill wind comes arising
Across the cities of the plain
There's no swimming in the heavy water
No singing in the acid rain
Rush - Distant Early Warning
GNU/Linux 2.5.53 SMP/ReiserFS 2x2752 bogomips load av: 0.02 0.18 0.09

2003-01-02 15:31:46

by Marc Giger

[permalink] [raw]
Subject: Re: Power off a SMP Box

On Fri, 3 Jan 2003 02:03:58 +1100
Stephen Rothwell <[email protected]> wrote:

> On Thu, 2 Jan 2003 13:53:50 +0100 Marc Giger <[email protected]> wrote:
> >
> > My "problem" is that my Dual-Box won't power off itself after a shutdown.
>
> Has it ever? What kernel version are you trying this on?

With Linux never! With W....... no problem.

2.2.16, 2.2.18, and most of 2.4.

Now I'm running a 2.4.19 with openmosix patches..

>
> > I tried with
> >
> > apm=smp-power-off //no effect
> > apm=power-off //this one oopses on boot
>
> This second should work on any kernel since early 2000.

As I already said, with the second argument it oopses on boot...

>
> However, there are many SMP machines that cannot be powered off
> using APM. APM is not defined for SMP machines, and the result
> you got is why APM is not enabled easily on SMP boxes.

yep...I know it...

>
> > Has someone a hint for me?
>
> You could try ACPI in (very) recent kernels.

You mean a 2.5.x kernel? Any Kernel with the newest ACPI patches has never powered off any of my machines:-(
Perhaps I don't know something...
I will try it now again...

Thank you

Marc

2003-01-06 22:52:50

by Pavel Machek

[permalink] [raw]
Subject: Re: Power off a SMP Box

Hi!

> > > Has someone a hint for me?
> >
> > You could try ACPI in (very) recent kernels.
>
> You mean a 2.5.x kernel? Any Kernel with the newest ACPI patches has never powered off any of my machines:-(
> Perhaps I don't know something...
> I will try it now again...

You can also get new ACPI for 2.4.X (at acpi.sf.net) and even ACPI in
marcelo's kernel should be good enough for poweroff.
Pavel
--
I'm [email protected]. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at [email protected]

2003-01-11 12:02:08

by Tobias Ringstrom

[permalink] [raw]
Subject: ACPI power off requires swsusp (was: Re: Power off a SMP Box)

On Tue, 7 Jan 2003, Pavel Machek wrote:

> > > You could try ACPI in (very) recent kernels.
> >
> > You mean a 2.5.x kernel? Any Kernel with the newest ACPI patches has never powered off any of my machines:-(
> > Perhaps I don't know something...
> > I will try it now again...
>
> You can also get new ACPI for 2.4.X (at acpi.sf.net) and even ACPI in
> marcelo's kernel should be good enough for poweroff.

I just disovered that in 2.5.56 (at least), ACPI power-off needs
CONFIG_ACPI_SLEEP which depends on CONFIG_SOFTWARE_SUSPEND. This means
that without selecting software suspend, your machine cannot power off
using ACPI. Why is it so?

/Tobias

2003-01-12 03:56:50

by Valdis Klētnieks

[permalink] [raw]
Subject: Re: ACPI power off requires swsusp (was: Re: Power off a SMP Box)

On Sat, 11 Jan 2003 13:10:47 +0100, Tobias Ringstrom said:

> I just disovered that in 2.5.56 (at least), ACPI power-off needs
> CONFIG_ACPI_SLEEP which depends on CONFIG_SOFTWARE_SUSPEND. This means
> that without selecting software suspend, your machine cannot power off
> using ACPI. Why is it so?

Well.. I submitted the Kconfig patch that makes it so. However, I only did
that because there's code inside the ACPI_SLEEP that references a variable over
in SOFTWARE_SUSPEND.

A cleaner fix would probably be to move the variable someplace where it will
exist even when SOFTWARE_SUSPEND isn't defined.
--
Valdis Kletnieks
Computer Systems Senior Engineer
Virginia Tech


Attachments:
(No filename) (226.00 B)