warpme / miniarch

ArchLinux ARM SD card images for quick start with ArchLinux on ARM SBC & TV Boxes
GNU General Public License v2.0
83 stars 7 forks source link

Disable screen blanking for Allwinner SOCs #17

Closed takase1121 closed 1 year ago

takase1121 commented 1 year ago

Since miniarch is intended for general use, it might be a good idea to disable Allwinner's screen blanking. The default blanking period is quite aggressive and makes it annoying to use the Linux console.

This is the bootloader config I use for my OrangePi Zero 2. Note that I also have a fixed resolution set - if you plan to adopt it, please exclude the resolution parameter.

diff --git a/script/bootloaders/board-h616.orangepi_zero2/files/h616-boot.txt b/script/bootloaders/board-h616.orangepi_zero2/files/h616-boot.txt
index 5616b5f3b..9353701b1 100644
--- a/script/bootloaders/board-h616.orangepi_zero2/files/h616-boot.txt
+++ b/script/bootloaders/board-h616.orangepi_zero2/files/h616-boot.txt
@@ -5,7 +5,7 @@

 part uuid ${devtype} ${devnum}:2 uuid

-setenv bootargs root=PARTUUID=${uuid} rw rootwait earlycon console=ttyS0,115200n8 logo.nologo vt.cur_default=1 deferred_probe_timeout=0
+setenv bootargs root=PARTUUID=${uuid} rw rootwait earlycon consoleblank=0 console=ttyS0,115200n8 video=HDMI-A-1:1920x1080 deferred_probe_timeout=0

 setenv fdtfile dtbs/allwinner/sun50i-h616-orangepi-zero2.dtb
 setenv userfdtfile h616_dtb

It might also be a good idea to enable the cursor as well, since it makes running text editors on the console impossible (you can't navigate in nano without the cursor!). I understand that disabling the cursor is important for silent boot, but perhaps there is a way to re-enable the cursor again after reaching getty.

Reference: https://linux-sunxi.org/Display

warpme commented 1 year ago

Hi,

By https://github.com/warpme/minimyth2/commit/070b8225e8984d4c069ff3fb188556a48b1640f7 i'm enabling cursor and disabling console blanking. I uploaded updated OPi Zero2 image. May you test and report how it goes?

takase1121 commented 1 year ago

Yes, this issue is fixed.