[MOD][GUIDE]disable backlight and touch of HW button - LG Optimus 4X HD

hi,
this little guide explain how to disable completely ( brightness and touch) of hardware buttons.
PRE-REQUISITES:
-ROOT
-file manager with root permission
-terminal emulator
HOW TO:
-DISABLE SOFT KEYS
-with file manager open
/system/build.prop
and add this line at the end of file
Code:
qemu.hw.mainkeys=0
(when you want to restore change 0 to 1)
-create a copy of
/system/usr/keylayout/touch_dev.kl
on you sdcard (for restore)
-with your file manager open
/system/usr/keylayout/touch_dev.kl
go to the end of file and under:
Code:
#x3 synaptics touch
delete the line incoming with:
Code:
key158
key139
key102
and save the file!
!!WARNING!! this disable the keys!
- DISABLE SOFT KEYS BACKLIGHT
-on terminal emulator with root permission insert this code:
Code:
echo 0 >/sys/devices/platform/button-backlight/leds/button-backlight/brightness
and
Code:
echo 0 >/sys/devices/platform/button-backlight/leds/button-backlight/max_brightness
-YOU ARE DONE!!
sometimes the brightness are restored but you can do a script to do this 2 lines of code at startup with Rom toolbox
if i help you click thanks )
Inviato dal mio LG-P880 usando XDA Premium HD app

just a suggestion, you should add a line to build.prop that enables the virtual buttons then
'cause if people do this without having a "backup plan", they can be doomed

IMO it has no sense for me navbar just takes screen space and our touch buttons are just perfect.
Sent from my LG-P880 using xda app-developers app

laufersteppenwolf said:
just a suggestion, you should add a line to build.prop that enables the virtual buttons then
'cause if people do this without having a "backup plan", they can be doomed
Click to expand...
Click to collapse
Yes i think you have a good idea xD
Inviato dal mio LG-P880 usando XDA Premium HD app

FunkyRasta said:
IMO it has no sense for me navbar just takes screen space and our touch buttons are just perfect.
Sent from my LG-P880 using xda app-developers app
Click to expand...
Click to collapse
One use would be for gaming, as it eliminates kicking yourself to home screen with the buttons and getting disconnected. I do this often when I try to throw a grenade on mc4 software buttons and adequate warnings should indeed be added to this guide, but thanks!
Sent from my rooted P880

If u go one step further (like me ^^) you can use the home button to go to standby... Waking it doesnt work, cause its touchscreen...
Sent from my LG P880

if u go another step u can use xposed framework module for remap this three buttons for what u want

you can do this on MIUI without any mod/3rd party tools. i don't know why such options is not available CM/AOSP based roms.

Can't seem to do this, no permission to edit in the build prop file, can't change permission either :s

baxtex said:
Can't seem to do this, no permission to edit in the build prop file, can't change permission either :s
Click to expand...
Click to collapse
What file manager are you using and if check if the the file manager has permission to read and write to /system partition
Sent from my LG-P880 using xda app-developers app

abhi08638 said:
What file manager are you using and if check if the the file manager has permission to read and write to /system partition
Sent from my LG-P880 using xda app-developers app
Click to expand...
Click to collapse
Rom toolbox and im quite sure it around do the job. :s

baxtex said:
Rom toolbox and im quite sure it around do the job. :s
Click to expand...
Click to collapse
Not sure about that one
1.try es file explorer and report back
Or
2. If you're on kitkat you might need to switch to supersu and not superuser
Sent from my LG-P880 using xda app-developers app

abhi08638 said:
Not sure about that one
1.try es file explorer and report back
Or
2. If you're on kitkat you might need to switch to supersu and not superuser
Sent from my LG-P880 using xda app-developers app
Click to expand...
Click to collapse
Tried es, same thing. Im on KK but Superuser is built in.. Downloaded Supersu but it can't update.

baxtex said:
Tried es, same thing. Im on KK but Superuser is built in.. Downloaded Supersu but it can't update.
Click to expand...
Click to collapse
If all you wish to do is disabling the backlight of the buttons, look for 'Backlight' under Buttons in the Settings menu, or, if you can't find it, try this.

