[Q] disable certain hardware buttons to wake screen - HD2 Android Q&A, Help & Troubleshooting and Genera

is there an app to do this? id like to set it so that only one button or possibly the volume button can wake the screen instead of all the buttons

Yeah especially when the power button can wake the phone...and turn it off ! From the lockscreen! Atleast on typhoons build
Sent from my HTC HD2 using XDA App

there is an app in the market that allows you to set all hardware buttons to actions... specifically for me it allows me to use the volume rocker to lock and also wake the device.
Sorry but i cant place the link but the app is free in android market and is called
'Button Remapper'
when you set the actions just tap apply and the device will automatically hot boot and is all reversible should you want to go back to original config

Yeah, but before try out button remapper I highly recommended a backup of your system. I install it last month and it work. But than, after a normal reboot, all hardware buttons doesn't work anymore. No chance to make it work again even not with the default settings in button remapper.

Related

any key to wake?

Guys,
Just taken delivery of my first Android handset - nice to be back on here, spent years on here when I ran WM! Anyway, I've been looking for and haven't found an app that'll let me wake the phone by pressing any button, rather than just the power button. Seen stuff for WM, but not Android.
Can anyone help?
Ric
landwomble said:
Guys,
Just taken delivery of my first Android handset - nice to be back on here, spent years on here when I ran WM! Anyway, I've been looking for and haven't found an app that'll let me wake the phone by pressing any button, rather than just the power button. Seen stuff for WM, but not Android.
Can anyone help?
Ric
Click to expand...
Click to collapse
to be honest having used the htc hero I was always getting frustrated cause everytime I took out the phone from my pocket I found it had unlocked cause the minute you pressed any of the home search , menu buttons the phone would unlock and it could then even make unwanted phone calls but as for the desire it only wakes when u press the power button which I think is great just my own opinion.
Try this one on the market :
http://apps.doubletwist.com/No-Lock/-2216879159323801559
When you'll hit any key, no more "slide to unlock", phoen wake up direct to home screen
Having used the HD2 I too miss this feature. Not necessarily pressing a key to unlock the device, but simply to bring up the 'drag down to unlock' screen.
luminouche said:
Try this one on the market :
http://apps.doubletwist.com/No-Lock/-2216879159323801559
When you'll hit any key, no more "slide to unlock", phoen wake up direct to home screen
Click to expand...
Click to collapse
Here is this one also - http://apps.doubletwist.com/Screen-ON-widget/6251491150679267019
These 2 apps replace the need to "slide-to-unlock", but wouldn't you still have to press down the "power" button to actually turn on the screen?
I too have found this a little annoying. I think this may be a feature that can be changed once rooting of the phone starts.
Sort of like re-mapping the hardware buttons to where all you have to do is hit the trackpad or MENU button to activate the screen.
Application like this?
http://apps.doubletwist.com/HeroKey-(root)/1990841848356448722
No this would be interesting to possibly get for the Desire. Allows you to remap the hardware buttons. Too bad it is -
1 - For the Hero
2 - Requires root
After pressing the power key, mine unlocks by pressing just the menu button as well, FWIW.
Sent from my HTC Desire using the XDA mobile application powered by Tapatalk
For now i've installed MyLock. It removes the lockscreen completely. Now i just press power once.
th3 said:
After pressing the power key, mine unlocks by pressing just the menu button as well, FWIW.
Sent from my HTC Desire using the XDA mobile application powered by Tapatalk
Click to expand...
Click to collapse
lol. Never knew that. That's handy.
nice!
adjei7 said:
lol. Never knew that. That's handy.
Click to expand...
Click to collapse
that's a bonus, thanks.
what would be even nicer would be if the screen woke up (to lockscreen is fine) on a press of any hardware button. guess it'll need root.
just figured out how i am using 2 programs one is nolock and seccond is Widget Locker. nolock wakes up the phone with any key and by default unlocks the phone BUT if you have Widget Locker installed it prevents from unlocking so that way you have your phone with any-button wake and still locked,tested with my LG 2x ,first app is lightweight and dont consume much battery.. i dont know if i made my self clear im italian email me if you want the link or any question
[email protected]

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.

