树莓派 vcgencmd 命令查看硬件状态
Posted ohmybabydoll
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了树莓派 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
以上是关于树莓派 vcgencmd 命令查看硬件状态的主要内容,如果未能解决你的问题,请参考以下文章
关于树莓派csi摄像头 vcgencmd get_camera detected=0 方法解决
关于树莓派csi摄像头 vcgencmd get_camera detected=0 方法解决