• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[APP] Slide2Shutdown v1.1 [31/08/2009] (Now supports all resolutions!)

Search This thread

Cythrelo

Member
Oct 5, 2008
48
1
Montreal, QC
Along similar lines to S2U2, I've decided to make Slide2Shutdown! There's nothing special to configure, just install it and go. :) All resolutions should work fine (make sure you download QVGA for QVGA or WQVGA devices), but I only have the ability to test it on a VGA device so I can't guarantee how well it works in other resolutions. It also supports both portrait and landscape seamlessly.

attachment.php


There are four CABs available to install. They require version 3.5 of the .NET Compact Framework, the program won't run without it.
Slide2ShutdownSetup_v1.1.CAB just installs the application without mapping it to the power key. QVGA/WQVGA version.
Slide2ShutdownPowerKeySetup_v1.1.CAB installs the application, and maps it to the power key so that it will automatically launch when you hold down the power key. QVGA/WQVGA version.

There's no elaborate skinning method built-in, but the graphics are all stored in the \gfx\ folder and you can change them at will. Just replace the BMP files with your own files of the same dimensions.

Multiple language support is now available. You will find the available languages in the \lang\ folder. To enable your chosen language, open the txt file and change the first line to say "1" instead of "0".
Languages available:
It should be pretty straightforward to create your own languages. Create a file called "lang.yourlanguage.txt". Make the first line 0. The second, third and fourth lines should be "slide to shutdown", "restart" and "sleep" respectively, and the last line should be the text for the cancel button. Please post your language file if you translate it, and I'll add it to the next version!

Changelog:
v1.1, 31/08/2009:
  • FIXED: HTC devices should shutdown properly now. HUGE thank you to DaveShaw for helping me with this. I don't think Omnia devices will though. Please send me a PM if you know how to rectify this.
  • ADDED: Support for multiple languages. French and German (thanks basthet!) included. See above for information on enabling this.
v1.0, 30/08/2009:
  • Initial release
  • BUG: Shutdown slider doesn't currently work well on many HTC phones (it only suspends), I'm looking into a fix.
 

Attachments

  • Slide2Shutdown.jpg
    Slide2Shutdown.jpg
    18.8 KB · Views: 53,770
  • Slide2ShutdownSetup_v1.1.CAB
    754.4 KB · Views: 9,514
  • Slide2ShutdownSetup_QVGAv1.1.CAB
    754.4 KB · Views: 5,607
  • Slide2ShutdownPowerKeySetup_v1.1.CAB
    755.1 KB · Views: 13,191
  • Slide2ShutdownPowerKeySetup_QVGAv1.1.CAB
    755.1 KB · Views: 6,274
Last edited:
  • Like
Reactions: milad.kamaie

vishalm

New member
Jan 2, 2009
4
0
QVGA/WQVGA would be nice.
I'd like to have this mapped to my power key on my Omnia...
cheers.
 

dwizzy130

Senior Member
Nov 14, 2007
742
3
Along similar lines to S2U2, I've decided to make Slide2Shutdown! There's nothing special to configure, just install it and go. :) At the moment, it's VGA-only but if there's enough demand, I'll make a QVGA version as well! I haven't tested it in WVGA, but I don't see why it wouldn't work just fine. It also supports both portrait and landscape seamlessly.

attachment.php


There are two CABs available to install. They require version 3.5 of the .NET Compact Framework, the program won't run without it.
Slide2ShutdownSetup.CAB just installs the application without mapping it to the power key.
Slide2ShutdownPowerKeySetup.CAB installs the application, and maps it to the power key so that it will automatically launch when you hold down the power key.

There's no elaborate skinning method built-in, but if the graphics are all stored in the \gfx\ folder and you can change them at will. Just replace the BMP files with your own files of the same dimensions.

Changelog v1.0, 30/08/2009:
  • Initial release
  • BUG: Shutdown slider doesn't currently work well on many HTC phones (it only suspends), I'm looking into a fix.



Very, very cool.
Thanks,

dwizzy130
 

Cythrelo

Member
Oct 5, 2008
48
1
Montreal, QC
Good news! It turns out that it was easier to add QVGA and WQVGA support than I thought it would be. I just added QVGA cabs to the first post, let me know if you have any problems since I can only test on emulators and not real devices.
 

blazingwolf

Senior Member
Nov 11, 2006
2,127
405
Good news! It turns out that it was easier to add QVGA and WQVGA support than I thought it would be. I just added QVGA cabs to the first post, let me know if you have any problems since I can only test on emulators and not real devices.

Working great on my Omnia which is WQVGA. Thanks for the quick conversion. :D

Is slide to off supposed to turn the device off completely? If yes then that is not working for me either but it suspends and resets.
 

Cythrelo

