Commit graph

84 commits

Author SHA1 Message Date
Shirayuki39 09b8013b66 LG8n: props: Remove Duplicate props
*Bruh

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-17 20:28:54 +08:00
Shirayuki39 05caa7d492 LG8n: props: Remove Duplicate LMK props
*Bruh

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-17 20:22:42 +08:00
Shirayuki39 4cdbff731e LG8n: configs: props: Change org.lineageos.aperture to org.derpfest.flash
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-17 19:53:53 +08:00
Ali Hasan 3612bbb15d LG8n: Add mising props: Aux Camera access for Aperture Camera
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-17 19:49:01 +08:00
Adithya R ff546329f8 LG8n: Switch to SF phase offsets from redfin
Change-Id: I0a5042e43a2aab6ab86075f2f9a886ef541ca258
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-17 19:49:01 +08:00
Danny Lin e0fdca635f LG8n: props: Disable sf EGL image tracking
Surfaceflinger Debugging feature that we don't care about, so disable it to reduce overheads.
Signed-off-by: skwel <abalverde1694@gmail.com>
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-17 19:49:01 +08:00
Martin Liu e0c54c1ed6 LG8n:props: Disable LMK Debug
This disables LMKD debug logs
https://source.android.com/docs/core/perf/lmkd#configuring-lmkd-in-android-r

Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-17 19:49:01 +08:00
Shirayuki39 bcd76a3413 LG8n: configs: props: Import some stock stuffs
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-17 19:49:01 +08:00
Alex Sarraf d977f47768 LG8n: display: Set debug.sf.auto_latch_unsignaled to 0
Need to explicitly set auto_latch_unsignaled property to
disabled state to keep latch-unsignaled as the default
behavior.

Change-Id: I3856caaf0a68e7e720819f25338d1eb9196f56b0
2024-08-17 19:49:01 +08:00
wildbeetle afe2ff28fd LG8n: Remove debug.sf.latch_unsignaled
* Got removed in A14 QPR2
 * 1fd9bfca9d
 * We have set auto_latch_unsignaled property to
   disabled state to keep latch-unsignaled as the default
   behavior.

Change-Id: I3443d6e5b0916a3098dad556ec46cf53069ae348
Signed-off-by: SamarV-121 <samar@samarv121.dev>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-15 19:14:33 +08:00
Shirayuki39 dc1eff5654 LG8n: configs: Fix audiopreprocessing path
* I forgot to do this before committing 567e87c bruh

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-15 15:14:31 +08:00
Shirayuki39 4b344f59a6 LG8n: configs: powerhint: Let the power mode extension handle dt2w
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-14 23:41:44 +08:00
bengris32 6636ab9c73 LG8n: audio: Fix UUIDs for AOSP audio pre-processing effects
* EffectsFactoryConfigLoader: Error querying effect 9f35ed76-0b66-4330-8f79-e39ca266dc7c on lib pre_processing
  EffectsFactoryConfigLoader: Error querying effect 300abe9f-dfc5-4340-9c4b-79ef1be4e651 on lib pre_processing
  EffectsFactoryConfigLoader: Error querying effect 3387eb70-9896-4338-90f5-b2de883864c9 on lib pre_processing
  EffectsFactoryConfigLoader: 3 errors during loading of configuration: /vendor/etc/audio_effects.xml
  EffectsFactory: Effect config is partially invalid, skipped 3 elements

* Fixes a0ecac (RM6785: Drop MTK audiopreprocessing).

Change-Id: I5cf2a493cad4befe42c56f7dfb0c70f5957d2389
Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-14 14:33:34 +08:00
Shirayuki39 baa2f36a77 LG8n: configs: powerhint: Drop *mediatek* stuffs
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-14 14:02:51 +08:00
Shirayuki39 522c0cc573 LG8n: props: Import MTK Audio props
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-13 19:10:21 +08:00
Shirayuki39 b1870db572 LG8n: configs: powerhint: Change cc0 to cc2 for DT2w off state
Test by sending cc1 first to the dt2w node which should enable dt2w
then send cc0 which should turn it off but it doesn't
Sending cc2 disables dt2w, not cc0
Maybe this is why dt2w broken

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-13 15:39:49 +08:00
Shirayuki39 015bd3046e LG8n: configs: powerhint: Fix DT2W values
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-12 21:30:35 +08:00
Shirayuki39 40eff5adcd Revert "LG8n: Temporarily bring back mtkpower stack"
This reverts commit 9ed2ce0ae0.
2024-08-12 18:36:32 +08:00
fjrXTR 78fccf3e9e LG8n: configs: properties: Add some Tweak for better perform…
…ance