baxtex said:
Tried es, same thing. Im on KK but Superuser is built in.. Downloaded Supersu but it can't update.
Click to expand...
Click to collapse
Try flashing the supersu update zip. You can Google it.
Also do you want to completely disable the buttons?
Sent from my LG-P880 using xda app-developers app

try this. didn't made this, just found an xda thread with all the files, so downloded it and modded it to work on our phones. just changed the files list inside the script, didn't do much. the bad news is, i only changed the file to enable virtual keys and disable capacitive keys, didn't changed the files to do the opposite. try it.
http://forum.xda-developers.com/showthread.php?p=31552585#post31552585

- DISABLE SOFT KEYS BACKLIGHT
-on terminal emulator with root permission insert this code:
Code:
echo 0 >/sys/devices/platform/button-backlight/leds/button-backlight/brightness
and
Code:
echo 0 >/sys/devices/platform/button-backlight/leds/button-backlight/max_brightness
-YOU ARE DONE!!
Can you explain that more detailed? What does it mean 'on terminal emulator'?
In which file do I need to insert the above code?
I just want to turn of the lights of the softkeys, to save battery. Thanks

gingerboy92 said:
try this. didn't made this, just found an xda thread with all the files, so downloded it and modded it to work on our phones. just changed the files list inside the script, didn't do much. the bad news is, i only changed the file to enable virtual keys and disable capacitive keys, didn't changed the files to do the opposite. try it.
http://forum.xda-developers.com/showthread.php?p=31552585#post31552585
Click to expand...
Click to collapse
Thank you very much, this really helped me. But it will be perfect if the backlight of the touch buttons was turned off and also the vibration of the virtual buttons was turned off. But anyway, thank you again. :good:

Related

Tweaks in Build.prop

