Stop optical pad wake? - myTouch 4G Q&A, Help & Troubleshooting

Has anyone figured out how to prevent the optical pad from waking the phone? Not sure if its possible but it is very annoying for me.
Sent from my HTC Glacier using XDA App

I believe if you use root explorer and open the file /system/usr/keylayout/glacier-keypad.kl with the text editor. You remove WAKE_DROPPED from key 107, and reboot. Only remove one WAKE_DROPPED at a time, just in case. Could lock you out of the phone if you aren't careful. Best of luck, and let me know if that ends up working for you.
-Cheers

Related

Keyboard

Does anyone else have a problem hiding the keyboard...? Your meant to be able to swipe down to hide it, but this doesn't seem to work on the stock HTC keyboard, am I doing something wrong ?
OkuDa
I just press the back arrow to hide the keyboard.
Sent from my HTC Wildfire using XDA App
Yeah that sometimes works but otherwise it takes ya back desktop..! I just wanna hide the keyboard....
OkuDa
I always press the menu button to hide the keyboard and I had no problem till now...
Sent from my HTC Wildfire using Tapatalk
At anytime you can press and hold the menu button to show or hide the keyboard
Sent via my Desire
i dont understand why the normal sense option to drop the keyboard down isn't present on the wildfire, it's just been replaced by some sort of language button. no amount of poking around in the settings seems to fix it.
This works for me. No problems! Swipes away everytime!

[SOLVED][REMAP DIAL BUTTON TO SEARCH BUTTON] Lack of search button

Hi.
I really miss the search button from the Desire device. I have tried to remap the send (dial) button to search by altering the bravo-keypad.kl file in /system/usr/keylayout. But the change didn't work. My altered keypad file is posted below, maybe someone can tell me why it's not working?
SOLUTION: Edit the right file. In my build the default qwerty.kl file was used not the bravo-keypad.kl. Adding SEARCH to key 231 and 61 turns the send key into a search key Even voice search by long press works
key 102 HOME
key 139 MENU
key 158 BACK
key 217 SEARCH
key 107 ENDCALL WAKE_DROPPED
key 116 POWER WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 231 SEARCH
key 61 SEARCH
Sent from my HD2 running Android
just revert what you changed back to how it was.
then hold down the start button (Windows Logo) and the keyboard will pop up, once you start typing it will go into the search app.
mr_billionaire said:
just revert what you changed back to how it was.
then hold down the start button (Windows Logo) and the keyboard will pop up, once you start typing it will go into the search app.
Click to expand...
Click to collapse
Thanks for that tip, but unfortunately it does not work inside all applications.
Thought u ment the Hardware search buttom, missing that a lot, couse a lot of apps maps it (search buttom) to combine some function. If we take ån sms progie fex. The search buttom is maped to compose sms's, hope someone fine a way to map a Hardware key to the search buttom
Yeah I need to map Multi Task manager to a hard key, can you help with that?
-------------------------------------
Sent via the XDA Tapatalk App
Cobra2 said:
Thought u ment the Hardware search buttom, missing that a lot, couse a lot of apps maps it (search buttom) to combine some function. If we take ån sms progie fex. The search buttom is maped to compose sms's, hope someone fine a way to map a Hardware key to the search buttom
Click to expand...
Click to collapse
This is exactly what I have done, remapped the physical send button (left most button on the HD2) to behave like a search button. HTC Desire does not have a send button either, and I don't miss it. I find it more usefully to have a search button then a send (call) button.
Sent from my HTC Desire using XDA App
Where are you entering this data to change these settings?
-------------------------------------
Sent via the XDA Tapatalk App
Try remapping a button to DPAD_CENTER and see if it works for the trackball in camcorder.
paalkr said:
This is exactly what I have done, remapped the physical send button (left most button on the HD2) to behave like a search button. HTC Desire does not have a send button either, and I don't miss it. I find it more usefully to have a search button then a send (call) button.
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
Hi paalkr
Where is the file qwerty placed ? That would be great if it worked for me, I really miss the hardware search buttom.
Thanx
Cobra2 said:
Hi paalkr
Where is the file qwerty placed ? That would be great if it worked for me, I really miss the hardware search buttom.
Thanx
Click to expand...
Click to collapse
All files related to key mappings are located in /system/usr/keylayout . The qwerty.kl is the one that android is defaulting to if not specified otherwise. There may be some other kl files in the folder, but the vendor specific file is just "left overs" from the ROM rip (in some cases).
paalkr said:
All files related to key mappings are located in /system/usr/keylayout . The qwerty.kl is the one that android is defaulting to if not specified otherwise. There may be some other kl files in the folder, but the vendor specific file is just "left overs" from the ROM rip (in some cases).
Click to expand...
Click to collapse
Thanx big time mate for pointing me the right place, that is just what i needed for the handcent sms.
Sent from my HTC HD2 using XDA App
Mapping End Key
Has anyone mapped the end call button to work. On my Darkstone build I have to hit the end call on screen, hitting the red hard key just shuts the screen off (very annoying). I then have to wake up the phone and end the call.
I pulled both bravo_keypad and qwerty files but both seem to be set to the right end key.
Any ideas or help?
Jwatt0918 said:
Has anyone mapped the end call button to work. On my Darkstone build I have to hit the end call on screen, hitting the red hard key just shuts the screen off (very annoying). I then have to wake up the phone and end the call.
I pulled both bravo_keypad and qwerty files but both seem to be set to the right end key.
Any ideas or help?
Click to expand...
Click to collapse
theres an options in the settings menu to do this, i just cant find it. I used to have it set correctly, but changing roms every few days, you start to get confused. I would appreciate it if someone could point us in the right direction.
Thank you.
Thanks for this useful tip that works perfectly !
A way to only map quick press to Search and keep long press on DIAL Button associate to Phone ?
here is my qwerty.kl file. what did i do wrong?
songokussm said:
here is my qwerty.kl file. what did i do wrong?
Click to expand...
Click to collapse
Didn't succeed either, I mounted system as read write and modified qwerty.kl, rebooted but nothing changed. I would like a lot too having the search button on the call key :-(
I am on Shubcraft build
DocteurN said:
Thanks for this useful tip that works perfectly !
A way to only map quick press to Search and keep long press on DIAL Button associate to Phone ?
Click to expand...
Click to collapse
I would like that too, but I haven't sorted that out.
songokussm said:
here is my qwerty.kl file. what did i do wrong?
Click to expand...
Click to collapse
Could be that your build uses an other file then the qwerty.kl. Have you tried to edit the vendor specific file instead?
on my device using shubcraft v1.4 it was the htcleo-keypad.kl
Sent from my HD2
phrozendevil said:
on my device using shubcraft v1.4 it was the htcleo-keypad.kl
Sent from my HD2
Click to expand...
Click to collapse
phrozendevil is 100% correct it is the htcleo-keypad.kl file.
Now i just need help with chaning the volume buttons to the camera buttons.
I changed:
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
To:
key 115 CAMERA WAKE
key 114 CAMERA WAKE
Upon press it starts the camera app, but will not take a photo. However when i switch to the camcorder function, that works just fine.
Ideas?
ps: i just use a widget to control my volume, which is very rare for me.

