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 

How to get in Sleep mode and return to program

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
dsanchem



Joined: 16 Apr 2006
Posts: 5
Location: Espaņa (Spain)

PostPosted: Sun May 11, 2008 3:09 am    Post subject: How to get in Sleep mode and return to program Reply with quote

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



Joined: 09 Oct 2007
Posts: 409

PostPosted: Sun May 11, 2008 3:55 am    Post subject: Reply with quote

that's not sleep mode, that's turned off xD
_________________

Upgrade your PSP
Back to top
View user's profile Send private message
dsanchem



Joined: 16 Apr 2006
Posts: 5
Location: Espaņa (Spain)

PostPosted: Sun May 11, 2008 4:36 am    Post subject: Reply with quote

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



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sun May 11, 2008 7:09 am    Post subject: Reply with quote

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



Joined: 16 Apr 2006
Posts: 5
Location: Espaņa (Spain)

PostPosted: Sun May 11, 2008 8:56 pm    Post subject: Reply with quote

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



Joined: 09 Nov 2005
Posts: 647

PostPosted: Sun May 11, 2008 9:20 pm    Post subject: Reply with quote

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



Joined: 09 Oct 2007
Posts: 409

PostPosted: Tue May 13, 2008 6:25 am    Post subject: Reply with quote

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
_________________

Upgrade your PSP
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
Page 1 of 1

 
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