树莓派 vcgencmd 命令查看硬件状态

vcgencmd commands 显示 vcgencmd 可接的指令

vcgencmd commands

~ $ vcgencmd commands
commands="vcos, ap_output_control, ap_output_post_processing, vchi_test_init, vchi_test_exit, vctest_memmap, vctest_start, vctest_stop, vctest_set, vctest_get, pm_set_policy, pm_get_status, pm_show_stats, pm_start_logging, pm_stop_logging, version, commands, set_vll_dir, set_backlight, set_logging, get_lcd_info, arbiter, cache_flush, otp_dump, test_result, codec_enabled, get_camera, get_mem, measure_clock, measure_volts, scaling_kernel, scaling_sharpness, get_hvs_asserts, get_throttled, measure_temp, get_config, hdmi_ntsc_freqs, hdmi_adjust_clock, hdmi_status_show, hvs_update_fields, pwm_speedup, force_audio, hdmi_stream_channels, hdmi_channel_map, display_power, read_ring_osc, memtest, dispmanx_list, get_rsts, schmoo, render_bar, disk_notify, inuse_notify, sus_suspend, sus_status, sus_is_enabled, sus_stop_test_thread, egl_platform_switch, mem_validate, mem_oom, mem_reloc_stats, hdmi_cvt, hdmi_timings, file"

几个常用的命令:

1、查看时钟频率,可查看 arm, core, h264, isp, v3d, uart, pwm, emmc, pixel, vec, hdmi, dpi 的频率

vcgencmd measure_clock <clock>

例如:

pi@raspberrypi:~ $ vcgencmd measure_clock arm
frequency(45)=600000000
pi@raspberrypi:~ $ vcgencmd measure_clock core
frequency(1)=250000000

 

2、查看硬件电压,可查看core, sdram_c, sdram_p 的电压

vcgencmd measure_volts <id>

例如:

pi@raspberrypi:~ $ vcgencmd measure_volts core
volt=1.2000V
pi@raspberrypi:~ $ vcgencmd measure_volts sdram_c
volt=1.2500V

 

3、查看 BCM2835 Soc 温度

vcgencmd measure_temp

显示如下:

pi@raspberrypi:~ $ vcgencmd measure_temp
temp=46.7'C

 

4、查看解码器是否开启

vcgencmd codec_enabled <codec>

解码器包括 H264, MPG2, WVC1, MPG4, WMV9等。

例如:

pi@raspberrypi:~ $ vcgencmd codec_enabled H264
H264=enabled
pi@raspberrypi:~ $ vcgencmd codec_enabled MPG2
MPG2=disabled

 

posted @ 2018-10-31 22:51  ohmybabydoll  阅读(6793)  评论(0编辑  收藏  举报