* taken from fleur tree & this commit 23217c0

Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-11 21:40:31 +08:00
Shirayuki39 9ed2ce0ae0 LG8n: Temporarily bring back mtkpower stack
* lol

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-09 04:45:06 +08:00
xNombre 8c0cd62893 LG8n: props: Enable IncrementalFS support
* IncrementalFS is enabled by default in GKI defconfig

Signed-off-by: Woomy <woomy@woomy.be>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-03 15:33:21 +08:00
Shirayuki39 a279e17524 Reapply "LG8n: use appropriate ims permissions"
This reverts commit 5d07a81c73.
2024-08-03 12:45:58 +08:00
Shirayuki39 5d07a81c73 Revert "LG8n: use appropriate ims permissions"
This reverts commit 959dda9105.
2024-08-02 22:13:31 +08:00
Shirayuki39 fe8d5f9c9b LG8n: use appropriate ims permissions
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-02 17:22:49 +08:00
Shirayuki39 0144a22bfe LG8n: Update props
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-02 04:59:47 +08:00
Shirayuki39 12753dc2a0 Revert "LG8n: powerhint: Fix DT2W value"
: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
08-01 22:50:15.709  2810  2810 F DEBUG   : RisingOS Version: '4.2'
08-01 22:50:15.709  2810  2810 F DEBUG   : Build fingerprint: 'TECNO/LG8n-GL/TECNO-LG8n:12/SP1A.210812.016/240531V1800:user/release-keys'
08-01 22:50:15.709  2810  2810 F DEBUG   : Revision: '0'
08-01 22:50:15.709  2810  2810 F DEBUG   : ABI: 'arm64'
08-01 22:50:15.709  2810  2810 F DEBUG   : Timestamp: 2024-08-01 22:50:15.697838983+0800
08-01 22:50:15.709  2810  2810 F DEBUG   : Process uptime: 0s
08-01 22:50:15.709  2810  2810 F DEBUG   : Cmdline: /vendor/bin/hw/android.hardware.power-service.lineage-libperfmgr
08-01 22:50:15.709  2810  2810 F DEBUG   : pid: 2807, tid: 2807, name: android.hardwar  >>> /vendor/bin/hw/android.hardware.power-service.lineage-libperfmgr <<<
08-01 22:50:15.709  2810  2810 F DEBUG   : uid: 0
08-01 22:50:15.709  2810  2810 F DEBUG   : tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
08-01 22:50:15.709  2810  2810 F DEBUG   : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
08-01 22:50:15.709  2810  2810 F DEBUG   : Abort message: 'Invalid config: /vendor/etc/powerhint.json'
08-01 22:50:15.709  2810  2810 F DEBUG   :     x0  0000000000000000  x1  0000000000000af7  x2  0000000000000006  x3  0000007fe777f0f0
08-01 22:50:15.709  2810  2810 F DEBUG   :     x4  64766e6f2e627364  x5  64766e6f2e627364  x6  64766e6f2e627364  x7  7f7f7f7f7f7f7f7f
08-01 22:50:15.709  2810  2810 F DEBUG   :     x8  00000000000000f0  x9  0000007b169263a0  x10 ffffff80ffffffdf  x11 fffffffffffffffd
08-01 22:50:15.709  2810  2810 F DEBUG   :     x12 0000007fe777f090  x13 000000000000002b  x14 b400007aa667c510  x15 000000004cec4f46
08-01 22:50:15.709  2810  2810 F DEBUG   :     x16 0000007b169d3fd0  x17 0000007b169be280  x18 0000007b17b7c000  x19 0000000000000af7
08-01 22:50:15.709  2810  2810 F DEBUG   :     x20 0000000000000af7  x21 00000000ffffffff  x22 0000007b17158fc0  x23 0000000000000000
08-01 22:50:15.709  2810  2810 F DEBUG   :     x24 0000000000000000  x25 0000000000000000  x26 0000000000000000  x27 0000000000000000
08-01 22:50:15.709  2810  2810 F DEBUG   :     x28 0000000000000000  x29 0000007fe777f170
08-01 22:50:15.709  2810  2810 F DEBUG   :     lr  0000007b1695daec  sp  0000007fe777f0d0  pc  0000007b1695db1c  pst 0000000000001000
08-01 22:50:15.709  2810  2810 F DEBUG   : 7 total frames
08-01 22:50:15.709  2810  2810 F DEBUG   : backtrace:
08-01 22:50:15.709  2810  2810 F DEBUG   :       #00 pc 000000000005ab1c  /apex/com.android.runtime/lib64/bionic/libc.so (abort+168) (BuildId: 2afbb904895f83a90c49093b988e4c45)
08-01 22:50:15.709  2810  2810 F DEBUG   :       #01 pc 0000000000006088  /system/lib64/liblog.so (__android_log_default_aborter+12) (BuildId: ebe5f9e6e7260209b52b075b9c6f0d5c)
08-01 22:50:15.709  2810  2810 F DEBUG   :       #02 pc 0000000000016938  /vendor/lib64/libbase.so (android::base::LogMessage::~LogMessage()+356) (BuildId: c4818d0ed3ab8b2bb35117388453406e)
08-01 22:50:15.709  2810  2810 F DEBUG   :       #03 pc 00000000000392bc  /vendor/lib64/libperfmgr.so (android::perfmgr::HintManager::Reload(bool)+964) (BuildId: 5d96334bb5971a00292d4975d9fe94a2)
08-01 22:50:15.709  2810  2810 F DEBUG   :       #04 pc 0000000000039970  /vendor/lib64/libperfmgr.so (android::perfmgr::HintManager::GetInstance()+60) (BuildId: 5d96334bb5971a00292d4975d9fe94a2)
08-01 22:50:15.709  2810  2810 F DEBUG   :       #05 pc 0000000000008290  /vendor/bin/hw/android.hardware.power-service.lineage-libperfmgr (main+40) (BuildId: 73fae18a9322df2b77e453da8b119c9e)
08-01 22:50:15.709  2810  2810 F DEBUG   :       #06 pc 0000000000054714  /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+116) (BuildId: 2afbb904895f83a90c49093b988e4c45)

