Skip to content

Commit d055b48

Browse files
authored
Create vcgencmd.md
1 parent 46e43bd commit d055b48

File tree

1 file changed

+83
-0
lines changed

1 file changed

+83
-0
lines changed

raspbian/applications/vcgencmd.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
## vcgencmd
2+
3+
`vcgencmd` is a command line utility that can get various pieces of information from the Videocore4 GPU on the Raspberry Pi. Much of the information available is only of use to internal Raspberry Pi developers, but there are number of very useful options available to end users that will be described here.
4+
5+
To get a list of all the command that vcgencmd supports, type `vcgencmd commands`.
6+
7+
### version
8+
9+
Reports the date and version of firmware running on the VC4.
10+
11+
### measure_clock [clock]
12+
13+
This returns the current frequency of the specified clock. The options are:
14+
15+
| clock | Description |
16+
|=======|============ |
17+
| arm | ARM cores |
18+
| core | VC4 scaler cores |
19+
| H264 | H264 block |
20+
| isp | Image system Pipeline |
21+
| v3d | 3D block |
22+
| uart | UART |
23+
| pwm | PWM block (analogue audio output) |
24+
| emmc | SD card interface |
25+
| pixel | Pixel valve |
26+
| vec | Analogue video encoder |
27+
| hdmi | HDMI |
28+
| dpi | Display Peripheral Interface |
29+
30+
e.g. `vcgencmd measure_clock arm`
31+
32+
### measure_volts [block]
33+
34+
Displays the current voltages used by the specific block.
35+
36+
| block | Description |
37+
|=======|=============|
38+
| core | VC4 core voltage |
39+
| sdram_c | |
40+
| sdram_i | |
41+
| sdram_p | |
42+
43+
### measure_temp
44+
45+
Returns the current temperature of the SoC.
46+
47+
### otp_dump
48+
49+
Displays the content of the One Time Programmable (OTP) memory, which is part of the SoC. These are 32 bit values, indexed from 8 to 64. See the [OTP bits page](../../../hardware/raspberrypi/otpbits.md) for more details.
50+
51+
### get_mem
52+
53+
Reports on the amount of memory allocated to the ARM cores `vcgencmd get_mem arm` and the VC4 `vcgencmd get_mem gpu`.
54+
55+
### codec_enabled [type]
56+
57+
Reports whether the specified CODEC type is enabled. Possible options for type are **H264, MPG2, WVC1, MPG4, MJPG, WMV9**.
58+
59+
### get_config [type]
60+
61+
This returns all the configuration items of the specified type that have been set in config.txt or by default. Possible values for type are **int, str**
62+
63+
### get_lcd_info
64+
65+
Displays the resolution and colour depth of any attached LCD display.
66+
67+
### mem_oom
68+
69+
Displays statistics on any Out of memory events occuring in the VC4 memory space.
70+
71+
### mem_reloc_stats
72+
73+
Displays statistics from the relocatable memory allocator on the VC4.
74+
75+
### get_camera
76+
77+
Reports whether the camera is support, and if so whether it is detected.
78+
79+
80+
81+
82+
83+

0 commit comments

Comments
 (0)