From 4c64bbd428df7a2e4c35ba60537ff427156604cf Mon Sep 17 00:00:00 2001 From: Arnav Singh Date: Sat, 29 Nov 2025 18:18:35 -0800 Subject: [PATCH] linux-postmarketos-allwinner: add patch to increase minimum screen backlight brightness Ref: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7441 Part-of: --- ...-a64-pinephone-1.2-Increase-backligh.patch | 35 +++++++++++++++++++ .../linux-postmarketos-allwinner/APKBUILD | 4 ++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 device/community/linux-postmarketos-allwinner/0012-arm64-dts-sun50i-a64-pinephone-1.2-Increase-backligh.patch diff --git a/device/community/linux-postmarketos-allwinner/0012-arm64-dts-sun50i-a64-pinephone-1.2-Increase-backligh.patch b/device/community/linux-postmarketos-allwinner/0012-arm64-dts-sun50i-a64-pinephone-1.2-Increase-backligh.patch new file mode 100644 index 000000000..dad853e7b --- /dev/null +++ b/device/community/linux-postmarketos-allwinner/0012-arm64-dts-sun50i-a64-pinephone-1.2-Increase-backligh.patch @@ -0,0 +1,35 @@ +From 39597752f160213f04d2685bad6143ba2e2f6fdb Mon Sep 17 00:00:00 2001 +From: Arnav Singh +Date: Sat, 29 Nov 2025 18:09:12 -0800 +Subject: [PATCH] arm64: dts: sun50i-a64-pinephone-1.2: Increase backlight + lth-brightness to 12 + +DanctNIX has been carrying a patch to raise this using udev because +10 apparently still turns the screen completely off for some phones. +A user in the postmarketOS tracker also reported this on their 1.2b model. +10 does seem to be enough for my phone, but let's raise it to 12. + +Ref: https://codeberg.org/DanctNIX/danctnix-packages/src/commit/92039e7e20cef4aaa2ce8a92ca69fb12a53e806e/pine64/device-pine64-pinephone/10-pinephone-brightness.rules +Ref: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7441 + +Signed-off-by: Arnav Singh +--- + arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.2.dts | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.2.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.2.dts +index 6972ef02ed8e..f74d4dc6178b 100644 +--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.2.dts ++++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.2.dts +@@ -21,7 +21,7 @@ &axp803 { + + &backlight { + power-supply = <®_ldo_io0>; +- lth-brightness = <10>; ++ lth-brightness = <12>; + }; + + &lis3mdl { +-- +2.52.0 + diff --git a/device/community/linux-postmarketos-allwinner/APKBUILD b/device/community/linux-postmarketos-allwinner/APKBUILD index df8062c3b..ed61f910b 100644 --- a/device/community/linux-postmarketos-allwinner/APKBUILD +++ b/device/community/linux-postmarketos-allwinner/APKBUILD @@ -4,7 +4,7 @@ _flavor=postmarketos-allwinner _config="config-$_flavor.$CARCH" pkgname=linux-$_flavor pkgver=6.17.5_git20251026 -pkgrel=1 +pkgrel=2 _tag="orange-pi-6.17-20251026-1441" pkgdesc="Kernel fork with Pine64 patches (megi's tree, slightly patched)" arch="aarch64 armv7" @@ -47,6 +47,7 @@ source="$pkgname-$_tag.tar.gz::https://codeberg.org/megi/linux/archive/$_tag.tar 0009-ARM-dts-sun6i-Add-Lark-FreeMe-70.2S-tablet.patch 0010-eMMC-workaround.patch 0011-arm64-dts-allwinner-orangepi-3-fix-ethernet.patch + 0012-arm64-dts-sun50i-a64-pinephone-1.2-Increase-backligh.patch " builddir="$srcdir/linux" @@ -98,4 +99,5 @@ cb321cc103295e4091754a867e1cbf40fa918483d557d81d7e9fe2df594fd078ae6025f72c1339a9 4a35e34d84805746b4af54af0e09e93296814c783ad413d6ddee543b88830042647581e58fae850b60a971902cc42c85b477d5584eb24a2f866ba4d08f98c7f6 0009-ARM-dts-sun6i-Add-Lark-FreeMe-70.2S-tablet.patch b1ee2d222454539acda124eb57dca2a2938378909f430aac8646bfcfc3bde590a076c21ea9573777b61839a2105df3155e0603deda0aa8aa8cc94f05a5bab942 0010-eMMC-workaround.patch ebb3d145acff253e29e70375f2e09f2ff605eaceee6b516673b7fe9ddabeb5afff27b2c14680ee8c6764c3f133dc8ff32fc7620afb1b8fab43c33825473ed825 0011-arm64-dts-allwinner-orangepi-3-fix-ethernet.patch +a602063f2e0f815c401507db952214e37e882f7f7606cd5567f430dd014f56151032befb4cb8bfbf9485319a61ac5d446f1c09d0745385fdf84aaca6b482ab7c 0012-arm64-dts-sun50i-a64-pinephone-1.2-Increase-backligh.patch "