Disable soft key back light fix - Upgrading, Modifying and Unlocking

I recently flashed Axium and man is this thing nice. Def a must have. Anyways I noticed that like many roms the back light of the soft keys stay on. I ended up downloading an app called
Adjbrightness
It works perfectly. Make sure to go to the menu settings and lock it on disable soft key back light.
Enjoy!!!

on Arc S
while button-backlights are off value of
/sys/class/leds/button-backlight/brightness is 0
while its 0 change permissions to read only
they are disabled
I can also limit current to 150 in max_current which limits current and lights are dimmed if you want it running but not at max brightness...
added
echo 0 > /sys/devices/i2c-0/0-0040/leds/button-backlight/brightness
chmod 444 /sys/devices/i2c-0/0-0040/leds/button-backlight/brightness
Click to expand...
Click to collapse
to /system/etc/hw_config.sh
now they are set off on boot

Related

[Q] App for toggling soft button LED's

Incredible running CM7.1, chad's incredikernel from last August (I believe.)
I use the hell out of CM's 'night mode' filters, but as it's dark in my room at night - go figure - the light sensor is tripped into leaving the capacitive soft keys at the bottom of the phone on whenever the screen is on. This kind of wrecks night, mode more or less.
I've found references to the App 'LEDs Hack' in several places, which gives rooted devices the ability to disable the LED's all together, so this sounds like a winner. But then when I try to find this app anywhere (every major market / app store + googling around) it's no longer listed anywhere.
Does anyone
A) have this app and can confirm it works?
B) know where I can find it?
Thanks
Slick
Sent from my ADR6300 using xda premium
I do not know of an app but i use scripts to turn mine off and on. Actually at the moment i have it set to turn them off at boot via an init.d script. Below is a zip of two scripts, one for off and one for on. The off script can easily be modified for use as an init.d script to turn off the soft key lights at boot. This works on my stock rom but cm's files may be different.
http://dinc.does-it.net/Soft_On_Off.zip
Thanks for the scripts, much appreciated! I'll tinker with these are bit. I'm really terrible @ linux, but I've seen init.d scripts before, I think.
Sent from my ADR6300 using xda premium
xi Slick ix said:
Thanks for the scripts, much appreciated! I'll tinker with these are bit. I'm really terrible @ linux, but I've seen init.d scripts before, I think.
Sent from my ADR6300 using xda premium
Click to expand...
Click to collapse
Here is an init.d script incase you cant figure it out. Just unzip it and place the file in your /etc/init.d folder, and set the correct permissions owner and group.
http://dinc.does-it.net/09SoftkeyLedsOFF.zip
I use this:
https://market.android.com/details?...ch_result#?t=W251bGwsMSwxLDEsImNvbS5oYXhvciJd
I have the filter set to 100% but disable the checkbox for the capacitive buttons therefore when I enable the screen filter, the screen stays whatever brightness my CurveFish widget is set to but the capacitive buttons turn off. I love it.
I have my "Automatic" brightness settings all tweaked to my liking and I just leave it on Auto all the time. If you do that, you can set whether the soft keys will be on or off.
For example you can set the soft keys to be off on the dimmest settings (i.e. dark room) and on in brighter environments. I leave mine off all the time (I know where those stinking softkeys are).
Go to:
Menu > Settings > Cyanogenmod Settings > Display > Automatic backlight > Edit other levels... (Use Custom must be checked)
To turn the soft keys off, set the values in the "buttons" column to 0. 0 turns them off, any other number (1-255) will turn them on. Then hit "Save and apply". If you set all the numbers in the "buttons" column to 0, then they will always be off.
Just a word of warning, tweaking you automatic settings can waste a lot of your time if you are a perfectionist...
All of these solutions are great, thanks again! Currently using the screen filter widget option with the CM filters, makes reading in bed sooo much better. Still want to play around with the script just to see if it works, and the custom brightness settings are for tomorrow.
Thanks again.
Sent from my ADR6300 using xda premium
I like the Screen Filter by Haxor method but unfortunately its an either on/off solution. I wish there was a way to regulate the brightness of the LEDs instead of just on or off. Oh well. It's all good
I just always keep mine off to conserve some battery. I can find those keys blind folded. Although if there were a way to dim them i would probably keep them on super low just for looks.Unfortunatley due to hardware restrictions that is not possible.
I use this app to turn off the keys
https://market.android.com/details?id=com.deskangel.adjbrightness
You should be able to find it in the settings.
Hope this helps.
el6006 said:
I use this:
I have the filter set to 100% but disable the checkbox for the capacitive buttons therefore when I enable the screen filter, the screen stays whatever brightness my CurveFish widget is set to but the capacitive buttons turn off. I love it.
Click to expand...
Click to collapse
trying this now! thanks!
For those who requested it.
Latest version of LEDs Hack.
Not sure why the dev took it off the market, but it still works great.
feffrey said:
For those who requested it.
Latest version of LEDs Hack.
Not sure why the dev took it off the market, but it still works great.
Click to expand...
Click to collapse
I tried this app for kicks but it only half worked. It would turn off and on the amber led at the top, but it would not turn off or on the softkey leds.
cmlusco said:
I tried this app for kicks but it only half worked. It would turn off and on the amber led at the top, but it would not turn off or on the softkey leds.
Click to expand...
Click to collapse
That is strange, for me it turns off both. Did try changing the aggressiveness settings in the options?

