Re: How to power off an ATX power supply machine on shutdown ?
Yes I know now... and it does work the only problem now is that I've only seen it once because I never turn the machine off !! :) On Tue, 16 Feb 1999, Warner Losh wrote: > In message Matthew Thyer > writes: > : I have "apm" in the kernel and it probes as apm v 1.2 but when > : the "shutdown -p now" command is run, the power is not turned > : off and I have to hold down the power button for 4 seconds to > : turn it off. > : > : Hows it done ? > > You need to set apm_enabled="YES" in your rc.conf file. > > Warner > > /=\ |Work: matthew.th...@dsto.defence.gov.au | Home: thy...@camtech.net.au| \=/ "If it is true that our Universe has a zero net value for all conserved quantities, then it may simply be a fluctuation of the vacuum of some larger space in which our Universe is imbedded. In answer to the question of why it happened, I offer the modest proposal that our Universe is simply one of those things which happen from time to time." E. P. Tryon from "Nature" Vol.246 Dec.14, 1973 To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message
Re: How to power off an ATX power supply machine on shutdown ?
In message Matthew Thyer writes: : I have "apm" in the kernel and it probes as apm v 1.2 but when : the "shutdown -p now" command is run, the power is not turned : off and I have to hold down the power button for 4 seconds to : turn it off. : : Hows it done ? You need to set apm_enabled="YES" in your rc.conf file. Warner To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message
Re: How to power off an ATX power supply machine on shutdown ?
> > > 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 majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message
Re: How to power off an ATX power supply machine on shutdown ?
Alex Zepeda wrote: > > > 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. -- JMA --- José Mª Alcaide | mailto:j...@we.lc.ehu.es Universidad del País Vasco | mailto:j...@es.freebsd.org Dpto. de Electricidad y Electrónica | http://www.we.lc.ehu.es/~jose Facultad de Ciencias - Campus de Lejona | Tel.: +34-946012479 48940 Lejona (Vizcaya) - SPAIN | Fax: +34-944858139 --- "Go ahead... make my day." - H. Callahan To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message
Re: How to power off an ATX power supply machine on shutdown ?
On Mon, 15 Feb 1999, Leif Neland wrote: > Could it be because the system thinks everything is flushed, but something > is still in the disk's write-cache? (If such a beast exists...) I think for whatever reason the computer is being powered off before it's finished syncing.. as in it doesn't check or care. > 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. - alex To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message
Re: How to power off an ATX power supply machine on shutdown ?
On Sun, 14 Feb 1999, Alex Zepeda wrote: > Note there's no mention of the limiting to version 1.1 or 1.0. Anyhow.. > try rebooting with the flags set to 0x0 and see if that works. I assume > that if you've got an ATX mobo, the BIOS is new enough that the APM > implementation shouldn't be too buggy... > I tried this; now it properly powers off. However, at bootup I get the message: "Warning: / not unmounted properly" Could it be because the system thinks everything is flushed, but something is still in the disk's write-cache? (If such a beast exists...) Is a delay needed between the final sync's and the actual power off? l...@neland.dk To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message
Re: How to power off an ATX power supply machine on shutdown ?
On Sat, 13 Feb 1999, Daniel C. Sobral wrote: > > Do you use the "Power up at " feature of the BIOS? > > No. After this thread, I figured I'd try out shutdown -p, and lo and behold it didn't work. Well I thought, I have apm enabled, apm(1) shows that. The probe shows that and so on. A little further checking and it was using flags 0x31 by default.. presumably to avoid using possibly buggy APM 1.2 features? Anyhow.. that caused apm to return results like: APM version: 1.2 APM Managment: Enabled AC Line status: on-line Battery status: unknown Remaining battery life: unknown Remaining battery time: unknown Number of batteries: unknown Resume timer: disabled Resume on ring indicator: enabled APM Capacities: unknown Note there's no mention of the limiting to version 1.1 or 1.0. Anyhow.. try rebooting with the flags set to 0x0 and see if that works. I assume that if you've got an ATX mobo, the BIOS is new enough that the APM implementation shouldn't be too buggy... - alex To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message
Re: How to power off an ATX power supply machine on shutdown ?
Alexander Leidinger wrote: > > On 12 Feb, Daniel C. Sobral wrote: > > >> > Do I have to run "apmconf -e" (The owner hasn't tried this yet) > >> > >> Yes. There is a knob in /etc/rc.conf ("apm_enable") that forces > >> this at startup. > > > > It doesn't work in all cases, though. It sure doesn't work on _my_ > > machine. > > Do you use the "Power up at " feature of the BIOS? No. -- Daniel C. Sobral(8-DCS) d...@newsguy.com d...@freebsd.org Well, as a computer geek, I have to believe in the binary universe. To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message
Re: How to power off an ATX power supply machine on shutdown ?
On 12 Feb, Daniel C. Sobral wrote: >> > Do I have to run "apmconf -e" (The owner hasn't tried this yet) >> >> Yes. There is a knob in /etc/rc.conf ("apm_enable") that forces >> this at startup. > > It doesn't work in all cases, though. It sure doesn't work on _my_ > machine. Do you use the "Power up at " feature of the BIOS? Bye, Alexander. -- "Darth Vader sleeps with a Teddywookie." Fortune cookie http://netchild.home.pages.de/A.Leidinger @ wurzelausix.cs.uni-sb.de To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message
Re: How to power off an ATX power supply machine on shutdown ?
"Jose M. Alcaide" wrote: > > Matthew Thyer wrote: > > Anyway, how do I power off a machine on shutdown ? > > > > I have "apm" in the kernel and it probes as apm v 1.2 but when > > the "shutdown -p now" command is run, the power is not turned > > off and I have to hold down the power button for 4 seconds to > > turn it off. > > > > Hows it done ? > > > > Do I have to run "apmconf -e" (The owner hasn't tried this yet) > > Yes. There is a knob in /etc/rc.conf ("apm_enable") that forces > this at startup. It doesn't work in all cases, though. It sure doesn't work on _my_ machine. -- Daniel C. Sobral(8-DCS) d...@newsguy.com d...@freebsd.org Well, as a computer geek, I have to believe in the binary universe. To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message
Re: How to power off an ATX power supply machine on shutdown ?
Matthew Thyer wrote: > Anyway, how do I power off a machine on shutdown ? > > I have "apm" in the kernel and it probes as apm v 1.2 but when > the "shutdown -p now" command is run, the power is not turned > off and I have to hold down the power button for 4 seconds to > turn it off. > > Hows it done ? > > Do I have to run "apmconf -e" (The owner hasn't tried this yet) > Yes. There is a knob in /etc/rc.conf ("apm_enable") that forces this at startup. -- JMA --- José Mª Alcaide | mailto:j...@we.lc.ehu.es Universidad del País Vasco | mailto:j...@es.freebsd.org Dpto. de Electricidad y Electrónica | http://www.we.lc.ehu.es/~jose Facultad de Ciencias - Campus de Lejona | Tel.: +34-946012479 48940 Lejona (Vizcaya) - SPAIN | Fax: +34-944858139 --- "Go ahead... make my day." - H. Callahan To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message
How to power off an ATX power supply machine on shutdown ?
Sorry if this is inappropriate for -CURRENT but I am mailing here as the answer may be to do with recent committed features to -CURRENT (intpm ??). Anyway, how do I power off a machine on shutdown ? I have "apm" in the kernel and it probes as apm v 1.2 but when the "shutdown -p now" command is run, the power is not turned off and I have to hold down the power button for 4 seconds to turn it off. Hows it done ? Do I have to run "apmconf -e" (The owner hasn't tried this yet) I cant give more info as it's not my machine and I only see it on weekends. /=\ |Work: matthew.th...@dsto.defence.gov.au | Home: thy...@camtech.net.au| \=/ "If it is true that our Universe has a zero net value for all conserved quantities, then it may simply be a fluctuation of the vacuum of some larger space in which our Universe is imbedded. In answer to the question of why it happened, I offer the modest proposal that our Universe is simply one of those things which happen from time to time." E. P. Tryon from "Nature" Vol.246 Dec.14, 1973 To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message