<div dir="ltr"><div><div>Euan,<br><br></div>I had discounted a solution like that at first, due to the fact you could bump a cable causing a bus reset we may not catch. However the syslog monitor to cater for that and doing an existence check on the guid file, this should catch when someones kicked a cable out.<br>
<br></div>Leon<br></div><div class="gmail_extra"><br clear="all"><div>--<br>DRM 'manages access' in the same way that jail 'manages freedom.'<br><br># cat /dev/mem | strings | grep -i cats<br>Damn, my RAM is full of cats... MEOW!!</div>

<br><br><div class="gmail_quote">On Sun, Dec 22, 2013 at 11:14 PM, Euan de Kock <span dir="ltr"><<a href="mailto:euan@dekock.net" target="_blank">euan@dekock.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Hi Leon,<br>
      <br>
      I've attached a bash script that does waht you're trying to
      acheive (sort of, you'll need to cut to size...)<br>
      <br>
      This just watches the list of FW devices as reported, and reports
      whether our specific device is available or not.<br>
      <br>
      It requires one command parameter, the GUID of the device.<br>
      <br>
      Regards,<br>
      <br>
      Euan.<div><div class="h5"><br>
      <br>
      <br>
      On 12/22/2013 06:46 PM, Leon Wright wrote:<br>
    </div></div></div>
    <blockquote type="cite"><div><div class="h5">
      <div dir="ltr">
        <div>
          <div>All,<br>
            <br>
          </div>
          I've come up with something that at least triggers a restart
          of the camera when it's plugged back in. I'd like to know that
          it's gone, but this will have to do for now.<br>
          <br>
          <a href="https://github.com/lukejohnosmahi/eventstreamr/blob/dev/station/bin/station-dvmon.pl" target="_blank">https://github.com/lukejohnosmahi/eventstreamr/blob/dev/station/bin/station-dvmon.pl</a><br>
          <br>
        </div>
        Regards,<br>
        <br>
        Leon<br>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div>--<br>
          DRM 'manages access' in the same way that jail 'manages
          freedom.'<br>
          <br>
          # cat /dev/mem | strings | grep -i cats<br>
          Damn, my RAM is full of cats... MEOW!!</div>
        <br>
        <br>
        <div class="gmail_quote">On Sun, Dec 22, 2013 at 11:17 AM, Leon
          Wright <span dir="ltr"><<a href="mailto:techman83@gmail.com" target="_blank">techman83@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div>
                <div>
                  <div>All,<br>
                    <br>
                    I've done a bit of poking around and have yet to
                    find a way I can use to detect when a camera drops
                    out. DVgrab kindly persists (even with
                    dvsource-firewire + tally light) and fails to carry
                    on when you replug the camera.<br>
                    <br>
                  </div>
                  I thought about using inotify to watch the sys paths,
                  however it doesn't appear to be able to monitor these
                  paths. I also pondered watching the syslog, but it
                  doesn't log anything on disconnect.<br>
                  <br>
                </div>
                I imagine there would be a kernel event I could hook
                into, but that's a little beyond my current skillset and
                available time to figure out.<br>
                <br>
              </div>
              If anyone has some ideas, I'd love to hear them!<br>
              <br>
              Leon<br>
              <div>
                <div>
                  <div>
                    <div><br clear="all">
                      <div>--<br>
                        DRM 'manages access' in the same way that jail
                        'manages freedom.'<br>
                        <br>
                        # cat /dev/mem | strings | grep -i cats<br>
                        Damn, my RAM is full of cats... MEOW!!</div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
AV mailing list
<a href="mailto:AV@plug.org.au" target="_blank">AV@plug.org.au</a>
<a href="http://lists.plug.org.au/mailman/listinfo/av" target="_blank">http://lists.plug.org.au/mailman/listinfo/av</a>
</pre>
    </blockquote>
    <br>
  </div>

<br>_______________________________________________<br>
AV mailing list<br>
<a href="mailto:AV@plug.org.au">AV@plug.org.au</a><br>
<a href="http://lists.plug.org.au/mailman/listinfo/av" target="_blank">http://lists.plug.org.au/mailman/listinfo/av</a><br>
<br></blockquote></div><br></div>