[MOD] Using Tasker to gain full control over the LEDs

Way back in my EVO OG days, someone had discovered how to directly access the LEDs, and I had put together some Tasker scripts to put them to good use. I know that there are apps like LightFlow that allow you to do a bunch of stuff to the LEDs, but I found them very cumbersome to use, and there were all kinds of settings that don't work on the Note 2. There was no easy way to know what settings to choose and what were appropriate for the Note 2. Also, Light Flow only works when the display is off, and interferes with the Phones own notification system. This mod works whether the display is on or off (if you want) and is independent of the built in charging notifications.
Also, it's way more awesome to learn to do stuff yourself!
I've used Tasker for years, and although it takes some getting used to, it does a great job at executing tasks based on events.
--------------------------------------------------------------------------------------
Anyway, here's what you can do using Terminal Emulator (which can then be scripted in Tasker). YOU WILL NEED ROOT ACCESS.
Background
1. There are 3 LEDs used for notifications, leg_r (red), led_g (green) led_b (blue).
2. Each LED can be set to a specific brightness from 0 to 255 (where 0 is off and 255 is full brightness), by writing to the "brightness" file.
3. Each LED can be set to blink by writing a value of 0 (off) or 1 (on) to the "blink" file.
4. You can set the time the LED illuminates and the time it is dark when blinking by writing to the "delay_on" and "delay_off" files (values are in milliseconds).
5. These files are located in /sys/class/leds
It appears that "blink" must be executed again after changing the delay for it to have an effect, and turning the LED off requires you to revert the last change - if you set brightness and then blink, you must set blink to 0 to turn it off. If you turned it on with brightness last, then you must set brightness to 0 to turn off. (still investigating this part).​
All you need to do is enter the following commands:
echo 500 > /sys/ckass/leds/led_b/delay_on <- sets the ON time to 1/2 second
echo 500 > /sys/ckass/leds/led_b/delay_off <- sets the OFF time to 1/2 second
echo 128 > /sys/ckass/leds/led_b/brightness <- sets LED brightness (blue) to about 1/2 of max (note that this turns on the steady LED)
echo 1 > /sys/ckass/leds/led_b/blink <- Blinks the Blue LED at the above intervals​
Now in Tasker you can:
a. Create a profile for the "Missed Call" State (or event).
b. Add a Task and in that task add 4 "Scripts" of type "Shell" for each of the above.
c. Make sure you check "Use Root" for each script
I've done this to have my phone flash red for missed calls, blue for missed texts and green for missed calendar events (each as its own Tasker profile)
You need to create one (or two) additional profiles to disable the flashing. All it needs is the following 3 commands to turn all the LEDs off.
echo 0 > /sys/ckass/leds/led_b/blink
echo 0 > /sys/ckass/leds/led_r/blink
echo 0 > /sys/ckass/leds/led_g/blink​
I set one for the "Screen Unlock" event and one for the "Notification Bar". This way, the flashing stops in intuitive ways.
There's way more stuff you can do and trigger alerts on using Tasker.
You can also access the 2 Flashes and 2 Task Lights on the back of the phone (although I suspect it is really just two LEDs that run in 2 different modes). They are located at:
/sys/class/leds/leds-sec1
/sys/class/leds/leds-sec2
/sys/class/leds/torch-sec1
/sys/class/leds/torch-sec2
These only have a brightness setting to turn them on, and are limited to what ever value is stored in max_brightness.
I've attached a couple of Tasker pictures, but feel free to post any questions.