[Q] How do you handle not having a menu button?

Many uses I'm missing out on. Example if I'm browsing a site and want to open another window, what do I do?
Or
While in any app how would I access the menu or option settings?
What ROM are you using? If it's stock B&N software, is it rooted?
If you're using CyanogenMod, then you can turn on a set of buttons in the status bar that will replace the missing hardware buttons, much like on a Honeycomb device. It's in the Settings menu under Tablet Tweaks.
If you're using stock, you can install an app called SoftKeys or Button Savior and have it pop up a set of on-screen keys (menu, search, back, home, etc) whenever you press the "n" hardware button. You won't be able to install either unless you've rooted the device first, though.
Two applications: Button Savior or Soft Keys
I'm probably in the minority here, but I'm a big fan of zMooth.
You could also search for Nook Color keysmod and remap one of your volume buttons as Menu.
Keysmod is what works best. You'll have both menu and back buttons that's so convenient especially in landscape. Partner it with recent plus for adjusting volumes in-game and invisibright whenever you can pull up your notification bar.
Sent from my NookColor using xda premium
I use "Virtual Button Bar" in MIUI. it can be set to extend the buttons from a trigger point, or to be permanently extended and float.

"Fix broken power button" app by Destil

This app is the only app that I can find on the market that allows remapping power button function of waking up screen to other hard buttons such as volume buttons. This app works like a charm, but only with one small problem: IT DOES NOT WORK WITH A LOCK SCREEN
to use this app, you have to disable lock screen, then you can use your volume buttons to wake your device up. If lock screen is enabled, then pressing volume buttons would not do anything. I've contacted Destil and he said that it just will not work with lock screens on Honeycomb and ICS, but he did not elaborate on why it doesnt.
anyone know how to make this app work with lock screens? the app is open source.
Market link
Go here to download apk

[GUIDE] Remap hardware buttons

