Bug 7812 - APM machines should attempt to power down at halt
Summary: APM machines should attempt to power down at halt
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 2.2.7-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1998-09-02 18:10 UTC by Nick Sayer
Modified: 1999-03-27 03:15 UTC (History)
0 users

See Also:


Attachments
file.diff (1.22 KB, patch)
1998-09-02 18:10 UTC, Nick Sayer
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Sayer 1998-09-02 18:10:00 UTC
Some laptops and ATX machines can power themselves off under APM
control. When such machines are halted, they should at least try
to power themselves off if APM events are enabled. If the attempt
fails, this code will fall through to the traditional 'press any
key to reboot' prompt.
Comment 1 rotel 1998-09-02 22:10:35 UTC
On Sep 2, 10:05am, Nick Sayer wrote:
} Subject: kern/7812: APM machines should attempt to power down at halt
> 
> >Number:         7812
> >Category:       kern
> >Synopsis:       APM machines should attempt to power down at halt

Hi Nick,

There have actually been several versions of this patch floating
around.  However, each of them does it differently to how its done
in -current, which is probably a bad thing.  I had merged the stuff
in -current into a -stable tree but accidentally blew it away, but
I'll redo it later today or tomorrow, perhaps it would be better
to use these as outlined above.

( Or you could do it, see boot in kern_shutdown.c ;) )

Niall


-- 
Niall Smart, rotel@indigo.ie.
Amaze your friends and annoy your enemies:
echo '#define if(x) if (!(x))' >> /usr/include/stdio.h
Comment 2 Satoshi Asami freebsd_committer freebsd_triage 1998-09-03 11:40:30 UTC
 * Some laptops and ATX machines can power themselves off under APM
 * control. When such machines are halted, they should at least try
 * to power themselves off if APM events are enabled. If the attempt
 * fails, this code will fall through to the traditional 'press any
 * key to reboot' prompt.

I think this is a bad idea.  We have a whole bunch of boxes that are
connected to serial consoles.  If they power off at halt, I'll have to 
drive 50 miles to press the power button. :<

What's wrong with having the user powering the machine off by himself?
If he's there, he can do it; if he's not, this is just an added
hassle.  (I can't really think of a reason why you would want to power
off a machine remotely....)

Satoshi
Comment 3 jkh freebsd_committer freebsd_triage 1999-03-27 03:12:51 UTC
State Changed
From-To: open->closed

Author says it can be closed.