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

Root Changes in /sys file

str8stryk3r

Member
So I'm up late and messing around. Basically what I am trying to do is change the time the four keys on the bottom of the phone stay on for. I navigated to /sys/devices/keypad-backlight/backlight. In there there is a file named "keypad_bl_time" Open that in text and it says "Current backlight time : 3 : seconds. Now if I change that to any other number and save it, open it back up and the value I put in changes to "-104859392385" and the backlights stay on for as long as the screen is on. Reboot and everything goes back to default.

So...question is. Can you make changes to the /sys file like that or are there other steps you have to take? Or am I in the wrong place trying to make changes to begin with? I'm only messin around to begin with so this post isn't asking about actually changing the lights per say. Thanks
 
do this
Code:
cat /sys/devices/keypad-backlight/backlight/keypad_bl_time
You will get a value .
change the desired value using
Code:
echo desired_value /sys/devices/keypad-backlight/backlight/keypad_bl_time
example:
my keyboard backlight is annoying and is always on when LCD is on
I used
Code:
cat /sys..../brightness
255
is the out put
I change the value to 0 to disable it using
Code:
echo 0 /sys..../brightness

I am not well verse with Tasker but you can control many aspects of /sys folders an uevents with help of tasker profiles

Hope this helps
 
Alright well I actually tried to do both of the fore mentioned instructions and neither one of them stuck. When I tried the build.prop one it made a build.prop.bak I checked to make sure everything was correct, saved it and rebooted. Everything was still in there but the lights still went off after 3 seconds. And trying to change the value using the adb command didn't do anything either. I did the check, changed echo 5 to see if it would stay on for 5 seconds. Rebooted, no change. Went back in and checked the value again and it was set back to default 3 seconds.

So do I need to change any permissions or anything? And will using Qatb as my adb method work or should I get a terminal app on the device?
 
Back
Top Bottom