PDA

View Full Version : How To Replace Long Press Power Button Shutdown App With PsShutXP


eazy2001x
18th September 2008, 09:15 PM
Orig title:How Do I Remap Power To An App On My Mogul

I want to replace my long press power button application with psshutxp. I tried to edit the registry, rename the link to long_press etc..., map key 00EC and nothing.. Need help...

I did download aebplus but it fights with the default shutdown app..

i'm running WM6.1 on my sprint mogul

Eazy

NotLutzik
18th September 2008, 10:51 PM
http://forum.xda-developers.com/showthread.php?t=398571

eazy2001x
18th September 2008, 11:14 PM
http://forum.xda-developers.com/showthread.php?t=398571


Don’t do that to me.. Because I do contribute when I can.. and I actually have a fix.......

If you didn’t know you could have posted that.. Well here it is..

You need to do two things..
1. Save and zip the file called “PowerOffWarning.exe” from the windows directory
2. Go to the directory that has your psshutxp executable in it and rename the psshutxp.exe to PowerOffWarning.exe.
3. Zip the new “PowerOffWarning.exe” and skin files into a zip file.
4. Execute the zip file and overwrite the “PowerOffWarning.exe” file in the windows directory.
5. Press and hold your power button and enjoy your new shutdown/reset/screen off options.

NOTE: the only reason I choose to do it on long press is because I sometimes quickly want to turn off my screen when putting the phone back into the case. I don’t want to worry or wait for the app to come up and choose an option.

I have attached the two files and they came from a Mogul running WM6.1. If you use these files please backup your device first.

Eazy

eazy2001x
19th September 2008, 03:35 PM
maybe someone can create a cab for me please ;-)

zerocool81
28th November 2008, 07:41 PM
mm with diamond don't go.. any ideas?

bambu456
28th November 2008, 07:54 PM
Great idea Eazy. I'll be waiting for a cab too...

jez83uk
29th November 2008, 03:45 PM
On my hermes, there is no poweroffwarning.exe, so your solution will not work on all devices.

Just had a quick look at the running tasks, and the warning comes from gwes.exe, which is the 'Graphics, Windowing and Events Subsystem'

Spiderm@n_
30th November 2008, 11:10 AM
Don’t do that to me.. Because I do contribute when I can.. and I actually have a fix.......

If you didn’t know you could have posted that.. Well here it is..

You need to do two things..
1. Save and zip the file called “PowerOffWarning.exe” from the windows directory
2. Go to the directory that has your psshutxp executable in it and rename the psshutxp.exe to PowerOffWarning.exe.
3. Zip the new “PowerOffWarning.exe” and skin files into a zip file.
4. Execute the zip file and overwrite the “PowerOffWarning.exe” file in the windows directory.
5. Press and hold your power button and enjoy your new shutdown/reset/screen off options.

NOTE: the only reason I choose to do it on long press is because I sometimes quickly want to turn off my screen when putting the phone back into the case. I don’t want to worry or wait for the app to come up and choose an option.

I have attached the two files and they came from a Mogul running WM6.1. If you use these files please backup your device first.

Eazy
Works fine on my Touch Pro.
And, if you use program like Resco Explorer, you can pass the ZIP routine, and go directly to overwriting the .exe :).

elbabo
30th November 2008, 11:54 AM
works on my Trinity 6.1

very nice thank you!!!

eazy2001x
4th December 2008, 02:44 PM
On my hermes, there is no poweroffwarning.exe, so your solution will not work on all devices.

Just had a quick look at the running tasks, and the warning comes from gwes.exe, which is the 'Graphics, Windowing and Events Subsystem'


seems like you know your problem.. so run the app and make sure its the same app to shut down your phone then replace it following the process.. i never said that it will work on all devices hence the reason that i posted what phone i was using.. i am using it on my diamond as well..

if you need any more help let me know.. all i did was post a process that worked for me. if you need to use a diff exe please feel free to do so..

jez83uk
4th December 2008, 03:15 PM
seems like you know your problem.. so run the app and make sure its the same app to shut down your phone then replace it following the process.. i never said that it will work on all devices hence the reason that i posted what phone i was using.. i am using it on my diamond as well..

if you need any more help let me know.. all i did was post a process that worked for me. if you need to use a diff exe please feel free to do so..

I'm sorry, I certainly didn't intend to imply any criticism of your work.

For anyone else in my situation, unfortunately the gwes.exe is a vital process, which is always running, and does more than just the power off warning. As there is no standalone app for this warning in my rom, there is no exe which can be replaced.

Anthony2oo5
4th December 2008, 09:58 PM
I made a cab for the method stated.

PsShutXP_Replace.cab is just an automated way of Eazys method on the first page so check that first.

