<br><div class="gmail_quote">2009/5/3 Thomas Juerges<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div>-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Hi Arnaud,<br>
</div></blockquote><div><br>Hi Thomas,<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>
</div>I just checked the 2.4.1 version of nut and found that you forgot to add<br>
my old UPS model (APC Smart-UPS 900).  I guess it is because you were<br>
busy at the time when I sent you the patch.  So here it goes again. :)<br>
</blockquote><div><br>uh, right sorry.<br>I was pretty sure I applied it, but seems not.<br>it&#39;s now done and commited to the Development tree.<br><br>I&#39;ve left your below information about older SmartUPS and Mac os tweaks since I&#39;m sure people will be interested in...<br>
<br>thanks a lot for your contrib and reminder ;-)<br><br>cheers,<br>Arnaud<br>-- <br>Linux / Unix Expert R&amp;D - Eaton - <a href="http://www.eaton.com/mgeops" target="_blank">http://www.eaton.com/mgeops</a><br>Network UPS Tools (NUT) Project Leader - <a href="http://www.networkupstools.org/" target="_blank">http://www.networkupstools.org/</a><br>


Debian Developer - <a href="http://www.debian.org/" target="_blank">http://www.debian.org</a><br>Free Software Developer - <a href="http://arnaud.quette.free.fr/" target="_blank">http://arnaud.quette.free.fr/</a><br><br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