In build.prop you can tweak a few things in gingerbread to modify certain things.
For 1080p recording go into root explorer and find build.prop under /system/ open in text edit and find ro.media.camcorder and change 720p to 1080p.
to enable hdmi mirroring find in the same file the line that says ro..hdmi.mirror.enable change false to true you have to have the apk installed and this will also interfere with entertainment center
note: reboot is required for these to take effect if anyone has anyother tweaks please reply.
Edit: sorry but you need to use root explorer!
This build.prop app can be used to tweak the setting as well. AFAIK this app will allow you to tweak the majority of the build.prop settings without using root explorer etc.
Direct Dropbox DL in my sig.
App accessible from author in link below.
Link to author main site--->Widgetron
I changed the proximity to 20 on distance and EDIT**175 on delay and im getting better results with my screen during calls now
Sent from my MB860 using XDA App
sublimejosh2000 said:
I changed the proximity to 20 on distance and 250 on delay and im getting better results with my screen during calls now
Sent from my MB860 using XDA App
Click to expand...
Click to collapse
What line do we edit please explain
Sent from my MB860 using XDA Premium App
TechnoNeto said:
What line do we edit please explain
Sent from my MB860 using XDA Premium App
Click to expand...
Click to collapse
mot.proximity.delay=*
mot.proximity.distance=*
Another one to edit if you feel the need is wifi.supplicant_scan_interval=* <---This will help conserve battery with a higher value. Alien #1 is set to 90. I dont remember the default value. Increases the time between wifi signal scans. Saves battery!!!
Thanks guys this is great
Sent from my MB860 using XDA Premium App
proximity.delay=175
mot.proximity.distance=20
***THIS WAS EDITED***
I found 175 was even better for delay
Dirtburgler said:
mot.proximity.delay=*
mot.proximity.distance=*
Click to expand...
Click to collapse
Sent from my MB860 using XDA App
How do I change the file from "read only" when i open it it says read only?
velvetmxo said:
How do I change the file from "read only" when i open it it says read only?
Click to expand...
Click to collapse
You have to be rooted and have superuser. Thats the only requirement for this app that ive found.
Dirtburgler said:
You have to be rooted and have superuser. Thats the only requirement for this app that ive found.
Click to expand...
Click to collapse
i am rooted and have superuser, but it tells me it is read only...hmmm doesn't make any sence
velvetmxo said:
i am rooted and have superuser, but it tells me it is read only...hmmm doesn't make any sence
Click to expand...
Click to collapse
I just removed app from superuser, uninstalled app. Re-installed app,upon launch it asked for superuser permission, allowed, tap Open*.prop file then tap /build.prop. That should gain you access, if not something isnt right.
Anyone else have this issue???
Dirtburgler said:
I just removed app from superuser, uninstalled app. Re-installed app,upon launch it asked for superuser permission, allowed, tap Open*.prop file then tap /build.prop. That should gain you access, if not something isnt right.
Anyone else have this issue???
Click to expand...
Click to collapse
In the top it says read rw or ro click that ro is read only rw is read write
Sent from my MB860 using XDA Premium App
Dirtburgler said:
I just removed app from superuser, uninstalled app. Re-installed app,upon launch it asked for superuser permission, allowed, tap Open*.prop file then tap /build.prop. That should gain you access, if not something isnt right.
Anyone else have this issue???
Click to expand...
Click to collapse
Im also having this issue (rooted with root explorer granted SU). Im not quite understanding your workaround. Did you uninstall root explorer entirely?
Also, I read somewhere that enabling 1080p doesn't increase the framerate, resulting in a quality of recording less impressive than 720p. Is that not the case here?
Sent from my MB860 using XDA App
sublimejosh2000 said:
proximity.delay=20
mot.proximity.distance=175
I found 175 was even better for distance
Click to expand...
Click to collapse
sublimejosh2000 said:
I changed the proximity to 20 on distance and 250 on delay and im getting better results with my screen during calls now
Click to expand...
Click to collapse
I'm confused, which number should go where? First you say 250 on delay and then you said 20 on delay. Lol.
TechnoNeto said:
In the top it says read rw or ro click that ro is read only rw is read write
Sent from my MB860 using XDA Premium App
Click to expand...
Click to collapse
I reinstalled to see if it gave me the read only error that others are getting and for me after I allow superuser permission i have full access to build.prop. I personally use File expert. Its free and in the settings you can select root explorer and then choose the mount option. Let me turn off root explorer in file expert and see if i can get the RO message.\
*edit* No RO only message. Changed back to RO in file expert, un installed file expert, uninstalled build.prop editor, cleared data from superuser. reinstalled build.prop---asked for superuser-allowed-full access again. I dont have anything special on my atrix. Just running alien 1. I ran this on Froyo as well.
Edit: deleted incorrect info
Sh** ... its like this... I messed up my post, and ill edit it....
Its
20 --> distance
175 --> delay
Tikerz said:
I'm confused, which number should go where? First you say 250 on delay and then you said 20 on delay. Lol.
Click to expand...
Click to collapse
Sent from my MB860 using XDA App
I think Everyone is a little confused here
...
This thread is mainly to reference doing these tweaks using the "Prop Editor" app as discussed in OP...
You can use Root explorer but why when the app is in the OP and that is what he keeps referring to...
Dirtburgler said:
I reinstalled to see if it gave me the read only error that others are getting and for me after I allow superuser permission i have full access to build.prop. I personally use File expert. Its free and in the settings you can select root explorer and then choose the mount option. Let me turn off root explorer in file expert and see if i can get the RO message.\
*edit* No RO only message. Changed back to RO in file expert, un installed file expert, uninstalled build.prop editor, cleared data from superuser. reinstalled build.prop---asked for superuser-allowed-full access again. I dont have anything special on my atrix. Just running alien 1. I ran this on Froyo as well.
Click to expand...
Click to collapse
Sent from my MB860 using XDA App
Small number is distance large number is delay...
Dirtburgler said:
The larger number is for distance. The smaller number is delay.
Click to expand...
Click to collapse
Sent from my MB860 using XDA App
sublimejosh2000 said:
I think Everyone is a little confused here
...
This thread is mainly to reference doing these tweaks using the "Prop Editor" app as discussed in OP...
You can use Root explorer but why when the app is in the OP and that is what he keeps referring to...
Click to expand...
Click to collapse
Nice catch! I figured they were trying to use the app. If they are using file explorer then their issues make sense lol.
Sent from my MB860 using XDA App

