$linuxjunkies
>

vcgencmd(1)

Query and control the Raspberry Pi's GPU and system parameters via the VideoCore GPU.

UbuntuDebianFedoraArch

Synopsis

vcgencmd [OPTION] COMMAND [PARAMETER]

Description

vcgencmd is a command-line tool for communicating with the Raspberry Pi's VideoCore GPU to read system information, check temperatures and voltages, manage GPU memory, and control hardware features. It requires root or membership in the video group to function.

The command uses a request-response protocol to query GPU parameters and system status. Common use cases include monitoring thermal conditions, checking clock speeds, measuring power consumption, and adjusting GPU memory allocation.

Common options

FlagWhat it does
-tMeasure command execution time (mostly unused with vcgencmd)
measure_tempDisplay CPU and GPU temperature in Celsius
measure_voltsDisplay current voltage supplied to the SoC
measure_clock armShow ARM CPU clock frequency in Hz
get_throttledCheck if CPU/GPU throttling or overheating has occurred
get_mem armShow ARM CPU memory allocation in megabytes
get_mem gpuShow GPU memory allocation in megabytes
get_config int_addressQuery integer configuration parameters from firmware
display_powerShow HDMI power state (0=off, 1=on, -1=unknown)
versionDisplay firmware version and build date

Examples

Check current CPU and GPU temperature; output format is temp=45.3'C

vcgencmd measure_temp

Display ARM CPU clock speed; result given in Hz (e.g., frequency=600000000 for 600MHz)

vcgencmd measure_clock arm

Show the core voltage supplied to the SoC in volts

vcgencmd measure_volts

Check throttling status; returns 0 if normal, non-zero if throttling has occurred

vcgencmd get_throttled

Display memory split between ARM CPU and GPU in separate queries

vcgencmd get_mem arm && vcgencmd get_mem gpu

Print firmware version and compilation date to identify Pi model and software version

vcgencmd version

Continuously monitor temperature and CPU clock speed, updating every second

watch -n 1 'vcgencmd measure_temp && vcgencmd measure_clock arm'

Query a specific integer configuration value from the firmware

vcgencmd get_config int_address

Related commands