On Wed, 19 Oct 2011 10:23:09 +0200 Paul de Weerd <we...@weirdnet.nl> wrote:
> On Wed, Oct 19, 2011 at 09:53:25AM +0300, Gregory Edigarov wrote: > | On Tue, 18 Oct 2011 21:36:11 +0200 > | Paul de Weerd <we...@weirdnet.nl> wrote: > | > | > On Tue, Oct 18, 2011 at 06:36:32PM +0200, Benny Lofgren wrote: > | > | Apart from the suggestions elsewhere in the thread, in the good > old | > days | I used to detect power outages by simply using a 12V > power | > adapter and | soldering together a special cable connecting > the +12V | > to the DCD pin of | an RS 232 serial connector. > | > > | > A more modern approach (for those machines lacking a serial port) > | > might be plugging in a USB device that needs external power (fed > from | > the wallsocket) and using hotplugd. When the device > disappears - arm | > a timer to go down. When the device comes back, > stop the timer. | > | :-) > | which particular device do you mean? > > Ehr, well .. the USB device that you picked for this particular > purpose of course. I think I misunderstood your question... well, I've just asked which device do you use for this particular purpose. Sorry if I seem unclean. > Paul 'WEiRD' de Weerd -- With best regards, Gregory Edigarov