<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Display terminal (tty) on CoreMP135 buildin display]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I am running a CoreMP135 with the M5 debian image (kernel 5.15). I am interacting with the device over USB-C / serial tty. How can I show the tty terminal on the buildin display? If connect an external monitor via hdmi it will directly show a tty terminal on the external monitor, can i get the same output on the ILI9342C LCD?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://community.m5stack.com/topic/6678/display-terminal-tty-on-coremp135-buildin-display</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 22:02:31 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6678.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 05 Aug 2024 09:39:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Display terminal (tty) on CoreMP135 buildin display on Sun, 17 Nov 2024 15:17:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/johan_s" aria-label="Profile: johan_s">@<bdi>johan_s</bdi></a>  Hi John sorry for the long delay.</p>
<p dir="auto">I had a chance to play with the frame buffer today after remembering this conversation.</p>
<p dir="auto">I am finding the issue with the small text/garbidge written to the screen that you shared and looking into it.</p>
<p dir="auto">Thanks for the point out.</p>
]]></description><link>https://community.m5stack.com/post/27064</link><guid isPermaLink="true">https://community.m5stack.com/post/27064</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sun, 17 Nov 2024 15:17:06 GMT</pubDate></item><item><title><![CDATA[Reply to Display terminal (tty) on CoreMP135 buildin display on Wed, 14 Aug 2024 08:42:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> no problem my friend</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/prima" aria-label="Profile: prima">@<bdi>prima</bdi></a> I tried your suggestion but I can't really get it to work.</p>
<p dir="auto">With the method I outlined the terminal works fine, but the keyboard input (USB keyboard) is not so reliable. It stop registering keystrokes after a short period. Not sure if the keyboard input get redirected to another terminal in the background or something.</p>
]]></description><link>https://community.m5stack.com/post/26084</link><guid isPermaLink="true">https://community.m5stack.com/post/26084</guid><dc:creator><![CDATA[johan_s]]></dc:creator><pubDate>Wed, 14 Aug 2024 08:42:16 GMT</pubDate></item><item><title><![CDATA[Reply to Display terminal (tty) on CoreMP135 buildin display on Tue, 13 Aug 2024 19:44:42 GMT]]></title><description><![CDATA[<p dir="auto">I haven't tested yet but on other devices I usually start programs from the serial console or SSH just by adding CLI arguments like this:</p>
<pre><code>FRAMEBUFFER=/dev/fb1 &lt;some command&gt;
</code></pre>
]]></description><link>https://community.m5stack.com/post/26077</link><guid isPermaLink="true">https://community.m5stack.com/post/26077</guid><dc:creator><![CDATA[prima]]></dc:creator><pubDate>Tue, 13 Aug 2024 19:44:42 GMT</pubDate></item><item><title><![CDATA[Reply to Display terminal (tty) on CoreMP135 buildin display on Tue, 13 Aug 2024 16:12:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/johan_s" aria-label="Profile: johan_s">@<bdi>johan_s</bdi></a> I saw the export frame buffer on the CM4 stack but haven’t had time to look into it as moving around the house. Thanks for continuing the work in my steed</p>
]]></description><link>https://community.m5stack.com/post/26072</link><guid isPermaLink="true">https://community.m5stack.com/post/26072</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Tue, 13 Aug 2024 16:12:52 GMT</pubDate></item><item><title><![CDATA[Reply to Display terminal (tty) on CoreMP135 buildin display on Tue, 13 Aug 2024 07:58:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> OK, I figured it out using FbTerm, see my notes below. Just a note to temper expectations: The device is not very powerful (surprise). In my case, I am running Debian, connected to two tty terminals (ttyGS0 over USB-C and tty1 being shown in display), connected over WiFi dongle, and added a BT dongle for keyboard/mouse, and as a result the CoreMP135 very easily becomes sluggish and quite warm.</p>
<p dir="auto">Anyway, here are my notes</p>
<h2>Showing a terminal on the LCD TFT display</h2>
<p dir="auto">Very briefly:</p>
<ul>
<li>The CoreMP135 contains a ILITEK ILI9342C LCD TFT display with touch</li>
<li>The Debian OS recognizes as the display as a framebuffer and makes it accesible at <code>/dev/fb1</code></li>
<li>Low level interaction directly with <code>fb1</code> is below, see examples below. <em><strong>In all the included examples, I was signed in as <code>root</code> via the USB-C interface (ttyGS0)</strong></em></li>
</ul>
<pre><code># signed in as root
cat /dev/zero &gt; /dev/fb1 # clear display
cat /dev/urandom &gt; /dev/fb1 # show random 'static' on display
echo "HELLO WORLD" &gt; /dev/fb1 # will show some extremely small in the top left corner - not discernible
</code></pre>
<ul>
<li>The M5Stack CoreMP135 Debian image includes <code>fbv</code> - a program for rendering <code>.jpg</code> on the framebuffer (TFT LCD). Example:</li>
</ul>
<pre><code># signed in as root
. /usr/local/m5stack/bashrc # prepare environment for using fbv
/usr/local/m5stack/bin/fbv /root/mycoolpic.jpg # display .jpg on framebuffer, might only show part depending on jpg resolution
</code></pre>
<ul>
<li>It is also possible to show a (somewhat) fully functional terminal on the TFT LCD display using the <code>fbterm</code> program:</li>
</ul>
<pre><code># signed in as root
apt install fbterm # install FbTerm
export FRAMEBUFFER=/dev/fb1 # Tell FbTerm to use fb1 as framebuffer
fbterm -s 12 &lt; /dev/tty1 &amp; # Tell fbterm to diplay tty1 terminal on fb1 with size 12. 
</code></pre>
<ul>
<li>Connect a BT keyboard or similar and enjoy a somewhat functional terminal</li>
<li>One final note: I added <code>root</code> to the <code>video</code> group, although this should not be required.<br />
<img src="/assets/uploads/files/1723535724812-screenshot-from-2024-08-13-09-49-45.png" alt="Screenshot from 2024-08-13 09-49-45.png" class=" img-fluid img-markdown" /></li>
</ul>
]]></description><link>https://community.m5stack.com/post/26066</link><guid isPermaLink="true">https://community.m5stack.com/post/26066</guid><dc:creator><![CDATA[johan_s]]></dc:creator><pubDate>Tue, 13 Aug 2024 07:58:36 GMT</pubDate></item><item><title><![CDATA[Reply to Display terminal (tty) on CoreMP135 buildin display on Tue, 06 Aug 2024 10:54:38 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> , ok that makes sense, no problem.</p>
<p dir="auto">Yesterday, I tried a to use the <code>fbterm</code> because it is included in the Debian repo (easy to install with apt), but I unfortutaly I could not get it work.</p>
<p dir="auto">I have been looking for <code>fbcon</code> in the buildroot configuration menu but I have not been able to find it so far. But I have noticed that buildroot under <code>kernel extensions</code> include an optoin to compile <code>FB TFT drivers</code>. I will try and recompile with the FB TFT drivers tonight.</p>
<p dir="auto">I will post updates here.</p>
<p dir="auto">The CoreMP135 is a cool little device, but it is not as easy to use as the other M5 controllers.</p>
]]></description><link>https://community.m5stack.com/post/26019</link><guid isPermaLink="true">https://community.m5stack.com/post/26019</guid><dc:creator><![CDATA[johan_s]]></dc:creator><pubDate>Tue, 06 Aug 2024 10:54:38 GMT</pubDate></item><item><title><![CDATA[Reply to Display terminal (tty) on CoreMP135 buildin display on Tue, 06 Aug 2024 10:10:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/johan_s" aria-label="Profile: johan_s">@<bdi>johan_s</bdi></a> unfortunately I only know the theory and haven’t had much time to work on documentation as having to move my hose and office around. I started looking into the firmware and I/o control just didn’t get very far. I need to dig through not the Devicetree and display code.</p>
<p dir="auto">Have you tried installing FBCon yet?</p>
]]></description><link>https://community.m5stack.com/post/26016</link><guid isPermaLink="true">https://community.m5stack.com/post/26016</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Tue, 06 Aug 2024 10:10:27 GMT</pubDate></item><item><title><![CDATA[Reply to Display terminal (tty) on CoreMP135 buildin display on Tue, 06 Aug 2024 07:34:32 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> can you elaborate?</p>
<p dir="auto">I think it should be possible to get a terminal on the LCD using the tools provided by the linux distribution. What i gathered from searching on google, is that <code>fbcon</code> can be used to display terminals on framebuffers (such as the ILI9342C). Unfortunately, <code>fbcon</code> is not included in the CoreMP135 Debian image. I am now playing around with the CoreMP135_buildroot repo to see if I can compile it there. I will keep digging.</p>
]]></description><link>https://community.m5stack.com/post/26014</link><guid isPermaLink="true">https://community.m5stack.com/post/26014</guid><dc:creator><![CDATA[johan_s]]></dc:creator><pubDate>Tue, 06 Aug 2024 07:34:32 GMT</pubDate></item><item><title><![CDATA[Reply to Display terminal (tty) on CoreMP135 buildin display on Mon, 05 Aug 2024 17:44:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/johan_s" aria-label="Profile: johan_s">@<bdi>johan_s</bdi></a> You will need to create a program that to capture the the terminal and display it.</p>
]]></description><link>https://community.m5stack.com/post/26002</link><guid isPermaLink="true">https://community.m5stack.com/post/26002</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Mon, 05 Aug 2024 17:44:23 GMT</pubDate></item></channel></rss>