1 |
On Sat, 2006-09-16 at 11:17 +1000, Andrew Lowe wrote: |
2 |
> |
3 |
> Just a slight hijacking of this topic, |
4 |
> I have a little EPIA server acting as firewall, npt, dhcp, dns,etc,etc. |
5 |
> Now even though it doesn't pull a lot of power, I don't want it running |
6 |
> all the time, it has something to do with missing ice caps. So I want to |
7 |
> build a button that attaches to the machine via, say, usb that when |
8 |
> pushed shuts the machine down. By a button I mean that sort of emergency |
9 |
> shutdown button that is usually red and used in industrial control, the |
10 |
> sort of thing the hero always has to push to save the heroine/world. |
11 |
|
12 |
don't know about the James Bond stuff - you'd probably also need an lcd |
13 |
countdown where the button only works if you press it on 007... |
14 |
|
15 |
anyway, you probably don't want to go exactly the way of the industrial |
16 |
Emergency Stop, as it's a hardware cutoff - ie. power is shut of |
17 |
straight away, without any software intervention. Your disks will |
18 |
probably survive the unclean unmounts, and you power supply may handle |
19 |
the voltage / frequency spikes from the switch opening, but why bother? |
20 |
|
21 |
If you really want, you can pick them up from any electrical distributer |
22 |
(in Australia anyway)... |
23 |
|
24 |
> Does anyone here have enough hardware design knowledge to say if this |
25 |
> would be easy or not and as to whether I should just lower my sights and |
26 |
> stick to the three finger salute or the "normal" on/off switch? |
27 |
|
28 |
If I were you, I'd want to stay with the ACPI power button, most popular |
29 |
OS's can detect this nicely. What you can do is this: |
30 |
|
31 |
- "splice" the power switch cable (the motherboard/case one, NOT the |
32 |
power supply side!). The button works by completing a circuit to the |
33 |
motherboard when pressed, so you can have two buttons doing the same |
34 |
thing on the same circuit. Join a new wire of each of the two existing |
35 |
wires. (Inside your case, they're usually labelled PWRSW or something). |
36 |
- buy any sort of big red button (normally open, non latching) and wire |
37 |
it to the two new wires. I have a nice arcade "fire" button which would |
38 |
do the trick. |
39 |
- stick it on the top / front of your case with a sign saying "PRESS |
40 |
ME" (or maybe "don't touch" if you want to go for the reverse psychology |
41 |
angle...) |
42 |
|
43 |
voila! |
44 |
|
45 |
> p.s. The main reason driving this is that the wife never turns the |
46 |
> server off. If I have a Big Red Switch, I can say "But it has a big red |
47 |
> switch, how can you miss it????" |
48 |
|
49 |
you could try some "reNedufication", or perhaps a script that detects |
50 |
how many users are logged in and for how long, and then shutdown |
51 |
automatically. Or just shutdown at midnight (or whatever time she's |
52 |
guaranteed not to be on... |
53 |
-- |
54 |
Iain Buchanan <iaindb at netspace dot net dot au> |
55 |
|
56 |
fortune: cannot execute. Out of cookies. |
57 |
|
58 |
-- |
59 |
gentoo-user@g.o mailing list |