Changes

Jump to: navigation, search

Orange Pi Zero 3

338 bytes added, 10:27, 11 July 2023
How to set HDMI resolution in Linux5.4 system
=== How to set HDMI resolution in Linux5.4 system ===
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Note: This method is only applicable to systems with linux5.4 kernel.'''</big>|}
<ol style="list-style-type: decimal;">
<li><p>There is a disp_mode variable in '''/boot/orangepiEnv.txt''' of the linux system, which can be used to set the resolution of the HDMI output. The default resolution of the linux system is 1080p60</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''sudo vim /boot/orangepiEnv.txt'''</p>
<p>verbosity=1</p>
<p>console=both</p>
<p>disp_mode='''<span style="color:#FF0000">1080p60</span>'''</p>
<p>fb0_width=1920</p>
<p>fb0_height=1080</p>|}</li><li><p>The values supported by the disp_mode variable are shown in the table below</p></li></ol>
{| class="wikitable" style="width:800px;"
|-
| style="text-align: left;"| '''Supported values for disp_mode'''
| style="text-align: left;"| '''60'''
|}
</li></ol>{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''Note: Linux systems currently do not support 4K resolution.'''</big>|}
<ol start="3" style="list-style-type: decimal;">
<li><p>Change the value of the disp_mode variable to the desired output resolution, and then restart the system, HDMI will output the set resolution</p></li>
<li><p>The method of viewing the HDMI output resolution is as follows. If the displayed resolution is the same as the set resolution, it means that the setting of the development board is correct.</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''sudo cat /sys/class/disp/disp/attr/sys'''</p>
|}
<p>[[File:media/image149.png|575x84px]]</p></li></ol>
<span id="how-to-modify-the-framebuffer-width-and-height-of-linux5.4-system"></span>
 
=== How to Modify the Framebuffer Width and Height of Linux5.4 System ===

Navigation menu