How to totally disable the capacitive keys?

I tried from within the room settings and it did durable the menu and back functions, but the menu keys still works for opening Google Now.
How do I disable all functionality from the capacitive keys?
Thanks.
Sent from my GT-N7000
Just don't touch them
Problem solved :good:
Sent from my GT-N7000 using xda premium
azzledazzle said:
Just don't touch them
Problem solved :good:
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
You must be trolling.
Actually the keys still work if you press a bit harder. Weird.
Never mind, I found a flashable zip that did it.
Sent from my GT-N7000
OK, now that flashed PA 2.99, that zip I mentioned doesn't work anymore, so I'm still looking for a way to totally disable the hardware buttons. Any help is appreciated.
Sent from my GT-N7000
May be this will work
http://forum.xda-developers.com/showthread.php?t=2100842
nokiamodeln91 said:
May be this will work
http://forum.xda-developers.com/showthread.php?t=2100842
Click to expand...
Click to collapse
Of course I tried that... It didn't work. But thanks for trying to help.
Sent from my GT-N7000
zgomot said:
Of course I tried that... It didn't work. But thanks for b trying to help.
Sent from my GT-N7000
Click to expand...
Click to collapse
May be because the file names are different. You may need to do it manually by referring to the zip file.
nokiamodeln91 said:
May be because the file names are different. You may need to do it manually by referring to the zip file.
Click to expand...
Click to collapse
I'm not sure I understand? Should I rename the zip file before I flash it? If so, what should I rename it to?
no.. what the zip does is to a particular file. if that file doesnot exist on your current rom then it will not work. open the zip and check its script. you will see what it modifies. then manually check if you have the files that its changing in you rom..
OK, I looked in that zip file but I have no idea how to tell how to do it manually.
Sent from my GT-N7000
Go to /system/usr/keylayout
There are 2 files to be edited
melfas-touchkey.kl
sec_touchkey.kl
There should be four lines in these files. Add a hash (#) in front of each line.
Not only did that not work, but it's overridden my previous settings and now the soft let's even light up when I set them not to...
Sent from my GT-N7000 using xda app-developers app
zgomot said:
Not only did that not work, but it's overridden my previous settings and now the soft let's even light up when I set them not to...
Sent from my GT-N7000 using xda app-developers app
Click to expand...
Click to collapse
Did you reboot?
World fine for me on aospa and other non-tw Roms.
warfareonly said:
Did you reboot?
World fine for me on aospa and other non-tw Roms.
Click to expand...
Click to collapse
'Course I did.
I really need to be able to do this, can someone please help? None of the things I found searching or those suggested here worked.

[Q][SOLVED] How to integrate PA Disable Hardware Button settings to CM10.1 ROM

Hi!
Is there a way to integrate the Hardware Button Settings from PA to CM10.1 Official ROM which can disable the use of Back, Home and Menu Button? I would like to use the on screen button and let the hardware keys disabled.
If I need to add a certain code, could someone point me which file and code should I copy and to which file in CM10.1 should I paste it.
Thanks!
EDIT:
Found a way to disable hardware keys and enable on screen button. Thanks to Utacka and Chasmodo. Flashable Mod can be found here.
http://forum.xda-developers.com/showthread.php?t=2051904
bratboo said:
Hi!
Is there a way to integrate the Hardware Button Settings from PA to CM10.1 Official ROM which can disable the use of Back, Home and Menu Button? I would like to use the on screen button and let the hardware keys disabled.
If I need to add a certain code, could someone point me which file and code should I copy and to which file in CM10.1 should I paste it.
Thanks!
Click to expand...
Click to collapse
You need to put this code on the bottom of your build.prop using rom tool box
Edit: yes you can copy and paste it once you paste it you need to save I... then reboot your phone then you should have three soft buttons on the bottom of your screen.....
qemu.hw.mainkeys=0
Sent from my SPH-L900 using xda app-developers app
mr pnut said:
You need to put this code on the bottom of your build.prop using rom tool box
Edit: yes you can copy and paste it once you paste it you need to save I... then reboot your phone then you should have three soft buttons on the bottom of your screen.....
qemu.hw.mainkeys=0
Sent from my SPH-L900 using xda app-developers app
Click to expand...
Click to collapse
Hi! Thanks! But what I ment was the settings in PA ROM which can disable the use of hardware buttons. Only PA has this settings.
Oh k my bad lol well you still have the code now
Sent from my SPH-L900 using xda app-developers app
There is no settings but how to do disable hardware buttons is in the FAQ section of the 10.1 rom. By AA
nokiamodeln91 said:
There is no settings but how to do disable hardware buttons is in the FAQ section of the 10.1 rom. By AA
Click to expand...
Click to collapse
There is under System settings. Anyways cannot find the thread. Found a solution for this thanks to Utacka. Case closed!

[Q] Can;t delete or download anything

I recently downgraded my rom from cm10.1 to cm10 on my xperia t because cm10.1 made my phone get very hot and this fixed the issue, however now I cannot delete anything with root explorer and when I want to download a picture from the browser it immediately says download unsuccessful, Im not sure if the two are linked but I cant find any answers that work. I think it might be something to do with anti-piracy as there was something that stopped me from installing apks before though I could just disable that in app manager but this is quite different.
Make sure your directory isnt set to read only.
In root explorer there is a small button at the top reading either "Mount R/W" or "Mount R/O", it needs to read "Mount R/O".
If it doesnt press it to toggle between settings.
Thanks but I know this already also I was not even in system files
Sent from my Xperia T using xda premium
the-blind-bandit said:
Thanks but I know this already also I was not even in system files
Sent from my Xperia T using xda premium
Click to expand...
Click to collapse
Have you tried going into recovery and fixing permissions?
If you don't tell us what you've done then we can't help as efficiently
dully79 said:
Have you tried going into recovery and fixing permissions?
If you don't tell us what you've done then we can't help as efficiently
Click to expand...
Click to collapse
Ahh, no i haven't i will now. And i will next time, thanks for the tip
I've done it and it unfortunately did not work
Sent from my Xperia T using xda premium
I just installed a different version of cyanogen mod in the end, but thanks anyway
Sent from my Xperia T using xda premium

(request)(soft key changer)

Is there is an app that can change the softkeys faster than softkeyZ?
Sent from my C6602 using xda app-developers app
fish droid said:
Is there is an app that can change the softkeys faster than softkeyZ?
Sent from my C6602 using xda app-developers app
Click to expand...
Click to collapse
This is info from the other thread:
kgs1992 said:
Sorry for the OT:
If you do want to change your navbar icons, you can use this:
SoftKeyZ ★ root - Janis Elfert
Ensure you make a full backup or that you have the necessary experience to recover from any potential issues that may come up after using the app.
Sometimes it causes a boot loop or your navbar may disappear.
Most of the times, it is solely because permissions are incorretly set for SystemUI.apk, set it to 644(-rwxr--r--) if that happens.
Let's move this to the thread you previously created to avoid going off topic here.
Click to expand...
Click to collapse
fish droid said:
how I will correct it
Click to expand...
Click to collapse
If something does go wrong and your phone doesn't reboot, reflash your backup.
If the navbar disappears, use a root explorer to set permissions on /system/app/SystemUI.apk
The permissions are:
user - rw
group - r
other - r
https://play.google.com/store/apps/details?id=com.janis605.softkeyz
Works on 4.2.2??
What I mean is every time I modify the permission it gives me error
Sent from my C6602 using xda app-developers app
rioferraz said:
https://play.google.com/store/apps/details?id=com.janis605.softkeyz
Works on 4.2.2??
Click to expand...
Click to collapse
Yes. You however need to flash one of these to fix the back key being smaller than the rest.
This will reduce your navbar size though and you will have to flash the camera fix to enable the "picture effect" in camera.
fish droid said:
What I mean is every time I modify the permission it gives me error
Sent from my C6602 using xda app-developers app
Click to expand...
Click to collapse
This probably means system is not mounted as writable.

Categories

Resources