Measurements
Measurements
Current, in milliamps, that each board running Kleidos draws from its own battery. Of the nine boards, I have measured one with the measurement system in the battery wire and two with the board's own power controller, and I print no figure yet for six. How long a charge lasts is my estimate from those figures, not a measurement.
On this page the only unlock times are the LILYGO T-Deck Plus's, timed on a development build with the production key derivation at three vault sizes, from a few dozen entries to a full vault; its card gives two of those times and its own page all of them.
I publish every figure I have measured, the high ones included, because these numbers exist nowhere else: no datasheet tells you what a password manager draws with its screen lit and an access point up.
Updated
Board by board
One card per board, the most-measured first: how long a charge lasts, or why I cannot say yet; how long an unlock takes, where I have timed it; then five states, each figure taken on the board's own battery with no USB power reaching it and labeled with the instrument that took it. A state with no figure says why.
- Asleep: locked and left alone, the way the shipped firmware leaves the board; how it gets there is the last line of each card.
- Light sleep: unlocked and idle with the screen dark, the chip sleeping between one tick of work and the next. Only a board whose firmware is built with it does this.
- Normal use: the vault list on screen at the brightness the firmware ships at, 85 percent.
- Wi-Fi: the admin Wi-Fi network up with nobody joined, the screen at full brightness.
- Bluetooth: the typing screen with the radio up and nothing connected yet, the screen at full brightness.
On a board whose screen has no light, normal use, Wi-Fi and Bluetooth are the same screens unlit.
-
LILYGO T-Deck Plus
With Kleidos, a charge lasts about 11 to 21 days, by my estimate. An unlock takes 2.9 s with 30 credentials and 10 two-factor (2FA) codes, and 3.5 s with a full vault, as I timed it on the board's own clock.
- Asleep
- 3.93 mA
- measurement system
- Light sleep
- 27.0 mA
- measurement system
- Normal use
- 85.4 mA
- measurement system
- Wi-Fi
- 157.4 mA
- measurement system
- Bluetooth
- 121.1 mA
- measurement system
Deep-sleeps with the chip still powered, and only its reset button or its power switch wakes it: the reset leaves its clock unset.
-
M5StickC Plus SE
These figures are readings from its own power controller, which I have not checked against the measurement system. They were taken on a development build from before it had light sleep, with a prototype that lets the idle chip drop to a slower clock and that the shipped firmware does not have. Without figures from the measurement system, I give no battery estimate for it. I publish no unlock time for it yet.
- Asleep
- not yet
- Light sleep
- not yet
- Normal use
- 69.0 mA
- own sensor
- Wi-Fi
- 153.5 mA
- own sensor
- Bluetooth
- 85.4 mA
- own sensor
Switches off at its power controller, which stays awake to switch it back on, and draws while it waits.
-
M5Stack Core2 v1.3
These figures are readings from its own power controller, which I have not checked against the measurement system. They were taken on a development build with a prototype that lets the idle chip drop to a slower clock and that the shipped firmware does not have. Without figures from the measurement system, I give no battery estimate for it. I publish no unlock time for it yet.
- Asleep
- not yet
- Light sleep
- not on this board
- Normal use
- 70.4 mA
- own sensor
- Wi-Fi
- 153.4 mA
- own sensor
- Bluetooth
- 91.9 mA
- own sensor
Switches off at its power controller, which stays awake to switch it back on, and draws while it waits.
-
M5StickS3
I give no battery estimate for it: its power controller reads voltages, not current, and putting the measurement system in its battery wire means opening the case. I publish no unlock time for it yet.
- Asleep
- not yet
- Light sleep
- not yet
- Normal use
- not yet
- Wi-Fi
- not yet
- Bluetooth
- not yet
Deep-sleeps with the chip still powered: its internal clock keeps counting, but drifts.
-
M5StickC Plus2
I give no battery estimate for it: nothing on it reads current, and putting the measurement system in its battery wire means opening the case. I publish no unlock time for it yet.
- Asleep
- not yet
- Light sleep
- not on this board
- Normal use
- not yet
- Wi-Fi
- not yet
- Bluetooth
- not yet
Switches itself off: it lets go of the line that holds its power on, and the board cuts its supply.
-
M5StickC Plus 1.1
I give no battery estimate for it: its own power controller has given me one battery run, on older firmware, which I do not publish, and I have not had the measurement system on it. I publish no unlock time for it yet.
- Asleep
- not yet
- Light sleep
- not on this board
- Normal use
- not yet
- Wi-Fi
- not yet
- Bluetooth
- not yet
Switches off at its power controller, which stays awake to switch it back on, and draws while it waits.
-
M5Stack CoreInk
I give no battery estimate for it: nothing on it reads current, and putting the measurement system in its battery wire means opening the case. Its lock-screen clock, which is on by default, also wakes it every minute, so its sleep has to be measured as the charge used over an hour, not as a current read at one moment. I publish no unlock time for it yet.
- Asleep
- not yet
- Light sleep
- not yet
- Normal use
- not yet
- Wi-Fi
- not yet
- Bluetooth
- not yet
Switches itself off: it lets go of the line that holds its power on, and the board cuts its supply.
-
M5Stack CoreS3 SE
I give no battery estimate for it: its power controller has no current reading, and its cell comes in an optional base module, so without that base there is no battery to estimate. I publish no unlock time for it yet.
- Asleep
- not yet
- Light sleep
- not on this board
- Normal use
- not yet
- Wi-Fi
- not yet
- Bluetooth
- not yet
Switches off at its power controller, which stays awake to switch it back on, and draws while it waits.
-
M5Cardputer ADV
I give no battery estimate for it: nothing on it reads current, and putting the measurement system in its battery wire means taking the board apart. I publish no unlock time for it yet.
- Asleep
- not yet
- Light sleep
- not on this board
- Normal use
- not yet
- Wi-Fi
- not yet
- Bluetooth
- not yet
Deep-sleeps with the chip still powered: its internal clock keeps counting, but drifts.
Measurement system: an INA228 in the battery wire, read by an ESP32-S3, with the USB cable left plugged in but its port switched off at the hub, so the cell alone powers the board, wired as the last section shows. Own sensor: the board's own power controller, read on battery in the run further down. Where both measured a state, the card shows the measurement system's figure.
The records behind the measurement system's figures are published as data under GPL-3.0-or-later. They are the measurement store's own records with two changes: while the repository is private, a path into it reads “[private repository]”; and the flag that says the shunt's nominal value was entered reads “shunt_nominal_declared”, beside a “shunt_resistance_measured” that is false, because I have never measured that resistance. There is one table for each board measured:
What it draws asleep: I have measured one of the nine boards
I have measured the LILYGO T-Deck Plus asleep, on its own cell with the measurement system in the battery wire: 3.93 mA in the sleep it ships with. On the 2,000 mAh cell I measured it with, a charge at that draw lasts about 21 days in a drawer, my estimate. I have not measured eight of the nine asleep, and I publish no sleep figure I have not measured.
The LILYGO T-Deck Plus's figure is the median of three runs of its production sleep that agree with one another, on a development build, with a microSD card in the slot. I do not know yet where most of it goes.
I took them with the USB cable left plugged in but its port switched off at the hub, so no power reached the board through it. A plugged cable can still change what a board draws: when this board's sleep drew more, I measured it both ways and the two agreed, and I have not repeated the comparison at the present figure.
A board cannot measure its own sleep for me. By my estimate, the drop in a cell's voltage after three days asleep would still only resolve 12.5 to 56 microamps on a stick, whose cell holds 120 to 250 mAh, and 41 to 486 microamps on the boards with a bigger cell. Until the measurement system has been on each of them, I publish no number for them.
Of the nine, six have no current sensor on the battery rail either, and the three that do read it in steps of 0.5 mA, too coarse to see anything but a leak, so the measurement system is the only way the other eight get a figure.
How a board sleeps decides what can still draw: the two that drop their own power hold cut their supply, which they can afford because a separate clock chip keeps the time; the four that switch off at a power controller leave that controller drawing; and the three that deep-sleep keep the chip powered.
On two of the boards that deep-sleep, the internal clock counts on through the sleep, though it drifts with no clock chip to keep it right, which is what the section on the drifting clock further down is about. The LILYGO T-Deck Plus is the one left: only its reset button or its power switch wakes it, and the reset leaves its clock unset.
How I work out the days
Each session is 15 seconds on the unlock screen, 30 on the vault list and 10 on the Bluetooth typing screen, then the idle timers: 10 seconds lit and 50 dark before the board goes back to sleep, 115 seconds awake in all. I work the days out for four ways of using it, from 0 to 50 sessions a day, with the board asleep for the rest of every day.
The days per charge for the LILYGO T-Deck Plus, by how it is used
What it draws awake, by the board's own sensor
A single run on battery with the USB cable unplugged, read by each board's own power controller, on a development build with the logging, the console and the diagnostics running. That build is not the firmware that ships: it had a prototype built in that lets the idle chip drop to a slower clock, which neither board's shipped firmware includes, and it predates the Plus SE's light sleep. I have not checked the power controller's readings against the measurement system. The backlight is at 100 percent except where a row says otherwise.
-
PIN screen
- Plus SE
- 77.5 mA
- Core2 v1.3
- 81.4 mA
The unlock screen, waiting for a digit.
-
Vault list
- Plus SE
- 77.4 mA
- Core2 v1.3
- 80.9 mA
The list of credentials on screen.
-
Vault list at the shipped brightness
- Plus SE
- 69.0 mA
- Core2 v1.3
- 70.4 mA
The same screen at 85 percent, the brightness the firmware ships at.
-
Typing screen, waiting for a connection
- Plus SE
- 85.4 mA
- Core2 v1.3
- 91.9 mA
The typing screen with the radio up and nothing connected yet. I have not measured typing to a connected computer or phone.
-
The admin Wi-Fi network
- Plus SE
- 153.5 mA
- Core2 v1.3
- 153.4 mA
The admin panel's access point up with no client joined.
-
Screen dark
- Plus SE
- 24.7 mA
- Core2 v1.3
- 25.6 mA
The vault list with the screen dark, at the base clock. This is the awake chip and almost nothing else.
The same vault list draws 77.4 to 80.9 mA with the screen lit at 100 percent and 24.7 to 25.6 mA with the screen dark.
Two runs of the same phase on one board came out up to 4 mA apart, so a smaller difference between the two columns is not a finding. A comparison inside one run (one board, one charge, minutes apart) is the firm one.
The LILYGO T-Deck Plus with the measurement system, state by state
What the processor's speed costs
The same boards with the panel dark, held at each clock the firmware uses, on the same day and the same build as the figures above. That build had the prototype that lets the idle chip drop to a slower clock, so each clock in the table was a ceiling: a busy core ran at it, while an idle core dropped to the crystal's frequency. The firmware these boards ship does not have it, and I have not measured the clocks without it, where a higher clock may cost more than this table shows.
| Processor speed | Plus SE (mA) | Core2 v1.3 (mA) |
|---|---|---|
| 80 MHz What every screen runs at | 22.0 | 25.3 |
| 160 MHz What a full-screen repaint is composed and sent at | 26.1 | 30.2 |
| 240 MHz What the unlock's key derivation and the other heavy vault work run at | 34.2 | 43.1 |
- 80 MHz
- What every screen runs at
- Plus SE: 22.0 mA
- Core2 v1.3: 25.3 mA
- 160 MHz
- What a full-screen repaint is composed and sent at
- Plus SE: 26.1 mA
- Core2 v1.3: 30.2 mA
- 240 MHz
- What the unlock's key derivation and the other heavy vault work run at
- Plus SE: 34.2 mA
- Core2 v1.3: 43.1 mA
This table is why every screen runs at the lowest clock the chip's internal multiplier gives, and only the work that needs speed gets a higher one: with the panel dark, the boards drew 22.0 to 25.3 mA at 80 MHz and 34.2 to 43.1 mA at 240 MHz. The firmware raises the clock inside the heavy routines themselves, not in the code that calls them, so anything new that calls them gets the faster clock without asking for it. On the two boards built with the idle floor, the StickS3 and the T-Deck Plus, these clocks are ceilings, and an idle chip drops to the 40 MHz crystal.
The clock that drifts
The three boards with no clock chip keep time through a sleep on an internal oscillator divided by 256. Across 66 sleeps, measured against a host clock held to NTP, this is how far their clocks moved.
The table covers the production deep sleeps begun cold, and in every one of them the device clock fell behind. In sleeps begun hot, after ten minutes of load, two boards ran ahead instead: the StickS3 in one of its two hot sleeps and the Cardputer in both. The T-Deck fell behind in every deep sleep it took. Its own sleep ends only at its reset button, which leaves its clock unset, so its row measures the oscillator through sleeps a debug timer ended, not a clock the board keeps.
| Board | Parts per million | Seconds per hour asleep |
|---|---|---|
| M5StickS3 | -1,768 to -99 | 0.4 to 6.4 |
| M5Cardputer ADV | -2,022 to -538 | 1.9 to 7.3 |
| LILYGO T-Deck Plus | -6,033 to -4,719 | 17 to 22 |
- M5StickS3
- Parts per million: -1,768 to -99
- Seconds per hour asleep: 0.4 to 6.4
- M5Cardputer ADV
- Parts per million: -2,022 to -538
- Seconds per hour asleep: 1.9 to 7.3
- LILYGO T-Deck Plus
- Parts per million: -6,033 to -4,719
- Seconds per hour asleep: 17 to 22
The largest errors over the whole run were 6,033 parts per million behind and 2,300 ahead. Each chip carries an offset of its own (the T-Deck about 5,000, the other two about 1,000), and around that offset the die temperature moves the error more than anything else: a sleep begun hot was off by 1,500 to 2,700 parts per million less. A light sleep with the crystal left powered does not keep crystal-class time either.
No correction is applied. None that fits that spread would hold a one-time code inside its one-step tolerance, so on these three boards the codes are off by default, and when switched on they ask for a fresh sync (from a network, from the browser that opened the admin panel, or from a satellite fix) made since the last deep sleep, and light sleep uses it up once it adds up to more than 200 s.
How these were taken
The figures above come from four different methods, and mixing them would be the most misleading thing this project could publish.
- The figures marked “own sensor” come from the board's own power controller. Of the nine boards, three have a current sensor on the battery rail, and the two in the awake table are among them. Each figure is the mean of a measuring window taken after the screen had settled.
- The run was on battery with the USB cable unplugged, driven over the serial console by a script in the repository and read back with another one. The build had the logging task, the console and the diagnostics running, the prototype that lets the idle chip drop to a slower clock built in, and no light sleep on the Plus SE yet, so it is not the firmware that ships, and I have not checked the power controller's readings against the measurement system.
- The figures marked “measurement system” come from that instrument, wired as below, with the USB cable left plugged in but its port switched off at the hub, so the cell alone powers the board. Each is the mean of its window and is stored with its margin and the build that ran, a development build. So far I have had the measurement system on one of the nine boards.
- That development build is not the release build: it runs the logging, the console and the profiler. I have measured that cost only once, on the welcome screen of an earlier build, where it drew about 0.5 mA more than the release build. I have not measured it again since, nor on a busier screen, where the logging has more to do.
- The margin stored with each figure from the measurement system is the instrument's alone, for one run, with the shunt's tolerance assumed. It does not include how far a second run of the same state would land. I have worked that spread out only for the sleep figure, whose runs agree with one another, and not yet for any figure the measurement system took with the board awake.
- The drift figures are a different method again: the device's own clock against a host clock checked against NTP, before and after each sleep, with the oscillator's tick count read at both ends so the period it actually kept can be worked out rather than assumed.
- The unlock times on the LILYGO T-Deck Plus's card are a fourth method, with no reading from the measurement system: the board's own clock, read over its console with the board on USB power, from the passphrase entered to the vault list on screen. Its own page gives the rest of the times I publish and how I took them.
- The measurement system's figures, the sleep figure and the unlock times, here and on a board's own page, are read from the power store and the firmware each time the site is built; a guard ties the sleep figure the firmware declares to its record in the store, and another ties every published time to the record the store pins for it. The own-sensor, clock and drift tables I typed from their documents: nothing re-reads them, so I keep them true by hand.
- Cell The board's own battery, at whatever charge it has. Nothing else feeds the board while a figure is taken.
- 0.100 Ω shunt In the battery's positive wire, so every milliamp the board draws passes through it.
- INA228 A current and voltage monitor that reads the drop across the shunt and the cell's voltage.
- ESP32-S3 Runs the measurement system's own firmware, which paces the readings and streams them over a 6 Mbit/s serial line.
- Computer Records the stream beside the build that ran, and switches the board's USB port off at the hub.
The shunt is marked R100 and nothing more. Its 1 percent tolerance is my assumption, not something I measured, and it is the largest part of the margin on every figure the measurement system takes.