<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Wyatt Huang</title>
    <description>The latest articles on DEV Community by Wyatt Huang (@wyatth).</description>
    <link>https://dev.to/wyatth</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F891103%2Fde2812ba-b773-48dd-9abd-37487be1a138.jpg</url>
      <title>DEV Community: Wyatt Huang</title>
      <link>https://dev.to/wyatth</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/wyatth"/>
    <language>en</language>
    <item>
      <title>Fix Raspberry Pi VNC Desktop Low Resolution (Small Screen)</title>
      <dc:creator>Wyatt Huang</dc:creator>
      <pubDate>Fri, 15 Jul 2022 05:25:57 +0000</pubDate>
      <link>https://dev.to/wyatth/fix-raspberry-pi-vnc-low-resolutionsmall-screen-gla</link>
      <guid>https://dev.to/wyatth/fix-raspberry-pi-vnc-low-resolutionsmall-screen-gla</guid>
      <description>&lt;p&gt;When we want to work on a Raspberry Pi, it is usually complicated to connect it with a monitor itself and prepare a set of mouse and keyboard. Then, using SSH(Secure Shell) or using VNC(Virtual Network Computing) are good alternatives. However, when we first connect with a Raspberry Pi using VNC, it is likely that the resolution of the screen is too low, and only the top left corner of the screen is displayed. In this case, due to the limited space for operation, it is hard to directly change the resolution through the VNC connection, but there is one way to solve this through SSH connection.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fto6obt5qh67c73nip081.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fto6obt5qh67c73nip081.png" alt="Raspberry Pi VNC connection with low resolution"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;First, we connect our Raspberry Pi through SSH connection, and run the following command:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

sudo nano /boot/config.txt


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;After that, a file should be opened using nano editor. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgnkncydcve927zigsza0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgnkncydcve927zigsza0.png" alt="Opened File"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;First, we need to find the following five lines and if any of them are commented, &lt;strong&gt;UNCOMMENT&lt;/strong&gt; these lines.&lt;br&gt;
&lt;strong&gt;Note:&lt;/strong&gt; set the &lt;code&gt;framebuffer_width&lt;/code&gt; and &lt;code&gt;framebuffer_height&lt;/code&gt; to your designed resolution and set &lt;code&gt;hdmi_group&lt;/code&gt; and &lt;code&gt;hdmi_mode&lt;/code&gt; the same as the value in the picture below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1b9dbw3ty0cpfljt5tho.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1b9dbw3ty0cpfljt5tho.png" alt="Target five lines"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then, we scroll down and find the following two lines, and if  any of them are uncommented, &lt;strong&gt;COMMENT&lt;/strong&gt; these two lines. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F05s6bfusg5qhzb482hug.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F05s6bfusg5qhzb482hug.png" alt="Target two lines"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After we complete all the changes, press &lt;code&gt;Ctrl + O&lt;/code&gt; to write the changes, and then press &lt;code&gt;Ctrl + X&lt;/code&gt; to exit.&lt;/p&gt;

&lt;p&gt;Finally, we need to reboot the Raspberry Pi to make the changes take effects, run&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

sudo reboot


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;At this time, if you reconnect the Raspberry Pi via VNC, the resolution should be normal.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fasedx1fubh7mk4njceka.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fasedx1fubh7mk4njceka.png" alt="Normal Desktop"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;PROBLEM SOLVED!!&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>raspberrypi</category>
      <category>vnc</category>
      <category>ssh</category>
    </item>
  </channel>
</rss>
