Thursday, 17 December 2015

Set vibration strength on boot



Note: you have to use custom kernel: http://forum.xda-developers.com/huaw...ernel-t3219576

Default voltage is 126. Higher voltage might damage your vibrator.
Value 60 is less than default and for me it gets me more haptic feedback with lower acoustic levels.
  1. connect to watch with adb

    Code:


    adb shell


  2. switch to user root

    Code:


    su


  3. first you need to remount system partition to read/write

    Code:


    mount -o remount,rw /system


  4. then you will create script that will set vibrator to certain value on boot

    Code:


    echo '#!/system/bin/sh\necho 60 > /sys/module/drv2605/parameters/current_voltage' > /system/etc/init.d/vibrator.sh


  5. now you need to make the script runnable (permissions to run)

    Code:


    chmod 777 /system/etc/init.d/vibrator.sh


  6. remount back to readonly

    Code:


    mount -o remount,ro /system


  7. now reboot the watch


After reboot the first attempt to vibrate will be still on default vibration strength, next one (and all after that) will be with voltage you have set.

Download from this link

No comments:

Post a Comment