deskpi

Changelog

All notable changes to this project will be documented in this file. The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

Fixed

Changed

Fixed

[2026-06-22]

Fixed

Changed

Removed

Verified

On a Raspberry Pi 4 running Raspberry Pi OS Bookworm 64-bit with the new installer applied, double-pressing the DeskPi Pro power button now:

  1. The MCU emits poweroff (8 bytes) over /dev/ttyUSB0.
  2. pwmFanControl64V2 reads it and calls systemctl poweroff.
  3. systemd begins the power-off sequence; because deskpi-cut-off-power.service is WantedBy=poweroff.target and Before=halt.target shutdown.target poweroff.target, the service starts, writes power_off to the MCU, and exits in ~60 ms (active (exited)).
  4. The OS continues to halt. About 15 seconds later the MCU cuts the 5 V rail.

Smoke test (service in isolation):

$ sudo strace -e openat,write /usr/bin/safeCutOffPower64
openat(AT_FDCWD, "/dev/ttyUSB0", O_RDWR|O_NOCTTY) = 3
write(3, "power_off", 9)                = 9
+++ exited with 0 +++

[2023-12-31] — Fedora support deprecated

[2020-08-20] — Initial public release