• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root AWESOME Script idea! (Touch Key Buttons)

2015-06-28 03.11.47.jpg
2015-06-28 03.11.47.jpg
So, I was messing with the brightness files in the leds directory and i found out that our touch key buttons have variable brightness support. So, as i was editing the file i came up with the idea to create a script to be used with tasker by some means to execute while charging. The body of the script would go on as such:

Code:
su
chmod 755 /sys
echo 5 > /sys/class/leds/button-backlight/brightness
echo 10 > /sys/class/leds/button-backlight/brightness
echo 15 > /sys/class/leds/button-backlight/brightness
echo 20 > /sys/class/leds/button-backlight/brightness
echo 15 > /sys/class/leds/button-backlight/brightness
echo 10 > /sys/class/leds/button-backlight/brightness
echo 5 > /sys/class/leds/button-backlight/brightness

The problem i am having for one is i dont know how to make the script repeat, and on top of it scripting isnt my strongest skill.
Any input would be helpful as to putting me on the right track. I think this script could have a cool effect while its charging.

On another note I changed the colors of my touch key buttons to red fairly easy and i could post a tutorial on how to do that if anyone is interested. Theoretically my method could change the lights to any one color
 
Last edited:
View attachment 89965 View attachment 89965 So, I was messing with the brightness files in the leds directory and i found out that our touch key buttons have variable brightness support. So, as i was editing the file i came up with the idea to create a script to be used with tasker by some means to execute while charging. The body of the script would go on as such:

Code:
su
chmod 755 /sys
echo 5 > /sys/class/leds/button-backlight/brightness
echo 10 > /sys/class/leds/button-backlight/brightness
echo 15 > /sys/class/leds/button-backlight/brightness
echo 20 > /sys/class/leds/button-backlight/brightness
echo 15 > /sys/class/leds/button-backlight/brightness
echo 10 > /sys/class/leds/button-backlight/brightness
echo 5 > /sys/class/leds/button-backlight/brightness

The problem i am having for one is i dont know how to make the script repeat, and on top of it scripting isnt my strongest skill.
Any input would be helpful as to putting me on the right track. I think this script could have a cool effect while its charging.

On another note I changed the colors of my touch key buttons to red fairly easy and i could post a tutorial on how to do that if anyone is interested. Theoretically my method could change the lights to any one color
A tutorial would we nice I want this bad.
 
Back
Top Bottom