Repository navigation
Gleipnir 0.2.0
Pre-release
Pre-release
Adds the sleep clamp and its setting to Gleipnir, the 80 % battery charge ceiling for the AYN Thor on Armada OS.
New since 0.1.0
- The cap now holds through native sleep. Armada's native sleep freezes the daemon, so a Thor that slept at 78 % on a charger woke at 88 %.
gleipnir-sleep.serviceclamps just before the suspend. - A setting, in the Decky panel and as
gleipnir --set-sleep-floor N: always hold the cap (default; the Thor then does not charge while asleep), hold from 70 % up, or off. The panel shows Armada's current sleep type and hides the setting in fake sleep, where the daemon keeps running. - A watchdog fix: a game draining the battery with the status still reading Charging no longer disarms the cap.
Tested on one Thor only (Armada 20261006.9c7dd3e, kernel 7.2.6, 2026-10-08): clamp at 80 %, held through a game, charger swaps and sleeps at 60, 76, 79 and 80 %, release at 77 %, charging resumed. Other builds are untested. It starts in watch-only mode and does nothing to charging until its built-in safety test (gleipnir --test --run, charger plugged in) passes on your kernel. Read docs/evidence.md and docs/safety.md first.
The zip has a single top-level gleipnir/ folder (Decky plugin layout). Not affiliated with AYN or Armada.