public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Simon Farnsworth <simon@farnz.org.uk>
To: linux-kernel@vger.kernel.org
Cc: Pavel Machek <pavel@suse.cz>,
	Andrew Paprocki <andrew@ishiboo.com>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: ACPI "Soft-off" power button only rebooting system, not powering off
Date: Thu, 18 Sep 2008 13:25:56 +0100	[thread overview]
Message-ID: <48D248D4.40103@farnz.org.uk> (raw)
In-Reply-To: <48D245BF.7060902@earthlink.net>

Stephen Clark wrote:
> Pavel Machek wrote:
>> On Wed 2008-09-17 08:33:50, Andrew Paprocki wrote:
>>> On Wed, Sep 17, 2008 at 6:18 AM, Pavel Machek <pavel@suse.cz> wrote:
>>>> On Wed 2008-09-17 00:50:03, Andrew Paprocki wrote:
>>>>> I have an AMD / Award BIOS based system which does not properly shut
>>>>> off when I hold down the power button for 4 seconds. The BIOS is
>>>>> configured to have "Soft-off" set to "Delay for 4 seconds" which is
>>>>> supposed to power the machine off if the button is held that long.
>>>>>
>>>>> I first thought this could be a BIOS bug, but this *only* appears to
>>>>> happen while Linux is running. If the computer is running WinXP, it
>>>> Well, so the BIOS is broken. 4second hold should power down the
>>>> machine regardless of the operating system.
>>> Yes, I agree.. I just find it strange that it works on the BIOS screen
>>> as well as in GRUB, but as soon as Linux boots, it no longer works.
>>> Since it works under WinXP, there must be some way to get it to work
>>> properly from the OS side even it if means working around the bug
>>> somehow.
>>
>> Try noapic/nolapic/nosmp etc... and ask your vendor to fix the bios ;-).
>>
> Why do you say it is the BIOS when it shuts down properly from the GRUB
> prompt or from in WINXP?
> 
Because it's only the BIOS that can cause this behaviour.

When you push the power button, the BIOS is invoked. If you release
within 4 seconds, the BIOS sends an ACPI event to the running OS,
telling it that the power button has been pushed.

If you hold it down for 4 or more seconds, the BIOS is supposed to shut
the machine down without the OS knowing what's happening (no ACPI
events, just a loss of power). From your problem description, the BIOS
is noticing *something* about the way Linux sets things up, and
*choosing* to reboot instead of cutting the power.

GRUB doesn't touch hardware without BIOS help, so is unlikely to change
the system state in a way that tickles this BIOS bug; similarly, BIOSes
are tested against current Windows versions by vendors, so they'll have
hacked it around until it worked there.
-- 
Hope this helps,

Simon Farnsworth


  reply	other threads:[~2008-09-18 13:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-17  4:50 ACPI "Soft-off" power button only rebooting system, not powering off Andrew Paprocki
2008-09-17 10:18 ` Pavel Machek
2008-09-17 12:33   ` Andrew Paprocki
2008-09-18 11:06     ` Pavel Machek
2008-09-18 12:12       ` Stephen Clark
2008-09-18 12:25         ` Simon Farnsworth [this message]
2008-09-18 13:53           ` Bill Davidsen
     [not found] <bcXj3-fH-1@gated-at.bofh.it>
     [not found] ` <bd3HN-9P-11@gated-at.bofh.it>
     [not found]   ` <bd4ul-1dy-43@gated-at.bofh.it>
     [not found]     ` <bdpS9-3CD-19@gated-at.bofh.it>
     [not found]       ` <bdqEr-4Iy-19@gated-at.bofh.it>
     [not found]         ` <bdrAs-5Xa-7@gated-at.bofh.it>
2008-09-18 15:04           ` Bodo Eggert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48D248D4.40103@farnz.org.uk \
    --to=simon@farnz.org.uk \
    --cc=andrew@ishiboo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox