From 743337bafb03db0c9d90f6b9c31bae92e27e1d65 Mon Sep 17 00:00:00 2001 From: leonardian Date: Tue, 21 May 2024 06:12:06 +0000 Subject: [PATCH 1/2] conf: Enable access for braking time sysfs nodes Sysfs nodes: - braking_time_bank - braking_time_index - braking_time_ms Bug: 325121485 Test: Open sysfs nodes successfully during HAL init Change-Id: Ib1d4a62bf6e0c88c69869a83196c3e9bd003ef47 Signed-off-by: leonardian --- conf/init.bluejay.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/init.bluejay.rc b/conf/init.bluejay.rc index 3c256bc..496d62b 100644 --- a/conf/init.bluejay.rc +++ b/conf/init.bluejay.rc @@ -40,6 +40,9 @@ on property:vendor.all.modules.ready=1 chown system system /sys/bus/i2c/devices/8-0043/calibration/redc_stored chown system system /sys/bus/i2c/devices/8-0043/default/vibe_state chown system system /sys/bus/i2c/devices/8-0043/default/num_waves + chown system system /sys/bus/i2c/devices/8-0043/default/braking_time_bank + chown system system /sys/bus/i2c/devices/8-0043/default/braking_time_index + chown system system /sys/bus/i2c/devices/8-0043/default/braking_time_ms chown system system /sys/bus/i2c/devices/8-0043/default/f0_offset chown system system /sys/bus/i2c/devices/8-0043/default/owt_free_space chown system system /sys/bus/i2c/devices/8-0043/default/f0_comp_enable From 4c5d5dbde27bebb6092543f4cf655d029f5f8c60 Mon Sep 17 00:00:00 2001 From: leonardian Date: Wed, 12 Jun 2024 02:51:07 +0000 Subject: [PATCH 2/2] Enable all primitive effects - Remove ro.vendor.vibrator.hal.supported_primitives to support all primitive effects - Set ACTUATOR_MODEL to legacy_zlra_actuator Bug: 342062469 Test: idlcli commands Test: atest PTS, VTS, CTS Test: Checked HAL dumpsys for durations Change-Id: I7215afeae30e9c1f0aa0196caae448dea81c921b --- device-bluejay.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device-bluejay.mk b/device-bluejay.mk index 2636f8d..ac3ff67 100644 --- a/device-bluejay.mk +++ b/device-bluejay.mk @@ -232,8 +232,8 @@ PRODUCT_SHIPPING_API_LEVEL := 32 # Vibrator HAL $(call soong_config_set,haptics,kernel_ver,v$(subst .,_,$(TARGET_LINUX_KERNEL_VERSION))) ADAPTIVE_HAPTICS_FEATURE := adaptive_haptics_v1 +ACTUATOR_MODEL := legacy_zlra_actuator PRODUCT_VENDOR_PROPERTIES += \ - ro.vendor.vibrator.hal.supported_primitives=243 \ ro.vendor.vibrator.hal.f0.comp.enabled=0 \ ro.vendor.vibrator.hal.redc.comp.enabled=0 \ persist.vendor.vibrator.hal.context.enable=false \