Becoming powerless
At 1:30am this morning my wife woke me up.
"The power is out."
My sleep addled brain slowly came online, registering what she said to me. I cast a quick glance at the digital clock on the nightstand and sure enough it was dead. There was a mild thunderstorm in our area. As I lay there debating whether this required action on my part—again, my brain wasn't fully activated yet—I heard the faint cry of my UPSs down in my basement office.
It's rare the power goes out in our area and if it does, it never stays off more than a couple of minutes. The UPSs that powered the various machines in the basement could easily handle a 2 or 3 minute outage. That's when my wife said:
"It's been out for about 15 minutes."
Ninja like I sprang into action, racing down the now pitch black stair case and hoping I wouldn't twist an ankle and plunge headfirst to an embarrassing demise: "Local hero perishes in valiant effort to save data" would be an unlikely headline. "Local idiot dives off staircase for computer and dies" would probably be it. You know you've been in IT too long when you hear the bleeping of a UPS alarm and have the same visceral response a mom does to a crying baby; "they need me"! Damn, I am such a geek.
There are three UPSs in my office, two of them were crying out that they needed power while the third—the one powering my Mac Pro—was silent. I powered down the two machines attached to the other UPSs and looked over at the now completely silent Mac Pro. It's UPS couldn't handle the load that long and I had a couple of external devices sucking power off that same UPS as well. A silent white flash outside, followed a few seconds later by the rumble of thunder simply set the moment. Man, I hoped I had saved everything important and that Time Machine wasn't in the middle of a backup when it died.
Apparently the power came back a couple of hours later. When I did finally wake up I was greeted with what seemed like dozens of flashing digital clocks throughout the house. I love that engineers put digital clocks on ovens, microwaves, coffee makers, etc. I just wish they would put friggin batteries in them too.
I powered up the Mac Pro and started in for the day. I opened up Console.app and scanned through all of the entries. I didn't see anything noteworthy and after firing up a few applications everything seemed fine. If you are ever curious as to what your machine does when it starts up fire up Console, click on Show Log List and then click on All Messages right after boot up. Lots and lots of information in there on what's really being loaded up.
Time Machine kicked off just as I started to write this. As I composed my prose I noticed that TM was still working. Usually TM runs extremely quickly on this Mac Pro, now it was taking forever. I looked at the console and there was this message:
6/4/08 8:24:47 AM /System/Library/CoreServices/backupd[297] Node requires deep traversal:/Volumes/BigDisk reason:kFSEDBEventFlagMustScanSubDirs|kFSEDBEventFlagReasonEventDBUntrustable|
I can only assume that since the machine did not shut down in an orderly fashion that something was left in an open state and now backupd needs to ensure everything is okay. The backup ended up taking about 30 minutes instead of the usual 2 minutes.
What I really need is a UPS that can talk to my Mac Pro. The UPS I have attached to it now is a legacy from my Windows machine: a Tripp Lite Omni VS1000. I've had really good luck with Tripp Lites and would be quite happy to keep using it but unfortunately I didn't find any Mac specific software that would enable me to use it as anything more than a battery backup.
Ideally what I want is something that can communicate with the Mac. Being able to read power levels, get warnings of a low battery that needs to be replaced and the ability to send a signal to the Mac to gracefully shut down is perfect.
In my brief searching this morning I could only find older references to Mac specific UPS software and devices, so I'm going to ask you: Any recommendations for a decent mid-range, desktop UPS that has OS X compatible software? If someone is aware of good third party software for driving a Tripp Lite from OS X that would be even better.
Next time the power drops in my house I'd really just like to stay in bed and know that the machines will handle their own shut downs gracefully.
Comments
If not, Almost any newer UPS will work, and forget about driver software; in most cases OS X will recognize the UPS and allow you to set it up under "Energy Saver" in System Preferences.
Remember how easy it was to hook up all your other peripherals; a UPS is just another peripheral.
I had this pleasant surprise when I plugged in an MGE UPS to my Mac Mini and in the Energy Saver Control Panel, a new menu item appeared so that you can set the various options related to how to behave when on UPS power, just like when running off a battery on a portable.
There also a new tab in the Control Panel that lets you define when you want to shut down the machine (time or percentage remaining on battery power etc.) and monitor the charge of the UPS.
It's quite nice, and integrated by default. The only hiccup is that most of the USB communication ports on UPSs are USB 1.1 so make sure it's not plugged into a hub port where other USB devices will be penalized.
I've worked in places where 'mission-critical' computers got new UPSs yearly, but never needed to use the auto-shutdown function (whole building backup generators are great!).
I hadn't even considered that Mac OS would handle the UPS software part! I've got a couple kicking around at home that I'll try later. Now I'll just need to find a new source of spare USB cables :)
After trying to use the CD, I got a "Not compatible with Intel Macs" thing after installation.
A quick check at their site listed a download that was Intel compatible and lo and behold it worked.
The software is called PowerShute and the cool thing about it is that it builds a log of all UPS activity, when it went to batt mode, when it came back, total time on battery, voltage, load, etc.
Is there a particular reason you don't have the machine go to sleep at night? I have mine set to go to sleep at 2am via the Schedule button in Energy Saver in case I forget to do so manually. It uses so little power in sleep mode, my UPS could probably power it all night long if needed. If you do have scheduled tasks that need to run, you could set a wakeup time then a sleep time shortly after that. I do that for my Mac Mini in the entertainment center. It wakes up at 4am to download new podcasts and run a time machine backup, then sleeps again at 5am.
Too bad I can't get the existing Tripp Lite to work though.
Obviously, I also have a router and our cable modem plugged into the battery ports as well.
Previously I was using a TripLite 1000LCD and it would occasionally draw too much power and trigger a UPS fault when exiting from sleep.
I found a great program that will put a machine to sleep after a user settable period of idle time. It's called PowerManager. It's a little pricy, but it's great. I have it running on my MacBook (Media Center Computer) set to put the computer to sleep after 2 1/2 hours of idle time so that I can watch a movie without it going to sleep before it finishes. I can also disable it temporarily via the menubar if needed.
PowerManager can also be configured to put the computer to sleep and wake it back up via a schedule. This way, you can have it go to sleep at a specific time during the week and a different time during the weekends.
If I'm downloading something and need the computer to run overnight, I don't put it to sleep, but that's pretty rare these days.
My new external hard drive can tell when the computer is not on and will put the hard drive to sleep too. This is the biggest reason I don't keep the computer on over night. That and it won't do Time Machine backups every hour while I am asleep since there really isn't a need.
The Energy Saver preference pane already provides exactly that functionality out of the box ("Put the computer to sleep when it is inactive for: ... min/hrs") — what does the separate utility provide on top of that?
Very nice if, for instance, you want it to start up in the morning and fetch your mail in time before you've finished breakfast.
Or if you want it to sleep automatically after it has finished a TV recording (EyeTV can also wake up the machine if necessary).
The problem with Power Saver's scheduler doesn't handle multiple entries. What if you want to change the time the computer goes to sleep during the weekends? Power Saver's scheduler isn't going to allow you to set that up.
PowerManager allows you to setup a series of power down/power ups over the course of a day and week. Very powerful there.
Ah, okay. That does indeed sound like a nice extension on top of the built-in feature.