Hello everyone,
Please be gentle as this is my first post. I am a long time lurker though. I'm not totally incompetent, and have rooted my glacer to cyanogen 7 and have been quite happy.
Like many other people here though, my power button is starting to give out. I've been able to work around it for a while, but now I need to reboot into recovery to clear dvalk and cache. I have tasker, and secure settings, and I want to make a widget that will emulate a long press of the power button.
I know the command to emulate a button is something like '!sendevent /dev/input/event2 1 116 1'. Does anyone know the commands to press and release the power butten?
I'll make a neat little write up for this thread if anyone helps me out. =]
Thanks for at least reading this thread,
Quoaz
quoaz said:
Does anyone know the commands to press and release the power butten?
Click to expand...
Click to collapse
The first thing that comes to mind is to remap the keys.
The first place I would look is /system/usr/keylayout
Hope this gets you in the right direction.
Related
Hi peeps !
Searched all over the forum, but couldn't find the answer.
Is there a way to assign a function to the Power On/Off button other than to turn the Athena on / off ?
I typically, for instance, would like to bind the "DisplaySwitch" psShutXP shortcut to the Power Button so that when i press it, it doesn't turn the Athena off but only the screen.
Additionnaly, if one knows how to assign a sequence of actions to the Power Button (like "locking the device + switching screen on / off"), that'd be great.
Thanks guys !
Turning off only the screen is the default action for the power button...
There is an app that many on here use (I can't think of the name) which lets you reassign most of the buttons on the Athena, including the OK and Windows button, to many different functions. You can also hack the registry to reassign the camera/comm/browser buttons if the standard reassignments that Windows Mobile gives you aren't enough - but really odd things like locking + screen off may require you to also write your own small app first.
Hi there, thank you for your answer.
Actually, the Power button must do something more than just flicking the screen off, like scaling the CPU down, spinning out the microdrive, flushing a bunch of buffers, etc.
I'm asking because of a problem I posted about in the forum (here: http://forum.xda-developers.com/showthread.php?t=353456), about my Athena being strangely slow, and its CPU being 80% used by nothing that I can see or find, when I wake it up using the Power button.
I'm trying to see if I can circumvent the problem if I can't manage to find its source and solve it, in fact.
I used AEButtons Plus, which works pretty well with ALL buttons but the Power one, and I couldn't find a reference to it in the registry either.
Thanks for your time !
Yup, that's the app I was thinking of. I don't use it so I couldn't think of the name. Sorry to hear of your slowdown problems, I've been monitoring that thread. I agree that it sounds like a hardware problem at this point.
You need DevieLock.cab. It can be set to switch off the screen and lock the device. It can by mapped to any button but Power on/off though.
Thanks man, gonna look it up right away !
Hi!
I am wondering if there's a way to change the time until the poweroff.exe is run when pressing and holding the power-button. Haven't been able to find anything about this on google, only how to re-assign the utility that is executed in the end.
Anyone have any ideas? Hardcoded?
Good question. I asked 1 1/2 years ago if anyone knew how to disable that yes/no popup when you press the power button. I don't want it, I've never accidentally hit the power button for several seconds yet.
Interesting that you can change the entire shutdown program that is executed - that would solve my problem if I could find a good replacement. Do you have any good links on that?
Hi!
After reading a bit more on the subject I dont think that reassigning the exec'd app applies to Athenas... You can switch the file into some other "shutdown-app" though by switching \windows\poweroffwarning.exe.
Thats what I know so far. Google XDA for "long press change power" (without quotes) and you'll find a few posts on the matter.
Still no clue if its even possible to lower the time for the long keypress... :-(
techntrek said:
Good question. I asked 1 1/2 years ago if anyone knew how to disable that yes/no popup when you press the power button. I don't want it, I've never accidentally hit the power button for several seconds yet.
Interesting that you can change the entire shutdown program that is executed - that would solve my problem if I could find a good replacement. Do you have any good links on that?
Click to expand...
Click to collapse
yes i've just read your post and while i'm searching for the answer at moment i can tell you this much button assignments and time out periods are usually a function of the registry. so what you both were looking for is going to be a registry key. now whether it's a modify an existing key or create a key that it recognises is yet to be seen so either start researching the registry or keep eye's open as i'm still searching...
New: found this thread which i think is a better option then trying to modify the power buttons defualt timeout's and suggests that really if you have a diffrent power manager for shutting down etc.etc. that's better then use their binary
http://forum.xda-developers.com/showthread.php?t=427699
Hmm... Not really what I was looking for. I dont want to replace the PowerOffWarning.exe, I just want to shorten the time for it to start. I just mailed a friend of mine, works at MS. Will get back with the answer.
PowBut
You might want to have a look at PowBut.
For instance here.
Haven't tried it myself though.
Thanks, will test it!
Hai, just a simple question but I need it so bad.
When my phone rings and I get it out of my pocket I almost always pick it up to early by pressing the left (Awnser) button or rejecting it by pressing the right (ignore/hangup) button.
Is there any way to disable these buttons?
I know, the right button is usefull for stndby but I can miss it. (Phone sleeps in a couple of sec when lock is on)
Is there any way to disable these buttons?
Thanks guys!
(PS, the rest of the Leo I really love!)
Kind Regards, Diq
Dr Diq said:
Hai, just a simple question but I need it so bad.
When my phone rings and I get it out of my pocket I almost always pick it up to early by pressing the left (Awnser) button or rejecting it by pressing the right (ignore/hangup) button.
Is there any way to disable these buttons?
I know, the right button is usefull for stndby but I can miss it. (Phone sleeps in a couple of sec when lock is on)
Is there any way to disable these buttons?
Thanks guys!
(PS, the rest of the Leo I really love!)
Kind Regards, Diq
Click to expand...
Click to collapse
Yes there is, but I'm at work so I can't provide a cab. A search should find it for you though. I think InCallSettings might do it, but don't quote me on that.
Thanks, I've found it. (Didn't know the search criteria!)
Thanks Again!
I tried to copy the information here with no luck.
I would like to remap some buttons to gain camera functionality.
1.) the "back" button
- the long press of the back button is not being used by anything.
-remap the long press of the 'back' button to the short press of the camera button.
--or---
2.)the "send' button
-The green phone button (i'm calling it the send button) is not being used by me. I use my headset for voice commands, or the touch screen to open the phone app.
-I would like to completely remap it to the camera button, short and long press (not sure if camera has a long press, if it doesn't i have another idea)
3.)menu key
- the long press of the windows key is worthless. maybe use that.
A big thank you.
Hi!
Have a look to thier thread : http://forum.xda-developers.com/showthread.php?t=740629
DocteurN said:
Hi!
Have a look to thier thread : http://forum.xda-developers.com/showthread.php?t=740629
Click to expand...
Click to collapse
thats the same link i used in my above post.
Ooops ! Sorry I missed the link in your first post.
My mistake
no worries bro, thx for trying to help!
Hi,
I've searched for many hours to find the solution. But I couldn't found it.
I want to change my lock button from End key to power Button. Ik know I could use Slide To Unlock, but I prefer the HTC lock more.
Can someone tell me how to change this? So from End key to Power button just like S2U2?
thank you!
maybe you should search before opening a new thread. There is another thread with the exact same subject right below yours....
http://forum.xda-developers.com/showthread.php?t=611021
i allready read the tread before creating this. But what i'm asking for is, is there a way to 'replace' the end key for the power button (eg egistry edit or something).