This reverts commit 2e726e8aad.
2024-08-01 22:51:53 +08:00
dodyirawan85 1483d728d1 LG8n: Kang smooth display props from xiaomi emerald
Signed-off-by: dodyirawan85 <dev.irawans@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-01 14:16:01 +08:00
fjrXTR b5b1c2c357 LG8n: powerhint: Fix DT2W value
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-08-01 14:12:52 +08:00
Shirayuki39 d4cabc9451 Revert "LG8n: Kang IMS stuffs from H0AMSI ROM's"
This reverts commit ec3c6af020.
2024-07-31 21:44:47 +08:00
fjrXTR f74fd7ba8f LG8n: Kang IMS stuffs from H0AMSI ROM's
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-31 20:53:34 +08:00
Shirayuki39 bcc3de108b LG8n: configs: Nuke references to DTS Audio
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-28 13:43:39 +08:00
Georg Veichtlbauer d987c60bc8 LG8n: powerhint: Add DT2W
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 01:30:24 +08:00
DennySPB c1a8129b34 LG8n: powerhint: Decrease launch boost to 3sec
* 5s is just too long

Change-Id: I7e037c45cd2296a8bbd67d6bd63c212c0ef2a805
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
2024-07-26 01:25:48 +08:00
Subhajeet Muhuri 2fd5542441 LG8n: powerhint: Drop PM QoS latency boosting
Change-Id: I683033dcbb12e27ccfbf21eff0b5c9bba0269089
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
2024-07-26 01:25:26 +08:00
Woomymy 9fc02b86c1 LG8n: powerhint: Drop task_turbo and fix max bhr_opp value
Change-Id: Ic19a75aa731f0b5be9f36ca273ac573f7f0eb94a
Signed-off-by: Woomymy <woomy@woomy.be>
2024-07-26 01:25:06 +08:00
Woomymy e40c20ddce LG8n: powerhint: Lower interaction min frequencies
Change-Id: Iac66afb6e5570c72ce435ccf86eedac2fb922f0d
Signed-off-by: Woomymy <woomy@woomy.be>
2024-07-26 01:24:45 +08:00
Woomymy 156af5b10b LG8n: Kang powerhint from mt6768-common
* Imported from mt6768-common powerhint and initialy adapted for yunluo

