how can we map the volume button so as to launch camera on long pressing the volume button??
I don't think that's possible, you can remap the camera to another button tho.
If you are on gsnap by neko or cm7 you can go to setting > cyanogenmod settings > input > search key behavior > check long press search app > then press custom application > application > choose camera app in that list > voila
Now you can long press search key and camera app will launch
Any other button other than search button
Sent from my LG-P500 using xda app-developers app
harshbg said:
Any other button other than search button
Sent from my LG-P500 using xda app-developers app
Click to expand...
Click to collapse
Yes you can even menu button and home but only volume buttons you cant. The method is the same like search button for menu and home button remaping
Sent from my LG-P690 using Tapatalk 2
M using cm9..not able to find cm settings
Sent from my LG-P500 using xda app-developers app
search key as camera button
it can be possible to remap search key as camera key.
- If you are using stock 2.3.3 firmware, go to /system/usr/keylayout/ and copy thunder_keypad.kl to a pc
- if you are using CM7, go to /system/usr/keylayout/ and copy qwerty.kl to a pc
- if you are using ICS, go to /system/usr/keylayout/ and copy thunder_keypad.kl to a pc
- (i never tried this on jb but it should be just like on ICS)
then, open the file *.kl with an text editor (i recomend notepad++). every line starts witn this synthesis:
key [nº of the key] [function] [restriction]
/*the restriction says if a button can work with screen locked or not. WAKE alows a key to work even if the phone is locked, WAKE_DROPPED restrict a key to work only if the phone is unlocked */
look for the line that has the key Nº 217. it will looks like this:
key 217 SEARCH WAKE_DROPPED
change the SEARCH word to CAMERA
then, save the file and push it to /system/usr/keylayout/ overwritting the existing one
WARNING: DO an nandroid backup before do this...
PD: in stock ROMs, the stock camera will not recognize a camera button for take a pictute or record video, a third party camera app will do it.
Button Remapper! On XDA somewhere. Sorry
Sent from my LG-VM670 using Tapatalk 2
Related
Is there a way to change the buttons and what apps they control?
Example camera short press for voingo voice search, long press for camera.
Sent from my SPH-D700 using XDA App
I don't know about the camera button, but you can setup keyboard shortcuts.
Settings > Applications > Quick launch. I've found this to be really useful.
[CyanogenMod 9 Alpha Builds 4.0.4]
In order to use the SEARCH key as the POWER key, I tried to replace every 'SEARCH' with 'POWER' in the following files:
/system/usr/keylayout/Generic.kl
/system/usr/keylayout/qwerty.kl
/system/usr/keylayout/saga-keypad.kl
After rebooting, it doesn't seem to work.
Could anybody tell me why?
I'm using application called "screen off and lock"
I made a shortcut to long press search button, simple and works well.
Sent by my fingers to your head.
I know this app. But I want the SEARCH button works exactly the same as POWER: short press = lock; long press = power menu.
Also I would like to use NEXT/PREV buttons on my earphone as VOLUME+/-.
So I guess I have to modify the key layout.
o(n_n)o said:
I know this app. But I want the SEARCH button works exactly the same as POWER: short press = lock; long press = power menu.
Also I would like to use NEXT/PREV buttons on my earphone as VOLUME+/-.
So I guess I have to modify the key layout.
Click to expand...
Click to collapse
Screen off and lock DOES that.
Install the app. Then hold search button....
Sent from my HTC Desire S using xda premium
olyloh6696 said:
Screen off and lock DOES that.
Install the app. Then hold search button....
Sent from my HTC Desire S using xda premium
Click to expand...
Click to collapse
Read before you post, dude.
firstly thanks to kenjilucas19 for finding this
CAUTION:- 1. the button you will make virtual can not be used on lockscreen
2. do not use this for power button else you will not be able to wake up your screen
you will need root for this
1. open any file manager with root access
2. go to /system/usr/keylayout
3. open aries-keypad.kl with text editor
4. change the word WAKE with VIRTUAL
5. save the file and reboot you are done
it was done originally on galaxy mini, thread link:- http://forum.xda-developers.com/showthread.php?t=1667694
stock files if needed
stock keylayout ics files:- http://db.tt/BTwcWJ6w
stock keylayout gb files:- http://db.tt/IJJr1Boe
Click to expand...
Click to collapse
This is extra cool!
I'd love to have it as an option under Sounds.
Vibration is a subject of strong preference or revolt.
I have it all off, my fingers hurt from vibration, and I save power.
But some ppl cannot leave without it.
So - option would be nice.
Very interesting. I'm guessing there aren't any negative side effects (like the buttons no longer responding when the screen is locked, like the rest of the "soft" buttons), otherwise you wouldn't have posted it, haha.
May have to give this a try for giggles later.
buttons you make virtual will not work in lockscreen
I tried this and it wasn't working, so I changed the rest of the files in that folder to say VIRTUAL & now my buttons are broken. I changed them back but they still don't work and yes I rebooted..
Sent from my SGH-I897 using xda premium
can you tell what you did step by step
and for a fix reflash your rom
and also virtual buttons do not work on lockscreen
I followed the tutorial correctly. Nothing changed after reboot. So I investigated & checked out the other text files in that folder, saw they had
Power wake
Volume wake
Etc
So I changed all those to virtual, rebooted, now buttons are broken. Could someone post all the stock files from their phone?
Sent from my SGH-I897 using xda premium
ninjuh said:
I followed the tutorial correctly. Nothing changed after reboot. So I investigated & checked out the other text files in that folder, saw they had
Power wake
Volume wake
Etc
So I changed all those to virtual, rebooted, now buttons are broken. Could someone post all the stock files from their phone?
Sent from my SGH-I897 using xda premium
Click to expand...
Click to collapse
cat aries-keypad.kl
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 116 POWER WAKE
key 139 MENU VIRTUAL
key 102 HOME WAKE
key 158 BACK VIRTUAL
key 217 SEARCH VIRTUAL
ninjuh said:
I followed the tutorial correctly. Nothing changed after reboot. So I investigated & checked out the other text files in that folder, saw they had
Power wake
Volume wake
Etc
So I changed all those to virtual, rebooted, now buttons are broken. Could someone post all the stock files from their phone?
Sent from my SGH-I897 using xda premium
Click to expand...
Click to collapse
files added
to ppl having probs after editing
Check your file permissions. Should be rw-r--r--.
Hi,
I'm looking for an app which can open the DEFAULT power menu.
There are many apps in the Play Store which CREATE a power menu, but I want one which can just open it.
I use power menu a lot and I'm sure most of us use it very much. I just want something which can prolong the life of the power button.
I'm currently using Screen Off and Lock from the Play Store which can lock the phone using an on-screen icon. I want something like that for the power menu too.
Any help would be appreciated.
Thanks in advance.
If you're rooted, you could try rom toolbox from jrummy, it has a complete rebooter section and a widget accessing to that section
Sent from my Nexus S using xda app-developers app
I know there are apps which can display their own power menu.
But what I'm interested in is to use the default power menu...
Have a look at Screen off and lock in the Play store to know what I mean...
Sent from my Nexus S using xda premium
I assume you have a non-working power button. There are 2 ways you can do this:
1. Enable the Navigation bar feature in AOKP or SlimBean rom. Map the Power function to one of the button, but map it to the primary function of the button, not the secondary.
2. You can remap your capacitive buttons. Open the file /system/use/keylayout/cypress-touchkey.kl with the text editor of your root explorer, or copy it to your sdcard to edit it. Change KEY 217 ASSIST (or SEARCH), to POWER. Save the file and reboot. Also make sure you fix the permission of the file when you put it back if needed.
For both of these, press and hold that button to bring up the menu, one press = screen off.
eksasol said:
I assume you have a non-working power button. There are 2 ways you can do this:
1. Enable the Navigation bar feature in AOKP or SlimBean rom. Map the Power function to one of the button, but map it to the primary function of the button, not the secondary.
2. You can remap your capacitive buttons. Open the file /system/use/keylayout/cypress-touchkey.kl with the text editor of your root explorer, or copy it to your sdcard to edit it. Change KEY 217 ASSIST (or SEARCH), to POWER. Save the file and reboot. Also make sure you fix the permission of the file when you put it back if needed.
For both of these, press and hold that button to bring up the menu, one press = screen off.
Click to expand...
Click to collapse
My power button is working fine.
I'm just interested in getting the functionality of an on-screen button such displays the default power menu...
Thanks for your tutorial though.
Might help me some day...
Sent from my Nexus S using xda premium
Notification toggle from the play store has a power menu toggle
Sent from my Nexus S 4G using xda app-developers app
Is there recent option for the hardware button. Couldn't find it. Trying to multitask
Sent from my A0001 using XDA Free mobile app
By default, you can long press home.
You can go into Settings > Buttons and remap the buttons. I personally remapped Menu to Recent apps.
zephiK said:
By default, you can long press home.
You can go into Settings > Buttons and remap the buttons. I personally remapped Menu to Recent apps.
Click to expand...
Click to collapse
Could I use one of the hardware button to long press to turn off the screen
Sent from my A0001 using XDA Free mobile app
toanau said:
Could I use one of the hardware button to long press to turn off the screen
Sent from my A0001 using XDA Free mobile app
Click to expand...
Click to collapse
Sure if you want to, its called screen off. Or just enable Status Bar Double Tap to Sleep.