How to switch off your softkey backlight - HTC One X

I see a few people asking about this and I found this app that works on my HTC One X.
Screen Filter:
https://play.google.com/store/apps/details?id=com.haxor&hl=en
If you just want to switch the lights off, set the filter to 100% then un-tick the enable softkey back light. It works great when watching videos or using it as a nightstand clock.
Hope their wasn't a thread about his. I did a few searches and couldn't find anything, hope this helps a few people.

Does it save the preference after reboot? I use Adjbrightness and after rebooting I have to load the app up again.
Sent from my HTC One X using xda app-developers app

I will have a look but I think you have to reopen it.
Sent from my HTC One X using xda app-developers app

I had a test now and it doesn't start on boot. But when you start the app after a boot it then knows what your last settings were. Hope that helps.
Sent from my HTC One X using xda app-developers app

K, when I have the time I was thinking of writing my own app that does this.
Sent from my HTC One X using xda app-developers app

If u put the app (screenfilter) in some autostart program it will work fine, if u dont wanna enable it manually.
This text was generated by a HoX device, in symbiosis with thoughts from someone else

ououououo said:
If u put the app (screenfilter) in some autostart program it will work fine, if u dont wanna enable it manually.
This text was generated by a HoX device, in symbiosis with thoughts from someone else
Click to expand...
Click to collapse
That is a great idea, I was wondering if there was an app like that I will have a look and see how well that works. But it's really nice to disable those lights, gives the phone a really neat appearance.

Roars21 said:
That is a great idea, I was wondering if there was an app like that I will have a look and see how well that works. But it's really nice to disable those lights, gives the phone a really neat appearance.
Click to expand...
Click to collapse
I did this on my previous device (xperia u, to get rid of the annoying LED-bar )

NOTE:
*** If you accidentally make your screen go BLACK ***
1. Pull your battery
2. Uninstall the app to reset your bad brightness setting
3. Reinstall the app and use it normally again"
Click to expand...
Click to collapse
I am kinda worried about this happening on my HOX...the fist step is already too much trouble to go through.

jimmy2027 said:
I am kinda worried about this happening on my HOX...the fist step is already too much trouble to go through.
Click to expand...
Click to collapse
Don't worry if you hold down the power button for a couple seconds it simulates a battery pull. Then when you start up, provided you don't have it on a autostart app you can then go in and change the settings. Also if you do set the brightness too low it gives you 10 seconds to approve it or it will just revert your settings. If that makes sense.

Make a new file, call it 99KeyOff.sh and put this in it:
#!/system/bin/sh
# ========================================
# init.d script for key light off. ONE X.
#BACKFROMTHE[/QUOTE]STORM
# ========================================
#disable Key Backlight
echo begin set Key Backlight - KB
echo KB - set permissions rw
chmod 0666 /sys/class/leds/button-backlight/brightness
echo KB - set Key Backlight 0
echo "0" > /sys/class/leds/button-backlight/brightness
echo KB - set permissions ro
chmod 0444 /sys/class/leds/button-backlight/brightness
echo KB - done!
Put it in the init.d folder or run it manually in a terminal emulator or script manager.

Unfortunately that doesn't work on the Maximus ROM. I think it's because the rootfs mounts read only. I tried adding a remount line to the top but nothing happened.
Sent from my HTC One X using xda app-developers app

Related

Turn off buttons' backlight on HTC Desire

