kamikaonashi 186dbed08e [SQUASH] stone:parts: Implement HBM & Auto HBM
m8250-common: hbm: Add preference for time-based HBM disable

To specify a duration after which High Brightness Mode (HBM)
is automatically disabled if the lux level falls below the
defined threshold.

[EmanuelCN: Use thread sleep and recheck lux after timeToDisableHBM]

Signed-off-by: AnierinB <anierin@evolution-x.org>

sm8250-common: hbm: Deactivate the HBM tile when the screen turns off

When the screen is turned off, HBM will shut down and the HBM tile should become inactive.

sm8250-common: hbm: Refresh the QS brightness slider whenever the HBM is activated

The brightness slider should be set to 100% when the HBM is activated.

sm8250-common: hbm: Avoid writing to the backlight when turning off the HBM

Not needed.

sm8250-common: hbm: Include a 7-second delay when turning off the HBM

The HBM turning off while walking through a shadow was frustrating. Address this issue by verifying if the threshold has been reached after the 7-second delay.

sm8250-common: sepolicy: allow parts to get SettingsLib prop

ThermalSettingsFragment's use of ApplicationsState includes a
check of whether a package is an instant app or not. The function
isInstant() in AppUtils reads settingsdebug.instant.packages prop
to retrieve a list of instant packages for debugging purposes.

We do not actually use this property, but this check triggers an
SELinux denial for every package in the list and spams the logs
with permission denied errors. Get rid of these log spams by
allowing parts to read the prop.

Test: open the thermal profile settings and check logs

sm8250-common: sepolicy: Allow devicesettings write to vendor_sysfs_graphics

sm8250-common: Disable hbm thermal throttle

adapted to stone (sm6375)

Co-Authored-By: Emanuel <emanuelghub@gmail.com>
Co-Authored-By: maxwen <max.weninger@gmail.com>
Co-Authored-By: Hikari-no-Tenshi <16803494+Hikari-no-Tenshi@users.noreply.github.com>
Co-Authored-By: Anierin Bliss <anierin@evolution-x.org>
Co-Authored-By: Alec Chan <88945170+alecchangod@users.noreply.github.com>
2024-05-07 23:17:44 +02:00
2024-05-07 22:50:25 +02:00
2024-05-07 21:06:19 +02:00
2024-05-07 23:12:55 +02:00
2024-05-07 23:13:24 +02:00

Unified Device Tree for POCO X5 5G ( moonstone ) / Redmi Note 12 5G | Note 12R Pro ( sunstone )

Spec Sheet

Feature Specification
CPU moonstone Octa-core (2x2.2 GHz Kryo 660 Gold & 6x1.7 GHz Kryo 660 Silver)
CPU sunstone Octa-core (2x2.0 GHz Cortex-A78 & 6x1.8 GHz Cortex-A55)
Chipset moonstone Qualcomm SM6375 Snapdragon 695 5G (6 nm)
Chipset sunstone Qualcomm SM4375 Snapdragon 4 Gen 1 (6 nm)
GPU Adreno 619
Memory 4 GB / 6 GB / 8GB
Shipped Software Android 12, MIUI 13
Storage 128 GB / 256 GB
Battery 5000 mAh
Dimensions 165.9 x 76.2 x 8 mm (6.53 x 3.00 x 0.31 in)
Display 6.67 inches, 107.4 cm2 (~85.0% screen-to-body ratio)
Rear Camera 48 MP, f/1.8, (wide), PDAF
8 MP, f/2.2, 118˚ (ultrawide), 1/4", 1.12µm
2 MP, f/2.4, (macro)
Front Camera 13 MP, f/2.5, (wide)
Release Date February 2023

Device Picture

POCO X5 5G

Description
No description provided
Readme 2.1 MiB
Languages
C++ 72.4%
Shell 11.9%
C 8.7%
Java 4.1%
Makefile 2.1%
Other 0.8%