Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Feb 1999 18:05:51 +0100 (CET)
From:      "D. Rock" <rock@wurzelausix.CS.Uni-SB.DE>
To:        garbanzo@hooked.net, jose@we.lc.ehu.es
Cc:        current@FreeBSD.ORG
Subject:   Re: How to power off an ATX power supply machine on shutdown ?
Message-ID:  <199902151705.SAA13182@wurzelausix.cs.uni-sb.de>

next in thread | raw e-mail | index | archive | help
> > > Is a delay needed between the final sync's and the actual power off?
> > 
> > Apparently so.  There is/was a recently added sysctl for this purpose.
> > Poke around in the archives.
> > 
> 
> Was that sysctl added to the -STABLE branch? I am running 3.1-BETA
> and I cannot find it.
No, they were added after the split and weren't backported to the 3.x branch.

But if you are impatient, you could just grab a copy of
sys/kern/kern_shutdown.c from a 4.0 branch and copy it to your tree.
The added sysctl is for now the only difference in this file.

Then you can specify somewhere in your rc files
sysctl -w kern.shutdown.poweroff_delay = x
with x measured in ms.

I have only seen one machine so far which suffers this problem of powering
off the machine too fast. On all other machines I know of either the mainboard
or the power supply (don't know which) have a small delay before powering off
the machine, which seems to be long enough for the drives to flush their
buffers.
On this particular machine, I set the delay to 1.5 seconds, and I never got
unclean filesystems again.

Daniel

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902151705.SAA13182>