power-off button and /etc/inittab
Aaron Grewell
agrewell
Mon May 17 11:39:20 PDT 2004
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
More information about the Linux-users
mailing list