When a Pi 5 acts up and I suspect the power supply, I’d like numbers, not guesses. The Pi 5 has a power management chip with built-in ADCs, and one command prints what they read.
The Raspberry Pi documentation lists it under vcgencmd: on Raspberry Pi 5, pmic_read_adc displays the readings of the ADCs built into the PMIC.
vcgencmd pmic_read_adc
Run without a channel it prints the whole table, one row per channel, with the name and its value. To read a single channel, pass its name; the docs example is the 5V input rail:
vcgencmd pmic_read_adc EXT5V_V
EXT5V_V is the voltage on the external 5V supply. A value that sits clearly under 5 volts while the board is busy is a hint that the power supply or the cable is not up to the job. I’d read it once idle and once under load, for example while a build runs, and compare the two lines.
It pairs with a command I like for the same kind of problem, vcgencmd get_throttled, which the docs describe as returning the throttled state of the system as a bit pattern. The throttled flags tell you that something happened; the PMIC readings show the numbers behind it.
The caveat is in the first sentence of the docs: this works on Raspberry Pi 5. On other models the command is not documented, so do not expect a table there. The readings also come from the board’s own sensors, so for a real measurement of a supply, a USB power meter in the line is better.
Also keep in mind what the numbers are: a snapshot. A voltage dip that lasts a few milliseconds can be gone before the command runs, so a clean reading does not prove the supply is fine.
Further reading: Raspberry Pi documentation: vcgencmd