PDA

View Full Version : Hold+ v2.61 - Battery Saver Plugin



wraggster
July 18th, 2008, 00:20
Updated Release from Torch: (http://forums.qj.net/showthread.php?t=141671)

This is a simple plugin I made a long time ago for my personal use. I just found the source code while going through some old stuff on my computer, so I thought I'd clean up the code a bit and release the plugin.

I realize that there are other plugins that feature similar functionality but I wrote my own because I wanted to be sure its coded optimally, as there are a few careless ways in which these functions can be improperly used (the point of this after all is to conserve battery life).

It does the following when the Hold switch is enabled:
* Switches off the LCD backlight.
* Switches off the actual LCD screen.
(This is important because the backlight and actual screen are two different things. You can have an image being displayed on the screen while the backlight is switched off, such that you can see the image if you use a flashlight. You can also have the screen switched off while the backlight still illuminates the powered off screen.)
* Underclocks the CPU to 61MHz
(Sony has changed the clock speed functions such that only certain combinations of speeds work correctly. Simply trying to underclock to arbitrary values will result in the CPU simply running at the stock speed. I have verified that Hold+ successfully underclocks to 61MHz.)
* The original screen brightness and clock speed are restored when the Hold switch is released.
* Prevents the PSP from going into suspend mode if you accidently push the power switch too far when turning off Hold mode.
* Allows operation of the PSP with the display turned off, to change volume, skip songs etc.

Usage:
Turn on the Hold switch to automatically disable the display and underclock the CPU. Turn off the Hold switch to return the CPU to normal speed and enable the display.

If you push the ANALOG UP button when turning off the hold switch, the display will remain switched off and the CPU will remain underclocked, but you can operate the PSP. This is useful if you just need to adjust the volume, fast forward/rewind, or to skip to the next song, without unnecessarily turning on the display. To return to normal, just press the Screen button.

If you push the ANALOG UP button when turning on the hold switch, it will only lock the keypad like normal Hold mode. The display and CPU speed will not be changed, so that you can watch videos etc. with the keypad locked.

Installation:
You can install it in the seplugins folder, and make an entry in VSH.txt. Thus it will be active in the XMB. Its also possible to use it in games by adding it to GAME.txt, but some games may crash etc., if the CPU is underclocked to such a low value.

Optionally, its also possible to install it in your PSP's flash0 so that it will work without a memory card. For this you can use FreePlay's "NewBTCFNedit" and enable it for VSH mode in the all the PSPBT?NF.bin files. Add it after vshmain.prx.

Credits:
Thanks to adrahil for helping with preventing the suspend mode.

Changelog v2.61
----------------------------------
Fixed a bug that was introduced in v2.6 that caused the control input buffer to completely fill up, hence causing the Analog Up features not to work in Hold mode, when the plugin was used for an extended period of time.

Download and Give Feedback Via Comments

marzsyndrome
July 18th, 2008, 15:57
This plugin unfortunately just never works for me. :( Whether it's because I'm using 3.71 M33-3 or not I don't know. Is there a minimum firmware version requirement for it?

shyboi122
July 19th, 2008, 23:05
Sounds cool, will try out

daargx001
September 3rd, 2008, 11:36
Is anyone else running 3.90 M33-3 having trouble running it from the XMB. I've added it to both VSH and GAME. It works fine in games, but not in the XMB.