power-off button and /etc/inittab
Federico Voges
fvoges
Mon May 17 11:39:20 PDT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
What you're talking about (as Aaron points out) is supported by ACPI
and any mothern motherboard using an ATX power suply.
In fact, it works with OpenLinux 3.1.1. You just need to load a few
kernel modules:
ospm_system
ospm_button
Note: ACPI is under heavy development, so it's very buggy and
incomplete (at least the code in 2.4.x series). I may work or not,
you'll have to try.
I have varied experiences with it (some motherboards worked and one
just ignored it).
If you really want ACPI support, I recommend you apply the latest ACPI
patches from http://acpi.sourceforge.net/
Bye
On 24 Oct 2002 10:10:48 -0700, Aaron Grewell wrote:
>This is true, all modern power switches on standard PC's are
>soft-switches. The machine generally does the right thing, but
>sometimes you still have to unplug it. That's why higher-quality ATX
>power supplies often have hardware switches on the back. You'll have to
>look into the current status of APMD (or perhaps ACPID) in order to see
>if they've worked out how to do this yet. They've been working on it,
>but I haven't got any confirmation that it's actually working yet. I
>haven't looked in awhile, though.
>
>On Thu, 2002-10-24 at 07:31, Stuart Biggerstaff wrote:
>> On ATX and a lot of proprietary architectures, hitting the power button
>> sends a software command--but it is sent directly to the BIOS, not the
>> OS. However you might look at the power management options in the BIOS to
>> see if any would be of use. As Dennis said, all too often the
>> software-controlled power-off button becomes non-functional if the
>> operating system packs it in, so there might be some easy hack to power
>> management.
>>
>> One easy way around this would be to use a UPS and the associated shutdown
>> software. Yank power to the UPS and it tells the computer to do a proper
>> shutdown, while providing the power to do so.
>>
>>
>> At 07:30 AM 10/24/02 -0600, Andrew Mathews wrote:
>> >m.w.chang wrote:
>> >>without attaching a keyboard to my server, I could press the power off
>> >>button and expect the linux to gracefully run `poweroff -n`, just like
>> >>the Window$. ctrl-alt-del is just a different way of `shutdown -r now`
>> >>Just 2 days ago, I needed to shutdown my linux server in a hurry (fire in
>> >>my building's ilft control room). well, still no life service until now
>> >>for those living on the 20th floor. hoho...
>> >>
>> >>>Huh? The power button isn't part of the keyboard, so no. I dont'
>> >>>understand what you're trying to do anyway.
>> >>
>> >
>> >If you can find a way to integrate the power switch into the operating
>> >system it would work, however you're asking it to essentially do a
>> >graceful shutdown *after* pulling the power cord from it. Kinda like
>> >sending out an email to let everyone know the mail server is down. After
>> >the fact is too late.
>> >
>> >--
>> >Andrew Mathews
>>
>>
>>
>> Stuart Biggerstaff
>>
>> Linda Hall Library of Science Engineering & Technology
>> 5109 Cherry St.
>> Kansas City, MO 64110
>>
>> Phone: (816) 926-8748
>> (800) 662-1545 x748
>> FAX: (816) 926-8785
>> URL: www.lindahall.org
>>
>> _______________________________________________
>> Linux-users mailing list
>> Linux-users at linux-sxs.org
>> Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users
>
>
>_______________________________________________
>Linux-users mailing list
>Linux-users at linux-sxs.org
>Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users
Federico Voges
Socio gerente
Intrasoft
Malabia 2137 14 A
(1425) Buenos Aires
Argentina
Te/Fax: 54-11-4833-5182
e-mail: fvoges at intrasoft.com.ar
Web: http://www.intrasoft.com.ar
PGP Public Key Fingerprint: A536 4595 EB6F D197 FBC1 5C3A 145C 2516
-----BEGIN PGP SIGNATURE-----
Version: PGPsdk version 1.7.1 (C) 1997-1999 Network Associates, Inc. and its affiliated companies.
iQA/AwUBPbgtDRRcJRaVKt4XEQJELACg0s8g1YwbquDK7cjFUuWUuiQbkC8AoIlz
BX6ag6jRuRZQduvAKqO8Bwzp
=pIuh
-----END PGP SIGNATURE-----
More information about the Linux-users
mailing list