[Q] Want to remap volume button to screen brightness - General Questions and Answers

I want to remap the volume button on my rooted Samsung tablet so that I can use it for changing screen brightness. This is because I use my device mostly for reading and not much for music.
Now the Botton Remapper app does not have an option for screen brighness. I found a tutorial (I can's post the link here) which works by modifying a file in
Code:
/system/usr/keylayout
but still I need to know the command for changing screen brightness and that's the question I wanted to ask.

Bump!

Related

Volume Display gets in the way

Is there anyway to change the volume display, or decrease the amount of time it stays on the screen?
When I change the volume in the middle of a call, or game, or whatever... the volume display stays on the screen for what seems like an eternity. There's also no easy way to get rid of it. Hitting the back button takes you back from wherever you were... not just back from the volume display. I find it very annoying.
(I did a search for this topic and didn't find anything... if this has already been discussed, than sorry for the extra thread...)
Thanks-
Maybe it's a solution to hit anyplace on the screen where no button or volume slider is (standard the grey area) it shuts down the volume display only so you'll return to the place where you pushed the volume button
That was waayyy too easy!
Thanks-
Personally I don't like the HTC volume control, or the System Status screen, I prefer the to have WM deal with them, and just give me the bubble with volume sliders/comm panel links...
You can disable the system screen through the TouchFlo settings in Start > Settings > System > TouchFlo but you need a cab file to remove the volume control, I have it as "Remove-Htcvolume-by-HellengreeN.cab, I'm not sure where I found it.
It's a little glitchy when changing volume in a full screen app, as the bubble/volume bars are drawn "through" the full screen app, but you can see what's going on and it negates the need to use the stylus at all.

remap volume buttons to power button - for people with broken power button Captivates

Hi every1,
I have a captivate with a broken power button and it was driving me nuts for the last 2 months since I couldnot wake up the phone if it went to lock screen. I tried no lock and other apps but they didnt work 100% of the time. Today I found this thread :
http://forum.xda-developers.com/showthread.php?t=850464
It is button remapper utility but it doesnot support captivate yet. However my only concern was to remap my volume buttons to power button.
This is how I did it :
Firstly, we'll need to pull the file that controls the buttons which is entitled "aries-keypad.kl" in "system/usr/keylayout".
To pull the file, connect your captivate and run:
adb remount
adb pull system/usr/keylayout/aries-keypad.kl aries-keypad.kl
Click to expand...
Click to collapse
Edit this pulled file like below :
key 115 POWER WAKE
key 114 POWER WAKE
key 102 HOME WAKE_DROPPED
key 116 POWER WAKE
Click to expand...
Click to collapse
Key 115 was VOLUME_UP while Key 114 was VOLUME_DOWN. I reassigned both to behave as POWER button.
After you're done with your edits, you'll need to save the file properly (NO .txt files!), and then you'll have to push it back to the phone.
adb remount
adb push aries-keypad.kl /system/usr/keylayout
Click to expand...
Click to collapse
Reboot your phone, and then check to see if the remapping works as expected. Your volume buttons should now behave as power button.
Simple and Effective!
For more info, look at threads :
http://forum.xda-developers.com/showthread.php?t=850464
http://forum.xda-developers.com/showthread.php?t=695936
Thanks for this, but I just have two questions.
Does this make us lose control of the volume using the volume rocker?
and
This change allows us to turn turn off the screen as well using the volume buttons, correct? Not just to power the screen on.
Yes you will lose volume control over which ever you choose. I personally chose to lose my volume up since i think it would be more important to lower my volume if i suddenly needed to. To answer you second question yes this function will work as an exact replacement for your power button meaning it turns the screen on, off, powers on and off, and would get you into download or recovery mode depending on the volume rocker you still had available.\
P.S. I did not change all options to the power key. I left the Key 114 VOLUME_DOWN the same.
oh alright. Thanks!
So I decided to go ahead and try this but I seem to run into a problem. I am able to pull the file through adb, but I can't seem to push it back into the phone. It gives me two errors: "operation denied" and "read-only file." Is there any way to fix this? If it matters, I am able to pull the file with having to do the "adb remount" step; idk if there is something wrong, but it won't let me "adb remount" either.
I've made sure I have all the su permissions so i don't what could be wrong.
jtd9 said:
oh alright. Thanks!
So I decided to go ahead and try this but I seem to run into a problem. I am able to pull the file through adb, but I can't seem to push it back into the phone. It gives me two errors: "operation denied" and "read-only file." Is there any way to fix this? If it matters, I am able to pull the file with having to do the "adb remount" step; idk if there is something wrong, but it won't let me "adb remount" either.
I've made sure I have all the su permissions so i don't what could be wrong.
Click to expand...
Click to collapse
You can edit the files on your phone using ES File Explorer.
If you install most asop builds there is usually an option under from control that will let you use the volume button to turn on the screen without losing volume cintrols . Works well too.
I don't mean to hijack this thread, but since we seem to have a similar problem, I figured you guys would have an answer.
How, if possible, are you guys installing custom rom since I really can't get CWM to work with the power button broken?
I'm using Root Toolbox to reboot in recovery, then using the home button for selecting things in CWM.
For example i remapped the power button to vol down. If my phone is off, can I power it on by using the volume down?
takeoutttt said:
For example i remapped the power button to vol down. If my phone is off, can I power it on by using the volume down?
Click to expand...
Click to collapse
No you cannot. The remap only takes affect when android has booted. When the phone is off the power button is still the power button
Sent from my SGH-I897 using xda premium
Thank you, it worked like a Charm...
hd779 said:
If you install most asop builds there is usually an option under from control that will let you use the volume button to turn on the screen without losing volume cintrols . Works well too.
Click to expand...
Click to collapse
That won't let you "sleep" the phone with the volume control button. My button is to the point where I press it sometimes it works, sometimes it brings up the power menu but most of the time it does nothing.
I use volume wake and an app called turn off screen. More inconvenient than power button but once you use the app once to turn off the screen it stays in your list when you long press the home key so I can turn off the phone without having to go the home screen every time.
Rip power button you are sorely missed.
I use rom manager to restart my phone into recovery for flashing.
I also asked this in another thread... I want to disable WAKE with power button...
I edited all . kl files in system > usr > keylayout and deleted WAKE on power button lines with no luck.
I am on galaxy s2 slim 2.7.0 rom. android 4.1.2
For those of you that this method did not work there is a much easy and hassle free alternative!! Takes a minute or two only!!
Get 'Go launcher' from the app market (play)
Get 'Go Locker'
Now Enable Go Locker on your device. And you are done!!
When the screen goes black again, Just press the volume button, The screen wakes up!!
Using this method you don't lose the normal functionality of the volume rocker!!
I respect the effort put in by "puneet_champ" to make this post.. I went through this post, I couldn't find a file named 'aries-keypad.kl' Good thing I didn't!
As a result of which I recalled that I used to have Go Locker on my phone, and that when I pressed the Volume key the screen turned on!!
At that time I found it a little annoying, But now it has turned out to be such a gift!!
infaas said:
For those of you that this method did not work there is a much easy and hassle free alternative!! Takes a minute or two only!!
Get 'Go launcher' from the app market (play)
Get 'Go Locker'
Now Enable Go Locker on your device. And you are done!!
When the screen goes black again, Just press the volume button, The screen wakes up!!
Using this method you don't lose the normal functionality of the volume rocker!!
I respect the effort put in by "puneet_champ" to make this post.. I went through this post, I couldn't find a file named 'aries-keypad.kl' Good thing I didn't!
As a result of which I recalled that I used to have Go Locker on my phone, and that when I pressed the Volume key the screen turned on!!
At that time I found it a little annoying, But now it has turned out to be such a gift!!
Click to expand...
Click to collapse
The issue there is you have to have a custom launcher, and you can't turn your phone off yourself.
Samsung Galaxy S Captivate
Android 4.2.2
Kernel 3.0.66-g6c5dade
Cyanogen 10-1-20130224-NIGHTYLY-captivatemtd
I used both ES File Explorer and ADB method to try to edit the file to fix my power button issue.
Both methods allowed me to edit the file and have the edits remain after a reboot and reviewing of the file. However the edits don't seem to be doing anything as the volume keys still function as volume.
If anyone knows what I might be doing wrong it would be much appreciated.
^^^i had the same issue as you. No matter how I tried editing it to re map buttons it did not work. I trouble shoot this for many weeks and made no progress. A member did suggest making some custom scripts which was above my skill level. Ended up buying a new button. Actually just got the phone back fixed this weekend.
Sent from my Nexus 4 using xda app-developers app
infaas said:
For those of you that this method did not work there is a much easy and hassle free alternative!! Takes a minute or two only!!
Get 'Go launcher' from the app market (play)
Get 'Go Locker'
Now Enable Go Locker on your device. And you are done!!
When the screen goes black again, Just press the volume button, The screen wakes up!!
Using this method you don't lose the normal functionality of the volume rocker!!
I respect the effort put in by "puneet_champ" to make this post.. I went through this post, I couldn't find a file named 'aries-keypad.kl' Good thing I didn't!
As a result of which I recalled that I used to have Go Locker on my phone, and that when I pressed the Volume key the screen turned on!!
At that time I found it a little annoying, But now it has turned out to be such a gift!!
Click to expand...
Click to collapse
The file that you needed and you didn't find is probably not called aries-keypad.kl . Every sort of devices calls it a bit different, with keypad or kpd in the name of the file. For example the file on my device is called mtk-kpd.kl . You see?
Greetings, Plehai
Easier to use an app called button remapper and make the search button the power button. Volume buttons to wake.
Sent from my SGH-I897 using xda app-developers app

Disable capacitive buttons + onscreen navigation buttons

I'm not sure if anybody has done this but I thought it may be a good idea to enable on screen buttons and turn off the capacitive buttons.
This way we have the ease and customization of on screen navigation buttons + the ability to use the physical home button to turn on the device.
coming from a Gnex, I hear ya!
crazinavy said:
I'm not sure if anybody has done this but I thought it may be a good idea to enable on screen buttons and turn off the capacitive buttons.
This way we have the ease and customization of on screen navigation buttons + the ability to use the physical home button to turn on the device.
Click to expand...
Click to collapse
The link below jumps to a thread with exactly what you want. It also changes the home button into a camera button (long press).
In the first post, Sheffy007 posted flashable zips for various ROMs. Not sure what rom you're running, but I've also linked to a step by step tutorial in case things don't work exactly as you want.
P.S. Before flashing, go into settings / display and set touch key backlights to always off. (this keeps them turned off before flashing in touchwiz based roms).
http://forum.xda-developers.com/showthread.php?p=30048716
Sent from my SCH-I535 using xda premium

Any way to disable power button wake?

My phones power button is broken and sometimes wakes the phone automatically! Now I am using OpenSensation2 with sweep2wake enabled so I can wake my phone through capasitive buttons but still can't find any way to disable my falty power button ... I tried to remove the word "WAKE" after "XX POWER" lines in every .kl file I found in system/usr/keylayout but it didn't work (power still works)
Is there any other way to disable it?
Not sure but you might look in market for app that is a button saver app. It could possibility have this ability. I've not used the app myself but have seen in market. You might want to give that a try. The app is called button savior root. You can see what ability it has. Best wishes hope this is helpful.
Sent from my DKOS

Function keys do not work

Hi,
the keys on the type cover to control the display brightness do not work. Is there a driver missing? Also the mute key does not work whereas the search and share key do work perfect. My Surface Pro 3 is just a couple of hours old and I did not install anything yet.
topcaser said:
the keys on the type cover to control the display brightness do not work. Is there a driver missing? Also the mute key does not work whereas the search and share key do work perfect. My Surface Pro 3 is just a couple of hours old and I did not install anything yet.
Click to expand...
Click to collapse
Umm, try holding the Fn key and tapping the Caps key. That toggles the status of the function keys.
OR Hold the Fn key and tap the required function key as when in toggled state the roles are reversed.
But then, as far as I know there is no brightness key for the display there. What looks like a bright light icon is actually a short cut to the Settings menus.
Didja read the manual???
Hi thanks for the information. I found out that these keys do not control the display brightness but the brightness of the type cover' keys.
Sent from my Galaxy S5

Categories

Resources