{"id":677,"date":"2019-01-26T11:21:06","date_gmt":"2019-01-26T16:21:06","guid":{"rendered":"http:\/\/www.k2dls.net\/blog\/?p=677"},"modified":"2019-01-26T23:01:49","modified_gmt":"2019-01-27T04:01:49","slug":"turn-of-hdmi-on-pi-star-image","status":"publish","type":"post","link":"https:\/\/www.k2ie.net\/blog\/2019\/01\/26\/turn-of-hdmi-on-pi-star-image\/","title":{"rendered":"Turn off HDMI on Pi-Star Image"},"content":{"rendered":"\n<p>It is common practice on headless Raspberry Pi computers to turn off the HDMI to save some power.  Even without a monitor attached, the HDMI hardware seems to draw ~ 50 ma of current.  However, in the interest of saving space in the image, <a href=\"http:\/\/www.pistar.uk\">Pi-Star<\/a> (as distributed) lacks the necessary tvservice command to turn off the HDMI hardware.<\/p>\n\n\n\n<p>This command is part of the Raspberry PI &#8220;userland&#8221; package, which for some reason is not packaged as a .deb.  So you&#8217;ll have to grab the code off github, but it is pretty easy.  Before starting, make certain that you have expanded the filesystem of your image to fill the SD card.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo pistar-expand<br>sudo reboot<\/pre>\n\n\n\n<p>After the reboot, do the following:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">rpi-rw<br>git clone https:\/\/github.com\/raspberrypi\/userland<br>sudo apt-get install cmake -y<br>cd userland<br>.\/buildme<\/pre>\n\n\n\n<p>Add the libraries to the ld.so search patch by creating a file named &#8220;userland.conf&#8221; in \/etc\/ld.so.conf.d.  In that file add the following line:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/opt\/vc\/lib<\/pre>\n\n\n\n<p>Next, update the ld.so search path:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo ldconfig -v<\/pre>\n\n\n\n<p>You can now run the tvservice command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">## Status<br>sudo \/opt\/vc\/bin\/tvservice -s<br>## Turn off HDMI<br>sudo \/opt\/vc\/bin\/tvservice -o<\/pre>\n\n\n\n<p>All that is left to be done is to add the HDMI off command to your \/etc\/rc.local file so that it will run every time the system boots.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is common practice on headless Raspberry Pi computers to turn off the HDMI to save some power. Even without a monitor attached, the HDMI hardware seems to draw ~ 50 ma of current. However, in the interest of saving space in the image, Pi-Star (as distributed) lacks the necessary tvservice command to turn off &hellip; <a href=\"https:\/\/www.k2ie.net\/blog\/2019\/01\/26\/turn-of-hdmi-on-pi-star-image\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Turn off HDMI on Pi-Star Image&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,6],"tags":[123,124,122,125,18,29],"class_list":["post-677","post","type-post","status-publish","format-standard","hentry","category-radio","category-technology","tag-hdmi","tag-mw0mwz","tag-pi-star","tag-power","tag-raspberry-pi","tag-rpi"],"_links":{"self":[{"href":"https:\/\/www.k2ie.net\/blog\/wp-json\/wp\/v2\/posts\/677","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.k2ie.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.k2ie.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.k2ie.net\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.k2ie.net\/blog\/wp-json\/wp\/v2\/comments?post=677"}],"version-history":[{"count":16,"href":"https:\/\/www.k2ie.net\/blog\/wp-json\/wp\/v2\/posts\/677\/revisions"}],"predecessor-version":[{"id":697,"href":"https:\/\/www.k2ie.net\/blog\/wp-json\/wp\/v2\/posts\/677\/revisions\/697"}],"wp:attachment":[{"href":"https:\/\/www.k2ie.net\/blog\/wp-json\/wp\/v2\/media?parent=677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.k2ie.net\/blog\/wp-json\/wp\/v2\/categories?post=677"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.k2ie.net\/blog\/wp-json\/wp\/v2\/tags?post=677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}