<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>I Can See Clearly Now! With the 4D Systems 2.4" Touch Screen for the Raspberry Pi</title><link>https://community.element14.com/products/raspberry-pi/w/documents/8195/i-can-see-clearly-now-with-the-4d-systems-2-4-touch-screen-for-the-raspberry-pi</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>I Can See Clearly Now! With the 4D Systems 2.4" Touch Screen for the Raspberry Pi</title><link>https://community.element14.com/products/raspberry-pi/w/documents/8195/i-can-see-clearly-now-with-the-4d-systems-2-4-touch-screen-for-the-raspberry-pi</link><pubDate>Mon, 10 May 2021 20:50:40 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:66e3b051-7ed5-4639-9a7b-c6de324df2f0</guid><dc:creator>cstanton</dc:creator><comments>https://community.element14.com/products/raspberry-pi/w/documents/8195/i-can-see-clearly-now-with-the-4d-systems-2-4-touch-screen-for-the-raspberry-pi#comments</comments><description>Current Revision posted to Documents by cstanton on 5/10/2021 8:50:40 PM&lt;br /&gt;
&lt;p style="margin:0;"&gt;If there is one add on for the Raspberry Pi that I have seen frequently requested, it has got to be a portable screen, and preferably a touch screen. There is no wonder, either, with the advent of smartphones and tablets that touch screens that are capacitive or resistive are verily sought after. Especially for development.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;It is no secret that the Pi Foundation have been working on a &lt;a class="jive-link-external-small" href="http://techcrunch.com/2014/10/21/pi-pads/" rel="nofollow ugc noopener" target="_blank"&gt;7&amp;quot; touch screen&lt;/a&gt;, and while that is appropriate for a number of projects where you may want to mimic a portable tablet or perhaps a laptop, I have been coveting a much tastier and cuter opportunity for smaller and embedded projects.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;Finally, 4D Systems have brought out an affordable &lt;span&gt;&lt;span class="e14-init-shown" id="addProduct-nobX4WIo-linked" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=2456984&amp;amp;nsku=NULL&amp;amp;COM=noscript" target="_blank"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=2456984&amp;amp;nsku=NULL&amp;amp;COM=noscript" target="_blank"&gt;2.4&amp;quot; TouchScreen&lt;/a&gt;&lt;/span&gt;&lt;span class="e14-init-hidden" id="addProduct-nobX4WIo-unlinked"&gt;2.4&amp;quot; TouchScreen&lt;/span&gt;&lt;/span&gt; compatible with the Raspberry Pi A+, B+ and 2 Model B! It&amp;#39;s very, very nice.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;table border="1" class="jiveBorder" style="border:1px solid #000000;width:100%;"&gt;&lt;thead&gt;&lt;tr&gt;&lt;th style="border:1px solid black;border:1px solid #000000;background-color:#6690bc;padding:2px;color:#ffffff;text-align:center;" valign="middle"&gt;&lt;strong&gt;{gallery} 4D Systems 2.4&amp;quot; TouchScreen&lt;/strong&gt;&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="border:1px solid black;border:1px solid #000000;padding:2px;"&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/1200x900/__key/communityserver-wikis-components-files/00-00-00-01-69/8103.contentimage_5F00_199708.jpg"&gt;&lt;img alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/69/8103.contentimage_199708.jpg-620x465.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=MGKSQj%2Fx2F9OULaTE6HNizv%2F0P%2FftTp%2FiSyykfgyiUc%3D&amp;amp;se=2026-08-18T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=jY6qv+aYgACBnlwvHu+8Kw==" style="max-height: 465px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;Pi Foundation Case: Well protected and contained, what&amp;#39;s inside?&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border:1px solid black;border:1px solid #000000;padding:2px;"&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/1200x900/__key/communityserver-wikis-components-files/00-00-00-01-69/2555.contentimage_5F00_199709.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/69/2555.contentimage_199709.jpg-620x465.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=47nCthM1trrsi1mEi0EPfgQospDMF5KbbKlNlMUgd0Q%3D&amp;amp;se=2026-08-18T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=eJ/abGMhC1LzzFYI0EwP8w==" style="max-height: 465px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;Bright and Cheerful: The 2.4&amp;quot; screen mounted on the Pi fits neatly and viewable through the top of the case&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border:1px solid black;border:1px solid #000000;padding:2px;"&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/1200x900/__key/communityserver-wikis-components-files/00-00-00-01-69/3125.contentimage_5F00_199710.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/69/3125.contentimage_199710.jpg-620x465.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=VKBLnJ4IXvtcOD3zEAVWUyE2UK%2FgLXbsOUI6LljTZ3Q%3D&amp;amp;se=2026-08-18T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=rBgnz3EDJhhZWTjrvYur/w==" style="max-height: 465px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;Gutted: With the entire top off, so we can see the five buttons.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border:1px solid black;border:1px solid #000000;padding:2px;"&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/1200x900/__key/communityserver-wikis-components-files/00-00-00-01-69/1072.contentimage_5F00_199711.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/69/1072.contentimage_199711.jpg-620x465.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=sDjgjrMkk6apkIzr2p4D3hYh60iDr2ihuqxZaEbtxKs%3D&amp;amp;se=2026-08-18T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=5v5pGCzN5AJK3fhME4M0dw==" style="max-height: 465px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;Barebones: Of course the screen works suitably without the case, if that&amp;#39;s what you&amp;#39;re after.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="border:1px solid black;border:1px solid #000000;padding:2px;"&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/1200x900/__key/communityserver-wikis-components-files/00-00-00-01-69/7838.contentimage_5F00_199712.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/69/7838.contentimage_199712.jpg-620x465.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=BcIeOa2ST0r4MBE545BxtwT1us78QdUvWrLvq45E7zo%3D&amp;amp;se=2026-08-18T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=XO/xWp++CNw6aAj+MLAf+A==" style="max-height: 465px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;Packaged Up: You receive a small quick start guide inside the box, along with the screen. Nothing else is included.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h1&gt;All About Presentation&lt;/h1&gt;&lt;p style="margin:0;"&gt;The TouchScreen sits on the bank of GPIO pins (all of them) and almost fully covers the exposed Raspberry Pi (not counting the USB / Ethernet ports) and it hovers and I am re-assured that there will be a set of &amp;quot;stand-offs&amp;quot; soon to be purchasable&amp;nbsp; to secure the screen above the pins and connectors of the Pi.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;What you may immediately notice from the photographs is how nicely the screen fits inside the &lt;span&gt;&lt;span class="e14-init-shown" id="addProduct-a1ErAgwB-linked" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=2426746&amp;amp;nsku=NULL&amp;amp;COM=noscript" target="_blank"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=2426746&amp;amp;nsku=NULL&amp;amp;COM=noscript" target="_blank"&gt;Official Raspberry Pi Case&lt;/a&gt;&lt;/span&gt;&lt;span class="e14-init-hidden" id="addProduct-a1ErAgwB-unlinked"&gt;Official Raspberry Pi Case&lt;/span&gt;&lt;/span&gt;, this was an intentional design decision between element14 and 4D Systems. Perhaps one day the official case will be designed with portable power in mind, too? We can only hope.&lt;/p&gt;&lt;p style="margin:0;padding:0px;text-align:center;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="jive-widget-youtube-rssfeed-entry-body"&gt;&lt;span&gt;&lt;a href="https://www.youtube.com/watch?v=YUrwx7H2biI"&gt;www.youtube.com/watch&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;The screen is very capable, but it does have limitations which are mainly introduced by how Linux handles framebuffers and how these interface with the VideoCore graphics hardware. For example, it is very capable of playing full motion video as can be seen in the YouTube video above. However, you cannot render OpenGL to the screen because of how it handles the backbuffers (I think that&amp;#39;s right) though this may be theoretically possible if it was coded correctly (though the implementation may end up being slow) it means that you won&amp;#39;t be seeing hardware acceleration to the SPI screen. This is not unique to the 4D Systems screen, you will find this with any SPI screen, and until someone plays with the Broadcom code for the VideoCore and OpenGL we may never see it happen (if it&amp;#39;s even possible).&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;This means that the screen is appropriate for other applications than hardware accelerated video. Setup properly it could be used as a touch interface or even a portable video player and there&amp;#39;s little stopping you from running two screens at once.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h1&gt;Not-So-Quick-Start&lt;/h1&gt;&lt;p style="margin:0;"&gt;I&amp;#39;ll pre-empt your gripes:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;A debian package is being worked on for the driver.&lt;/li&gt;&lt;li&gt;A repo&amp;#39; is possibly being worked on, but co-operation with Raspbian for native support should be forthcoming&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;So I&amp;#39;m told,&amp;nbsp; and likely because it&amp;#39;s early days, I haven&amp;#39;t seen evidence of the source code to compile it yourself yet, but I am re-assured that there will be up to date releases in support of the latest kernel at least as the add-on is intended to be fully HAT compatible and automatically identify and setup itself when you plug it into the Pi 2 in future. This feedback has already been given internally to attempt to address and accelerate this.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h1&gt;Step by Step&lt;/h1&gt;&lt;p style="margin:0;"&gt;To start using your 2.4&amp;quot; TouchScreen you can follow these steps, for ease of setup you&amp;#39;ll need internet access and a keyboard, mouse and monitor:&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Image the SDCard for your Raspberry Pi A+/B+/2 Model B with Raspbian&lt;/li&gt;&lt;li&gt;Power on your Raspberry Pi and set it up using either SSH or Keyboard &amp;amp; Mouse with a screen as per usual&lt;/li&gt;&lt;li&gt;Open up a terminal window, either within X (the desktop environment) or by pressing CTRL-ALT-F2 (F1 to F6 usually work)&lt;/li&gt;&lt;li&gt;Type the following:&lt;/li&gt;&lt;/ul&gt;&lt;blockquote class="jive-quote"&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;wget &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://www.4dsystems.com.au/downloads/4DPi/4DPi-24-HAT/4DPi-24-HAT_kernel_R_1_0.tar.gz" rel="nofollow" target="_blank"&gt;http://www.4dsystems.com.au/downloads/4DPi/4DPi-24-HAT/4DPi-24-HAT_kernel_R_1_0.tar.gz&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;sudo tar -xzvf &lt;span style="font-size:13.3333330154419px;"&gt;4DPi-24-HAT/4DPi-24-HAT_kernel_R_1_0.tar.gz -C /&lt;/span&gt;&lt;/p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/blockquote&gt;&lt;p style="margin:0;"&gt;If you need it, I have also attached the file to this blog post. By default, this file replaces the file /boot/config.txt - so you may want to back that up or make a note of any settings you have in there in case you want to re-apply them.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;If you have a Raspberry Pi A+ or B+ you will have to alter the /boot/config.txt file using your favourite text editor (I use &lt;a class="jive-link-external-small" href="https://en.wikipedia.org/wiki/Vi" rel="nofollow ugc noopener" target="_blank"&gt;vim&lt;/a&gt;). I&amp;#39;ll let you choose which, but if you&amp;#39;re having problems just ask in the comments. Change the following line:&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p style="margin:0;"&gt;kernel=kernel7_hat.img&lt;/p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/blockquote&gt;&lt;p style="margin:0;"&gt;to&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p style="margin:0;"&gt;kernel=kernel_hat.img&lt;/p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/blockquote&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;Which will give you support for the A+/B+ , why this is different, I do not fully understand but it is likely driver related in how the screen interfaces with the VideoCore on the Raspberry Pi as some of the DMA addressing changed between the two.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h1&gt;Everyday I&amp;#39;m Buffering&lt;/h1&gt;&lt;p style="margin:0;"&gt;Your only steps now to get it to display are playing around with the framebuffer on the device, which it identifies as /dev/fb1 - so for example one way to get your desktop to appear on your touchscreen by default is to edit /etc/rc.local and put the following in before the &amp;#39;exit 0&amp;#39; line:&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p style="margin:0;"&gt;sudo -u pi FRAMEBUFFER=/dev/fb1 startx &amp;amp;&lt;/p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/blockquote&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;Frankly, there are more fun ways to play with the framebuffer. For example, I found a project called &amp;quot;&lt;a class="jive-link-external-small" href="https://github.com/tasanakorn/rpi-fbcp" rel="nofollow ugc noopener" target="_blank"&gt;Raspberry Pi Framebuffer Copy&lt;/a&gt;&amp;quot; that allows you to extend playing about with what&amp;#39;s displayed on the screen. So for example you can push a &lt;a class="jive-link-external-small" href="https://www.raspberrypi.org/forums/viewtopic.php?f=43&amp;amp;t=45059" rel="nofollow ugc noopener" target="_blank"&gt;higher resolution image and possibly other features&lt;/a&gt; onto the screen if that&amp;#39;s what&amp;#39;s typically supported over HDMI pretty easily, though it may not look pretty!&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h1&gt;Further Configuration&lt;/h1&gt;&lt;p style="margin:0;"&gt;You may now be asking what else you can do with the screen with questions such as &amp;quot;Where&amp;#39;s the calibration?&amp;quot;, &amp;quot;How do I tweak the SPI communication speed?&amp;quot; or &amp;quot;What are these buttons?&amp;quot; and perhaps &amp;quot;How do I hold all of these melons?&amp;quot;. Some of these questions, and more, will be answered in future released documentation (we&amp;#39;re still making sure that they work).&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;In the file /boot/cmdline.txt you will find:&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p style="margin:0;"&gt;24-hat.rotate=0&lt;/p&gt;&amp;nbsp;&amp;nbsp; &lt;/blockquote&gt;&lt;p style="margin:0;"&gt;Which you can change to equal &amp;#39;0, 90, 180 or 270&amp;#39; meaning the degrees at which the screen is rotated.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;You may also be able to add the values:&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p style="margin:0;"&gt;4dpi.sclk=&lt;/p&gt;&amp;nbsp;&amp;nbsp; &lt;/blockquote&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;and&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p style="margin:0;"&gt;4dpi.compress=&lt;/p&gt;&amp;nbsp;&amp;nbsp; &lt;/blockquote&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;To cmdline.txt, example values of these are &amp;#39;48000000&amp;#39; and &amp;#39;7&amp;#39; respectively, this increases the frequency of the SPI bus and the compression of the data sent over it, if set to &amp;#39;1&amp;#39; it lets the kernel handle the compression, which may not be optimal and corruption may occur, &amp;#39;7&amp;#39; is the highest value.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p style="margin:0;"&gt;4dpi.pwm=&lt;/p&gt;&amp;nbsp;&amp;nbsp; &lt;/blockquote&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;May allow control over the backlight, setting to &amp;#39;0&amp;#39; will disable it and free up GPIO18 on the Pi, setting to &amp;#39;1&amp;#39; allows values to be sent to /sys/class/backlight/4dpi/brightness to control the backlight (between 1 and 255)&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h2&gt;Undocumented Feature&lt;/h2&gt;&lt;p style="margin:0;"&gt;Hidden within the config files for Xorg you will find that the kernel package for the 2.4&amp;quot; touch screen adds the following file:&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p style="margin:0;"&gt;/usr/share/X11/xorg.conf.d/99-fbturbo.conf&lt;/p&gt;&lt;/blockquote&gt;&lt;p style="margin:0;"&gt;Within this file are settings for the following &amp;#39;startx&amp;#39; parameters:&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p style="margin:0;"&gt;startx -- -layout TFT&lt;/p&gt;&lt;/blockquote&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;Which starts the Xorg environment with output to the 2.4&amp;quot; touchscreen&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p style="margin:0;"&gt;startx -- -layout HDMI&lt;/p&gt;&lt;/blockquote&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;Which starts the Xorg environment with output via the HDMI port on the Raspberry pi.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;In the appendix attached to this post, you will find code that will let you configure the buttons for the screen. There&amp;#39;s code for C and for Python, which will give you some diversity in using the buttons (first person to create a Kodi/OpenElec plugin gets a cookie).&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:13.3333330154419px;"&gt;Now all I need to do is mod a battery and camera into the case and I&amp;#39;ll have a nice portable camera!&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:13.3333330154419px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:13.3333330154419px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:13.3333330154419px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:13.3333330154419px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class="migration-injected-attachments"&gt;&lt;div style="font-weight:bold;margin:15px 0 5px 0;"&gt;Attachments:&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;table style="border:0;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td colspan="2"&gt;&lt;span class="_se_attachment" id="attid_https://www.element14.com/community/api/core/v3/attachments/186010"&gt;&lt;a href="https://community.element14.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-69/4DPi_2D00_24_2D00_HAT_5F00_kernel_5F00_R_5F00_1_5F00_0.tar.gz"&gt;community.element14.com/.../4DPi_2D00_24_2D00_HAT_5F00_kernel_5F00_R_5F00_1_5F00_0.tar.gz&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="160"&gt;&lt;span class="_se_attachment" id="attid_https://www.element14.com/community/api/core/v3/attachments/186021"&gt;&lt;a href="https://community.element14.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-69/4DPi_2D00_24_2D00_HAT_5F00_appendix_5F00_R_5F00_1_5F00_0.pdf"&gt;community.element14.com/.../4DPi_2D00_24_2D00_HAT_5F00_appendix_5F00_R_5F00_1_5F00_0.pdf&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size:80%;"&gt;4DPi-24-HAT_appendix_R_1_0.pdf&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;script&gt;window.top.e14.func.queueScripts.add(function() { window.top.e14.func.e14DynaloadGallery(window.document);}, true );&lt;/script&gt;

&lt;div style="font-size: 90%;"&gt;Tags: raspberry_pi_touchscreen, raspberry_pi, touchscreen, 4d_systems&lt;/div&gt;
</description></item></channel></rss>