Co-Authored-By: Matsvei Niaverau <matvej2002@gmail.com>
Co-Authored-By: Vaisakh Murali <mvaisakh@statixos.com>
Co-Authored-By: Woomymy <woomy@woomy.be>
Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: I45d501e7d9e7ff124db773cad3178a6698085053
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
2024-07-26 01:05:52 +08:00
Shirayuki39 b18e5aea4d LG8n: Nuke MTK PowerHAL and cleanup
* ref - xiaomi-mt6789-devs/android_device_xiaomi_yunluo@8361661

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-26 00:50:12 +08:00
Shirayuki39 34d2097d01 LG8n: vintf: remove android.hardware.boot from manifest
ERROR: files are incompatible:
 android.hardware.boot@1.0::IBootControl/default is deprecated; requires at least 1.2
    because it matches android.hardware.boot@1.0::IBootControl/default from /system/etc/vintf/compat
ibility_matrix.4.xml

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-25 23:19:37 +08:00
Shirayuki39 2c21867fef LG8n: Update to LG8n-H891OPAeAf-S-GL-240531V2678
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-23 18:15:47 +08:00
Shirayuki39 51ae0b6279 LG8n: props: Update props
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-20 11:53:17 +08:00
Shirayuki39 411f8b3cf0 LG8n: media: Kang media configs from X6837
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-18 19:51:10 +08:00
Vaisakh Murali ee7ab520cf LG8n: Include c2 media codecs
Enables c2 codec detection

Signed-off-by: Vaisakh Murali <mvaisakh@statixos.com>
Reviewed-on: https://review.statixos.com/c/android_device_xiaomi_cannon/+/6412
Reviewed-by: Vaisakh Murali <vaisakhmurali@gmail.com>
Tested-by: Vaisakh Murali <vaisakhmurali@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-18 15:57:30 +08:00
Shirayuki39 5abd04f064 LG8n: Reconfigure Media Stack
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-18 15:57:08 +08:00
Shirayuki39 ce7928789e LG8n: Self-kang props from pre-reboot branch
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 14:22:42 +08:00
etylix 15203b6761 LG8n: props: RIL for battery life.
Changed “ro.ril.disable.power.collapse” value to zero.
Seems to be a debate on what value is more effective but after more reading and testing found that a value of “0” shows more improvement.
Have also added “ro.mot.eri.losalert.delay=1000 “ that helps smooth out disconnects and reconnects, saving battery.

Co-authored by: KARTHIK LAL <karthik.lal558@gmail.com>

Change-Id: Iaad44323cc6aa11332a6d818cc2402929b7b15ae
Signed-off-by: DarkAngelGR <asavvo01@gmail.com>
Signed-off-by: ramshell688 <ramonzost68@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 08:19:41 +08:00
Shirayuki39 37f633a5ae LG8n: props: Import recommended dexopt props
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 08:11:14 +08:00
Shirayuki39 43cff21a0d LG8n: Import LG8n Media Configs
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 08:05:32 +08:00
Shirayuki39 78e7e75f0e LG8n: Import LG8n stock audio configs
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 08:02:15 +08:00
fjrXTR b6e7810f08 LG8n: configs: Add missing IMS permission
Change-Id: If916d8ac813d1aea54c4fba31745de09f78fec95
Signed-off-by: fjrXTR <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
2024-07-17 07:58:07 +08:00