Repository navigation
feat(armada-store): add Gleipnir, an 80% battery charge ceiling for the AYN Thor - #677
Open
venatrix-ritz wants to merge 1 commit into
Open
venatrix-ritz wants to merge 1 commit into
venatrix-ritz wants to merge 1 commit into
Conversation
|
Gleipnir adds a charge limit of 1000 which is below the safe minimum for these kinds of devices. If you set the limit that low and measure wattage, it fluctuates wildly between values between 0.2w and 5w. The minimum safe value to use on the Thor is 100000 - lower can cause issues, especially with less intelligent chargers. The lowest in official spec is 500000. Ideally we should be looking into a kernel patch that allows for changing charge_control_end_threshold - this kind of thing a fine solution for now, but I would also recommend updating the low charge value so that batteries don't get excessive wear. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Gleipnir to the Armada Store's plugins category.
Gleipnir is a Decky plugin that holds the AYN Thor's battery at 80 %. It clamps the battery manager's
constant_charge_currentlimit (Armada kernel patch 0903) at 80 %, releases it at 77 % or when the charger is unplugged, and clamps just before a suspend so the cap also holds through native sleep (the Thor then does not charge while asleep). A setting in the plugin panel chooses between that (default), clamping from 70 % up, or off; the panel shows Armada's sleep type and hides the setting in fake sleep, where the daemon keeps running. Source: https://github.com/venatrix-ritz/Gleipnir (MIT).Gleipnir.zip(one top-levelgleipnir/folder, as the Store's installer requires).v0.2.0is published as a pre-release; it is the first release with the sleep clamp.rootflag, like armada-control and armada-store.gleipnir --test --run, charger plugged in); until then it only watches."icon": "").I ran
tests/armada-store-test.shon a Thor with onlydecky/armada-storeandtests/copied over: the catalog checks pass (32 apps, valid kinds and categories, unique ids, asset regexes compile); it stops later at a check that needs files from the rest of the repo (the flatpak tmpfiles rule). I also checked that the new entry resolves to theGleipnir.zipasset of the live v0.2.0 release.