forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PRX turns off psp
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
cory1492



Joined: 10 Dec 2004
Posts: 216

PostPosted: Sat Aug 01, 2009 10:51 am    Post subject: Reply with quote

You can also use m33 sdk
sctrlKernelExitVSH (systemctrl.h)
sceKernelExitVSHVSH (psploadexec_kernel.h)
sceKernelExitVSHKernel (psploadexec_kernel.h)
Back to top
View user's profile Send private message
zydeoN



Joined: 09 May 2009
Posts: 45

PostPosted: Sun Aug 02, 2009 3:25 am    Post subject: Reply with quote

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 ?
Back to top
View user's profile Send private message
PsPfReAK



Joined: 28 Mar 2009
Posts: 61

PostPosted: Sun Aug 02, 2009 5:57 am    Post subject: Reply with quote

wel ive tried what you've said and i get errors in imports.s saying unrecongnises opcode ect
Back to top
View user's profile Send private message Visit poster's website
Dariusc123456



Joined: 12 Aug 2008
Posts: 394

PostPosted: Sun Aug 02, 2009 9:05 am    Post subject: Reply with quote

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 ?


Take a look at some of the file browser examples and see how that works.
_________________
PSHN - Playstation Hacking Network
PSX/PS1 - HACK - Game Shark
PS2 - HACK - Swap
PSP - HACK - Pandora
PS3 - ?
Back to top
View user's profile Send private message AIM Address
cory1492



Joined: 10 Dec 2004
Posts: 216

PostPosted: Sun Aug 02, 2009 5:36 pm    Post subject: Reply with quote

zydeoN wrote:
Havent found however the function to shutdown the psp completely.
scePowerRequestStandby and sceSysconPowerStandby() just suspend the psp.

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.

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.
Back to top
View user's profile Send private message
zydeoN



Joined: 09 May 2009
Posts: 45

PostPosted: Mon Aug 03, 2009 1:26 am    Post subject: Reply with quote

It works now xD Tks cory1492.
Quote:

Take a look at some of the file browser examples and see how that works.

Where can i find them ?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group