[Nut-upsuser] Patches for NUT 2.2.2: APC SmartUPS-900
Arnaud Quette
arnaud.quette at free.fr
Mon May 4 08:32:23 UTC 2009
2009/5/3 Thomas Juerges
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Arnaud,
>
Hi Thomas,
> I just checked the 2.4.1 version of nut and found that you forgot to add
> my old UPS model (APC Smart-UPS 900). I guess it is because you were
> busy at the time when I sent you the patch. So here it goes again. :)
>
uh, right sorry.
I was pretty sure I applied it, but seems not.
it's now done and commited to the Development tree.
I've left your below information about older SmartUPS and Mac os tweaks
since I'm sure people will be interested in...
thanks a lot for your contrib and reminder ;-)
cheers,
Arnaud
--
Linux / Unix Expert R&D - Eaton - http://www.eaton.com/mgeops
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.free.fr/
Arnaud Quette wrote:
> > Hi Thomas,
> >
> > just to ack your mails. I'm currently on trip, at the FossCamp /
> > Ubuntu Developer Summit.
> > I'll really reply to you soon.
> >
> > thanks for your contrib and feedback.and see you soon.
> > -- Arnaud
> >
> > 2008/12/6 Thomas Juerges <thomas at sokrates.homelinux.net>:
> > Hi Arnaud,
> >
> > I am not sure if the message which I sent to you via your free.fr
> > account could reach you. Therefore i have attached it here and send
> > this one to both email addresses. In the case that you receive both,
> > please accept my apologies.
> >
> > Anyway, I have two patches for you which make the APC SmartUPS-900 work
> > (did already before) and report all of its status information (did not
> > do that before). I have attached two patches for inclusion into the
> > next release for your convenience.
> >
> > The mentioned patches are as well a reply for the question asked on the
> > NUT mailing list when somebody asked why an older SmartUPS would not
> > provide the same information as under apcupsd. Simple reason is that
> > the older SmartUPSes (at least mine, SmartUPS-900 w. 7TD firmware) do
> > not respond to the ^Z, a or b commands which are used to inquire what
> > they support.
> >
> >
> > I hope you'll find this useful. Cheers,
> > Thomas Juerges
> >
> >
> > -------- Original Message --------
> > Subject: Restarting Power Macs after power loss
> > Date: Fri, 05 Dec 2008 08:48:02 -0700
> > From: Thomas Juerges <thomas at sokrates.homelinux.net>
> > To: arnaud.quette at free.fr
> >
> > Hi Arnaud,
> >
> > first thanks for yor nice piece of software. I am using it on my Mac
> > Mini G4 since I installed Gentoo on it and I am quite happy with it
> > [https://www.sokrates.homelinux.net/nut/]. There are a few quirks but,
> > well, that's life. No free lunch. :)
> >
> > All right. Now for the more important things: I write to you in
> > response to your comment in this question in the NUT FAQ:
> >
> > Q: My PowerMac G4 won't power back up by itself (into Linux) after the
> > UPS shuts down. What can I do about this?
> >
> > [...]
> > Unfortunately, the hardware has evolved and there is no good
> > equivalent for this hack on today's systems.
> > [...]
> >
> > Here is what you have to do nowadays on Linux (Kernel 2.6.x).
> > Unfortunately this setting is not stored in NVRAM so you'll better have
> > it somewhere in rc.local or any other script that gets run every time
> > during a boot up.
> >
> > echo "server_mode=1" > /proc/pmu/options
> >
> > This will let the PowerMac restart every time after the power was lost -
> > as far as I can tell. I've got only one. :)
> >
> > Cheers,
> > Thomas
> >>
> - --- nut-2.2.2/drivers/apcsmart.c 2007-12-12 13:34:51.000000000
> -0700
> +++ nut-2.2.2-r1/drivers/apcsmart.c 2008-12-06 03:24:36.000000000 -0700
> @@ -536,6 +536,7 @@
> /* found one, force the model information */
> if (!strcmp(buf, "6QD") || /* (APC600.) */
> !strcmp(buf, "8QD") || /* (SmartUPS 1250,
> vintage 07/94.) */
> + !strcmp(buf, "7TD") || /* (SmartUPS 900,
> vintage 11/94.) */
> !strcmp(buf, "6TI") || /* (APC600.) */
> !strcmp(buf, "6QI")) { /* (APC600.) */
> upsdebugx(1, "Found Smart-UPS");
> >>
> - --- nut-2.2.2/drivers/apcsmart.h 2007-12-12 13:34:51.000000000
> -0700
> +++ nut-2.2.2-r1/drivers/apcsmart.h 2008-12-06 03:00:48.000000000 -0700
> @@ -261,6 +261,8 @@
> { "D6", "789ABCEFGKLMNOPQRSUVWXYZ", 0 },
> { "D5", "789ABCEFGKLMNOPQRSUVWXYZ", 0 },
> { "D4", "789ABCEFGKLMNOPQRSUVWXYZ", 0 },
> + /* SmartUPS 900 */
> + { "7TD", "79ABCDEFGKLMNOPQRSUVWXYZcefgjklmnopqrsuxz", 0 },
> /* SmartUPS 1250. */
> { "8QD", "79ABCDEFGKLMNOPQRSUVWXYZcefgjklmnopqrsuxz", 0 },
> >>
> >>
> >>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.11 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkn+AowACgkQMiyRSD9s+zV0oQCffFhtV0zs2InekhBrVey+fQ6o
> EW0An12lictuhgsldN/Yhfh2oVeTxmeP
> =9+Pn
> -----END PGP SIGNATURE-----
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20090504/67fd56df/attachment.htm>
More information about the Nut-upsuser
mailing list