zu www.bildungsgueter.de zur Inhaltsübersicht des Kapitels

Untersuchung des Prozessors


Das Programm vcgencmd

Im Verzeichnis /opt/vc/bin findest du das Dienstprogramm vcgencmd, das es erlaubt, den Systemzustand zu untersuchen.

Im Verzeichnis /usr/bin steht ein Verweis auf das Programm vcgencmd. Der Verweis ermöglicht den Aufruf des Programms aus jedem Verzeichnis.

Eine Übersicht über Kommandos des Hilfsprogramms steht hier: https://elinux.org/RPI_vcgencmd_usage

pi@raspberrypi:~ $ 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"
pi@raspberrypi:~ $ vcgencmd display_power
display_power=1
pi@raspberrypi:~ $ vcgencmd measure_volts
volt=1.2000V
pi@raspberrypi:~ $ vcgencmd measure_temp
temp=36.9'C
pi@raspberrypi:~ $ vcgencmd version
Jul  3 2017 14:16:43 
Copyright (c) 2012 Broadcom
version 4139c62f14cafdb7d918a3eaa0dbd68cf434e0d8 (tainted) (release)

vcgencmd commands

vcgencmd measure_temp

vcgencmd measure_volts core

vcgencmd measure_clock arm

vcgencmd get_mem gpu

vcgencmd get_mem arm


Verwendung von Funktionen aus vcgencmd in eigenen Programmen.

Im Verzeichnis /opt/vc/include/interface/vmcs_host stehen include-Dateien, die die Verwendung von Funktionen von vcgencmd in C-Programmen ermöglichen.


zur Inhaltsübersicht des Kapitels