You can also use m33 sdk
sctrlKernelExitVSH (systemctrl.h)
sceKernelExitVSHVSH (psploadexec_kernel.h)
sceKernelExitVSHKernel (psploadexec_kernel.h)
PRX turns off psp
-
- Posts: 388
- Joined: Tue Aug 12, 2008 12:46 am
Take a look at some of the file browser examples and see how that works.zydeoN wrote:Havent found however the function to shutdown the psp completely.
scePowerRequestStandby and sceSysconPowerStandby() just suspend the psp. Btw, how could i explore the prx in flash0, including searching for functions and that kind ? do i have to use a decompiler ?
PSHN - Playstation Hacking Network
PSX/PS1 - HACK - Game Shark
PS2 - HACK - Swap
PSP - HACK - Pandora
PS3 - ?
PSX/PS1 - HACK - Game Shark
PS2 - HACK - Swap
PSP - HACK - Pandora
PS3 - ?
Then you are using the wrong function in your actual code or have flubbed up by crosslinking in a self made stub, or are still using the wrong makefile includes.zydeoN wrote:Havent found however the function to shutdown the psp completely.
scePowerRequestStandby and sceSysconPowerStandby() just suspend the psp.
Standby is exactly what happens when you hold the power switch to off for 5-10 seconds, the code I posted does exactly that - shuts off the psp (though again, some hardware always remains running in PSP so long as it has any power source, RTC and syscon being examples); the only exceptions I could come up with are if you are using hen 5.xx and it has subverted standby functions to try and keep hen in memory (doubtful) or are using another plugin that hooks those functions at or before syscon level. See for yourself, code and binary:
psp_poweroff.zip
btw PsPfReAK, the code posted for the stub with my own tweak to make a sensible name for the function is in there and working just fine, so this prx does reboot (not a good way to do it), suspend(sleep) and standby(poweroff). Make sure you don't have a user/kernel mode mix, this prx code is entirely in kernel mode.