Member
Oct 5, 2008
48
1
Montreal, QC
Glad to hear it's working well for you!

Yep, it's supposed to turn off entirely. Unfortunately, HTC devices seem to have their own method of shutting down, and the method I tried to use didn't work. I haven't been able to find any information on how to do a proper shutdown for HTC devices, but I've been looking and asking around and I'll implement a bugfix as soon as I figure it out.
 

blazingwolf

Senior Member
Nov 11, 2006
2,127
405
Glad to hear it's working well for you!

Yep, it's supposed to turn off entirely. Unfortunately, HTC devices seem to have their own method of shutting down, and the method I tried to use didn't work. I haven't been able to find any information on how to do a proper shutdown for HTC devices, but I've been looking and asking around and I'll implement a bugfix as soon as I figure it out.

OK. My Omnia is from Samsung so I imagine the fix for HTC might not work for me. I'll look around for the needed info on the Omnia.

I just tried the version tied to the power button also but the power button option does not work for me. Perhaps a different button location for the Omnia.
 

Cythrelo

Member
Oct 5, 2008
48
1
Montreal, QC
The power button CAB just adds a shortcut called Long_Power.lnk to the \Windows\ directory. I guess this doesn't work with the Omnia? I'd be happy to fix that too if someone knows of a more universal way to do it. I'm new to all of this and still firmly in novice territory as a programmer, so I'm way behind everyone else here. ;)

If you have Advanced Config installed, are you able to go to Menu> More settings> Key mapping and map "Long press Power key" to it?
 

blazingwolf

Senior Member
Nov 11, 2006
2,127
405
The power button CAB just adds a shortcut called Long_Power.lnk to the \Windows\ directory. I guess this doesn't work with the Omnia? I'd be happy to fix that too if someone knows of a more universal way to do it. I'm new to all of this and still firmly in novice territory as a programmer, so I'm way behind everyone else here. ;)

If you have Advanced Config installed, are you able to go to Menu> More settings> Key mapping and map "Long press Power key" to it?

No. Long press Power key is grayed out.
 

Cythrelo

Member
Oct 5, 2008
48
1
Montreal, QC
Sorry, I'm out of ideas then. :( Until I can find a solution, you could try AE Button Plus to remap the power button. The trial version will work, if you don't mind a splash screen when it starts.

One more thought, do you already have something like psShutXP or xdaShutdown installed and mapped to the power key? It's possible they may be overriding it.
 

blazingwolf

Senior Member
Nov 11, 2006
2,127
405
Sorry, I'm out of ideas then. :( Until I can find a solution, you could try AE Button Plus to remap the power button. The trial version will work, if you don't mind a splash screen when it starts.

One more thought, do you already have something like psShutXP or xdaShutdown installed and mapped to the power key? It's possible they may be overriding it.

I do have psShutXP installed. I'll see about removing that.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Along similar lines to S2U2, I've decided to make Slide2Shutdown! There's nothing special to configure, just install it and go. :) All resolutions should work fine (make sure you download QVGA for QVGA or WQVGA devices), but I only have the ability to test it on a VGA device so I can't guarantee how well it works in other resolutions. It also supports both portrait and landscape seamlessly.

    attachment.php


    There are four CABs available to install. They require version 3.5 of the .NET Compact Framework, the program won't run without it.
    Slide2ShutdownSetup_v1.1.CAB just installs the application without mapping it to the power key. QVGA/WQVGA version.
    Slide2ShutdownPowerKeySetup_v1.1.CAB installs the application, and maps it to the power key so that it will automatically launch when you hold down the power key. QVGA/WQVGA version.

    There's no elaborate skinning method built-in, but the graphics are all stored in the \gfx\ folder and you can change them at will. Just replace the BMP files with your own files of the same dimensions.

    Multiple language support is now available. You will find the available languages in the \lang\ folder. To enable your chosen language, open the txt file and change the first line to say "1" instead of "0".
    Languages available:
    It should be pretty straightforward to create your own languages. Create a file called "lang.yourlanguage.txt". Make the first line 0. The second, third and fourth lines should be "slide to shutdown", "restart" and "sleep" respectively, and the last line should be the text for the cancel button. Please post your language file if you translate it, and I'll add it to the next version!

    Changelog:
    v1.1, 31/08/2009:
    • FIXED: HTC devices should shutdown properly now. HUGE thank you to DaveShaw for helping me with this. I don't think Omnia devices will though. Please send me a PM if you know how to rectify this.
    • ADDED: Support for multiple languages. French and German (thanks basthet!) included. See above for information on enabling this.
    v1.0, 30/08/2009:
    • Initial release
    • BUG: Shutdown slider doesn't currently work well on many HTC phones (it only suspends), I'm looking into a fix.