Anyone know if it is possible to make it so the search button takes a pic when in camera. I wish the dx2 had the dx camera button
Sent from my DROID X2 using xda premium
Sent from my DROID X2 using xda premium
Last edited:
I have mine like that right now. /system/usr/keylayout. Open the tegra-kbc.kl file in a text editor and find the line that says key 217 SEARCH WAKE_DROPPED and comment it out by putting a # in front of it. Then just add a line that says key 217 CAMERA . Reboot your phone and you should have it.
Sent from my DROID X2 using xda premium
Ah, I see. I tried just adding CAMERA to that line. I was trying to get it to still work as a 'search' when your not using the camera - but who uses that anyways? Nice job.
I have mine like that right now. /system/usr/keylayout. Open the tegra-kbc.kl file in a text editor and find the line that says key 217 SEARCH WAKE_DROPPED and comment it out by putting a # in front of it. Then just add a line that says key 217 CAMERA . Reboot your phone and you should have it.
Sent from my DROID X2 using xda premium
I know what you mean. I never use that search button anyway. It's one of the first things I do after flashing a new rom. That's one thing to be aware of. Flash a new rom and you have to do it again.
Sent from my DROID X2 using xda premium
In the same file, is it possible to make the volume buttons wake the phone? I see it shows wake for the home button. And I dont know what wake_dropped means for the menu and back buttons.
Yes, it's possible. WAKE means that if that button/key is pressed while the phone is asleep (screen is off), it will wake the phone up and return it to the app/lock screen.
WAKE_DROPPED means that if that button/key is pressed while the phone is asleep (screen is off), it will 'wake' the phone, but it will NOT return it to the application/lock screen.
Basically, WAKE = unlock phone, WAKE_DROPPED = Doesn't unlock phone.
Thanks. Will doing this disable the volume buttons though? I changed the search button to the camera button as was described and, obviously, the search function is gone. Will that happen with the volume buttons. If so, I dont want to mess with it.
First off, excellent thread with an excellent answer.
This needs to be stickied!
Now, another question. I went in there and saw a lot of different .kl files. I myself use SwiftKey X. Does it matter which file I edit? For example, here are the files I have:
AVRCP.kl
Motorola_Bluetooth_Wireless_Keyboard.kl
cpcap-key.kl
qwerty.kl
tegra-kbc.kl
usb_keyboard_102_en_us.kl
Does the tegra-kbc.kl file work across all different keyboard software?
Thanks!
Unless you removed the VOLUME_UP and/or VOLUME_DOWN in that, then no. Just change WAKE_DROPPED to WAKE and it should be fine.
The worst that could happen is what... your volume doesn't work for a second while you change it back? lol
as for the /system , I find it easiest to just use ADB on my computer and run the command 'adb remount'. That automatically sets /system as RW.
I did this directly on the phone using Root Explorer. It has the options to switch from R/W to R/O. I just opened up the file in text editor, made the changes and saved. It even made a backup of the original for me. To me, thats easier than going through a computer.
nevermind root browser had one lolUnfortunately, I've tried to find a working way to get that done but I can't find a way to get it. There are ways to change the layout of the buttons, but for some reason I couldn't get it working. Ill keep looking and let you know what I find, lol because I want it too!
Sent from my DROID X2 using XDA App
In the same file, is it possible to make the volume buttons wake the phone? I see it shows wake for the home button. And I dont know what wake_dropped means for the menu and back buttons.
Thanks. Will doing this disable the volume buttons though? I changed the search button to the camera button as was described and, obviously, the search function is gone. Will that happen with the volume buttons. If so, I dont want to mess with it.
First off, excellent thread with an excellent answer.
This needs to be stickied!
Now, another question. I went in there and saw a lot of different .kl files. I myself use SwiftKey X. Does it matter which file I edit? For example, here are the files I have:
AVRCP.kl
Motorola_Bluetooth_Wireless_Keyboard.kl
cpcap-key.kl
qwerty.kl
tegra-kbc.kl
usb_keyboard_102_en_us.kl
Does the tegra-kbc.kl file work across all different keyboard software?
Thanks!
Worked great....heres one more camera button question do you now a command to use our noew camera button to activate the camera from say pushing search on a home screen?