Commit graph

114 commits

Author SHA1 Message Date
pix106
bc4950e9be sdm660-common: rootdir: drop schedtune 2023-03-20 07:18:06 +01:00
Vladimir Mikhailov
6eaa16c9e8 sdm660-common: rootdir: Restore CAF cpuset settings
Change-Id: I80b4ead18bf4f485e9183c55fb2030a7f3b381d4
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-03-20 07:18:06 +01:00
DarkJoker360
23cfad55ab sdm660-common: rootdir: Stop bootanimation service after boot
* Some users reported bootanimation lags and freezes
  after a while. Looking from logs it fails to exit
  once boot is completed. Stopping bootanimation
  service, as workaround, is preventing this issue.

Signed-off-by: DarkJoker360 <simoespo159@gmail.com>
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
Signed-off-by: Vitorgl2003 <vitorgl.2003@gmail.com>
Signed-off-by: ImPrashantt <prashant33968@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-12-22 04:56:19 +01:00
Wei Wang
922a254885 sdm660-common: make powerhal starts handling powerhint after
boot_complete

some sysfs node may not be ready before boot_complete:
e.g. we are delaying bw_hwmon in favor of boot time

Bug: 80321544
Test: Boot and check powerhint handling
Change-Id: I8d2cfa332d9cf9fbafdfa3f48ffff4105c6bcaae
Signed-off-by: ImPrashantt <prashant33968@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-12-22 04:56:19 +01:00
wHo-EM-i
d2d165c870 sdm660-common: fix fp wakeup issue
* temporary fix for wake-up issue on GDX sensor
* disabled vendor.fps_hal after finishing boot(still usable since it was started already on boot-up, fingerprint option still available on Settings > Security > Figerprint)
* also guarded it for GDX sensor only so it won't stop for devices with FPC sensor

Signed-off-by: wHo-EM-i <ehteshammalik18998@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-04 09:21:04 +02:00
Bruno Martins
e9158b0df3 sdm660-common: rootdir: Keep powersaving disabled during boottime
Sleep modes are then turned on once boot is completed
or during off-mode charger mode.

Signed-off-by: ImPrashantt <prashant33968@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-09-03 11:59:00 +02:00
pix106
bb671d5144 sdm660-common: Switch back to FBE v1 for fstab.qcom
This reverts commit 67ad9e979f.
2022-08-21 18:05:00 +02:00
pix106
7f5c98e112 sdm660-common: Bring back folio daemon and userspace hall switcher
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:35 +01:00
pix106
79ac7ec9e1 sdm660-common: Decommonize mount_all
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:34 +01:00
clarencelol
81afccac41 sdm660-common: rootdir: Re-adjust SchedTune
* Set it on init instead of after boot
* Add camera-daemon schedtune
* Fix some derp

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:34 +01:00
clarencelol
4f107e00f9 Revert "sdm660-common: power-libperfmgr: Boost top-app task placement only on INTERACTION boost"
This reverts commit 1229fc5a8473c7ea99e90c4ff0a6f6d3a05a8b14.

* Nuked the schedtune.prefer_high_cap in kernel so it is not useful anymore
* Partially reverts only as some are still useful

Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:34 +01:00
clarencelol
c7b7bae281 Revert "sdm660-common: Fix TASchedtuneBoost at 1"
This reverts commit 3c23ca2aaf3135c43ce6f9507b153c37928d4467.

Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:34 +01:00
clarencelol
efae553016 sdm660-common: rootdir: Update init.rc and init.sh
from LA.UM.9.2.1.r1-08000-sdm660.0

Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:34 +01:00
pix106
39277b6405 sdm660-common: change battery charge led trigger to battery-charging-or-full
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:34 +01:00
Edwin Moquete
67ad9e979f sdm660-common: Switch to FBE v2 for fstab.qcom
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-03-26 11:56:34 +01:00
Adithya R
fbd91b6f05 sdm660-common: init: Add MIUI camera flag from stock
* Prebuilt libcameraservice sets this prop to 1 if the running camera
   app is MIUI/ANX camera, and 0 otherwise

 * This is needed to unlock all functions of MIUI/ANX camera in
   the camera HAL, such as pro mode controls, beauty modes, portrait
   depth slider and much more, and mainly fixes excess noise in
   camera shots taken with our ultrawide lens

 * We won't keep the prop enabled by default because as long as its
   enabled, gcam/mods crash immediately on launch and we don't want
   that. So let's retain the stock behaviour instead.

