New Ubuntu 13.04, updated after install, new APC Back-UPS Pro 1000 with the USB cable connected.
I have hacked on headless Linux boxes for years, I'm trying to learn how to do things the "right" way on the desktop this time. I'm aware I can install apcupsd and hack it from the command line, but I'd like to know why the following happens:
After plugging in the USB cable between the UPS and the computer, Ubuntu now shows "On Battery" settings and a status area showing the UPS battery level and whether it's on AC or not. A laptop-like battery icon appears in the menu bar.
I unplug the UPS from AC power. I notice that only occasionally does the time remaining on Ubuntu match the time remaining on the UPS. Seems like Ubuntu only updates the number every ten minutes or so. At one point the UPS said 14 minutes remaining, Ubuntu said 23. It appears - though I have no evidence - that Ubuntu isn't polling the UPS frequently enough to keep on top of the battery situation. Most modern PCs will fluctuate on the amount of power they're using, if something suddenly wakes up a hard drive or maxes out the CPU for a minute, so I figured Ubuntu would be watching the remaining time like a hawk.
When the UPS got to "0 minutes" remaining, Ubuntu still said 6. I had selected "Shutdown" in the Power options for what to do for a "critically low" battery, but Ubuntu just said "Low Battery - 6 minutes remaining." A few seconds later, the UPS ran out of juice and the Ubuntu box lost power.
I've been Googling for an hour now and all I keep getting is posts instructing me on how to install apcupsd on Ubuntu 8. I know I can do that, but I'm curious as to why the built-in UPS support doesn't work. Why include anything at all when I have to install apcupsd anyway?