<div>
Arnaud Quette wrote:<br>
&gt; Hi Thomas,<br>
&gt;<br>
&gt; just to ack your mails. I&#39;m currently on trip, at the FossCamp /<br>
&gt; Ubuntu Developer Summit.<br>
&gt; I&#39;ll really reply to you soon.<br>
&gt;<br>
&gt; thanks for your contrib and feedback.and see you soon.<br>
&gt; -- Arnaud<br>
&gt;<br>
&gt; 2008/12/6 Thomas Juerges &lt;<a href="mailto:thomas@sokrates.homelinux.net" target="_blank">thomas@sokrates.homelinux.net</a>&gt;:<br>
</div><div><div></div><div>&gt; Hi Arnaud,<br>
&gt;<br>
&gt; I am not sure if the message which I sent to you via your <a href="http://free.fr" target="_blank">free.fr</a><br>
&gt; account could reach you.  Therefore i have attached it here and send<br>
&gt; this one to both email addresses.  In the case that you receive both,<br>
&gt; please accept my apologies.<br>
&gt;<br>
&gt; Anyway, I have two patches for you which make the APC SmartUPS-900 work<br>
&gt; (did already before) and report all of its status information (did not<br>
&gt; do that before).  I have attached two patches for inclusion into the<br>
&gt; next release for your convenience.<br>
&gt;<br>
&gt; The mentioned patches are as well a reply for the question asked on the<br>
&gt; NUT mailing list when somebody asked why an older SmartUPS would not<br>
&gt; provide the same information as under apcupsd.  Simple reason is that<br>
&gt; the older SmartUPSes (at least mine, SmartUPS-900 w. 7TD firmware) do<br>
&gt; not respond to the ^Z, a or b commands which are used to inquire what<br>
&gt; they support.<br>
&gt;<br>
&gt;<br>
&gt; I hope you&#39;ll find this useful.  Cheers,<br>
&gt;        Thomas Juerges<br>
&gt;<br>
&gt;<br>
&gt; -------- Original Message --------<br>
&gt; Subject: Restarting Power Macs after power loss<br>
&gt; Date: Fri, 05 Dec 2008 08:48:02 -0700<br>
&gt; From: Thomas Juerges &lt;<a href="mailto:thomas@sokrates.homelinux.net" target="_blank">thomas@sokrates.homelinux.net</a>&gt;<br>
&gt; To: <a href="mailto:arnaud.quette@free.fr" target="_blank">arnaud.quette@free.fr</a><br>
&gt;<br>
&gt; Hi Arnaud,<br>
&gt;<br>
&gt; first thanks for yor nice piece of software.  I am using it on my Mac<br>
&gt; Mini G4 since I installed Gentoo on it and I am quite happy with it<br>
&gt; [<a href="https://www.sokrates.homelinux.net/nut/" target="_blank">https://www.sokrates.homelinux.net/nut/</a>].  There are a few quirks but,<br>
&gt; well, that&#39;s life.  No free lunch. :)<br>
&gt;<br>
&gt; All right.  Now for the more important things:  I write to you in<br>
&gt; response to your comment in  this question in the NUT FAQ:<br>
&gt;<br>
&gt; Q: My PowerMac G4 won&#39;t power back up by itself (into Linux) after the<br>
&gt;    UPS shuts down.  What can I do about this?<br>
&gt;<br>
&gt; [...]<br>
&gt; Unfortunately, the hardware has evolved and there is no good<br>
&gt;    equivalent for this hack on today&#39;s systems.<br>
&gt; [...]<br>
&gt;<br>
&gt; Here is what you have to do nowadays on Linux (Kernel 2.6.x).<br>
&gt; Unfortunately this setting is not stored in NVRAM so you&#39;ll better have<br>
&gt; it somewhere in rc.local or any other script that gets run every time<br>
&gt; during a boot up.<br>
&gt;<br>
&gt; echo &quot;server_mode=1&quot; &gt; /proc/pmu/options<br>
&gt;<br>
&gt; This will let the PowerMac restart every time after the power was lost -<br>
&gt; as far as I can tell.  I&#39;ve got only one. :)<br>
&gt;<br>
&gt; Cheers,<br>
&gt;        Thomas<br>
&gt;&gt;<br>
</div></div>- --- nut-2.2.2/drivers/apcsmart.c        2007-12-12 13:34:51.000000000<br>
<div>-0700<br>
+++ nut-2.2.2-r1/drivers/apcsmart.c     2008-12-06 03:24:36.000000000 -0700<br>
@@ -536,6 +536,7 @@<br>
               /* found one, force the model information */<br>
               if (!strcmp(buf, &quot;6QD&quot;) || /* (APC600.) */<br>
                               !strcmp(buf, &quot;8QD&quot;) || /* (SmartUPS 1250,<br>
vintage 07/94.) */<br>
+                               !strcmp(buf, &quot;7TD&quot;) || /* (SmartUPS 900,<br>
vintage 11/94.) */<br>
                               !strcmp(buf, &quot;6TI&quot;) || /* (APC600.) */<br>
                               !strcmp(buf, &quot;6QI&quot;)) { /* (APC600.) */<br>
                       upsdebugx(1, &quot;Found Smart-UPS&quot;);<br>
&gt;&gt;<br>
- --- nut-2.2.2/drivers/apcsmart.h        2007-12-12 13:34:51.000000000<br>
-0700<br>
+++ nut-2.2.2-r1/drivers/apcsmart.h     2008-12-06 03:00:48.000000000 -0700<br>
@@ -261,6 +261,8 @@<br>
       { &quot;D6&quot;,         &quot;789ABCEFGKLMNOPQRSUVWXYZ&quot;, 0 },<br>
       { &quot;D5&quot;,         &quot;789ABCEFGKLMNOPQRSUVWXYZ&quot;, 0 },<br>
       { &quot;D4&quot;,         &quot;789ABCEFGKLMNOPQRSUVWXYZ&quot;, 0 },<br>
+       /* SmartUPS 900 */<br>
+       { &quot;7TD&quot;,        &quot;79ABCDEFGKLMNOPQRSUVWXYZcefgjklmnopqrsuxz&quot;, 0 },<br>
       /* SmartUPS 1250. */<br>
       { &quot;8QD&quot;,        &quot;79ABCDEFGKLMNOPQRSUVWXYZcefgjklmnopqrsuxz&quot;, 0 },<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
<br>
</div>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2.0.11 (GNU/Linux)<br>
<div>Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org" target="_blank">http://enigmail.mozdev.org</a><br>
<br>
</div>iEYEARECAAYFAkn+AowACgkQMiyRSD9s+zV0oQCffFhtV0zs2InekhBrVey+fQ6o<br>
EW0An12lictuhgsldN/Yhfh2oVeTxmeP<br>
=9+Pn<br>
-----END PGP SIGNATURE-----<br>
<br>
</blockquote></div>