1. Monitor Power Usage With Your UPS

    Wed 18 November 2009

    If a system is connected to a UPS (Uninterruptible Power Supply), it is possible to determine how much power it consumes. For this purpose, I wrote a small script:

     Host:~# ./ups.sh
    
     UPS model: Back-UPS RS 1200 LCD
     APC model: Back-UPS RS 1200 LC
     Capacity: 720 Watt
     Load: 18 Percent
     Usage: 129 Watt
     Time left: 33 Minutes
     Status: ONLINE
    
     Host:~# ./ups.sh
    
     UPS model: Back-UPS RS 1200 LCD
     APC model: Back-UPS RS 1200 LC
     Capacity: 720 Watt
     Load: 19 Percent
     Usage: 136 Watt
     Time left: 22 Minutes
     Status: ONBATT
    

    This script assumes that:

    1. You are running a unix

    2. You run apcupsd

    The script can be downloaded here:

  2. Linux on Mac Mini - Boot After Power Failure

    Sun 08 November 2009

    When using a Mac Mini as a server or router, it is very nice if the machine automatically boots if a power failure has occurred.

    User chirhoxi on the ubuntu forum found out how this can be achieved:

    http://ubuntuforums.org/showthread.php?t=1209576

    Basically you need one of these commands:

    Original Mac Mini:

    setpci -s 00:03.0 0xa4.b=0

    Newer Mac Mini:

    setpci -s 00:03.0 0x7b.b=19

    These commands might not work with the latest Mac Minis but the thread discusses how to determine for yourself what the appropriate command is.

Page 1 / 1