power

NUT on my Pi, so my servers don't die

NUT Pi in Rack

A few weeks ago, power went out for the first time in my studio space, and that meant all my servers just had power cut with no safe shutdown.

Handling power outages is never a top priority... until it's the only priority! And by then it's usually too late! Luckily for me, no data was lost, and my servers all came back up safely.

This week the power company emailed and said they'd be cutting power for maintenance next week, but they don't have an exact time. So it's even more excuse to finally set up NUT on a Pi!

Reducing Raspberry Pi 5's power consumption by 140x

Sorry to clickbait with that title... but it's actually true. I can help you improve power use by 140x—for power off power consumption, at least.

Dialog PMIC on Raspberry Pi 5

By default, the Raspberry Pi 5 (like the Pi 4 before it) leaves the SoC powered up (just in a shutdown state) when you shut down the Pi.

Because of this, a Pi 5 will still sit there consuming 1.2-1.6W when completely shut down, even without anything plugged in except power.

That's a lot—even compared to a modern desktop PC!

Why is this?

Apparently some HATs have trouble if the 3v3 power rail is off, but 5v is still active—which would be the case if you completely power off the SoC, but still have your 5V power supply plugged in.

Because of that, the Pi ships by default with the setting POWER_OFF_ON_HALT=0, and the Pi eats up precious watts all the time.

Review of Raspberry Pi's PoE+ HAT (June 2021)

The PoE+ HAT powers a Raspberry Pi 3 B+ or 4 model B over a single Ethernet cable, allowing you to skip the USB-C power adapter, assuming you have a PoE capable switch or injector.

Unfortunately, I would recommend the original PoE HAT over the newer PoE+ HAT for most users—though Raspberry Pi have redesigned the HAT slightly and it's more on par with the original, though hard to distinguish which model you're getting. (Updated mid-2023)

For more background on PoE in general, and a bit more detail about the board itself and my tests, please watch my video on the PoE+ HAT—otherwise scroll past it and read on for all the testing results:

Using the Shelly Plug to monitor Starlink's power consumption

I recently wrote about using a Raspberry Pi to remotely monitor an Internet connection, and in my case, to monitor Starlink (SpaceX's satellite Internet service).

Power Consumption Grafana dashboard with Shelly Plug US power usage coming through

One other important thing I wanted to monitor was how much power Starlink used over time, and I was considering just manually taking a reading off my Kill-A-Watt every morning, but that's boring. And not very accurate since it's one point in time per day.

Shelly Plug US

Review: Innergie PowerJoy 30C USB-C Wall Charger

tl;dr: The Innergie PowerJoy USB-C charger is a solid power adapter for charging via USB-C and USB-A simultaneously. If you have a high-power-draw device like a MacBook Pro, then the adapter may have a little less utility, but if you use a smaller USB-C device and need to charge both it and a USB-A device, then this is one of the most compact and well-built adapters I've used.

Innergie PowerJoy 30C USB-C wall power adapter

A month ago, I received an email from Innergie asking me if I'd like to review their new USB-C charger they were releasing. I had just returned from a business trip and was slightly regretting only having my MacBook Pro's included USB-C charger, which has one USB-C port. Charging my phone meant plugging my laptop into the AC adapter, then plugging a Lightning cable into my MacBook Pro.

I didn't want to have to bring along a separate USB-A power adapter, but it would've been more convenient, since I could charge the phone separate from the laptop.

Review: AUKEY 30,000 mAh USB-C Portable Charger (with USB A, USB C, Micro USB)

Jeff's Rating: 3/5

tl;dr: Slightly pricey, could use a better interface for charge status, and holds 20% less than the advertised capacity, but the still-plentiful amount of stored energy and the ability to charge via USB-C or USB-A makes this a versatile and potent power pack for the price.

Ever since the mid 90s, when I was able to lug around 'power bricks' with my then-amazing PowerBook 190 and 180c (hand-me-downs from relatives), I've been hoping for a reasonably-priced power brick that would double my laptop's battery life, affording me the ability to work all day even when I'm doing a ton of crazy things, like building a ton of VMs and Docker images.

AUKEY 30000 mAh Portable Charger

Review: Satechi USB Type-C inline Power Meter (ST-TCPM)

tl;dr: It's a power meter, not a protection circuit. It works well and is worth the money if you need to monitor power consumption, but it's made of plastic and doesn't feel like it can take a beating, so handle with care.

For some time, I've used a PowerJive USB Power Meter to measure the charging rate of various USB power adapters, and even things like how much power a Rasbperry Pi uses under load.

Raspberry Pi Zero - Conserve power and reduce draw to 80mA

Update 2015-12-01: I bought a PowerJive USB power meter and re-tested everything, and came up with ~80 mA instead of the ~30 mA reported by the Charger Doctor that I was using prior. This seems to be more in line with the results others were measuring with much more expensive/accurate meters in the Raspberry Pi forums: Raspberry Pi Zero power consumption. I've updated the numbers in the post below to reflect this change. Seems the Pi Zero is only incrementally better than the A+—still excellent news, but not nearly as amazing as I originally thought :(

Update 2021-10-28: With the new Pi Zero 2 W, you can also disable some of the CPU cores to reduce power consumption for a heavily-utilized Pi if it doesn't need all the CPU cores running.

Raspberry Pi Zero - Power Consumption Comparison

tl;dr: The Raspberry Pi Zero uses about the same amount of power as the A+, and at least 50% less power than any other Pi (B+, 2 B, 3 B).

On November 26, the Raspberry Pi foundation announced the Raspberry Pi Zero, a $5 USD computer that shares the same architecture as the original Raspberry Pi and A+/B+ models, with a slightly faster processor clock (1 Ghz), 512 MB of RAM, and sans many of the essential ports and connectors required for using the Pi as an out-of-the-box computer.

Raspberry Pi Zero - new with adapter cable
The Raspberry Pi Zero - quite a small Linux computer!

The Constraints of in-home Website Hosting

I run dozens of websites, and help build and maintain many others. Almost every one of these sites is served on a server in one of the giant regional data centers in New York, Atlanta, Seattle, LA, Dallas, Chicago, and other major cities in the US and around the world.

These data centers all share some very important traits that are key to hosting high-performing, highly-available websites:

  • Power redundancy (multiple power feeds, multiple backup power sources)
  • 1 Gbps+ upload/download bandwidth (usually with many redundant connections)
  • 24x7 physical security, environmental controls, hardware monitoring etc.

When I choose to host the Raspberry Pi Dramble website in my basement, I get almost none of these things. Instead: