Software Support > Automated Projects |
Time Delay Power Button |
(1/2) > >> |
wxforecaster:
Using a SMART power strip, my plan is to power off all peripheral devices (monitor, speakers, etc...) when the PC is powered down. I want to use something like this: http://www.ebay.com/itm/16mm-12V-Angel-Eye-BLUE-Led-Metal-Switch-Latching-Push-Power-Button-US-/141013411290?pt=LH_DefaultDomain_0&hash=item20d50de5da which is a 12V LED momentary contact switch. I want a button press to turn on the computer (and all accessory devices plugged into the strip). I want the button press again to turn off the computer (and all accessory devices into the strip). Here's the catch: - To avoid an accidental press, I want the power button to act like the one on my PC. An instant press turn it on, but to turn it off, I have to hold it for 2-3 seconds first. - I want the computer to go through a normal clean shutdown process (hard powering off is not good). If it matters, I am using HyperSpin and an iPac for inputs. Thanks! |
DaOld Man:
Look in your BIOS settings. Most motherboards have the option to hold power button for 2-4 seconds to power down. But you don't want the hard power off. I think Windows XP has a power down option too. Check control panel to see if you can find it, I cant remember where it is. (I have Win7 on this PC and cant find it, but that doesn't mean it doesn't exist on Win7.) Of course if none of the above works for you, you could possible use a relay to switch the power button wires to a keyboard input on boot up so that the next power button press will trigger a shutdown in your frontend. Of course the frontend would have to be setup for this too. If you have a printer port, you could switch the button to an input on it, using a simple program that monitors that input, press and hold the button for 4 seconds and the programs initiates a windows shutdown. (I can probably produce a program for you if you want to go this route.) Lets think on it, im sure there is a simple way to do this. |
wxforecaster:
I think the "shutdown" aspect might be the easier of the two problems, as I think you could implement a keywait (or whatever the syntax is) into an autohotkey script used by HyperSpin. If the button isn't held down for X seconds, nothing happens. If it is, send a peaceful shutdown command to Windows. However, in the PC's off position, obviously nothing is there software wise to turn the computer on. I haven't even built the gaming PC yet, so this would all be tested via a dummy load on an old desktop, etc.. I'm planning on using a SSD and whatever OS makes the task easier (I've successfully run MAME and HyperSpin on XP and Win7 64 bit systems). Thanks for your offer of help "Old Man" :) |
DaOld Man:
Well, that's where the relay would come in. Connect the power button to the MB PWRON terms, then when it comes on, relay comes on and switches the power button to an input. Arcade shuts down, relay turns off, and power button is back to motherboard, ready for next on command. Relay could be a small 5 or 12 vdc DPDT. BTW: I run Mala and Mame on this 64 bit Win 7 PC quite a bit. |
wxforecaster:
So I get the concept of a relay, but figuring out which type I need is where I am lost. Obviously there is a voltage/amperage requirement on both halves of the relay. Not sure what the ATX power on requires, and the other half to the iPac would be 5V I assume. |
Navigation |
Message Index |
Next page |