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.
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
* 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
State Changed From-To: open->closed Author says it can be closed.