[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: automatic poweroff



First of all, sorry to keep annoying you on this topic, and your help
is greatly appreciated.

As I was experimenting with ACPI, I noticed that on several occasions,
the machine DID poweroff cleanly. After a few kernel compilations and
many poweroffs, I realized that quickly pushing the power button (for
less than 4 secs) did not have any visible effect (no kernel message,
nothing in /var/log/acpid, nothing seen while doing a 'cat
/proc/acpi/event'), _BUT_ it did allow the machine to poweroff cleanly
when doing a 'poweroff -p' afterwards.

In other words, when i press the power button BEFORE doing a 'poweroff
-p', the machine powers down clealy.

When I dont, the same command stops at: "Acpi_enter_sleep_state:
Entering S5". At that moment, the monitor and the machine fans are
still on, but the keyboard wont respond.

The relevant bios settings are:
	Power Management:
		(x) User define
		( ) Disable
		( ) Min Saving
		( ) Max Saving
	Suspend to ram capability:
		(x) Enable
		( ) Disable

- What would you see as the reason for not seeing any event when
pressing the power button while doing a 'cat /proc/acpi/event'? Is
there a way to monitor acpi events before they enter the
'/proc/acpi/event' file?

- Some docs suggest I should have a '/proc/bus/acpi' directory, which
I dont have. Would that be the problem?

- Could it be a wrongly set bios setting? None explicitely talk about
ACPI though...

- Any ideas? :)

Thank you, once again.


PM, 22

On Sun, Jun 23, 2002 at 06:40:16PM -0400, Patrick Wiseman wrote:
> On Sun, 23 Jun 2002, Patrick M wrote:
> 
> > On Sun, Jun 23, 2002 at 04:55:34PM -0400, Patrick Wiseman wrote:
> > > On Sun, 23 Jun 2002, Patrick M wrote:
> 
> [...]
> 
> > > Are you saying that pressing and briefly holding the power button
> > > _doesn't_ initiate a shutdown?
> > 
> > Yes, I'm saying that pressing the power button for a short moment has
> > no visible effect on the machine / os. Keeping it pressed for a
> > certain moment (>4sec?) powers down the machine instantly.
> 
> In other words, it's not shutting down cleanly, so it's not actually doing
> '/sbin/init 0'.
> 
> > > Does 'ls /proc/acpi' show all the appropriate files?
> > > 
> > > Here's what I see:
> > > 
> > > ac_adapter  battery  dsdt   gpe   processor  thermal
> > > alarm       button   event  info  sleep
> > > 
> > > (Some of those are directories.)
> > 
> > Heres what I get:
> > 
> > $ ls /proc/acpi/
> > alarm  button  dsdt  event  gpe  info  processor  sleep
> > 
> > Could it be that I'm missing a single script which would be called
> > once all processes are stopped? Do you have a /etc/acpi/poweroff.sh
> > script?
> 
> No, I have the very same powerbtn.sh as you, and it's called when I
> initiate the power-button 'event'.
> 
> At this point, I'm not sure what to suggest.  I don't remember (this has
> been going on for a while :) whether you indicated what kind of machine
> we're talking about.  Is there a BIOS setting not set?  You _do_ have an
> ACPI-compliant BIOS?  I know, I'm just grasping at straws at this point.
> 
> Sorry,
> 
> Patrick
> 
> -- 
> Patrick Wiseman
> pwiseman@mindspring.com
> Linux user #17943
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: