Power off button not registering on my magician device - Windows Mobile Development and Hacking General

Within my code I am using the SetWindowsHookEx function with WH_KEYBOARD_LL to catch low level keyboard events. This should alert me to the user pressing the power button.
However it is not always catching the button press. Whats more is that I dont think the unit is powering down at all because the unit stays active synced.
Has anyone seen this problem, or know what could cause this.
Thanks in advance.

Related

Can you remap power on/off button.

I own an O2 Mini & Eten M500.
Is there any possibility of remapping the power on/off button to another hardware key since my actual button is acting funny with me.(it works most of the time, but certain times even if I sit on it it wont power on the device. Power off is not a problem since I programmed it to sleep after xx secs.)
Any developer gurus out there who can develop a prog. for me :roll:
Thanks in advance for the help.
I dropped my HTC Hermes device and now the power button is stuck in.
Is there anyway to remap the power on/off function to another hardware button? Specifically the comms button.
well, i would like to delete my message, but dont know how?
i can edit it but i cant delete it, right?
You can use "AE Button Plus" to map all the other keys to other various functions, "power off the device" is among them...
you can even specify actions for single press, double press, triple press or long press for each button.. good luck
ae button or pqzII is okay
[email protected] said:
I own an O2 Mini & Eten M500.
Is there any possibility of remapping the power on/off button to another hardware key since my actual button is acting funny with me.(it works most of the time, but certain times even if I sit on it it wont power on the device. Power off is not a problem since I programmed it to sleep after xx secs.)
Any developer gurus out there who can develop a prog. for me :roll:
Thanks in advance for the help.
Click to expand...
Click to collapse
Thats quite strange and I've never heard that one before. I'm guessing there could be some oxidation on the contacts of the power button.
As a test to be 100% sure its the button which is the problem, have you tried calling the device to wake it up when the power button refuses to work? Reason being, is that I suspect its actually the device freezing and not waking up rather than just the power button malfunctioning. If the power button refuses to work and you can successfully wake up the device by other means (eg, a phone call) then you can explore other alternatives
how do i map leftsoftkey as the redkey(Red Phone Button) and the redkey as leftsoftkey?
current hardware keymap:
leftsoftkey controller rightsoftkey
greenkey controller redkey
what i want:
redkey controller rightsoftkey
greenkey controller leftsoftkey
reason for tiz is i cant seem to get morphgear to use the redkey or the greenkey even after mapping in the game. by mapping leftsoftkey to the redkey, i can then play the game with "A" "B" buttons using my right hand. so "A" will be mapped to rightsoftkey and "B" mapped to "leftsoftkey"(physically redkey).
i hv tried ae button plus.. tried unbinding redkey still no use. tried binding single press to virtual key too but to no avail.
It could help
[email protected] said:
I own an O2 Mini & Eten M500.
Is there any possibility of remapping the power on/off button to another hardware key since my actual button is acting funny with me.(it works most of the time, but certain times even if I sit on it it wont power on the device. Power off is not a problem since I programmed it to sleep after xx secs.)
Any developer gurus out there who can develop a prog. for me :roll:
Thanks in advance for the help.
Click to expand...
Click to collapse
This one is from the Hermes forum, at least gives you a couple of ideas on how to...
Cheers!
Rigging screen off (like PWMP)
I would like help on this too. Is there any way to rig the device so the power button only ever turns on/off the screen (like windows media player does) or at least is there a program or cab someone can design to do this????
Thanks in advance.
I've figured out how to do the above, if anyone wants to know pm me.

simple display on/off question

Hi!
- Does the Universal turn on automatically when the display flip is opened or does the user have to press the Power button first?
- What exactly does the Backlight button do?
I need to know this because I'm investigating a possible wiring damage ...
Thanks!
.ox
Depends...
The Universal knows two different states. When you close the display while the device is on, and then open the diplay again the screen will come on.
If however you first press the power button to send the device into standby, and then close and open the display, the screen will not come on, the device will remain in standby.
The backlight button is useless, use the hack to re-assign it to a function of your choice.
Thanks!
That helped a lot!! 8)
.ox

Problem with Power off