Vibration strength?

Anyone aware of anyway either via root or 3rd party app on how to change the strength of a notification vibration?
Coming from a pebble which literally shook your wrist when it vibrated, the vibration on the SW3 just seems so weak!
Looking at this http://forum.xda-developers.com/g-watch/orig-development/rom-graphene-rom-preview-t2888758
he changes some sysfs values:
Code:
# increase vibration intensity
echo 50 > /sys/class/timed_output/vibrator/amp
echo 115 > /sys/class/timed_output/vibrator/driving_ms
I don't have my SW3 yet so can't try myself. Maybe root is required.
I agree completely! This thing is dead compared to the pebble! Would I run those commands from ADB? Would I just put the value I want on the end?
nobunnysapro said:
Would I run those commands from ADB?
Click to expand...
Click to collapse
adb shell
nobunnysapro said:
Would I just put the value I want on the end?
Click to expand...
Click to collapse
the number just behind echo is the value.
Note: changes you do this way don't survive a reboot.
Aww but thank you!
not what you ask for but.....
I went to settings > about > enabled developer options > dev options .> pressed on manufacture menu-launcher >Vibrator > enter duration> changed to 500 ms
I tested and it vibrated longer than usual but the settings didn't stick.
anyone?
not what you ask for but.....
I went to settings > about > enabled developer options > dev options .> pressed on manufacture menu-launcher >Vibrator > enter duration> changed to 500 ms
I tested and it vibrated longer than usual but the settings didn't stick.
anyone?
error629 said:
I went to settings > about > enabled developer options > dev options .> pressed on manufacture menu-launcher >Vibrator > enter duration> changed to 500 ms
I tested and it vibrated longer than usual but the settings didn't stick.
anyone?
Click to expand...
Click to collapse
Those settings are only to test if sensors are working. They are not normal settings and will not stick...
Send with Tapatalk on Sony Z2
vibration
same problem... any of you have solution?
Also is good repeat vibration alert...same of augmented smartwatch application.
hev any idea?
claudio
Italy
Im also interested !!!
I'd like a solution as well.
This would be great.
Take it there is no solution as yet, totally agree vibrate is so weak it's almost useless.
Light flow added vibration control.
http://forum.xda-developers.com/moto-360/general/light-flow-supports-android-wear-t3022377
sirrelevant said:
Light flow added vibration control.
http://forum.xda-developers.com/moto-360/general/light-flow-supports-android-wear-t3022377
Click to expand...
Click to collapse
Thank you [emoji106]
You can also use "Vibration Notifier" it can add vibe for strenght you would and repeat one or more time 2s after the first original vibe.
+1 Light flow for me is the solution. Anyway, compared to the moto 360 this watch is an hammer drill!
sirrelevant said:
Light flow added vibration control.
http://forum.xda-developers.com/moto-360/general/light-flow-supports-android-wear-t3022377
Click to expand...
Click to collapse
this is dead already but i didnt like lightflow too much so ive been using "Feel the Wear" app for couple weeks now, and it works fine! made just for this ! so if you dont wanna bother paying or messing with your notifications and led, try this out ! https://play.google.com/store/apps/details?id=sk.martinflorek.wear.feelthewear&hl=en
Thanks!
old thread i can see, however i stumbled across it searching for the same thing, for me lightflow and feel the wear was not for me as you have to pay for both and are filled with too many extras that i dont actually want.
i found this one - free/easy to use and does the trick fine to change the vibration length which makes me feel the vibration and not miss notifications
https://play.google.com/store/apps/details?id=com.matejdro.wearvibrationcenter&hl=en

Charging LED

