{"id":1273,"date":"2022-05-25T09:21:43","date_gmt":"2022-05-25T01:21:43","guid":{"rendered":"https:\/\/wp.vicds.com\/?p=1273"},"modified":"2023-03-02T00:54:31","modified_gmt":"2023-03-01T16:54:31","slug":"vcgendcmd-raspberry","status":"publish","type":"post","link":"https:\/\/wp.vicds.com\/?p=1273","title":{"rendered":"vcgendcmd @raspberry"},"content":{"rendered":"\n<p>\u53c3\u8003\u81ea  <a rel=\"noreferrer noopener\" href=\"https:\/\/atticedu.com\/index.php\/blog\/raspberry-pi-%E6%A8%B9%E8%8E%93%E6%B4%BE\/30-using-vcgencmd-commad-on-raspberry-pi.html\" target=\"_blank\">https:\/\/atticedu.com\/index.php\/blog\/raspberry-pi-%E6%A8%B9%E8%8E%93%E6%B4%BE\/30-using-vcgencmd-commad-on-raspberry-pi.html<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.raspberrypi.com\/documentation\/computers\/os.html#vcgencmd\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.raspberrypi.com\/documentation\/computers\/os.html#vcgencmd<\/a><\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-\"># \u5b89\u88dd\nsudo apt-get install python3-pip\nsudo pip-3.2 install setuptools\nsudo pip-3.2 install git+https:\/\/github.com\/nicmcd\/vcgencmd.git\nsudo python3 setup.py install\n\n# \u529f\u80fd\npython3 -m vcgencmd\n\n# \u89e3\u9664\u5b89\u88dd\nsudo pip-3.2 uninstall vcgencmd<\/code><\/pre>\n\n\n\n<p>$vcgendcmd command<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-\"># \u6eab\u5ea6\nvcgencmd measure_temp\ntemp=53.5&#039;C\n\n# \u96fb\u58d3\nvcgencmd measure_volts core\nfor id in core sdram_c sdram_i sdram_p ; do echo -e &quot;$id:\\t$(vcgencmd measure_volts $id)&quot; ;  done\n\noutput:\ncore:   volt=0.8500V\nsdram_c:        volt=1.1000V\nsdram_i:        volt=1.1000V\nsdram_p:        volt=1.1000V\n\n#\u6642\u8108\nvcgencmd measure_clock arm\nfrequency(48)=1500345728 \n\nfor src in arm core h264 isp v3d uart pwm emmc pixel vec hdmi dpi ; do echo -e &quot;$src:\\t$(vcgencmd measure_clock $src)&quot; ;  done\narm:    frequency(48)=1500398464\ncore:   frequency(1)=500000992\nh264:   frequency(28)=500000992\nisp:    frequency(45)=500000992\nv3d:    frequency(46)=500000992\nuart:   frequency(22)=47988280\npwm:    frequency(25)=107143064\nemmc:   frequency(50)=250000496\npixel:  frequency(29)=150002928\nvec:    frequency(10)=0\nhdmi:   frequency(0)=0\ndpi:    frequency(4)=0\n\n<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u63a7\u5236\u5f71\u50cf\u8f38\u51fa<\/strong><\/h2>\n\n\n\n<p>display_power\u5b50\u547d\u4ee4\u53ef\u7528\u4f86\u63a7\u5236\u6a39\u8393\u6d3e\u4e0a\u4e0d\u540c\u5f71\u50cf\u8f38\u51fa\u4ecb\u9762\u7684\u555f\u9589\uff0c\u4ee5 4B \u4f86\u8aaa\u5f71\u50cf\u8f38\u51fa\u4ecb\u9762\u5305\u542b HDMI0\u3001HDMI1\u3001DSI \u8207\u985e\u6bd4\u8f38\u51fa\u7b49\u3002\u9375\u5165 vcgencmd&nbsp; display_power 0 \u53ef\u95dc\u9589\u76ee\u524d\u7684\u5f71\u50cf\u4ecb\u9762\uff0c\u958b\u555f\u5247\u53ef\u4ee5\u9375\u5165 vcgencmd display_power 1 \u3002\u82e5\u8981\u6307\u5b9a\u5f71\u50cf\u8f38\u51fa\u4ecb\u9762\uff0c\u53ef\u518d\u591a\u5e36\u5165\u4e00\u500b ID \u53c3\u6578\u4f86\u6307\u5b9a\uff0c\u8a72 ID \u5217\u8868\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Display<\/strong><\/td><td><strong>ID<\/strong><\/td><\/tr><tr><td>Main LCD<\/td><td>0<\/td><\/tr><tr><td>Secondary LCD<\/td><td>1<\/td><\/tr><tr><td>HDMI 0<\/td><td>2<\/td><\/tr><tr><td>Composite<\/td><td>3<\/td><\/tr><tr><td>HDMI 1<\/td><td>7<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u67e5\u578b\u865f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cat \/sys\/firmware\/devicetree\/base\/model<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u53c3\u8003\u81ea https:\/\/atticedu.c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[],"class_list":["post-1273","post","type-post","status-publish","format-standard","hentry","category-raspberry"],"_links":{"self":[{"href":"https:\/\/wp.vicds.com\/index.php?rest_route=\/wp\/v2\/posts\/1273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.vicds.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.vicds.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.vicds.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.vicds.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1273"}],"version-history":[{"count":4,"href":"https:\/\/wp.vicds.com\/index.php?rest_route=\/wp\/v2\/posts\/1273\/revisions"}],"predecessor-version":[{"id":1728,"href":"https:\/\/wp.vicds.com\/index.php?rest_route=\/wp\/v2\/posts\/1273\/revisions\/1728"}],"wp:attachment":[{"href":"https:\/\/wp.vicds.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.vicds.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.vicds.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}