How to get in Sleep mode and return to program

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
dsanchem
Posts: 5
Joined: Sun Apr 16, 2006 9:22 am
Location: España (Spain)

How to get in Sleep mode and return to program

Post by dsanchem »

Hi,
How can I force psp to return to my program when the psp returns from sleep mode? Actually when I enter on sleep mode and return the sony logo and xmb menu as showed.

Thanks
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

that's not sleep mode, that's turned off xD
Image
Upgrade your PSP
dsanchem
Posts: 5
Joined: Sun Apr 16, 2006 9:22 am
Location: España (Spain)

Post by dsanchem »

No, I push power button less 2 seconds and it enter on sleep mode but when I push power button again the screen remain black. I push power button again and the systems boot as it was a restart.
This from my program, from a comercial game it works fine.
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

Sounds like whatever it was crashed coming out of sleep mode. Many programs don't sleep properly (or wake properly). Nothing you can do but hope the author figures out the problem.
dsanchem
Posts: 5
Joined: Sun Apr 16, 2006 9:22 am
Location: España (Spain)

Post by dsanchem »

Yes, this is the problem. My little program crash coming out of sleep mode.
Anybody has a demo code when a program Enter on Sleep mode and come out good of sleep mode?

Thanks
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

Most of the SDK samples would suspend and resume ok.
There's no specific code to show you that will fix your program.
If it's important to you, it's one of those things you have to keep an eye on as you're going.
If not actually, then potentially.
Pirata Nervo
Posts: 409
Joined: Tue Oct 09, 2007 4:22 am

Post by Pirata Nervo »

dsanchem wrote:No, I push power button less 2 seconds and it enter on sleep mode but when I push power button again the screen remain black. I push power button again and the systems boot as it was a restart.
This from my program, from a comercial game it works fine.
I have that problem some times with my program too(but using a function to enter sleep mode), I believe it is caused by a loop

Edit:
no the problem is not a loop :/
I can't find the problem too lol
Image
Upgrade your PSP
Post Reply