Anyone know of a program that will run two pre-defined shortcuts on the press of a hardware button (e. i want my OK button to both lock the phone with device lock and to turn off the display (display switch).
Many thanks
http://www.omegaone.com/batterypack/pro/default.htm try there Battery Pack Pro gives you power buttons so you can have one button do two things.
i saw that, along with some other programs, but they allow u to use each button as a press and press and hold to launch two programs, what i want is for a single button press to launch both program simultaniously.
You will need to use a program like nScriptm (http://www.s-k-tools.com/util.html) or MortScript (http://www.sto-helit.de/modules/edito/content.php?id=38).
Cheers
Mark
i am very very sorry for my poor English```
Is there any way that using voice button intead of power button?
the power button is widely used.
when unlock the device , lock the device[turn off screen lock key] and watching time,i offen push the power button ,many times a day.
so i am afraid of the power buttom will be loose or bad,it looks so sicker than any other button.
and i have a opinion that want to give the voice button the locking and unlocking function.
the voice button[on the left side upon the p3650]
is there any software or by changing the regredit ,can do that ?
You could download PHM Suspend PowerToy and either put it in your Start Menu apps or map one of the buttons to that program using using the button mapper in control panel.
There are many applications that allow this, and there are ways to do it manually also. VITO ButtonMapper is one. Search the forum and you'll find more options.
Alternatively, you could set your phone to turn the screen off after less time. Or you could set a long press of the hang-up key to lock the screen. Both of these options are available in control panel.
sonus said:
You could download PHM Suspend PowerToy and either put it in your Start Menu apps or map one of the buttons to that program using using the button mapper in control panel.
There are many applications that allow this, and there are ways to do it manually also. VITO ButtonMapper is one. Search the forum and you'll find more options.
Alternatively, you could set your phone to turn the screen off after less time. Or you could set a long press of the hang-up key to lock the screen. Both of these options are available in control panel.
Click to expand...
Click to collapse
thanks a lot .
i wll have a try.
Hi all,
So I broke the power button on my Titan (dropped it, now the action moves but doesn't do anything) and I'm wondering if I can remap it to, say, the comm-manager button.
As it is now, I've had to disable sleeping which completely hoses my battery life.
Any help?
edit: Now with clear title.
you mean you want to map another button to be the power button?
if so use ShutXP and HButton.
ShutXP lets you shut your phone off and reset it.
HButton lets you map applications to different hardware buttons...
nir36 said:
you mean you want to map another button to be the power button?
if so use ShutXP and HButton.
ShutXP lets you shut your phone off and reset it.
HButton lets you map applications to different hardware buttons...
Click to expand...
Click to collapse
I think you misunderstood. Normal function of my power button is to standby (you can still receive phone calls while in standby), press it again to wake up. I don't care at all about restart/shutdown functionality, only standby and waking up from standby.
I tried AEBPlus to put the phone in standby but then I cannot wake it back up! I imagine I need something lower-level to make another button cause the device to wakeup from standby.
edit: OK, so really what I want is to assign a single button that will wake the device up from standby. This has been discussed
http://forum.xda-developers.com/showthread.php?t=341255
http://forum.xda-developers.com/showthread.php?t=315329
there's an app in WM called Display Switch. if you used HButton you could map it to a hardware button...
it's /windows/shutdown.exe
the lnk file should contain the following code:
Code:
54#"\Windows\Shutdown.exe"
2?\Windows\Shutdown.exe,-10000
incase you don't find the exe in your windows dir let me know and i'll post it
nir36 said:
there's an app in WM called Display Switch. if you used HButton you could map it to a hardware button...
it's /windows/shutdown.exe
the lnk file should contain the following code:
Code:
54#"\Windows\Shutdown.exe"
2?\Windows\Shutdown.exe,-10000
incase you don't find the exe in your windows dir let me know and i'll post it
Click to expand...
Click to collapse
Thanks for the help, but I find that, on standby, all my buttons are disabled except the (non-functional) power button. Hardly helps to map the wakeup to a button that is disabled!
EDIT: Settings->System->Keylock-->Do not lock keys.
Now All I need is a hack that will add a "Lock all but comm-manager" to that dialog, instead of "Lock all but power"!!!
lol. sometimes.. i think one step further and it doesn't do well to the solution..
forgot that all hw buttons are disabled.
Hi,
I want to configure my HD2 like this:
Short press on End = Default
Long press on End = Power off
Short press on Back = Default
Long press on Back = Start HTC Flashlight
..and so on for all the hard buttons, Green, Red (End), Back, Home, Windows, Vol Up, Vol Down.
I have read several (and I mean several) threads about creating own shortcuts, but I still haven't found the answer..
Long_Power.lnk/Short_Power.lnk/Long_Send.lnk/Short_Send.lnk etc.
Does anyone know if this method works on HD2 and if so, exactly which buttons that are configurable and which names the shortcuts shall have?
Thanks in advance!
AEB Plus
try to search themes and apps for "AEB Plus". It's an app that makes you be able to configure all the hardware buttons with short press and long presses. Good luck!
bramgg said:
try to search themes and apps for "AEB Plus". It's an app that makes you be able to configure all the hardware buttons with short press and long presses. Good luck!
Click to expand...
Click to collapse
Thanks for your tip, but I'd prefer own shortcuts/registry hacks if possbile as I try to minimize the number of applications to install/maintain/buy for a very specific reason.
Rename the INK file of the preferred program to LONG_SEND and copy this INK file to WINDOWS root directly. Press and hold the SEND hardkey will execute that preferred program. But the SEND key may not work when there is an incoming call.
Tried AE Button Plus but fail to work with the BACK button.
angler said:
Rename the INK file of the preferred program to LONG_SEND and copy this INK file to WINDOWS root directly. Press and hold the SEND hardkey will execute that preferred program. But the SEND key may not work when there is an incoming call.
Tried AE Button Plus but fail to work with the BACK button.
Click to expand...
Click to collapse
Thanks, but do you know any other shortcuts that work?
I hope someone else may find method to override the default function of the keys other than SEND. Currently I am using Touchx long press send key for connmanager and you may select other installed program for the long press send key. I have also tried AE Button Plus but the Windows, Home and Back key all cannot be controlled by AE Button no matter double, triple nor long tap.
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