[Q] Annoying search button that i never use...

Is there any way to assign another function to the search button.
I haven't seen anyone change the search button...
This... http://forum.xda-developers.com/showthread.php?t=714670&page=2 ... thread has some info on reassigning the optical button. Might be a good place to start. Guessing that edits "qwerty.kl" might allow you to reassign the search too.
Hope this helps.
Thanks but i think that only works for physical keys. Please correct me if im wrong.
I found an app in the market, name I can't quite remember, search along lines of "button assign" I think. Had it on 2.1 to try n hack up a way to lock phone. So search the market, its there.
Sent from my Liberty using Tapatalk
That's a start. I'll give ten e-points to whoever finds me this app. Lol
Sent from my Liberty using XDA App
It's called Button Shortcut. The icon is a grey camera. It can't replace the search button but you can assign apps to open on long press.
Here's your points as promised. Im still searching for an answer
Sent from my Liberty using XDA App
stone_ship said:
It's called Button Shortcut. The icon is a grey camera. It can't replace the search button but you can assign apps to open on long press.
Click to expand...
Click to collapse
Yeah, that's the app I had found. Better than nothing.
Sent from my Liberty using Tapatalk
This... http://forum.xda-developers.com/showthread.php?t=695936 ...thread has even more info on edits to qwerty.kl (yeah, different name on the Hero).
Yeah so after an awesome two hours of learning adb stuff and searching for guides on the keys for the aria (that were never found) has thrown me at another brick wall. because the keys that perform the search function have been remapped to the camera function but still no change after reboot and all. Someone wanting optical sleep wake had said he or she had to change the key number also which confused me. why would you need another key number? how does that work the phone should only know one key to relate to the functions not a psuedo key or a hidden key. All i have changed in the qwerty.kl is keys 127 and 217 (which are the same digits just moved around maybe something maybe nothing...) from SEARCH to CAMERA. this is ridiculous.
I've found that "in-app wifi toggle" by oliver on the msrket allows wifi toggling by holding down the search button. I find that its useful enough to keep.
One feature i miss from win mo is the customization of hw buttons.
Sent from my HTC Liberty using XDA App
Tasker has an option that can reassign the function of long pressing the search button. You can make it launch an app, direct dial a contact, change wallpaper, turn on WiFi. You can even make it do a series of events, including all of those I mentioned.
Sent from my (liberated) HTC Liberty using XDA App
I use the "Quick Settings" app from the market. It utilizes the long press search button. It allows you toggle wifi, data, brightness, volume, bluetooth, etc, in app. Its handy if you wanna switch something on or off without exiting what you're currently doing.
weird.. i like the search button.
finds my contacts quick, or jumps to a google web search.
or jumps right to search when in twitter. to each his own.

