Is it possible to run a program in the background that shuts the psp down after a specific time. Kind of like the sleep function in the origional FW, but the original sleep function doesn't shuts the psp down until all mp3's have stopped playing for example.
I want my program to shut the psp down completly after the time i set up.
Any tutorial or example i can look at?
Great forum by the way!!!
Running "sleep-program" in background...
Simple idea:
Grab the current system time and calculate when it's time to shutdown (or however you wanna do that part....)
Then make a loop that spends its most time with sceKernelDelayThread() so it doesn't pull 100% CPU load and drains the battery.
When this loop "detects" that it's bedtime, call scePowerRequestStandby(), and OFF you go - literaly :)
Simply, but should do it....
Grab the current system time and calculate when it's time to shutdown (or however you wanna do that part....)
Then make a loop that spends its most time with sceKernelDelayThread() so it doesn't pull 100% CPU load and drains the battery.
When this loop "detects" that it's bedtime, call scePowerRequestStandby(), and OFF you go - literaly :)
Simply, but should do it....
Hi! :)
Here there's a tutorial:
http://ps2dev.org/psp/Tutorials/PSP_Mod ... s.download
Ciaooo
Sakya
You have to code a module (a prx that you have to put in your ms0:/seplugin directory and activate through recovery).manflesh wrote:Ok, can I just "return to the XMB" after the program has been started, and the program will continue to run in the background?
Here there's a tutorial:
http://ps2dev.org/psp/Tutorials/PSP_Mod ... s.download
Ciaooo
Sakya