fix/enhancement: TFT device powersave (part 3) - #3600
Merged
Conversation
|
This is great. The idea to me sounds perfect. It would also help if a long press of the trackball makes it a forced action ? this is my first venture into GitHub. Is there a download to test this ? |
mverch67
marked this pull request as ready for review
April 12, 2024 17:43
Collaborator
Author
There's a bug in github actions. It fails to upload the .zip artifact for installation. |
thebentern
reviewed
Apr 13, 2024
Collaborator
Author
|
Heltec Tracker V1.0 with powersave enabled: * not a typo |
thebentern
approved these changes
Apr 14, 2024
Contributor
|
Looks good to me |
jeek
pushed a commit
to jeek/Meshtastic-Exploiteers-Hacker-Pager
that referenced
this pull request
Jun 30, 2026
* fix: device TFT powersave (part 3) * trunk fmt * trunk fmt * undo bluetooth deinit from meshtastic#3596 * revert code for heltec tracker --------- Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
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.
This PR aims to reduce the power consumption for TFT devices such as T-Deck and T-Watch-S3 (but not heltec tracker).
In powersave mode the following savings are achieved:
T-Deck: 130mA (screen on, BT on) -> 30mA (screen dark, light sleep)
T-Watch: 130mA (screen on, BT on) -> 12mA (screen dark, light sleep)
-> values are measured in idle mode, not during LoRa sending!
Prior to this PR the idle power consumption has always been 120-130mA, even with dark display. The powersave option wasn't functional.
During light sleep the T-Deck touch and keyboard are disabled. LoRa radio is still active. Wakeup is done using the trackball. For T-Watch the wakeup is done by touch.
To achieve the best power saving results for the user powersave is now default for T-Deck and T-Watch and some other parameters have changed defaults. The powersave mode can easily be disabled if not desired for whatever reason.
Default screen timeout is now 30 seconds and additonal 30 seconds to go into light sleep with disabled bluetooth. To enable bluetooth communication either tab on the screen before the 60 seconds have passed or press the trackball. The Android App automatically re-connects seemlessly with a disconnected device.
To achieve even further powersavings bluetooth can be disabled manually (saves ~40mA during operation and device goes faster into light sleep). In this case the device configuration can still be managed when using the admin channel over a second device. Works best with pre-installed canned messages, especially for T-Watch.
This PR relies on my two other PRs (#3590 part1 and #3596 part2).
Note: the unPhone support in #3544 uses a proprietary implementation for the power handling and does not make used of lovyanGFX's unified Light_PWM interface (which is the core functionality of this PR). I believe it achieves basically the same, but I don't have such device to test it. For sure, the powersave mode will also work with the unPhone, though it's not specifically mentioned here.
**NOTE: **
To benefit from the new optimized default settings it'recommended to do a flash erase during installation