Disabled n button from waking up device?

Ok, I searched and can't find anything on this. Any thoughts?
FYI...Im using CM7
Thanks.
Sent from my NookColor using XDA Premium App
ramiss said:
Ok, I searched and can't find anything on this. Any thoughts?
FYI...Im using CM7
Thanks.
Sent from my NookColor using XDA Premium App
Click to expand...
Click to collapse
I don't know that you can stop one of the 4 inputs from waking up the hardware, but...
You can define the 'n' button to do something that doesn't offend you and set your screen to sleep after a very brief moment (15 seconds).
Why do you want to change the hardward button behavior?
byronczimmer said:
Why do you want to change the hardward button behavior?
Click to expand...
Click to collapse
Hi, thanks for answering. The reason for this request is because the screen keeps waking up as it moves around in my bag. Just lightly pushing on the case/cover I use will activate the button and leave the screen on until the timeout. I am surprised this isn't an issue for more people (or perhaps people aren't noticing their nook turning on.)
Lowering the timeout is not going to work since I do a lot of reading and having to tap the screen every 15 seconds would be a pain. Unless anyone has figured out how to get screebl to work??
You can completely disable the "N" button by editing the keyboard layout file. Using Root Explorer (paid app - but WELL worth it!) or equivalent, navigate to SYSTEM>USR>KEYLAYOUT then click the button at the top to "Mount R/W", now long-press the file "qwerty.kl" and choose "Open in Text Editor". Then find the following line:
Code:
key 102 HOME WAKE
and simply add a # to the beginning of that line so that it looks like this:
Code:
#key 102 HOME WAKE
Now press your MENU button and choose "Save & Exit". You'll need to reboot the Nook for the change to take effect.
Now your N button should be completely disabled. Just make sure you have the soft keys set up with a home button so you'll have a way to use that functionality when needed.
If you want to maintain the functionality of the "N" button but just prevent it from waking the Nook, simply remove the word WAKE from that line and don't insert the # character. I haven't tried this implementation, but it should work fine.
If you did what jason suggest, make sure you not hide the status bar.
You can change the "unhide" button to something else in Tablet Tweaks or you can use the long-press Power menu option which is also in Tablet Tweaks.
911jason - thanks for that.
Running CM7.0.3 from sdcard, used Root Explorer to find and edit the keyboard layout file.
Simply removed WAKE from the home button as suggested.
Works beautifully. Doesn't wake the device, yet does all the other stuff it's supposed to.
Score one victory for increased battery life for shared knowledge.
I have a soft case and it gets turned on in my pocket.
I went ahead and also removed WAKE from the volume up and down buttons.
Now the only way to wake the screen is the power button. The way my case is, that's the one button that won't get pressed in daily travel.
(don't know if reboot is necessary, but i'd assume so, and did after each change before testing)
Thanks!
TCAndroid said:
911jason - thanks for that.
Running CM7.0.3 from sdcard, used Root Explorer to find and edit the keyboard layout file.
[ ... ]
I went ahead and also removed WAKE from the volume up and down buttons.
Click to expand...
Click to collapse
I also took WAKE off the volume keys, because I tend to reach into my bag and adjust the volume while walking or waiting for the train. My buttons don't tend to get pressed, since my bag is for a netbook and my uncased NC doesn't rattle around. However, after adjusting the volume, the screen was live and the bag and its contents sometimes made random touches all over the screen...
The volume buttons now work exactly the way I want! Thanks for the very clueful answer to this question!
Of course, now I have another thing to do every time I update my ROM. I should learn how to make update scripts!
I am curious why HOME has WAKE and not WAKE_DROPPED, when it appears to behave like WAKE_DROPPED.
From what I understand, WAKE_DROPPED causes the device to wake from sleep but does not send the command normally associated with the button that was pressed. WAKE will wake from sleep and also send the command after doing so.
911jason said:
From what I understand, WAKE_DROPPED causes the device to wake from sleep but does not send the command normally associated with the button that was pressed. WAKE will wake from sleep and also send the command after doing so.
Click to expand...
Click to collapse
Exactly so. HOME acts like WAKE_DROPPED, doesn't it? But it's marked WAKE.
Actually, yes, you're right... just realized that. Not sure why it's behaving that way.

