vcgencmd命令是什么?


12

我知道它的作用,但是名字的含义是什么?是首字母缩写词吗?用一句话,您将如何向Linux新手解释vcgencmd?


1
请注意,这vcgencmd不是Linux工件。它特定于Pi(也许还有其他具有Broadcom VideoCore处理器的设备)。
goldilocks

Answers:


11

vc代表VideoCore。gen可能代表一般。cmd命令。


从这个评论中猜到

/* Initialise general command service. Returns it's interface number.     
This initialises the host side of the interface, it does not send 
anything to VideoCore. */

可以vcgencmd.h这里看到并且该工具用于向VideoCore 发出各种常规命令


4

一个更友好的链接vcgencmd

以下是我认为有用的命令

vcgencmd get_config int
vcgencmd get_config str

for src in arm core h264 isp v3d uart pwm emmc pixel vec hdmi dpi ; do \
    echo -e "$src:\t$(vcgencmd measure_clock $src)" ; \
done

for id in core sdram_c sdram_i sdram_p ; do \
    echo -e "$id:\t$(vcgencmd measure_volts $id)" ; \
done

vcgencmd get_mem arm && vcgencmd get_mem gpu

vcgencmd display_power

vcgencmd get_throttled

请参阅https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=147781&start=50#p972790了解get_throttled

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.