[clarencelol]: * avc: denied { set } for property=sys.camera.miui.apk pid=1008 uid=1047 gid=1005 scontext=u:object_r:system_prop:s0 tclass=property_service permissive=0

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-02-21 06:52:18 +01:00
Edwin Moquete
5cd3f2925c sdm660-common: Update blobs from S62Pro RKQ1.210406.002
* Thanks to edwin for the blobs

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-02-16 20:58:05 +01:00
pix106
7033bb6443 sdm660-common: enable battery charge led trigger
Signed-off-by: pix106 <sbordenave@gmail.com>
2022-02-16 20:58:05 +01:00
Subhajeet Muhuri
1d689363f6 sdm660-common: Fix TASchedtuneBoost at 1
[clarencelol: It improves scrolling janks in my testing]
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Wei Wang
8d4c63cf3d sdm660-common: power-libperfmgr: Boost top-app task placement only on INTERACTION boost
With the kernel patch to separate placement hinting part of
boost signal on placement into a prefer_high_cap hint knob,
TA will lose the boost placement hint.
This CL adds placement hinting back to TA when INTERACTION
is on.

Bug: 144451857
Test: Boot & run jank test.
Change-Id: I3dcb39804d5bbaff344fbdaf64548335a1fdf1ea
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
clarencelol
d68c522d5a sdm660-common: rootdir: Exclude adsprpcd and cdsprpcd in target.rc
* They are using standalone script now

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
orges
ecd8dd08bd sdm660-common: rootdir: Configure and add more cpusets from 4.4
Signed-off-by: orges <me@orgesified.ml>
Change-Id: I85271cf5c420c74276fb0c6f26ce3d7fb9b1b8b6
Signed-off-by: clarencelol <clarencekuiek@icloud.com>

[clarencelol]: Moved post_boot cpusets to init.target instead

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Ratoriku
65329561c4 sdm660-common: rootdir: Fix permissions for dynamic thermal profile
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Qimeng Pan
748f477ad7 sdm660-common: rootdir: Rename power_off_alarm
Since power_off_alarm is vendor module, so rename it to
vendor.power_off_alarm

Change-Id: Ib4bf6574117cd6b0a381d96de2abf4907a54785d
CRs-Fixed: 2858409
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Edwin Moquete
8531a65e4c sdm660-common: rootdir: Update wlan module path
Signed-off-by: Anush02198 <Anush.4376@gmail.com>
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
orges
dd48eb6c52 sdm660-common: power-libperfmgr: Set top-app schedtune value according to coral
* according to
   https://android.googlesource.com/device/google/coral/+/refs/heads/master/init.hardware.rc#126
   and https://android.googlesource.com/device/google/coral/+/refs/heads/master/powerhint.json#148

[clarencelol]: Remove schedtune.boost in init.target.rc and let powerhint handle it

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
UtsavBalar1231
56960ecd78 sdm660-common: rootdir: Add vendor prefix to rmt_storage
* As per the init.qcom.rc service defination has vendor prefix
* This Fixes:
I init    : Command 'start rmt_storage' action=boot (/vendor/etc/init/hw/init.target.rc:161) took 0ms and failed: service rmt_storage not found

Change-Id: I271adb887b9420d631e67eb4e7f436f0cd931f32
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-12-31 07:51:33 +01:00
Gaurav Kohli
918be7c3f7 sdm660-common: rootdir: change ipa trigger level to early-boot.
On fs/post-fs trigger there are chances of vendor partition mounting,
which may block ipa loading. To prevent the same change the
trigger level.

Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:32:12 +01:00
Michael W
ede9ca9946 sdm660-common: Give proper permissions for /dev/diag
* This gives proper permission to /dev/diag node so that diag driver
  can load successfully

* Logs spam with error '-13' which basically translates to access denied/invalid permission.

* Fix this by giving system read and write access.

Change-Id: I87fe322e7c0d91a494d29213e6f657ed8a7032a6
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2021-11-13 11:32:11 +01:00
ghostrider-reborn
79c64bc007 sdm660-common: Introduce kernelspace battery saver
* Needs Kernel side support
 * This activates kernelspace battery saver via powerhal whenever
   battery saver is enabled in userspace, thereby lowering power
   consumption at kernel-level by disabling boosts and such

Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Change-Id: I2623503db27d7518de519bcaa3f5af6ab83879d0
2021-11-13 11:31:49 +01:00
OdSazib
6ef994bba9
sdm660-common: rootdir: Set permission to powerhint nodes for k4.19
- Needed for power-libperfmgr to work properly
- Adjust TA boost value from powerhint
2021-06-15 17:32:47 +06:00
Subhajeet Muhuri
8b7fde5fdb
sdm660-common: rootdir: Enable EAS after boot
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@aosip.dev>
2021-06-15 17:32:46 +06:00
Subhajeet Muhuri
c3cba4b899
sdm660-common: rootdir: Disable EAS on early-init
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@aosip.dev>
2021-06-15 17:32:46 +06:00
Bharat Pawar
abda0a0e6a
sdm660-common: Initial bring up changes for k4.14/k4.19
Initial changes to enable:
  - USB config

