Do you have a question? Post it now! No Registration Necessary
June 14, 2004, 8:09 am

Power Shutdown..
Currently my system has AC-DC industrial Power supply and on/off power
switch.
I have a R-W partition on which I write my data all the time. When
some one switch off the system it just goes down without proper
software shutdown.
I would like to implement a pushbutton which can switch on and switch
off the system. Specifically on switch off it should unmount all the
drives and shutdown it self.
Am I right to say; I need both ATX computable board and Power supply
to do this , or is there any other way of doing it.
I am using right now AT PC104+ stack, which has ACPI but not ATX.
Actual goal is to bring the system down properly and not by just
cutting of the power so it don't damage the drive and data on R-W
partition.
Any decent solution????
Cheers
Rushi
Currently my system has AC-DC industrial Power supply and on/off power
switch.
I have a R-W partition on which I write my data all the time. When
some one switch off the system it just goes down without proper
software shutdown.
I would like to implement a pushbutton which can switch on and switch
off the system. Specifically on switch off it should unmount all the
drives and shutdown it self.
Am I right to say; I need both ATX computable board and Power supply
to do this , or is there any other way of doing it.
I am using right now AT PC104+ stack, which has ACPI but not ATX.
Actual goal is to bring the system down properly and not by just
cutting of the power so it don't damage the drive and data on R-W
partition.
Any decent solution????
Cheers
Rushi

Re: Power Shutdown..

I'd connect the pushbutton switch to a transistor, so one of your
Digital IO lines can be monitored for a 'soft_swithch'. Upon
activation of this soft_switch, you would write a bit to a register.
Another piece of code would read the status bit out of the register
and use it to determine that you need to run
umount *
sync;sync;sync;reboot
or what ever you want. Upon reboot, you need to clear this status bit
outof the register.
Site Timeline
- » LCD/CRT controller
- — Next thread in » Embedded Linux
-
- » skyeye emulator/simulator
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » GMR-R-Kopf aus Festplatten
- — The site's Newest Thread. Posted in » Electronics (German)
-
- » OT: "We can stay retarded longer than they can stay solvent.?
- — The site's Last Updated Thread. Posted in » Electronics Design
-