Want to swap your Menu and Back Softkeys?

A number of users have been wanting to swap their menu and back softkeys... I believe it's handy for left-handed people who have smaller hands and can't reach the opposite button. So here's how you do it
1) Root phone
2) Using a root file explorer, navigate to /system/usr/keylayout.
3) Open the file Generic.kl
4) Make the following change:
LOCATE line
Code:
# key 139 MENU WAKE_DROPPED"
REPLACE with
Code:
# key 158 MENU WAKE_DROPPED"
LOCATE line
Code:
# key 158 BACK WAKE_DROPPED"
REPLACE with
Code:
# key 139 BACK WAKE_DROPPED"
Save the file Generic.kl, and reboot the phone. Your buttons are now swapped.
I have not provided an "update.zip" to do this, because lately far too many people are relying on one-click methods, and don't know how to make changes themselves, and "devs" don't document these methods for future. So please don't go making a flashable zip and posting it...
Thank You!!!
WOW
Been looking for this for along time, especially coming from Gnex the back soft key was on the laft side. There is also the size of the Note2, make it easier to work with the left hand only.
Thanks, W
pulser_g2 said:
A number of users have been wanting to swap their menu and back softkeys... I believe it's handy for left-handed people who have smaller hands and can't reach the opposite button. So here's how you do it
1) Root phone
2) Using a root file explorer, navigate to /system/usr/keylayout.
3) Open the file Generic.kl
4) Make the following change:
LOCATE line
Code:
# key 139 MENU WAKE_DROPPED"
REPLACE with
Code:
# key 158 MENU WAKE_DROPPED"
LOCATE line
Code:
# key 158 BACK WAKE_DROPPED"
REPLACE with
Code:
# key 139 BACK WAKE_DROPPED"
Save the file Generic.kl, and reboot the phone. Your buttons are now swapped.
I have not provided an "update.zip" to do this, because lately far too many people are relying on one-click methods, and don't know how to make changes themselves, and "devs" don't document these methods for future. So please don't go making a flashable zip and posting it...
Click to expand...
Click to collapse
Thank you! I was wondering if there was also a way to swap it for the on screen nav menu?
Sent from my Note 2
BigE-evo said:
Thank you! I was wondering if there was also a way to swap it for the on screen nav menu?
Sent from my Note 2
Click to expand...
Click to collapse
You mean you want on-screen navigation buttons, nexus style?
pulser_g2 said:
You mean you want on-screen navigation buttons, nexus style?
Click to expand...
Click to collapse
I am looking for a way to make the menu button persistent and also add a search button... can anyone help with that?
Thanks
Sent from my Galaxy Note II on Rogers Wireless
is this right? 3 menus and one back? i don't need a second back anywhere?
Sent from my SPH-L900 using xda app-developers app
wlpywd said:
is this right? 3 menus and one back? i don't need a second back anywhere?
Sent from my SPH-L900 using xda app-developers app
Click to expand...
Click to collapse
Well spotted, I've fixed that. You are basically swapping the numbers of menu and back, but I had a typo in it. The version in the thread is now correct.
I honestly think it's the right handed people who mostly hold their phones in their left hand. Thank you so much for this fix. I've been using button savior but this will be even better.
@Scott, if you want a customized buttons with more buttons, use button savior. You can customize size, location, number of buttons etc, here a pic. I have it setup where if i hit the trigger, the buttons will pop out and go away in 1 second. very convenient. But since I only need back button, this thread is a better way for me it seems.
@OP, Now that i have this setup, is there another line i can change to turn off the lights behind these button permanantly?
edit: nvm there was an option under display to turn those off
boodies said:
I honestly think it's the right handed people who mostly hold their phones in their left hand. Thank you so much for this fix. I've been using button savior but this will be even better.
@Scott, if you want a customized buttons with more buttons, use button savior. You can customize size, location, number of buttons etc, here a pic. I have it setup where if i hit the trigger, the buttons will pop out and go away in 1 second. very convenient. But since I only need back button, this thread is a better way for me it seems.
@OP, Now that i have this setup, is there another line i can change to turn off the lights behind these button permanantly?
edit: nvm there was an option under display to turn those off
Click to expand...
Click to collapse
Hmm interesting, I am right handed, and hold my phone in my right hand. I do admittedly have no problem reaching the far side of the screen with my thumb for typing etc...
If I'm not typing then I still hold it in my right hand, but from the centre, giving me a full reach across the whole phone...
But whether you're left or right handed doesn't matter... Fix is the same For anyone else looking for it, the lights on the buttons can be disabled in display settings.
is there a generic.kl tutorial thread somewhere? to learn how to customize everything? I'd like to modify some long press and double press functionality. Play around a bit.
the only, only, only thing i miss from the evo-lte coming to this phone is the dedicated hardware camera/search button on the side. i feel this note is just one physical button short. oh well.
Sent from my SPH-L900 using xda app-developers app
wlpywd said:
is there a generic.kl tutorial thread somewhere? to learn how to customize everything? I'd like to modify some long press and double press functionality. Play around a bit.
the only, only, only thing i miss from the evo-lte coming to this phone is the dedicated hardware camera/search button on the side. i feel this note is just one physical button short. oh well.
Sent from my SPH-L900 using xda app-developers app
Click to expand...
Click to collapse
Why not just use "Swipe Pad" app & its just one finger action to camera button from any screen.
I'll look at swipe pad, but,i mainly used the button for search and long press for voice search. i rarely,rarely use the camera at all. the buttons at the bottom, physical buttons, could really have been 4 again on a phone this size. personal preference like the extra side button, that's all.
Sent from my SPH-L900 using xda app-developers app
Its the first app i install on a device, i use only the free version as its actually better kept simple & i only activate the 4 corners.
wlpywd said:
is there a generic.kl tutorial thread somewhere? to learn how to customize everything? I'd like to modify some long press and double press functionality. Play around a bit.
the only, only, only thing i miss from the evo-lte coming to this phone is the dedicated hardware camera/search button on the side. i feel this note is just one physical button short. oh well.
Sent from my SPH-L900 using xda app-developers app
Click to expand...
Click to collapse
Double press - I don't think you can do this from generic.kl - you'd need to modify the framework where the buttons are received.
Possibly same for long presses, I'm not sure...
wlpywd said:
is there a generic.kl tutorial thread somewhere? to learn how to customize everything? I'd like to modify some long press and double press functionality. Play around a bit.
the only, only, only thing i miss from the evo-lte coming to this phone is the dedicated hardware camera/search button on the side. i feel this note is just one physical button short. oh well.
Sent from my SPH-L900 using xda app-developers app
Click to expand...
Click to collapse
http://source.android.com/tech/input/key-layout-files.html
http://www.thriveforums.org/forum/t...layout-any-usb-bluetooth-keyboard-rooted.html
boodies said:
http://source.android.com/tech/input/key-layout-files.html
http://www.thriveforums.org/forum/t...layout-any-usb-bluetooth-keyboard-rooted.html
Click to expand...
Click to collapse
you rock!!
Sent from my SPH-L900 using xda app-developers app
pulser_g2 said:
You mean you want on-screen navigation buttons, nexus style?
Click to expand...
Click to collapse
I would love to! On-screen touch buttons for Back at the left, home in the middle and multi-tasking windows list button at the right.
If you don't mind can you please share or point me to a link where I can get this?
srikat said:
I would love to! On-screen touch buttons for Back at the left, home in the middle and multi-tasking windows list button at the right.
If you don't mind can you please share or point me to a link where I can get this?
Click to expand...
Click to collapse
Try adding this to build.prop in /system :
qemu.hw.mainkeys=0
wlpywd said:
is there a generic.kl tutorial thread somewhere? to learn how to customize everything? I'd like to modify some long press and double press functionality. Play around a bit.
the only, only, only thing i miss from the evo-lte coming to this phone is the dedicated hardware camera/search button on the side. i feel this note is just one physical button short. oh well.
Sent from my SPH-L900 using xda app-developers app
Click to expand...
Click to collapse
Did you try long pressing the menu button?

Categories

Resources