樹莓派 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>
例如:
[email protected]:~ $ vcgencmd measure_clock arm frequency(45)=600000000 [email protected]:~ $ vcgencmd measure_clock core frequency(1)=250000000
2、檢視硬體電壓,可檢視core, sdram_c, sdram_p 的電壓
vcgencmd measure_volts <id>
例如:
[email protected]:~ $ vcgencmd measure_volts core volt=1.2000V [email protected]:~ $ vcgencmd measure_volts sdram_c volt=1.2500V
3、檢視 BCM2835 Soc 溫度
vcgencmd measure_temp
顯示如下:
[email protected]:~ $ vcgencmd measure_temp temp=46.7'C
4、檢視解碼器是否開啟
vcgencmd codec_enabled <codec>
解碼器包括 H264, MPG2, WVC1, MPG4, WMV9等。
例如:
[email protected]:~ $ vcgencmd codec_enabled H264 H264=enabled [email protected]:~ $ vcgencmd codec_enabled MPG2 MPG2=disabled