device_xiaomi_sm6150-common/livedisplay/vendor.lineage.livedisplay@2.1-service.xiaomi_sm6150.rc
Suren Baghdasaryan 4395b79e9f
sm6150-common: Replace writepid with task_profiles command for cgroup migration
writepid command usage to join a cgroup has been deprecated in favor
of a more flexible approach using task_profiles. This way cgroup path
is not hardcoded and cgroup changes can be easily made. Replace
writepid with task_profiles command to migrate between cgroups.

Bug: 191283136
Test: build and boot
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ibb56d2379c42e5ed4b2f15c1b04d5fb163b48678
2024-04-10 13:26:46 -04:00

13 lines
498 B
Plaintext

on boot
chown system system /sys/devices/platform/soc/soc:qcom,dsi-display/dc_enable
chown system system /sys/devices/platform/soc/soc:qcom,dsi-display/hbm
chmod 0660 /sys/devices/platform/soc/soc:qcom,dsi-display/dc_enable
chmod 0660 /sys/devices/platform/soc/soc:qcom,dsi-display/hbm
service vendor.livedisplay-hal-2-1 /vendor/bin/hw/vendor.lineage.livedisplay@2.1-service.xiaomi_sm6150
class late_start
user system
group system
task_profiles ServiceCapacityLow