Change-Id: I696c3622477c689bb31fb2d12183729ece59d54b
2021-06-07 09:19:50 +06:00
OdSazib
d1dff54c3f
sdm660-common: Fix smart-charging 2021-05-28 20:30:28 +06:00
OdSazib
e9bec8a155
sdm660-common: rootdir: Clean up init stuffs 2021-05-18 05:04:03 +06:00
dianlujitao
3f8f243eda
sdm660-common: Decommonize touch HAL node permissions
Change-Id: Ic8caabd4a5cf458dfc2c91971247168de28a27ce
2021-04-11 09:29:14 +06:00
OdSazib
0007918f73
Revert "sdm660-common: rootdir: drop wlan driver loading"
This needed for some custom kernels to load the module
This reverts commit b617d231e0.
2021-03-17 01:24:28 +06:00
ElXreno
b617d231e0
sdm660-common: rootdir: drop wlan driver loading
I hope it already present in kernel, so let's drop it.

Signed-off-by: ElXreno <elxreno@gmail.com>
2021-03-07 01:51:46 +06:00
OdSazib
ac194c785a
sdm660-common: rootdir: sysfs node permission for smart-charging 2021-02-20 11:55:48 +06:00
Subhajeet Muhuri
c2aa44b49b
sdm660-common: Add more pixel powerhal nodes 2021-02-20 11:55:48 +06:00
OdSazib
bdd0d21f13
sdm660-common: Checkout rootdir and init stuffs from caf
* adapt with eas and cleanup unnecessary stuffs
* Fixed offline charging and usb functions

Signed-off-by: OdSazib <odsazib@gmail.com>
2021-02-08 14:06:33 +06:00
Subhajeet Muhuri
9e9d75e6cd
sdm660-common: rootdir: Add proper permissions for dt2w nodes
* Fixes DT2W with power-libperfmgr

Change-Id: Ie5a66319213c6f8f2f9258deafa0229864acca66
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-22 20:57:05 +06:00
joshuous
fd869a1e7f
sdm660-common: rootdir: performance: Update power tweaks for EAS
Change-Id: I4133201f0735777a86f3bd59b007774cd7552304
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-22 20:57:04 +06:00
Demon000
ecae69c66c
sdm660-common: init: remove deprecated load_system_props calls
Change-Id: Iefefd50e20e3e54202b6c177891d440113993444
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
2020-12-13 18:27:09 +06:00
Davide Garberi
86cc5f4fc7
sdm660-common: Remove energy awareness daemon
All this does is to disable msm_core and set the
polling_interval to 0, which makes the driver useless.
We can achieve the same result by disabling the driver.

Change-Id: Ic19c505ed74811a3d1b76703255af3aa5cb37bf9
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
Signed-off-by: OdSazib <odsazib@gmail.com>
2020-12-13 18:15:48 +06:00
OdSazib
9bd430ff9b
sdm660-common: XiaomiParts: Add Headphone & Mic Gain
* This is manually ported by me from Lavender tree on Corvus-Devices
* Thanks @StyloGey for reviewing the java code and giving me a better solution
* Original repo: https://github.com/Corvus-Devices/device_xiaomi_lavender.git

To get it working, you need these two commits in your kernel:
> c04d6d6e61
> 8e25ac3318

Signed-off-by: OdSazib <odsazib@gmail.com>
Change-Id: I1bb48ced1f23728daa2e5170647ce08a04347110
2020-10-19 11:36:06 +06:00
Stylogey
323a9a6357
sdm660-common: rootdir: add vendor.cdsprpcd
Change-Id: Ibf8a049cb9c0c4e013e0904282f23ec71dc43f0b
2020-08-12 02:02:40 +06:00
Stylogey
0d5c6a79f6
sdm660-common: remove improvetouch related stuff
* Not host based touch processing isn't supported by the touchscreen.

Change-Id: Ibc841d8c36eda56e58184286676e1d710ff18392
2020-08-12 02:02:40 +06:00
Stylogey
1bcf447ec0
sdm660-common: rootdir: separate xiaomiparts related initialization
Change-Id: I7b2b3a9c7b22de550e502a9b98e31683e3b961b6
2020-08-12 02:02:39 +06:00