I have problem with power button. when push pwr button dont,t off pda, but when hold pwr then lights off.
Power is never shut off in PDAs, thats the way PDAs have been designed.
I have the same problem, he is not talking about a full power down. If you hit the power button quickly the phone does nothing. However if you hold the power button down for about 2-3 seconds the lcd light turns off as it should.
Because of this I have to wait 1 minute for the unit to suspend before putting it back in the holster.
Does anybody have any idea as to why this might be happening. Im not new at this so hard reset, soft reset.. new rom... new radio...turning up side down while chanting. It does not change......
It will do it right one or twice in a week.
Maybe somebody that understands the signal that the unit receives upon pressing the power button might be able to shed some light on this.... Again the button does seem to operate just not suspend when pressed normally (1 second or less)
I have done some more research and this seems to be a common problem for some with BAs but nobody has found out why. There must be some kind of common hardware fault.. Does the power button send only one signal or is it a multi signal device.
afbcamaro said:
I have the same problem, he is not talking about a full power down. If you hit the power button quickly the phone does nothing. However if you hold the power button down for about 2-3 seconds the lcd light turns off as it should.
Because of this I have to wait 1 minute for the unit to suspend before putting it back in the holster.
Does anybody have any idea as to why this might be happening. Im not new at this so hard reset, soft reset.. new rom... new radio...turning up side down while chanting. It does not change......
It will do it right one or twice in a week.
Maybe somebody that understands the signal that the unit receives upon pressing the power button might be able to shed some light on this.... Again the button does seem to operate just not suspend when pressed normally (1 second or less)
I have done some more research and this seems to be a common problem for some with BAs but nobody has found out why. There must be some kind of common hardware fault.. Does the power button send only one signal or is it a multi signal device.
Click to expand...
Click to collapse
Do you have a problem with turning on? First, we need to know whether it is hardware issue or not...
What you can do in the mean time with the turning off problem is by installing a poweroff app like shutdownme, psshutxp, etc etc...
Absolutely no problem with turning on from standby... Right now i just lock the phone before placing it back in the holster.
To make it clearer if you HOLD the power button down the backlight will turn off only. It will still show the display image and keys will still function (it dims)
Well, I had the same issue with the latest WM5 ROM. I thought I was too stupid to press the button, then I thought the button was broke, then I thought, I'll have to live with it.
Now that I have flashed to WM6, no problems at all! Never even came to my mind that this problem once existed. So I guess that some ROMs just have this particular bug?
Stefan
I have tried all the roms as well as 2003 and have the same issue in all of them. And im not alone.
Power off Problem
I'm in same condition.
Had the same problem when using WM2003 second Ed.
Now I've installed WM6 but nothing changed:
I cannot power-off/suspend but can turn off backlight if press and hold power button.
When in standby the button works fine to turn on the device.
Also, sometimes volume turns up continously with "noisy" beep ...
Anybody solved this problems?
Thanks,
Ruben
(WM 6 - 5.60.00 build 18125.0.4.2
radio 1.12.00 )
Power button has two modes:
1. Click mode: Click it once for a short duration. This turns off backlight and can be resumed by pressing it again or by pressing OK button
2. Press and Hold mode: Press and hold for few seconds and release. This mode will dim the backlight and no other button will bring it back. This is some kind of deep sleep in battery mode. To resume the original setting, press and hold Power button again for few more seconds.
(p.s.: I am not sure if this behavior is true for all the BA models)
April 1,
I know these modes...
It seems that "mode 1" doesn't work at all...
I would activate "Button Lock" (settings-->button--> Lock(tab)--> "lock all buttons except power button") to turn-off backlight and "lock all buttons except power button" but I cannnot...
You solved this problem?
I have had this issue of not being able to power off. One way I always got out of it was by clearing the registry hive. Unfortunately this brings the PDA back to the basic ROM. At this point the power button worked without any issues. Upon reloading the software the problem may come back. I believe the issue is related to some programs. I can't recall which program it was that seemed to cause the issue. One other thing I think that also worked was just entering the registry and getting back out and doing a hard reset.
I had the same problem with my 6600. the message button also didn't work. Believe it or not, to fix it. I banged the lower half (4-way area) on my desk a few times. Not hard enough to break the screen. But prolly hard enough to free what was prolly a sticky key. And now everything is working.
i am too
the same ...
when i press the power quickly , nothing happen
when i press the power for 2 sec. the backlight turns off
i tried every thing .... including formatting my BA
any one solve it ???
I have this same problem, my power button does`t work. i tried installing different roms but without any chance to fix it. maybe its an mechanic issue. i will change pwr button, i hope this work.
Look at one of my previous posts. I fixed it, twice, and other users have used the same metod to fix it. I think the problem is "hung bit" hardware related because you can also send it in for service, and they will change a chip, but i never had to.

Re assign power button

Hi I have a problem. My diamonds power button is very hit and miss because of wear and tear. Is there a way for the backlight to come on when it is idle e.g. when you pull out the stylus. Is there a way whereby I could re assign the backlight to come on, onto another hard key e.g. the home or back key?
Thanks in advance.

broken power button

Hi all,
my power button is broken on my touch hd! tried to fix it and nothing is happening. hard reset the device as i thought it could be a rom issue, still broken.
does anyone know a way to remap the power button to say the top volume key?
at the moment i have the device not turning off and have adjusted the backlight but this is not ideal as it will be eating up more power than when the device is in suspend mode.
any help appreciated
Mark

Categories

Resources