/edit: this guide is now obsolete because Xposed Additions now has button remapping with some advanced options, which also seem to enable volume wake on my HTC One
If you hate locking and unlocking your HTC One with the Power button, you can change that quite easily int for example Volume Down.
ButtonRemapper would be the easiest method, but it doesn't work with the HTC One. It doesn't load the correct file.
The solution: simply edit the correct file
Code:
keypad_8960.kl
found in
Code:
/system/urs/keylayout/
by hand (I used Fx File Explorer with the paid Root plugin) and reboot your phone. My edited file is attached on this post.
Original:
Code:
key 116 POWER WAKE_DROPPED
key 114 VOLUME_DOWN WAKE
key 115 VOLUME_UP WAKE
key 107 ENDCALL WAKE_DROPPED
My current file that switches the Volume Down and Power button:
Code:
key 116 VOLUME_DOWN WAKE
key 114 POWER WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 107 ENDCALL WAKE_DROPPED
I don't know if the same file is used on different ROMs. I tested this on the P.A.C. Man ROM.
Now waking my One is a breeze! :laugh:
P.S. You may need the following workaround to fix the 'volume wake not working' bug present in some (or all?) JB ROMs, which strangely also affects this tweak (symptom: volume down won't wake phone sometimes).
1. Install Xposed Framework (which you should anyway, it's awesome)
2. Install MoDaCo Toolkit
3. Wait for the annoying ad (Paul, tsk, tsk) and enable the option 'HTC One > Enable Volume Wake'
4. Enable MoDaCo Toolkit in Xposed
5. Reboot
6. Profit ^_^
Is there a way to remap volume keys to change song when double clicked or something?
dare2k said:
Is there a way to remap volume keys to change song when double clicked or something?
Click to expand...
Click to collapse
I'm not sure, but when there is, I think it's not done with this or another .kl file but with a 'ROM tweak', like AOKP settings.
But remapping it that way does it mean if you want to lower the volume you press the power button?
Sent from my HTC One using Tapatalk 2
baste07 said:
But remapping it that way does it mean if you want to lower the volume you press the power button?
Sent from my HTC One using Tapatalk 2
Click to expand...
Click to collapse
Correct. I'm currently having the issue that my phone won't always wake using the remapped Power button, or only after 4 seconds holding it. I think it's a conflict with my ROM settings though.
While locking the phone with volume down would be nice, it prevents you from turning the volume down/vibrate/off. Which is pretty important.
Although you could alternatively hit Volume Up and then drag the slider via the touchscreen.
BTW I tried this on TrickDroid 4.2.2 and it works.
Syn Ack said:
While locking the phone with volume down would be nice, it prevents you from turning the volume down/vibrate/off. Which is pretty important.
Although you could alternatively hit Volume Up and then drag the slider via the touchscreen.
Click to expand...
Click to collapse
Actually, the adjustment only swaps the buttons, so the physical Power button acts as Volume Down
I'm still having issues with the adjustment though, has anyone tried it and got it working correctly all the time? I also edited Generic.kl and qwerty.kl, but that didn't help. Pacman ROM 2.9.
Is there any way to use his once you're in the camera . Since we don't have a dedicated camera button it would be great to set up the volume key to take pictures ?
Sent from my HTC One using xda app-developers app
Volume wake bug workaround added to OP.
Problem...
jelbo said:
Volume wake bug workaround added to OP.
Click to expand...
Click to collapse
I have multiple problems guys:
Rooted...double checked if it's rooted (htc one) - then installed Xposed...mods...guess what? it worked for a few hours then all of the sudden...Framework disabled...pushed Install again...and then one of 2 things happen:
1 - phone reboots
2 - Installed and notification for SU....but when restarting my phone the framework it's NOT installed....wtf?!?
Solutions errybody
jelbo said:
Correct. I'm currently having the issue that my phone won't always wake using the remapped Power button, or only after 4 seconds holding it. I think it's a conflict with my ROM settings though.
Click to expand...
Click to collapse
PERMANENT FIX: This problem is caused when the phone enters Deep Sleep mode, the processor stops listening to the .kl files and is pre-programmed to listen on the power button. --On mine, I was completely unable to turn the phone on, I figured out thought that I could turn it on is by holding the power button and the configured volume button at the same time, like a screenshot, hope this helps somebody.-- To permanently fix this download "Wake My Android Pro (free)" from the Play Store, this app is specifically designed to keep your phone in the "Sleep" mode and preventing it from entering the "Deep Sleep" mode. **This does not drain your battery.** Just make sure to set "Low Wake" in the settings, and set the time to 9 seconds and auto-start. Hope this helps some people, those who do not want to fiddle around with Xposed.
dare2k said:
Is there a way to remap volume keys to change song when double clicked or something?
Click to expand...
Click to collapse
This you can do via Tasker. Just create a profile: Event, Variable Set: Volume - Media. This will pick up the volume presses, from there you can restore the volume to what it was (via stored variable) and detect double-presses or gestures between the vol-up and vol-down buttons. I recommend running Javascript to detect that, to be more streamlined. Once detected, use the Media Control action to skip/restart/pause songs in OEM, or if you use Spotify or Pandora, you will have to use a shell "input keyevent 87" Use Root: Yes--87 to skip, swap it with 88 for previous, 85 to play/pause.
rollsrd said:
Is there any way to use his once you're in the camera . Since we don't have a dedicated camera button it would be great to set up the volume key to take pictures ?
Click to expand...
Click to collapse
This can be achieved with Tasker as well. Use a profile "Application," select Camera, and combine with an Event (by long-pressing profile and "Add...") Variable Set: Volume - Ringer. For the action, select Input>Button>Camera. You must be rooted.
If we combine this button swapping idea with Tasker, we can do a lot of cool things guys. An easy way to pick up an easy button gesture with Tasker is with the power button (which always works from sleep, the volume buttons can only be detected when music is playing). I use Tasker to do a certain action when the power button is double-clicked (Display On>Display Off within, say, 1 or 2 seconds).
Hope all was a help, I am new to XDA (*NOT* a noob!) and actually, this is my first post, so a thumbs up or a "thank you" or whatever you guys call it would be great. Thanks! :good:

Categories

Resources