brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: vcgencmd pmic_read_adc shows the voltages and currents inside a Raspberry Pi 5

Troubleshooting
~/tips/tip-vcgencmd-pmic-read-adc

vcgencmd pmic_read_adc

Prints the readings of the Pi 5 power chip, including the 5V input voltage.

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

More Troubleshooting tips Get-NetTCPConnection -State Listen modinfo -p usb_storage ps -o pid,lstart,etime,cmd -p 1234 sudo lsof -nP -p 1234 fc-match Helvetica All Troubleshooting tips (21) All topics

Link