<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.14.2">
</HEAD>
<BODY>
Le mardi 19 juin 2007 &#224; 09:50 -0400, Alexandre Quessy a &#233;crit&nbsp;:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Hi all,</FONT>
<FONT COLOR="#000000">I was wondering if someone has an idea on how one could create a</FONT>
<FONT COLOR="#000000">switch to turn on and off an installation. I was thinking about either</FONT>
<FONT COLOR="#000000">a push button to turn it off, or a web interface. Maybe one of those</FONT>
<FONT COLOR="#000000">two things could make Pd (or PHP) write to a file that would be parsed</FONT>
<FONT COLOR="#000000">by a cron job every minute. That cron job should be owned by root in</FONT>
<FONT COLOR="#000000">order to be able to halt the computer. Then, to turn it on, I guess</FONT>
<FONT COLOR="#000000">one could set the bios to turn on the computer automagically when the</FONT>
<FONT COLOR="#000000">power gets down and then up again... Or one could use the computer</FONT>
<FONT COLOR="#000000">power button (but in this case, it is an laptop that I want to hide</FONT>
<FONT COLOR="#000000">deeply...) The whole idea behind this is to avoid to suddenly turn off</FONT>
<FONT COLOR="#000000">the computer, which would probably corrupt the file system at some</FONT>
<FONT COLOR="#000000">point. Of course I use GNU/Linux : probably Ubuntu Server or Debian.</FONT>

<FONT COLOR="#000000">Any suggestion ?</FONT>

</PRE>
</BLOCKQUOTE>
hi alex,<BR>
<BR>
I lately setup a video installation using a Debian Lenny box on a mini-PC,&nbsp; that's hidden in the ceiling because of noise and visual distrubance.<BR>
Of course the ACPI button is &quot;very&quot; difficult to reach,&nbsp; Bios&nbsp; has been setup to restart after a power failure. The power cord is over 10m long and connected to a switchable power adaptor.<BR>
Shell access is granted from the artist's laptop running windoze thanks to Putty.<BR>
Pd is started/stopped from the command line. The box is shutdown thanks to the magical &quot;sudo halt&quot; command line. <BR>
<BR>
I used to connect that machine to an UPC, but never had enough time to have it commanded over serial port which a very good solution to both protect your machine from data loss and have it start/stop at will.<BR>
<BR>
++<BR>
O.<BR>
<BR>
</BODY>
</HTML>