8,367
edits
Changes
→How to Modify the Framebuffer Width and Height of Linux5.4 System
=== How to Modify the Framebuffer Width and Height of 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>|}
There are two variables fb0_width and fb0_height in the '''/boot/orangepiEnv.txt''' of the linux system, which can be used to set the width and height of the Framebuffer. The default setting of the linux system is fb0_width=1920 and fb0_height=1080.
{| class="wikitable" style="width:800px;"
|-
|
orangepi@orangepi:~$ '''sudo vim /boot/orangepiEnv.txt'''
disp_mode=1080p60
'''<span style="color:#FF0000">fb0_width=1920</span>'''
'''<span style="color:#FF0000">fb0_height=1080</span>'''|}
The '''reference''' values corresponding to different resolutions of fb0_width and fb0_height are as follows:
{| class="wikitable" style="width:800px;"
|-
| style="text-align: left;"| '''HDMI resolution'''
<span id="framebuffer-cursor-setting"></span>
=== Framebuffer Cursor Setting ===