I find it annoying when reading ebooks so I decided to turn it off. The setting is located at: sys/class/leds/button-backlight/brightness. Unfortunately the program I'm using, root explorer, won't let me access this value although I have rooted my phone. Is there any editor program for android like regedit for windows or is there any other way to do this?
Thank you!
I managed to "open as text" (cannot be edited) and the value is 255. I want to change it to 0. Anybody????
I would like this aswell for when im reading.
Thanks
here is a way to do:
load the program called "Gscript Lite" from the market
create a new script called
"keybacklight_off"
type in
echo 0 > sys/devices/platform/leds-microp/leds/button-backlight/brightness
create a new script called
"keybacklight_onn"
type in
echo 1 > sys/devices/platform/leds-microp/leds/button-backlight/brightness
klick on you homescreen klick on "links" (i have a german Phone dont know how it's called on your Phone)
click on Gscript Lite and select you script
kingchris said:
klick on you homescreen klick on "links" (i have a german Phone dont know how it's called on your Phone)
Click to expand...
Click to collapse
"program" on my phone
and.....
it works!!!!!!!!!!!!!!!!!!!!!!!
danken kingchris
sky|ined said:
"program" on my phone
and.....
it works!!!!!!!!!!!!!!!!!!!!!!!
danken kingchris
Click to expand...
Click to collapse
no not Programm.
the next point (the 3rd)
Widgets
Program
shortcut
folder
I have a problem. The script definitely works, but as soon as I open an ebook with aldiko reader the backlight turns on again and the same thing happens when I power the screen off and then back on. Is there a way to permanently turn off the backlight?
Thanks for your idea! Why not post it in dev forum, so they can build it in new roms
-------------------------------------
Sent via the XDA Tapatalk App
brianius said:
Thanks for your idea! Why not post it in dev forum, so they can build it in new roms
Click to expand...
Click to collapse
Thank you. You have my "permission" to do so if you want.
matter to me that when I'm going to watch a video again I turn back, there is some way to turn them off permanently?
thanks
Hi, is there a permanent fix now?
Every time my screen turns off the backlight comes back on
bemymonkey said:
Hi, is there a permanent fix now?
Every time my screen turns off the backlight comes back on
Click to expand...
Click to collapse
That's not how it should be unless something is keeping it awake.
-----------------------------------
- Sent via my HTC Desire -
th3 said:
That's not how it should be unless something is keeping it awake.
-----------------------------------
- Sent via my HTC Desire -
Click to expand...
Click to collapse
I think you've misunderstood me (or rather, I just said it wrong ): The lights turn back on when the display has been off... they're not on while the display is off, but if I turn the display off and back on again, they're back on.
Maybe it's because the Desire doesn't have read/write access to the system files?
Is there a way to turn off the HOME, MENU, BACK, SEARCH button light permenatly? I just want the screen on and the buttons to remain off.
thanks
Yes, install "LEDs hack" from the market. Will turn off button lights but needs root.
Sent from my HTC Desire using XDA App
Tried this app
It's doing its job but keeps annoying me with a warning "... has been granted superuser ..." every 10 seconds or so.
Uninstalled immediately !
Works great for me running Leedroid 2.2e. Check your superuser is up to date as per the initial screen.
Sent from my HTC Desire using XDA App
Got it working without notifications now. Great app. I'll just keep an eye on the battery usage when the phone is on standby.
Sent from my HTC Desire using XDA App
Awesome! Thank you for mentioning LEDs Hack. Works like a charm.
Great App!! Thx for mention it!!!!

[FIX] Capacitive buttons NOT lighting up on AOKP with Auto-brightness off

This is a dirty fix. I have an idea for a better fix but I am unable to implement it.
These are scripts to be run with Script Manager.
Code:
led_on script:
#!/system/bin/sh
print 80 > /sys/class/leds/button-backlight-portrait/brightness
print 80 > /sys/class/leds/button-backlight-landscape/brightness
led_off script:
#!/system/bin/sh
print 0 > /sys/class/leds/button-backlight-portrait/brightness
print 0 > /sys/class/leds/button-backlight-landscape/brightness
The value can be set from 0 to 255. I chose 80 as it is good enough and also due to a known issue, as explained below.
Obviously enable root browsing in SManager and run this as root. You can also run led_on at boot if needed. This is a fix when not using auto-brightness.
This will cause the capacitive buttons to ALWAYS be on, even when the screen is off. A simple idea is to check the status of the screen and then appropriately modify that file. But this means a service running in the background and is probably wasteful on resources. But if someone can help me out or have ideas, go ahead and do so. But once done, please lemme know as I am trying to learn.
Lemme know of other issues!
Cheers!
litetaker said:
This is a dirty fix. I have an idea for a better fix but I am unable to implement it.
These are scripts to be run with Script Manager.
Code:
led_on script:
#!/system/bin/sh
print 50 > /sys/class/leds/button-backlight-portrait/brightness
led_off script:
#!/system/bin/sh
print 0 > /sys/class/leds/button-backlight-portrait/brightness
The value can be set from 0 to 255. I chose 50 as it is good enough and also due to a known issue, as explained below.
Obviously enable root browsing in SManager and run this as root. You can also run led_on at boot if needed. This is a fix when not using auto-brightness.
This will cause the capacitive buttons to ALWAYS be on, even when the screen is off. A simple idea is to check the status of the screen and then appropriately modify that file. But this means a service running in the background and is probably wasteful on resources. But if someone can help me out or have ideas, go ahead and do so. But once done, please lemme know as I am trying to learn.
Lemme know of other issues!
Cheers!
Click to expand...
Click to collapse
Awesome work. I'm not feeling so well tonight or I would look into it bro.
Sent from my Incredible 2 using xda premium
litetaker said:
This is a dirty fix. I have an idea for a better fix but I am unable to implement it.
These are scripts to be run with Script Manager.
Code:
led_on script:
#!/system/bin/sh
print 50 > /sys/class/leds/button-backlight-portrait/brightness
led_off script:
#!/system/bin/sh
print 0 > /sys/class/leds/button-backlight-portrait/brightness
The value can be set from 0 to 255. I chose 50 as it is good enough and also due to a known issue, as explained below.
Obviously enable root browsing in SManager and run this as root. You can also run led_on at boot if needed. This is a fix when not using auto-brightness.
This will cause the capacitive buttons to ALWAYS be on, even when the screen is off. A simple idea is to check the status of the screen and then appropriately modify that file. But this means a service running in the background and is probably wasteful on resources. But if someone can help me out or have ideas, go ahead and do so. But once done, please lemme know as I am trying to learn.
Lemme know of other issues!
Cheers!
Click to expand...
Click to collapse
I see you have something for lights in portrait. Maybe also write it for landscape as the lights always go out in landscape.
Sent from my Incredible 2 using xda premium
knipp21 said:
I see you have something for lights in portrait. Maybe also write it for landscape as the lights always go out in landscape.
Sent from my Incredible 2 using xda premium
Click to expand...
Click to collapse
Did that. This fix is a very hackey one! I wish I could make a more clean one later...

[Q] Tester for Capacitive Button Brightness App

Hi One X community! I'm from the AT&T One X world, so I don't really belong here However, I wrote a little app for the evita/snapdragon One X that changes the brightness of the capacitive buttons (back, home, recent tasks) and I'm curious to see if it also works on your endeavoru/tegra3 One X. Would anyone be willing to test it out and report back in this thread? Although the app requires root permissions, I cannot imagine it doing any damage to your device should it not work. That being said... anything is possible... you have been warned
If you don't mind testing it out, there are 2 ways to do it:
Load the APK file for the application and run it
Run a command as root
Load the APK file for the application
If you are willing to load the app, the APK is available here: http://forum.xda-developers.com/showthread.php?t=1912216. After loading the APK, just launch the app "Capacitive Buttons Brightness" from the launcher and press one of the 3 buttons in the UI. If the capacitive button brightness changes, then the app works.
Run a command as root
Run the following command from a root shell:
echo 0 > /sys/devices/platform/msm_ssbi.0/pm8921-core/pm8xxx-led/leds/button-backlight/currents
This should shut off the button backlight. Using 1 and 2 instead of 0 should make the button backlight dim and full, respectively. These are the commands ultimately issued by the app.
Other Ideas
If this method of setting the button brightness doesn't work, would you happen to know the command to issue that does work? If you do, I could incorporate that command into my app, and have it choose the right command based on the current device.
Thanks in advance for your help!
denversc said:
Hi One X community! I'm from the AT&T One X world, so I don't really belong here However, I wrote a little app for the evita/snapdragon One X that changes the brightness of the capacitive buttons (back, home, recent tasks) and I'm curious to see if it also works on your endeavoru/tegra3 One X. Would anyone be willing to test it out and report back in this thread? Although the app requires root permissions, I cannot imagine it doing any damage to your device should it not work. That being said... anything is possible... you have been warned
If you don't mind testing it out, there are 2 ways to do it:
Load the APK file for the application and run it
Run a command as root
Load the APK file for the application
If you are willing to load the app, the APK is available here: http://forum.xda-developers.com/showthread.php?t=1912216. After loading the APK, just launch the app "Capacitive Buttons Brightness" from the launcher and press one of the 3 buttons in the UI. If the capacitive button brightness changes, then the app works.
Run a command as root
Run the following command from a root shell:
echo 0 > /sys/devices/platform/msm_ssbi.0/pm8921-core/pm8xxx-led/leds/button-backlight/currents
This should shut off the button backlight. Using 1 and 2 instead of 0 should make the button backlight dim and full, respectively. These are the commands ultimately issued by the app.
Other Ideas
If this method of setting the button brightness doesn't work, would you happen to know the command to issue that does work? If you do, I could incorporate that command into my app, and have it choose the right command based on the current device.
Thanks in advance for your help!
Click to expand...
Click to collapse
Hi there, didnt try your app.
But here at endevour we do stuff differently
either with some kernel hacks - never tried them
apps like screenfilter or adjbrightness and its child.
or :
SENSE: editing framework-res
CM10(not sure this would work on sense):
echo 0 > /sys/class/leds/button-backlight/brightness
chmod 444 /sys/class/leds/button-backlight/brightness
chmod 444 because as soon as you go screenoff it changes to default value, same as reboot.
that path you posted I couldn't find it in my installation.
echo 0 > /sys/devices/platform/msm_ssbi.0/pm8921-core/pm8xxx-led/leds/button-backlight/currents
PAGOT said:
Hi there, didnt try your app.
But here at endevour we do stuff differently
either with some kernel hacks - never tried them
apps like screenfilter or adjbrightness and its child.
or :
SENSE: editing framework-res
CM10(not sure this would work on sense):
echo 0 > /sys/class/leds/button-backlight/brightness
chmod 444 /sys/class/leds/button-backlight/brightness
chmod 444 because as soon as you go screenoff it changes to default value, same as reboot.
that path you posted I couldn't find it in my installation.
echo 0 > /sys/devices/platform/msm_ssbi.0/pm8921-core/pm8xxx-led/leds/button-backlight/currents
Click to expand...
Click to collapse
Thanks PAGOT for the information. So if I understand you correctly, running these 2 commands will turn off the capacitive buttons backlight:
echo 0 > /sys/class/leds/button-backlight/brightness
chmod 444 /sys/class/leds/button-backlight/brightness
But you're saying these two command only work on CM, and not Sense-based ROMs?
denversc said:
Thanks PAGOT for the information. So if I understand you correctly, running these 2 commands will turn off the capacitive buttons backlight:
echo 0 > /sys/class/leds/button-backlight/brightness
chmod 444 /sys/class/leds/button-backlight/brightness
But you're saying these two command only work on CM, and not Sense-based ROMs?
Click to expand...
Click to collapse
I do not know if they work on Sense roms, I didn't try it there. On sense I edited framework-res which doesn't work for sure on CM.
Dont know the other way around . Someone with a sense rom and rooted would have to test it. Right now I am not near a device like that to test.
In an attempt to get this app working on the HTC One X+ (evitareul) I believe I also got it to work on the international One X (endeavoru). Since they both use the Tegra3 chipset the changes that made it work on the One X+ should make it also work on the International One X.
Could someone load the attached app and let me know if it sets the capacitive button brightness? If it does, then I will post an "official" version into the Play Store asap. Thanks!
denversc said:
In an attempt to get this app working on the HTC One X+ (evitareul) I believe I also got it to work on the international One X (endeavoru). Since they both use the Tegra3 chipset the changes that made it work on the One X+ should make it also work on the International One X.
Could someone load the attached app and let me know if it sets the capacitive button brightness? If it does, then I will post an "official" version into the Play Store asap. Thanks!
Click to expand...
Click to collapse
Confirmed working on international one x running cm10.
The half brightness doesn't work though. When enabled brightness goes down for a split second and then back to full brightness. Nice little app.
Sent from my HTC One X using xda app-developers app
hahhahhaaa said:
Confirmed working on international one x running cm10.
The half brightness doesn't work though. When enabled brightness goes down for a split second and then back to full brightness. Nice little app.
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
Awesome. Thanks for your response! It was the same thing on the One X+ where "dim" and "bright" were exactly the same. On the North American One X (Evita) the "dim" setting is actually slightly dimmer than "bright". I will get this app fixed up and published as soon as possible. I will also start a thread in the apps/themes aection once that is done.
A widget would be a nice addition.
Sent from my HTC One X using xda app-developers app
hahhahhaaa said:
A widget would be a nice addition.
Click to expand...
Click to collapse
Indeed it would. I actually started to look into it a few weeks ago so next time I have a few free hours (probably in the new year) I'll see if I can hammer out a widget for it.
hahhahhaaa said:
Confirmed working on international one x running cm10.
The half brightness doesn't work though. When enabled brightness goes down for a split second and then back to full brightness.
Click to expand...
Click to collapse
I've created one (hopefully) last test version of the app. This one only shows buttons for "bright" and "off"; the button for "dim" is not shown on the International One X since "bright" and "dim" have the same effective brightness.
Could someone do a quick test with the attached app? Just press the "bright" and "off" buttons each a few times and ensure that the capacitive button backlight turns on or off, as expected. Also, double-check that the correct device name ("HTC One X (endeavoru)") is displayed at the bottom of the "About" screen. Thanks!
Version 5 of the test app is attached.
An official version of the app that supports the International One X (endeavoru) has now been published. See http://forum.xda-developers.com/showthread.php?t=2033973
Works ok and the name is displayed correctly too.
Sent from my HTC One X using xda app-developers app

[RESOLVED][IDEA/REQUEST] Backlight button light up notification

See first post, page 3 for an solution
-------------------------------
Dear XDA,
I've searched for this kinda app but couldn't find it so i decided to make a thread about it.
Anyway, i was wondering if it's possible to make the backlight of the buttons light up when there is some kind of notification as the led in the One X is kinda useless imo.(dirt gets into the tiny holes)
If it IS possible, does someone want to take the effort to try and make such an application/mod?
I'll be eager and happy to test it and my thanks will be beyond eternity
Thanks in advance,
Joran
+1
Good idea, but I do think there could be any hardware limitations to make this work....
anyways, sounds great if it could be possible! :good:
I wrote an app called "Capacitive Button Brightness" which lets you control the brightness of the capacitive buttons backlight on the HTC One X: http://forum.xda-developers.com/showthread.php?t=2033973. Someone pointed this thread out to me so I thought I'd chime in with an idea.
I have not tested this (in fact I don't have a device to test it on!) but you might be able to flash the backlight of the capacitive buttons by running the following command from a root terminal:
Code:
echo 1 > /sys/class/leds/button-backlight/blink
If that doesn't work, take a look at the list of files in /sys/class/leds/button-backlight and see if perhaps I got the name of the file wrong. There should be one in there with "blink" in its name.
If this does indeed flash the capacitive button backlight then you could write a simple script in "Tasker" to blink the capacitive button backlight every time that a message is received.
User Vcek reported doing something very similar with Tasker, and I'd recommend to contact him if you have further questions. See http://forum.xda-developers.com/showthread.php?p=35266420#post35266420 and http://forum.xda-developers.com/showthread.php?p=35276999#post35276999
denversc said:
I wrote an app called "Capacitive Button Brightness" which lets you control the brightness of the capacitive buttons backlight on the HTC One X: http://forum.xda-developers.com/showthread.php?t=2033973. Someone pointed this thread out to me so I thought I'd chime in with an idea.
I have not tested this (in fact I don't have a device to test it on!) but you might be able to flash the backlight of the capacitive buttons by running the following command from a root terminal:
Code:
echo 1 > /sys/class/leds/button-backlight/blink
If that doesn't work, take a look at the list of files in /sys/class/leds/button-backlight and see if perhaps I got the name of the file wrong. There should be one in there with "blink" in its name.
If this does indeed flash the capacitive button backlight then you could write a simple script in "Tasker" to blink the capacitive button backlight every time that a message is received.
User Vcek reported doing something very similar with Tasker, and I'd recommend to contact him if you have further questions. See http://forum.xda-developers.com/showthread.php?p=35266420#post35266420 and http://forum.xda-developers.com/showthread.php?p=35276999#post35276999
Click to expand...
Click to collapse
i tried your app but all it does is either off or it's on.
Thanks for the input for this idea:good:, but i'm kinda low skilled (read no skill) in the technical side of the phone.
so i hope someone can try this?
edit: nvm, don't got terminal on this rom yet.
jorank said:
i tried your app but all it does is either off or it's on.
Thanks for the input for this idea:good:, but i'm kinda low skilled (read no skill) in the technical side of the phone.
so i hope someone can try this?
edit: nvm, don't got terminal on this rom yet.
Click to expand...
Click to collapse
You're right, my app won't address the feature you are looking for.
If you want a terminal, you can install "Android Terminal Emulator" from the Play store: https://play.google.com/store/apps/details?id=jackpal.androidterm. You will need to be rooted though.
If you want to test out the "echo" command in the previous post, you will need to run "su" in the terminal before running the "echo" command.
denversc said:
You're right, my app won't address the feature you are looking for.
If you want a terminal, you can install "Android Terminal Emulator" from the Play store: https://play.google.com/store/apps/details?id=jackpal.androidterm. You will need to be rooted though.
If you want to test out the "echo" command in the previous post, you will need to run "su" in the terminal before running the "echo" command.
Click to expand...
Click to collapse
tried the command and i confirm it works
jorank said:
tried the command and i confirm it works
Click to expand...
Click to collapse
Sweet. Now you can use an app like tasker to run that command every time you receive a message. Can anyone help with this?
denversc said:
Sweet. Now you can use an app like tasker to run that command every time you receive a message. Can anyone help with this?
Click to expand...
Click to collapse
I try to create a tasker profile with this. Does someone know a command to stop the blinking?
staffordniko said:
I try to create a tasker profile with this. Does someone know a command to stop the blinking?
Click to expand...
Click to collapse
Same command that is used to enable exept with echo 0.
Sent from my HTC One X
Got it done, how can i post a tasker script here?
Omg guys stop discussing aokp has this feature called button back light notification
Thread can be closes and don't forget to hit the thanks button
Gesendet von meinem HTC One X mit Tapatalk 2
howdid said:
Omg guys stop discussing aokp has this feature called button back light notification
Thread can be closes and don't forget to hit the thanks button
Gesendet von meinem HTC One X mit Tapatalk 2
Click to expand...
Click to collapse
and what if i don't want aokp but sense?
think twice please.
Okay so i've installed tasker but i can't find out how to set the appropriate settings for this event.
Anyone did it already?
Did anyone find a solution?
not really, tried tasker but that didn't get me any luck.
so i hope anyone else does
Profile: blink (2)
Event: Notification [ Owner Application:WhatsApp Title:* ]
Enter: blink (3)
A1: Run Shell [ Command:echo 1 > /sys/class/leds/button-backlight/blink Timeout (Seconds):0 Use Rootn Store Result In: ]
A2: Wait [ MS:0 Seconds:4 Minutes:0 Hours:0 Days:0 ]
A3: Run Shell [ Command:echo 0 > /sys/class/leds/button-backlight/blink Timeout (Seconds):0 Use Rootn Store Result In: ]
Did anyone test the battery usage for this?
@staffordniko: You could use a trigger for "screen on" to stop the blinking.
I can confirm that it works. It should be cool to blink one button at a time!
Sent from my EndeavorU using xda app-developers app
A mod like this would be nice!
I'll follow this thread!
I'm trying to export a app with this settings with "Tasker app factory", but no luck so far. Maybe someone know how to do this right? Getting a "package installer stopped" error.
Sent from my HTC One X using xda premium

Swap recent and back keys and kill the lights on both buttons.

Having used Samsung's before and other devices, I've become accustomed to the back button being on the right.
I was hesitant about changing this as it would mean that you'll have a back symbol on the left and recent's on the right, even though they've switched, which would look a bit crap to be honest.
Anyway, disabling the backlight's will make it look a lot better whilst you have your buttons swapped
To do this you'll need to be rooted, that's it.
Flashable Zip Method
Here are some zips for flashing via recovery should you not want to edit these files yourself.
ButtonSwapLights0% - Swaps back & recents, kills button backlight
ButtonsDefaultLights0% - Default button order, kills button backlight
ButtonsDefaultLights50% - Default button order, backlight brightness 50%
ButtonsDefaultLights100% - back to normal
Manual Method
Download a text editor capable of altering system files, i personally used QuickEdit which is free in the play store.
Once that's installed
To disable the back light go here with a text editor.
/sys/class/leds/button-backlight/max_brightness change the number in here which will be 255 to 0.
This will switch off the lights immediately.
If you'd like to swap out the buttons so that back is recent and recent is back,.
Go to cypress-cap-sensor.kl which is in
system/user/keylayout/cypress-cap-sensor.kl
and find then simply reverse the text from the following two lines (there's only two in the file anyway)
key 158 BACK VIRTUAL
key 580 APP_SWITCH VIRTUAL
to
key 158 APP_SWITCH VIRTUAL
key 580 BACK VIRTUAL
Reboot the device and the keys will be switched
Enjoy
Thanks to @LeeDroid for putting me onto the location of the recents and back button file. :good:
Another big thanks to @Chronzy for making these zips, very much appreciated :good:
Update : These same zips work with Nougat on both cm and sense based roms.. Can be flashed at the same time of a Rom.
Outstanding job dladz. This is exactly what I was looking for, and so easy in your instructions. Thank you.
Off topic;
What about a lower haptic vibration ? Stock this phone vibrates like a wild rattlesnake in my hand, about to bite me. I thought most phones have a setting to adjust the vibration ? My Galaxy Note 5 does, as well as my LG G5 did and OnePlus One.
I am running LeeDroid ROM and he has specific settings for power abd haptic feedback, but even down to 1 it's still pretty powerful, just too strong for my tastes. I like to feel a slight vibration, nothing much. Is that possible ?
Is there a way to swap the Nav / software keys that some ROM's enable ?
Zorachus said:
Is there a way to swap the Nav / software keys that some ROM's enable ?
Click to expand...
Click to collapse
I'd say there is, but haven't looked into it mate.
Zorachus said:
Outstanding job dladz. This is exactly what I was looking for, and so easy in your instructions. Thank you.
Off topic;
What about a lower haptic vibration ? Stock this phone vibrates like a wild rattlesnake in my hand, about to bite me. I thought most phones have a setting to adjust the vibration ? My Galaxy Note 5 does, as well as my LG G5 did and OnePlus One.
I am running LeeDroid ROM and he has specific settings for power abd haptic feedback, but even down to 1 it's still pretty powerful, just too strong for my tastes. I like to feel a slight vibration, nothing much. Is that possible ?
Click to expand...
Click to collapse
There should be a file which you can edit to make haptic feedback alter, I've never looked into it mate.
Personally I switch feedback off. I don't need it.
Google: marshmallow haptic feedback how to change system
Also mate,, use the thanks button [emoji106] [emoji16]
When i tested the htc 10 i was shocked how the vibration intensity felt.. just like a cheap phone. Sometimes, I cannot understand htc.
DSF said:
When i tested the htc 10 i was shocked how the vibration intensity felt.. just like a cheap phone. Sometimes, I cannot understand htc.
Click to expand...
Click to collapse
Custom kernels + app allow that to be adjusted. I turned mine way down, and it feels a lot better now.
DSF said:
When i tested the htc 10 i was shocked how the vibration intensity felt.. just like a cheap phone. Sometimes, I cannot understand htc.
Click to expand...
Click to collapse
Please. This and haptic feedback has nothing to do with this thread.. If you'd like to speak about this, then please, take it elsewhere.
You can use init.d script to prevent brightness changing on every reboot, i.e
"#! /system/bin/sh
echo 0 > /sys/class/leds/button-backlight/brightness
echo 0 > /sys/class/leds/button-backlight/max_brightness"
Create a file in /system/etc/init.d and paste the above lines (without quotes), and give 755 permission, itll set to 0 before boot Everytime
If on stock rom dont have init.d support then use superSu's su.d, place same file to /system/su.d folder
Sent from my Redmi Note 3 using Tapatalk
Adarsh1998 said:
You can use init.d script to prevent brightness changing on every reboot, i.e
"#! /system/bin/sh
echo 0 > /sys/class/leds/button-backlight/brightness
echo 0 > /sys/class/leds/button-backlight/max_brightness"
Create a file in /system/etc/init.d and paste the above lines (without quotes), and give 755 permission, itll set to 0 before boot Everytime
If on stock rom dont have init.d support then use superSu's su.d, place same file to /system/su.d folder
Sent from my Redmi Note 3 using Tapatalk
Click to expand...
Click to collapse
Cheers mate, will give it a whirl
Was looking all over the web for this.
Thank you, great job.
dladz said:
Cheers mate, will give it a whirl
Click to expand...
Click to collapse
If you want, i can make automated flashable zip to disable and enable the hardware keys, just upload Cypress-cap-sensor.kl here
Sent from my Redmi Note 3 using Tapatalk
FIFATG said:
Was looking all over the web for this.
Thank you, great job.
Click to expand...
Click to collapse
You're welcome
Adarsh1998 said:
If you want, i can make automated flashable zip to disable and enable the hardware keys, just upload Cypress-cap-sensor.kl here
Sent from my Redmi Note 3 using Tapatalk
Click to expand...
Click to collapse
That'd be brilliant, thank you, appreciate that.
Primarily it's the lights coming back on, i tried to lock down the permissions but they're reset on each boot, it isn't the end of the world but it's annoying if you reboot a lot.
Made the init.d file, just seeing if it works.
Will upload once i'm in work.
EDIT: Nah didn't work mate.
Permissions in root explorer are 4 places and not 3.
so 755 comes out like 0755
dladz said:
Made the init.d file, just seeing if it works.
Will upload once i'm in work.
EDIT: Nah didn't work mate.
Permissions in root explorer are 4 places and not 3.
so 755 comes out like 0755
Click to expand...
Click to collapse
You might need to place it in su.d?
This is awesome, thanks!
Quick question regarding the init.d script - I'm currently on the stock rom, rooted with Supersu, but don't have a system/su.d directory. Should this already have existed? I can't create it either due to read only file system.
dladz said:
Made the init.d file, just seeing if it works.
Will upload once i'm in work.
EDIT: Nah didn't work mate.
Permissions in root explorer are 4 places and not 3.
so 755 comes out like 0755
Click to expand...
Click to collapse
@Adarsh1998 thanks for your tip, exactly what this mod needed.
Got it to work in system/etc/init.d, had to enable all permissions: read, write, & exec for all 3 user groups: owner root, group root, and global.... 0777.
It's survived 2 reboots now and the lights are staying off. I might try to scale back the permissions one by one... don't know if there is any danger to leaving all off those permissions enabled.
Thank you both for the info, this is something I wanted to do since I bought the phone (on other devices as well) because i'm used to the Samsung (also older HTC) setup. The no lights looks so slick and the button swap feels perfect. Thanks again!
Chronzy said:
@Adarsh1998 thanks for your tip, exactly what this mod needed.
Got it to work in system/etc/init.d, had to enable all permissions: read, write, & exec for all 3 user groups: owner root, group root, and global.... 0777.
It's survived 2 reboots now and the lights are staying off. I might try to scale back the permissions one by one... don't know if there is any danger to leaving all off those permissions enabled.
Thank you both for the info, this is something I wanted to do since I bought the phone (on other devices as well) because i'm used to the Samsung (also older HTC) setup. The no lights looks so slick and the button swap feels perfect. Thanks again!
Click to expand...
Click to collapse
Thank you.
Flashable zip on the way, thanks to @Adarsh1998 Good times
Adarsh1998 said:
You can use init.d script to prevent brightness changing on every reboot, i.e
"#! /system/bin/sh
echo 0 > /sys/class/leds/button-backlight/brightness
echo 0 > /sys/class/leds/button-backlight/max_brightness"
Create a file in /system/etc/init.d and paste the above lines (without quotes), and give 755 permission, itll set to 0 before boot Everytime
If on stock rom dont have init.d support then use superSu's su.d, place same file to /system/su.d folder
Sent from my Redmi Note 3 using Tapatalk
Click to expand...
Click to collapse
This worked perfectly. Thanks!

Categories

Resources