Skip to contentSkip to conversation

Query regarding the linux ACPI

DISCUSSION siva 4 participants 7 messages Jun 16, 2003 – Jun 20, 2003 2 messages not in the archive ACPI

lore
Share & tools
lore

siva

author
#0 lore raw

Hi all,

When I was reading the ACPI specification, I found the following information,
The ACPI specification also allows that if the user presses the power button for more than four seconds while the system is in the working state, a hardware event is generated and the system will transition to the soft-off state. This hardware event is called a power button override. In reaction to the power button override event, the hardware clears the power button status bit (PWRBTN_STS).

I would like to know, whether this Power button override feature is available in the Linux ACPI implementation. If it is implemented, where can I find them and how to use it?

"Ignore the Attachment"

Thanks in advance,

Siva

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Imagination is more important than Knowledge"
- Albert Einstein
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

#1 lore raw

From: "siva" <[email protected]>

Quoted 2 lines

When I was reading the ACPI specification, I found the following information, The ACPI specification also allows that if the user presses the power button

for more than four seconds

Quoted 1 line

while the system is in the working state, a hardware event is generated and

the system will transition to the

Quoted 1 line

soft-off state. This hardware event is called a power button override. In

reaction to the power button

Quoted 3 lines

override event, the hardware clears the power button status bit (PWRBTN_STS).

I would like to know, whether this Power button override feature is available

in the Linux ACPI

Quoted 1 line

implementation. If it is implemented, where can I find them and how to use

it?

It's a "hardware" event. Surely ACPI isn't strictly involved. I read this as meaning that ACPI mustn't interfere with such function. Certainly my Dell Inspiron will shut off when I hold the power button down for 4 seconds without generating an ACPI event.

-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5

A message that is not in the archive (sent off-list or not yet received): 012f01c333fe$c23a8270$3746028e-dP0OE4Ef7fWw5LPnMra/[email protected]

#3 lore raw
Quoted 4 lines · Derek Broughton

From: "siva" <[email protected]> Certainly my Dell
Inspiron will shut off when I hold the power button down for 4 seconds without generating an ACPI event.

and thank Good, so does the TM630 ;-)))

cheers
hartwig felger

Hartwig Felger informatics

Signature · 10 lines
1024D/339FD693 Hartwig Felger <[email protected]>
Key fingerprint = FB2F 3EE9 345A D55B 6FF2  0EC1 F5B0 684F 339F D693
For the pulic keys, please visit my page.



-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
author
#4 lore raw
In reply to Derek Broughton

That means this option can be programmed in the BIOS and we can have it as option in the BIOS.
Am I right ?

-Siva

---- Original Message -----
From: "Derek Broughton" <dbroughton-F3m4/[email protected]>
To: <[email protected]>
Sent: Monday, June 16, 2003 5:29 PM
Subject: Re: [ACPI] Query regarding the linux ACPI

Quoted 3 lines

From: "siva" <[email protected]>

Quoted 1 line

When I was reading the ACPI specification, I found the following

information,

Quoted 1 line
Quoted 1 line

The ACPI specification also allows that if the user presses the power

button

Quoted 2 lines

for more than four seconds

Quoted 1 line

while the system is in the working state, a hardware event is generated

and

Quoted 2 lines

the system will transition to the

Quoted 1 line

soft-off state. This hardware event is called a power button override.

In

Quoted 2 lines

reaction to the power button

Quoted 1 line

override event, the hardware clears the power button status bit

(PWRBTN_STS).

Quoted 2 lines
Quoted 2 lines

I would like to know, whether this Power button override feature is

available

Quoted 2 lines

in the Linux ACPI

Quoted 1 line

implementation. If it is implemented, where can I find them and how to

use

Quoted 3 lines

it?

It's a "hardware" event. Surely ACPI isn't strictly involved. I read

this as

Quoted 2 lines

meaning that ACPI mustn't interfere with such function. Certainly my Dell Inspiron will shut off when I hold the power button down for 4 seconds

without

Quoted 4 lines

generating an ACPI event.

Quoted 8 lines

-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Acpi-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/acpi-devel

-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php

A message that is not in the archive (sent off-list or not yet received): 09c601c334bb$d91226c0$2a0806c0-mtNSFjsC3/[email protected]

#6 lore raw

Hi,

Quoted 5 lines

That means this option can be programmed in the BIOS and we can have it as
option in the BIOS.
Am I right ?

Power button override is done at hardware level as Derek pointed out and what you have to look into is the Datasheet of your chipset.

For example, ICH4 Datasheet says:

2.10 Power Management Interface
Table 2-10. Power Management Interface Signals

<Quote>
PWRBTN#

      :

If PWRBTN# is pressed for more than 4 seconds, this causes an
unconditional transition (power button override) to the S5 state with only the PWRBTN# available as a wake event. Override occurs even if the system is in the S1-S4 states. This signal has an internal pull-up resistor.
</Quote>

Thanks,
- Adachi, Kenichi

-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php

author
#7 lore raw

Keybaord and power button.

Hi,

I have doubt regarding the power button.
With out keyboard connected to the linux machine, Is it possible to do gracefull shutdown of my machine by just pressing the Power button.

Thanks,
Siva

----- Original Message -----
From: "Adachi, Kenichi" <[email protected]>
To: "'siva'" <[email protected]>; "'Derek Broughton'" <dbroughton-F3m4/[email protected]>; <[email protected]>
Sent: Tuesday, June 17, 2003 4:55 PM
Subject: RE: [ACPI] Query regarding the linux ACPI

Quoted 26 lines

Hi,

Quoted 5 lines

That means this option can be programmed in the BIOS and we can have it as
option in the BIOS.
Am I right ?

Power button override is done at hardware level as Derek pointed out and what you have to look into is the Datasheet of your chipset.

For example, ICH4 Datasheet says:

2.10 Power Management Interface
Table 2-10. Power Management Interface Signals

<Quote>
PWRBTN#

      :

If PWRBTN# is pressed for more than 4 seconds, this causes an
unconditional transition (power button override) to the S5 state with only the PWRBTN# available as a wake event. Override occurs even if the system is in the S1-S4 states. This signal has an internal pull-up resistor.
</Quote>

Quoted 3 lines

Thanks,
- Adachi, Kenichi

-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php

#8 lore raw

Re: Keybaord and power button.

From: "siva" <[email protected]>

Quoted 4 lines

I have doubt regarding the power button.
With out keyboard connected to the linux machine, Is it possible to do gracefull shutdown of my machine by just pressing the Power button.

Usually. If you have ACPI enabled in the kernel, and you install the acpid daemon, acpid monitors /proc/acpi/events and, by default, shuts the system down with your standard shutdown sequence on a short button press (ie, less than 4 seconds). ACPI doesn't do this itself, it just sends events and lets something else choose how to handle them. Note, the acpid script may need to be tweaked, as it doesn't necessarily know the correct names of the button events.

In future, please address questions like this to the [email protected] list.

-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php