{"id":3025,"date":"2019-03-07T09:56:03","date_gmt":"2019-03-07T09:56:03","guid":{"rendered":"https:\/\/raspberry-projects.com\/pi\/?p=3025"},"modified":"2019-03-07T10:11:03","modified_gmt":"2019-03-07T10:11:03","slug":"backlight-control-software","status":"publish","type":"post","link":"https:\/\/raspberry-projects.com\/pi\/pi-hardware\/raspberry-pi-touch-display\/backlight-control-software","title":{"rendered":"Backlight Control-Software"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">To Control the backlight of the Raspberry Pi 7-inch touchscreen display<\/h4>\n\n\n\n<p>Using command line<\/p>\n\n\n\n<p>Turn Off<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo 1 | sudo tee \/sys\/class\/backlight\/rpi_backlight\/bl_power<\/code><\/pre>\n\n\n\n<p>Turn On<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo 0 | sudo tee \/sys\/class\/backlight\/rpi_backlight\/bl_power<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">Set Brightness<\/h5>\n\n\n\n<p><a href=\"https:\/\/github.com\/raspberrypi\/linux\/commit\/e9c356a2c18787d356567f24e7879875d7337efc\">https:\/\/github.com\/raspberrypi\/linux\/commit\/e9c356a2c18787d356567f24e7879875d7337efc<\/a><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">From Windows IoT<\/h5>\n\n\n\n<p>Seems hit and miss at the moment.  Some users report it can be done via the  display PCB&#8217;s 5 pin connector I2C pins, other users report its buggy, can cause touch to stop working and also causes problem with other I2C devices on the same bus.  Also there&#8217;s no official documentation.  A better way it seems is via a GPU mailbox interface feature but as yet we&#8217;ve not come across a simple implementation.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?t=152495\">https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?t=152495<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/social.msdn.microsoft.com\/Forums\/en-US\/d1b1a79f-e1ec-4879-abd7-82ea523b35e9\/brightness-controls-in-iot-rp3-official-touch-screen-backlight?forum=WindowsIoT\">https:\/\/social.msdn.microsoft.com\/Forums\/en-US\/d1b1a79f-e1ec-4879-abd7-82ea523b35e9\/brightness-controls-in-iot-rp3-official-touch-screen-backlight?forum=WindowsIoT<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">To Control the backlight of HDMI displays<\/h4>\n\n\n\n<p>\n\nUsing command line\n\n<\/p>\n\n\n\n<p>Turn Off<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> vcgencmd display_power 0<\/code><\/pre>\n\n\n\n<p>Turn On<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vcgencmd display_power 1<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>To Control the backlight of the Raspberry Pi 7-inch touchscreen display Using command line Turn Off Turn On Set Brightness https:\/\/github.com\/raspberrypi\/linux\/commit\/e9c356a2c18787d356567f24e7879875d7337efc From Windows IoT Seems hit and miss at the moment. Some users report it can be done via the display PCB&#8217;s 5 pin connector I2C pins, other users report its buggy, can cause touch [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[103],"tags":[],"class_list":["post-3025","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi-touch-display"],"_links":{"self":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/3025","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/comments?post=3025"}],"version-history":[{"count":5,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/3025\/revisions"}],"predecessor-version":[{"id":3030,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/3025\/revisions\/3030"}],"wp:attachment":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/media?parent=3025"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/categories?post=3025"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/tags?post=3025"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}