How I Ended Up Adding Deep Sleep to the M4 MacBook Air

In April I bought a MacBook Neo as a fun project. In November a patch series of mine taught the M4 MacBook Air to sleep properly under Linux.

This is how one led to the other.

Read more...

From Nix Shells to a Private Home Cloud

I started using Nix because Haskell development environments were difficult to reproduce.

Seven years later, one flake describes my desktops, laptops, server, Steam Deck, Raspberry Pis, virtual machines, user environment and Darwin machine. An OpenWrt router and Tailscale extend the same private DNS namespace to me wherever I am.

The result is not a public cloud. It is my home network following me around.

Read more...

Turning an Acer Chromebook Into a Linux Laptop

My Acer Chromebook 311 contained an ordinary Intel processor, memory, storage, display, keyboard and Wi-Fi adapter.

It did not contain an ordinary PC boot path.

Community UEFI firmware made it boot Tails and NixOS in 2022, though 32 GB of internal storage made local NixOS builds miserable. Four years later, remote builds, a couple of audio fixes and a USB-C Power Delivery workaround turned it into a permanent NixOS Jellyfin client next to my TV.

Read more...

From a Broken Keycap to a Trackball Split Keyboard

The Escape keycap on my Keychron K8 Pro broke at the stem.

I printed a replacement and polished it until it was usable. It did not quite match the original keycap.

That small repair led through a Corne, custom tented cases, wrist rests, a Cosmos-generated keyboard, manufactured single-key PCBs, ZMK, an integrated trackball and, eventually, three microswitch buttons.

Read more...

Taking Back a Niimbot Label Printer

The NIIMBOT D110_M is a nice little thermal label printer.

It is also designed to inspect the roll of blank paper placed inside it and decide whether that paper is authorized.

Replacing the official application with an open browser client solved only half of the problem. The printer firmware still enforced the consumables DRM.

Read more...

Installing OpenWrt on a Xiaomi AX3200

Installing OpenWrt on my Xiaomi AX3200 began with a lie.

Before I could write a firmware image, I had to persuade the router that it was negotiating a mesh with another Xiaomi router. That unlocked a special network mode, which unlocked command injection, which unlocked Telnet and SSH, which finally made replacing the operating system possible.

The flash took seconds. Getting safely to the flash command was the project.

Read more...

Local Control and Filter DRM in a Xiaomi Air Purifier

The Xiaomi Mi Air Purifier 3H can be controlled over the local network.

To obtain the secret required for that local control, I first had to log into Xiaomi’s cloud.

Its replaceable air filter also contains an NFC tag which records whether Xiaomi thinks the filter should still be usable.

This was another product which was physically in my home but not entirely mine in software.

Read more...

Recreating MacBook Charge Control on NixOS

After replacing the battery in my 2015 MacBook Pro, I wanted NixOS to stop holding it at 100 percent charge all day.

macOS has proprietary battery-health and optimized-charging behavior. I did not try to reproduce Apple’s prediction model.

I built a deterministic alternative: 80 percent normally, 100 percent after unplugging for travel, then back to 80.

Read more...

From a Tapo C210 to a Fully Working Thingino Camera

This story starts with a power socket.

I had bought some Tuya sockets and discovered that controlling them programmatically with the stock firmware involved obtaining local keys through Tuya’s API. The API access was a trial subscription which expired. It could be extended, but that left the obvious question: for how long?

I eventually flashed the sockets with OpenBeken. It was a much better arrangement: my hardware kept working without anybody else’s server or permission.

When I wanted an indoor pan-and-tilt camera, I decided to start at the other end. Instead of buying a camera and only then finding out whether I could liberate it, I looked for one built around a chipset with alternative firmware support. That search led through OpenIPC and eventually to Thingino, an open-source firmware for cameras based on Ingenic SoCs.

I bought a TP-Link Tapo C210 v3. My intended destination was simple: a standalone local camera with video, audio and pan-and-tilt control, useful without the Tapo application or cloud. The trip there was less direct.

Read more...

From Tuya Cloud to Berry on OpenBeken

I bought a Tuya smart socket because I wanted a smart socket.

Before long, I was extracting encryption keys, opening plastic cases, soldering UART wires, debugging unfamiliar Wi-Fi chips and adding a programming language to alternative firmware.

The socket itself was only the beginning.

Read more...