Introduction: One Part $1 Computer Security Power Lockout
It's a PC... The Apple sticker came with my iPod...LOL.
I have been looking at a number of ways to easily secure a PC in an environment where not everyone may be 100% trusted.
Maybe you have a sneaky roommate / Mother / Father / brother / sister that you know is using your computer when you are out, at school or at work (possibly reading your chat logs and going through your files).
Maybe you just want to give potential thieves the impression your system is dead as a doorknob.
And I don't know how many marriages have broken up or fights started with "I went into their Facebook, and saw...."
Whatever your reason, you don't want people messing with your computer.
First - if your computer allows itself to be powered on from the keyboard, go into the CMOS setup (the BIOS) and disable that feature.
The procedure for this will vary from system to system, so you may need to consult your motherboard manual in order to do this.
We need to disable anything that can make the system power up other than the power switch.
Most systems are set this way by default, and most modern keyboards don't have a power button anymore because people got tired of losing their work because the cat decided you were done anyway..
Step 1: Where and How to Hide the Hardware
If you have a keypad, or switches or a card reader or something like that, this gives someone that wants access to your system a starting point. They know WHAT they have to bypass to get into your system, even if they don't know how yet.
So the answer is - don't put your safe in the middle of the room if you know someone wants what's inside.
Make them think you don't have a safe.
A safe-cracker can't get your goodies if he is convinced you don't even have a safe.
So the question is...where and/or how do we hide the security function?
So it hit me - what do all PC cases seem to have that we can use?
That seemingly innocent reset button hidden in plain sight!
The question then becomes how to use it.
Sure, we could reverse the power and reset buttons, but someone that hits the power and sees that your system won't turn on may simply guess that he got the wrong button and try the reset.
We could put a microcontroller on them and make up some sort of sequence requirement to power it up, but that requires money, programming skill, and more effort than most people have time for. I happen to be both lazy and cheap.
But... what if you simply had to hit BOTH buttons at the same time?
This is something someone would normally never do, and we can wire that up quickly, easily, and cheaply !
Step 2: How It's Done (The Hardware)
Ok, so it's easy to wire up the switches in series - but then you lose your reset function.
So we need a way to power it up with the buttons in series, and return the buttons to their normal functions after power on.
We also want it to go back to the "locked" position after power down!
Well, fortunately for us, motherboards use active low signals for the power and reset functions. This means that the signal pins are held high, and perform their designated function when connected to ground.
To do this, we can use a DPDT (double pole double throw - the equivalent of two 2-way switches) relay to do the switching for us.
I used a 12V relay. When the system powers up, the 12V outputs of the power supply become active, and when it powers down, of course there is no longer a voltage there. This means any 12V source from the power supply will work for us.
Similarly, if you have 5V relays handy use a 5V line.
Since I am using 12V and didn't want to hack my supply at all, I tapped into a fan power line.
When power is OFF we want the power button connected to the POWER signal line of the motherboard, but we want it to have to go through the reset button to get to ground.
This means that in the off state, we want the power button's ground line severed and connected to the reset button, whose reset signal line is severed. The reset button must after all provide the path to ground.
So, we get the relay to tie the power switch's severed ground line to the reset button's severed signal line.
The moment power is on, the relay can then connect the power button's ground line back to ground, and the reset button's signal line back to the reset signal of the motherboard.
Here's the basic circuit. Please note that lines that cross each other are not interconnected.
Step 3: Hiding Hardware and Finding Common Ground
So we're going to hide the hardware so that even if someone opens the case, they won't see anything out of the ordinary.
The best place is the face panel of the PC itself where the switches are.
Anything you do past this point is at your own risk, and I will not be held responsible for any damage you may cause to anything anywhere ever as a result of anything I say or have said in this instructable.
Now that the disclaimer is out of the way, let's get started.
First, we unplug the computer's power supply, and then open up the front of the case by removing the case covers, finding the screws or clips that hold the front panel in place and removing / un-clipping them to remove the front panel.
Once the front panel is open, locate the wires going into the power and reset switches.
Separate the wire pairs for about a 2 inch stretch each using a sharp knife. Just separate them if they aren't already separate, don't cut through them.
.
Time to find out which wires are ground, and which are signal!
I am lazy, and didn't want to trace them to the motherboard because there's 8 drives and various ports in it, so it's not easy to get to the system board itself.
So, I put the multi-meter into resistance / conductivity mode, and clipped the negative lead to the computer case for ground.
I clipped the positive lead to a metal box cutter / utility knife, and GENTLY cut the wire insulation just enough for the blade to contact the wire itself underneath. Your meter MUST have conductivity with the blade of the knife !!!
When your ohm meter reads 1 or 0, or your continuity checker indicates continuity, you have found the ground half of that switch's pair of wires.
I started with the power switch wires. Once I find the one that is ground, I cut it, because on the power switch side, we want the switch wired to the power signal on the motherboard, and the ground to go to either the reset switch, or ground depending on if the system is on or not respectively.
Step 4: Finding Common Ground - Continued
Now we do the same thing for the reset line, except this time when we find the ground wire, we cut the OTHER wire of the reset switch pair, because we want the reset switch to be the path to ground for the power switch when the system is off.
So, we cut the reset signal wire, as it will be either connected to the power switch in series, or the reset signal on the motherboard depending on if the system is off or on respectively . Here you can see the already cut power switch ground wire (white).
BONUS - since the ground of the power switch will be connected to the relay for switching anyway, we can also use the same line for ground for the relay coil. One less wire to run into the system for relay power.
The other side of the coil is wired into the front fan power in my system because (A) I didn't want to hack my power supply at all, and (B) it was right there, and I am lazy. You can of course use any 12V power line in the computer.
In this photo you can actually see the meter lead connected to my knife. The green alligator clip on the casing is connected to the other meter lead. Here you can see the resistance is 1 ohm (ground). My meter never reads 0...just the way it is.
Step 5: Connect the Hardware.
Now it's time to connect the relay.
There are 2 ends of each wire that you have cut. One side connects to the button, the other goes to the motherboard.
A DPDT (double pole, double throw) relay has 2 switches in it. Each switch has a pole. This is the line that connects to one of the 2 contacts of that switch in the relay. The contacts are normally open (off when there is no power) and normally closed (on when there is no power)
The "Button side" of the cut wires go to the common or POLES of the relay (one to each of the poles), and their corresponding other cut ends go to the normally open (N/O or NO) connection of the respective pole for that wire. This means the cut wires will be connected through when there is power to the relay. The normally closed contacts (N/C or NC) are tied together. This connects the power and reset switches together in series when the power is off.
***Don't wire your relay the exact way mine is pictured, because some relays have the pole contact at the end (either end, opposite ends etc.), others have them in the middle. Look at the diagram printed on your relay or in the datasheet for the relay you purchased, pilfered or pulled. What you see in the photo is right for my relay, but may not be right for yours.
If you are unsure, post a photo of your relay, and I'll try to help you out. Photograph the diagram printed on the relay, unless it doesn't have one, in which case you can just say what the part number is.
Step 6: Close It Up, We're Done!
Hot glue or otherwise secure the relay where it won't interfere with the closing of the front panel.
Usually the reset and power buttons stick out enough that you can see that you can put a small relay just about anywhere in the front panel cavity.
Close up the panel and plug your computer back in. Test it by pressing the power switch (nothing should happen) then press just the reset switch (nothing should happen again) and then both buttons together or hold one button and press the other (computer should power up, relay clicks, and all switches are now in normal operating mode).
Once powered up, your reset and power buttons should work as normal to reset or power down the system.
If you find they don't (for instance, pressing and holding the power switch doesn't shut it down, or the system is in permanent reset and doesn't boot), then you may have gotten the pole and contacts backwards somewhere - check your connections and check or rewire your relay.
Most of these miniature relays cost about a buck (unless you buy only 1, then it might be more - I usually buy 5 or 10 at a time) and sometimes you can just salvage a relay from somewhere. Just make sure it's either 5 or 12 volts, and wire it accordingly.
5V won't turn on a 12V relay, and 12V will fry a 5V relay!
Now when someone tries to turn on your system , it'll just sit there looking stupid.
If someone opens the case, they won't see anything unusual.
You don't need a key you can lose or a password you can forget to power it up whenever you want to.
I hope you have enjoyed this, and find it useful!
I'd love to see the look on your sneaky roommate / mother / father / brother / sister's face when they see you use your computer every day, but can never power it up themselves when they try to use it without permission!
LOL!

Participated in the
Hardware Hacking
10 Comments
9 years ago on Introduction
Ok, i have a couple ideas... Made the account to tell them so hope you like them.
How about a magnetic reed switch inline with the power switch, magnet nearby power switch works, magnet not nearby power switch does not.
On Alterator's Idea, I believe that the switch to ground is fine for both the reset and power lines, as far as the power-reset switch again that should be fine. They both should only have pullup resistors on them and are inputs to the same chip.
For a more advanced idea, how about using a Bluetooth LE module and putting that inline between the power switch and the motherboard, then you can have some software on your phone that will tell the BTLE module to allow power presses or disallow power presses.
Reply 9 years ago on Introduction
My problem with the reed switch is that you then have to have a magnet with you to turn on the PC. If you're anything like me, I can lose a screwdriver between screws 1 and 2 of a job...LOL.
As for the bluetooth - well, the idea here was to make a very simply power lockout that almost anyone can build. Personally, I don't even own a bluetooth enabled phone, and even if I did, the skill required would be above the average person here.
That's why I didn't even go into hiding an arduino / ATmega328P in the circuit so that you have to do something like PRRPRPRRP (r being reset, P being power) or some such sequence before it powers up. It's a great idea, but not quite accessible to the beginner.
The genius of this project is it's simplicity.
1 simple part, a little solder, and you've got it.
No programming, nothing you can lose or forget, and that inexplicable look on the roommate's face when you sit down, turn it on, and it works for you but not them.
The bluetooth is an interesting idea for the more advanced crowd though, and I encourage you to build them and make an instructable of your own outlining the process so that others may build it as well.
I'm going to be doing one later I think with those RDID cards like you have to access rooms at work etc. and possibly make it so that different cards give you different access levels to the OS.
Reply 9 years ago on Introduction
Sorry, RFID cards.
10 years ago on Introduction
nice writeup.
theoretically this should also work. saves a relay! :) if you don´t have one on hand.
someone test it out, and post results. ;)
Reply 10 years ago on Introduction
Although this MAY work, when just the power is pressed, it ties the power signal to the reset signal, and since we have no idea what this might do to the circuits responsible for those functions, it's best not to do it at all.
Since the signals are active low, we must assume they are pulled high when at rest.
If for instance the reset circuit is a 5V circuit, but the power is a 3.3, you could blow the circuit responsible for detecting the power signal (and vice versa if they are reversed).
It's not a risk I am willing to take with my motherboard, and I don't suggest anyone else do so either lest you brick your motherboard.
This is why I specifically isolate the 2 circuits from each other using the DPDT.
Also, there's no guarantee that the reset signal line isn't low enough to allow the power on to trigger when the button is pressed either - defeating the purpose. But my main concern would be the prior.
10 years ago on Introduction
Very clever. Love the idea. Unfortunately my kids would see me doing that and soon figure it out. I would also suggest putting the two switches in series and doing away with the relay. I can't remember the last time I hit the reset switch. I am still rather partial to locking out bios with a password, turning off all boot sequences other than first hard drive, and then a good OS password. That basically keeps the riff/raff out also. Thanks for sharing, very good idea.
Reply 10 years ago on Introduction
I guess I was just trying to send you a compliment. In my 24 years as an IT tech, I thought this was clever. Everything you have said is true. Kind of reminds me of a time when a customer said "the boss is gone for the day, he has a key lock that prevents his pc from powering up". It would have taken 2 seconds to bypass that with the case open. Same amount of time as resetting the bios which you mentioned. What makes your idea nice is that it isn't that obvious. I'm glad the average Joe doesn't know how to start a pc without using the power switch. Your idea would definitely keep a lot of people out of your pc.
Reply 10 years ago on Introduction
We must have the relay to return the switches to their native functions after power up.
I am not going to sacrifice a function to create another.
Plus, my way you can shut it off with the power button alone.
Personally, there are times I have to hit the reset. Glad you never have to, but everyone isn't you, and if the relay wasn't there, the #1 complaint would be the loss of the reset function.
If I see a password, I know where to start. If your kids will see you hitting both buttons, they will see you typing your password.
Myself, when it pops up and glaringly asks for a password, I know immediately that this is what I need to hack. Being lazy, I wouldn't hack it though, and I'd pop the side panel and hit the CMOS clear jumper - POOF, no more password.
I was trying to create something that doesn't even look like it's there.
Sort of like the secret door in the book case.
Don't want people to know about the door? don't open it when the kids are watching.
Don't want the kids to figure it out? Don't power up when they are watching.
Simple.
Most people are like you, and that's the beauty - they never even think of the reset button. All they know is that you can power it up, and they can't, and they don't know how.
Reply 10 years ago on Introduction
Oh ya, once the CMOS password is cleared, the boot sequences go back to normal, and I can boot from a CD to clear the OS password.
I can't do ANY of those things if I can't even turn it on!
Reply 10 years ago on Introduction
My prime motivation here was to make something that would even stump me, had I not thought of it myself.