Apart from the usual Linux commands that display status, the Raspberry Pi includes a custom command named vcgencmd, which can report voltages and temperatures among other Pi specific attributes. This chapter documents the known features of the command. The executable file for the command is /usr/bin/vcgencmd.
vcgencmd Commands
Summary of vcgencmd Command-Line Options
Command | Arguments | Description |
---|---|---|
ap_output_control | ||
ap_output_post_processing | ||
arbiter | ||
cache_flush | Flushes GPU’s L1 cache | |
codec_enabled | codec | Reports status of codec: one of H264 MPG2 WVC1 |
commands | Lists supported commands | |
disk_notify | ||
display_power | 0 or 1 | Turns the display off or on |
dispmanx_list | ||
egl_platform_switch | ||
file | ||
force_audio | ||
get_camera | ||
get_config | parameter | Query configuration parameter |
get_hvs_asserts | ||
get_lcd_info | LCD/monitor width, height, and pixel depth of the display framebuffer | |
get_mem | arm or gpu | Get memory split between CPU (ARM) or GPU |
get_rsts | ||
get_throttled | ||
hdmi_adjust_clock | ||
hdmi_channel_map | ||
hdmi_cvt | ||
hdmi_ntsc_freqs | ||
hdmi_status_show | ||
hdmi_stream_channels | ||
hdmi_timings | ||
hvs_update_fields | ||
inuse_notify | ||
measure_clock | clock name | Measure the frequency of various clocks |
measure_temp | Measure the temperature of the SoC | |
measure_volts | device name | Measure the voltage of various devices |
mem_oom | Statistics on Out of Memory events | |
mem_reloc_stats | Relocatable memory statistics | |
memtest | ||
mem_validate | ||
otp_dump | Dump OTP settings | |
pm_get_status | ||
pm_set_policy | ||
pm_show_stats | ||
pm_start_logging | ||
pm_stop_logging | ||
pwm_speedup | ||
read_ring_osc | ||
render_bar | Debug function | |
scaling_kernel | ||
scaling_sharpness | ||
schmoo | ||
set_backlight | Reserved for future use | |
set_logging | level=n | Change the level of the VideoCore logger |
set_vll_dir | ||
sus_is_enabled | ||
sus_status | ||
sus_stop_test_thread | ||
sus_suspend | ||
test_result | ||
vchi_test_exit | ||
vchi_test_init | ||
vcos | command | Possible commands are log, help, and version |
vctest_get | ||
vctest_memmap | ||
vctest_set | ||
vctest_start | ||
vctest_stop | ||
version | Display current build version of VideoCore firmware |
Option measure_clock
Valid Arguments for the measure_clock Option
Clock | Description |
---|---|
arm | ARM CPU |
core | Core |
dpi | Display Pixel Interface |
emmc | External MMC device |
h264 | h.264 encoder |
hdmi | HDMI clock |
isp | Image Sensor Pipeline |
pixel | Pixel clock |
pwm | Pulse Width Modulation |
uart | UART clock |
v3d | Video 3D |
vec |
Option measure_volts
Valid Device Names for measure_volts
Device | Description |
---|---|
core | Core |
sdram_c | SDRAM controller |
sdram_i | SDRAM I/O |
sdram_p | SDRAM physical |
Option measure_temp
In this example, the relatively idle core was reported to be 43.5°C.
Option codec_enabled
vcgencmd CODEC Names
Name | Description |
---|---|
H264 | h.264 CODEC |
MPG2 | MPEG-2 CODEC |
WVC1 | VC1 CODEC |