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.
9 lines
108 B
AMPL
9 lines
108 B
AMPL
module power
|
|
|
|
go 1.22
|
|
|
|
require (
|
|
git.novox.be/novox/mesh-sdk/go v0.1.7
|
|
github.com/godbus/dbus/v5 v5.1.0
|
|
)
|