Sometimes it’s helpful to see if a particular parameter is set or not on the raspberry pi. This is where vcgencmd
. However, vcgencmd
is useful for many other things.
In the examples below, please be aware that your values will most likely differ.
Find configured values
Here is a list of the values which have been set by the “user”:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
$ vcgencmd get_config int arm_freq=900 sdram_freq=450 over_voltage_avs=0x1b774 disable_l2cache=1 program_serial_random=1 config_hdmi_boost=2 emmc_pll_core=1 hdmi_force_cec_address=65535 ignore_lcd=1 framebuffer_ignore_alpha=1 framebuffer_swap=1 max_usb_current=1 arm_control=0xa5800010 temp_limit=85 force_pwm_open=1 pause_burst_frames=1 avoid_fix_ts=1 |
Find the CPU Temperature
1 2 |
$ vcgencmd measure_temp temp=39.0'C |
Memory Usage
You can find out the memory available for the CPU (arm
) and the GPU:
1 2 3 4 |
$ vcgencmd get_mem arm arm=944M $ vcgencmd get_mem gpu gpu=64M |
All the Commands Available
1 2 3 4 5 6 7 8 9 10 |
$ vcgencmd commands commands="vcos, ap_output_control, ap_output_post_processing, vchi_test_init, vchi_test_exit, pm_set_policy, pm_get_status, pm_show_stats, pm_start_logging, pm_stop_logging, version, commands, set_vll_dir, led_control, set_backlight, set_logging, get_lcd_info, set_bus_arbiter_mode, cache_flush, otp_dump, test_result, codec_enabled, get_camera, get_mem, measure_clock, measure_volts, scaling_kernel, 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, get_rsts, 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, file, vctest_memmap, vctest_start, vctest_stop, vctest_set, vctest_get" |