power: a machine's power as a module holding node-power; the laptop's resume and lid move onto it (hq ADR 0211)

Code around sleep was written into the service manager's sleep units by the module that needed it,
and the mesh could not tell a sleeping machine from a lost one. power runs every module's code for
the six moments, each piece bounded, owns logind's power handling from its settings, and says
booted, sleeping, woke, shutting-down and the power source on the bus, sleeping under logind's
delay lock before the machine sleeps.
This commit is contained in:
jochen
2026-10-04 17:19:27 +02:00
parent 791d0f62ce
commit 6315556152
12 changed files with 989 additions and 54 deletions
+2 -2
View File
@@ -3,6 +3,6 @@ module power
go 1.22
require (
git.novox.be/novox/mesh-sdk/go v0.1.7 // indirect
github.com/godbus/dbus/v5 v5.1.0 // indirect
git.novox.be/novox/mesh-sdk/go v0.1.7
github.com/godbus/dbus/v5 v5.1.0
)