Firefly开源社区

标题: rk3588 震动马达vibrator [打印本页]

作者: zz123456    时间: 2023-5-5 09:02
标题: rk3588 震动马达vibrator

请问rk3588 android 要支持马达支持添加哪些内容?

目前kernel驱动已经完成,使用timed_gpio驱动,并可以控制马达震动
echo  1000 > sys/class/timed_output/vibrator/enable

请问安卓层面需要做哪些修改才能在app控制马达震动?



作者: zz123456    时间: 2023-5-5 14:58
本帖最后由 zz123456 于 2023-5-5 15:25 编辑

我添加了如下编译:
PRODUCT_PACKAGES += \
       android.hardware.vibrator@1.0-impl \
       android.hardware.vibrator@1.0-service


升级固件后反复打印如下信息:
05-05 04:13:59.034     1     1 I init    : starting service 'vendor.vibrator-1-0'...
05-05 04:13:55.683   298   298 I hwservicemanager: getTransport: Cannot find entry android.hardware.vibrator@1.0::IVibrator/default in either framework or device manifest .
05-05 04:13:55.683  2796  2796 D android.hardware.vibrator@1.0-service: Vibrator using timed_output
05-05 04:13:55.684   298   298 I hwservicemanager: getTransport: Cannot find entry android.hardware.vibrator@1.0::IVibrator/default in either framework or device manifest.
05-05 04:13:55.684  2796  2796 E HidlServiceManagement: Service android.hardware.vibrator@1.0::IVibrator/default must be in VINTF manifest in order to regi.
05-05 04:13:55.684  2796  2796 E LegacySupport: Could not register service android.hardware.vibrator@1.0::IVibrator/default (-2147483648).
05-05 04:13:59.060     1     1 I init    : Service 'vendor.vibrator-1-0' (pid 2796) exited with status 0
05-05 04:13:59.060     1     1 I init    : Sending signal 9 to service 'vendor.vibrator-1-0' (pid 2796) process group...
05-05 04:13:59.060     1     1 I libprocessgroup: Successfully killed process cgroup uid 1000 pid 2796 in 0ms


这个问题要怎么处理?
作者: zz123456    时间: 2023-5-5 16:38
已解决




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1