Acted on a hunch, and yessir, our Z Play has the famed hidden LED in the speaker.
Install and use the MOTO X LED app to activate, must be rooted to gain this glory.
Dont think i installed the same app but at least its working
I can't say just where I downloaded the app from, but I've used it on my x style and my Nexus 6. So I've had it for a while now.
any other way to activate it without root?
siralsmooth said:
I can't say just where I downloaded the app from, but I've used it on my x style and my Nexus 6. So I've had it for a while now.
Click to expand...
Click to collapse
Can we use it for notifications...i mean mail , text message or WhatsApp
In another thread they mentioned lightflow will allow for that, but that's a paid play store app
On the pixel this feature is hidden in settings notifications settings-gear pulse notification light. Maybe it's there for you
Definitely don't have that option
OK I see. I just picked up a z play for the wife. Free at vzw. The screens are different to the pixel. At least it has the ambient display. Always liked moto quality.
Well looks like I gotta root this phone. No breathing notifications and no LED, not a great system. I'll wait till nougat update then root it.
scottdanpor said:
Well looks like I gotta root this phone. No breathing notifications and no LED, not a great system. I'll wait till nougat update then root it.
Click to expand...
Click to collapse
The file in question that controls the charging LED is /sys/class/leds/charging/brightness and unfortunately its permissions are 0664 with write permissions given to system:system, so unless there is an interface from some system daemon you need root access to control the LED.
That file accepts 5 different numeric values in the range from 0 to 4, with 0 (LED is off), 1-3 (blinking modes from the fastest to the slowest), and 4 (LED is on). I am currently searching for the possible interface inside the stock firmware.
Hello, any progress?
gm.outside said:
The file in question that controls the charging LED is /sys/class/leds/charging/brightness and unfortunately its permissions are 0664 with write permissions given to system:system, so unless there is an interface from some system daemon you need root access to control the LED.
That file accepts 5 different numeric values in the range from 0 to 4, with 0 (LED is off), 1-3 (blinking modes from the fastest to the slowest), and 4 (LED is on). I am currently searching for the possible interface inside the stock firmware.
Click to expand...
Click to collapse
I tried it
By default it's set to "0"
If I change the value from 1 to 4 ...It's starts blinking even if charging or not charging ....
If I connect charger it keeps blinking
If you restart the device ....Value changes to default "0"
These settings with light flow legacy worked for me http://forum.xda-developers.com/moto-z-play/how-to/moto-z-led-t3514729/post71587497

Disable left back gesture

I use the left swipe for menus a lot and was really hating the back gesture messing that up. Found https://android.gadgethacks.com/how-to/disable-androids-back-gesture-left-side-make-hamburger-menus-easier-open-0338679/ and worked perfectly. The below ADB code is what I used and assumes you have the Android SDK and ADB set up.
Code:
adb shell settings put secure back_gesture_inset_scale_left 0
You can adjust the sensitivity for each side in settings. This just turns it completely off?
letrain02 said:
You can adjust the sensitivity for each side in settings. This just turns it completely off?
Click to expand...
Click to collapse
Yes and it works perfectly on Pixel 5 too.
Setting lower sensitivity won't disable back gesture.
letrain02 said:
You can adjust the sensitivity for each side in settings. This just turns it completely off?
Click to expand...
Click to collapse
I don't think it turns out all the way, I've had it trigger in apps with no left menu. It's much less sensitive though and the menu will pop out first. I'm thinking of doing it in the right too because it's way too sensitive for the browser I use, which has a ton of gesture controls.
The sensitivity in settings did nothing for me so found this.
brandontowey said:
I use the left swipe for menus a lot and was really hating the back gesture messing that up. Found https://android.gadgethacks.com/how...ide-make-hamburger-menus-easier-open-0338679/ and worked perfectly. The below ADB code is what I used and assumes you have the Android SDK and ADB set up.
Code:
adb shell settings put secure back_gesture_inset_scale_left 0
Click to expand...
Click to collapse
you should mention that others should try -1 or -2 if 0 does not work, 0 did not work for me but -2 seems to have disabled it
bramble with proton rom and kernel
I put -20 on both sides (to make sure it doesn't trigger in the cutout area in landscape mode) and use FNG instead. Works like a charm.
old thread, but this worked for disabling the right-back-gesture on Android 13/Pixel 6
adb shell settings put secure back_gesture_inset_scale_right 0
I use this command to use gesture from 3rd party application, but the original back gesture still working on my vivo x60 pro. Any thoughts please?

Categories

Resources