PsShutXP_Diamond.cab is the same method but with the VGA version and a diamond skin from lesteryh (http://forum.xda-developers.com/showthread.php?t=401248)

FatBoyExtraordinaire
5th December 2008, 05:29 AM
Can this be undone if it doesn't work?

smotrs
5th December 2008, 06:25 AM
I think there's still the issue where it doesn't work right if you also use S2U2. not sure which ones at fault there.

atoz350
5th December 2008, 09:26 AM
Works fine on my Vogue running NSFAN's 6.1 Rom. I'm also running S2U2.

Anthony2oo5
5th December 2008, 12:08 PM
I dought the uninstall will work. If you want to go back then read Eazys post on page one and backup the file first.

flaviopac
5th December 2008, 02:33 PM
Don’t do that to me.. Because I do contribute when I can.. and I actually have a fix.......

If you didn’t know you could have posted that.. Well here it is..

You need to do two things..
1. Save and zip the file called “PowerOffWarning.exe” from the windows directory
2. Go to the directory that has your psshutxp executable in it and rename the psshutxp.exe to PowerOffWarning.exe.
3. Zip the new “PowerOffWarning.exe” and skin files into a zip file.
4. Execute the zip file and overwrite the “PowerOffWarning.exe” file in the windows directory.
5. Press and hold your power button and enjoy your new shutdown/reset/screen off options.

NOTE: the only reason I choose to do it on long press is because I sometimes quickly want to turn off my screen when putting the phone back into the case. I don’t want to worry or wait for the app to come up and choose an option.

I have attached the two files and they came from a Mogul running WM6.1. If you use these files please backup your device first.

Eazy

It works! :D

Many thanks!

eazy2001x
5th December 2008, 02:47 PM
I made a cab for the method stated.

PsShutXP_Replace.cab is just an automated way of Eazys method on the first page so check that first.

PsShutXP_Diamond.cab is the same method but with the VGA version and a diamond skin from lesteryh (http://forum.xda-developers.com/showthread.php?t=401248)

Hey.. Can I ask you to change up how your cab works.. Just to make things easy.. I have not ventured into how to make cab's yet but will soon..

User:

Install PsShutXP (QVGA/VGA)then run the (not yet created) cab

Your cab:
create a directory under \program files\PsShutXP called Backup
create a directory under \program files\PsShutXP called modfile
copy \Windows\PowerOffWarning.exe to \program files\PsShutXP\backup
copy \program files\PsShutXP\PsShutXP.exe to \program files\PsShutXP\modfile\PowerOffWarning.exe
copy program files\PsShutXP\modfile\PowerOffWarning.exe to Windows\PowerOffWarning.exe and overwrite the file.
copy \program files\PsShutXP\*.gif to \Windows\

and on your uninstall
copy \program files\PsShutXP\Backup\PowerOffWarning.exe to \Windows

This will allow the user to uninstall the program if needed.

I am also using that skin on My Touch pro but removed the text up top that says Touch Diamond.

If you could create that cab it would be greatly appreciated. Until then everyone can just follow the manual process..

Working Devices so far:
Mogul 6.1
Touch 6.1
Touch Pro 6.1
Touch Diamond 6.1
Vogue 6.1
Trinity 6.1

I'm sorry, I certainly didn't intend to imply any criticism of your work.

For anyone else in my situation, unfortunately the gwes.exe is a vital process, which is always running, and does more than just the power off warning. As there is no standalone app for this warning in my rom, there is no exe which can be replaced.

I'll help you out.. I don’t think gwes.exe is the right file for you to be looking at.. How about this.. It seems that when you hold down your power button you get the same type of power off warning box that we do.. How about you go into your windows directors and sort by exe. Then start clicking on each exe until you see the warning box pop up and then you will know which file shuts down your phone. That’s how I found the PowerOffWarning.exe file. Please report back...

MongarEric
5th December 2008, 02:50 PM
There's a thread over at ppcgeeks that I can't find right now, but it said to just copy the psshutxp.exe and paste a .lnk in \Windows\. Then you rename the "psshutxp.lnk" to "Long_Power.lnk". This method doesn't overwrite any exe's and works like a charm on my Touch Pro.

eazy2001x
5th December 2008, 03:23 PM
at the time that did not work on my mogul.. if it is working for you then your good.. if it works for anyone else then they dont need to use this process.. i have not tested that on my diamond pro since this worked for me.

jez83uk
5th December 2008, 09:37 PM
I'll help you out.. I don’t think gwes.exe is the right file for you to be looking at.. How about this.. It seems that when you hold down your power button you get the same type of power off warning box that we do.. How about you go into your windows directors and sort by exe. Then start clicking on each exe until you see the warning box pop up and then you will know which file shuts down your phone. That’s how I found the PowerOffWarning.exe file. Please report back...

I found out that it is gwes.exe by using soti pocket controller, which allows you to see all the running processes in a task manager on you desktop. Upon holding down the long press power button, the only change was to gwes.exe. This is when I used soti to take the screen shot I posted.
Despite this, I went through the executables in the windows folder, as per your suggestion, but with no joy.

I did look out my old wizard though, and you can add that to your list of working devices.

...Or could it be that it is dependent on the rom rather than the device, in which case different roms on the same device could have this problem or not?
Has anyone got a hermes with a non joshkoss rom who can shed some light?

heartisall
5th December 2008, 11:39 PM
heres a cab for the qvga version with the diamond skin.

tmz
6th December 2008, 01:06 AM
heres a cab for the qvga version with the diamond skin.

Thanks. And can this one be uninstall ?

FatBoyExtraordinaire
6th December 2008, 08:18 AM
I dought the uninstall will work. If you want to go back then read Eazys post on page one and backup the file first.

Thanks for the info.

sadam1688
8th December 2008, 03:27 AM
i still cant get this to work on my fuze:mad:

heartisall
8th December 2008, 10:20 AM
Thanks. And can this one be uninstall ?

not sure just copy and save the file in the windows folder just in case, although i don't really know why you would want to uninstall it it has the same options as the normal set up

flaviopac
8th December 2008, 11:24 AM
Is there any PsShutXP which turn completely off the device?

The one I own doesn't switch my Touch completely off......:(

z_rudy
8th December 2008, 11:47 AM
It's possible to create a shortcut to the psShutXP executable and call it Long_Power.lnk and palce it in the Windows directory. This would do the job... at least on Kaiser.

iDoktor
8th December 2008, 12:43 PM
Hey.. Can I ask you to change up how your cab works.. Just to make things easy.. I have not ventured into how to make cab's yet but will soon..

User:

Install PsShutXP (QVGA/VGA)then run the (not yet created) cab

Your cab:
create a directory under \program files\PsShutXP called Backup
create a directory under \program files\PsShutXP called modfile
copy \Windows\PowerOffWarning.exe to \program files\PsShutXP\backup
copy \program files\PsShutXP\PsShutXP.exe to \program files\PsShutXP\modfile\PowerOffWarning.exe
copy program files\PsShutXP\modfile\PowerOffWarning.exe to Windows\PowerOffWarning.exe and overwrite the file.
copy \program files\PsShutXP\*.gif to \Windows\

and on your uninstall
copy \program files\PsShutXP\Backup\PowerOffWarning.exe to \Windows

This will allow the user to uninstall the program if needed.

I am also using that skin on My Touch pro but removed the text up top that says Touch Diamond.

If you could create that cab it would be greatly appreciated. Until then everyone can just follow the manual process..

Working Devices so far:
Mogul 6.1
Touch 6.1
Touch Pro 6.1
Touch Diamond 6.1
Vogue 6.1
Trinity 6.1



I'll help you out.. I don’t think gwes.exe is the right file for you to be looking at.. How about this.. It seems that when you hold down your power button you get the same type of power off warning box that we do.. How about you go into your windows directors and sort by exe. Then start clicking on each exe until you see the warning box pop up and then you will know which file shuts down your phone. That’s how I found the PowerOffWarning.exe file. Please report back...

It works on my ARTEMIS...thank you man!

iDoktor
8th December 2008, 12:50 PM
Is there any PsShutXP which turn completely off the device?

The one I own doesn't switch my Touch completely off......:(
I made a research...
http://forum.xda-developers.com/showthread.php?t=303599
I've the same problem!

eazy2001x
9th December 2008, 04:25 PM
flaviopac & iDoktor

this is just a way to replace the long press, if the application wont work for you normally then there is no point in replacing the power button long press. Sorry..

heres a cab for the qvga version with the diamond skin.

is this will the process i listed a few post back?

I found out that it is gwes.exe by using soti pocket controller, which allows you to see all the running processes in a task manager on you desktop. Upon holding down the long press power button, the only change was to gwes.exe. This is when I used soti to take the screen shot I posted.
Despite this, I went through the executables in the windows folder, as per your suggestion, but with no joy.

I did look out my old wizard though, and you can add that to your list of working devices.

...Or could it be that it is dependent on the rom rather than the device, in which case different roms on the same device could have this problem or not?
Has anyone got a hermes with a non joshkoss rom who can shed some light?

I dont think this will work for you and since i dont have your device i dont think i will be able to help out.. but question.. when you install the application, does it work as intended? screen off, power off and reset?

It works on my ARTEMIS...thank you man!

Which OS?

mahesham22
16th December 2008, 10:12 AM
Hey I followed steps by eazy2001x and worked on my Touch Diamond and it works 100% flowlessly.

Here is what I did:
1. Backup the file “PowerOffWarning.exe” from the windows directory
2. Go to the directory that has your psshutxp executable in it and rename the psshutxp.exe to PowerOffWarning.exe.
3. copy the new “PowerOffWarning.exe” and skin files into windows directory. overwrite if asked.
4. Press and hold your power button and enjoy your new shutdown/reset/screen off options.

Note: I used resco explorer for file operations.

Thanks easy2001x

eazy2001x
16th December 2008, 06:05 PM
Hey I followed steps by eazy2001x and worked on my Touch Diamond and it works 100% flowlessly.

Here is what I did:
1. Backup the file “PowerOffWarning.exe” from the windows directory
2. Go to the directory that has your psshutxp executable in it and rename the psshutxp.exe to PowerOffWarning.exe.
3. copy the new “PowerOffWarning.exe” and skin files into windows directory. overwrite if asked.
4. Press and hold your power button and enjoy your new shutdown/reset/screen off options.

Note: I used resco explorer for file operations.

Thanks easy2001x


No problem..

Eazy